:root {
  --bg: #fbf8f3;
  --bg-alt: #f3ece2;
  --card: #ffffff;
  --ink: #15222c;
  --ink-2: #3a4852;
  --muted: #5e6a74;
  --line: rgba(21, 34, 44, 0.1);
  --sea: #0b4f57;
  --sea-2: #0e6771;
  --sea-deep: #083a40;
  --sea-soft: #e1eeec;
  --coral: #b4502d;
  --coral-bright: #e0784f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(21, 34, 44, 0.05), 0 10px 30px rgba(21, 34, 44, 0.06);
  --shadow-lg: 0 2px 6px rgba(21, 34, 44, 0.06), 0 28px 60px rgba(21, 34, 44, 0.12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-2); }
.btn-ghost { border-color: rgba(21, 34, 44, 0.18); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn-light { background: #fff; color: var(--sea-deep); }
.btn-light:hover { background: var(--sea-soft); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--sea); color: #fff; font: 600 1.25rem/1 var(--serif);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-weight: 600; font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: 0.8rem; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--sea); }

/* ------------------------------------------------ hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.88rem; font-weight: 500; margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 4px rgba(31, 157, 107, 0.18); }
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 4rem); line-height: 1.04; font-weight: 500; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.hero .lead { margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: 30px;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
}
.hero-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 30px; box-shadow: var(--shadow-lg);
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stat strong { display: block; font: 500 clamp(2rem, 3.6vw, 2.9rem)/1 var(--serif); color: var(--sea); margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------ sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .about-copy h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.12; margin-bottom: 16px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; margin: 0; }
.kicker { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.kicker-light { color: #f4b79c; }

/* ------------------------------------------------ work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sea-soft); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.chip {
  display: block; width: fit-content; align-self: flex-start; margin: 0 0 14px; padding: 5px 11px; border-radius: 999px;
  background: var(--sea-soft); color: var(--sea); font-size: 0.78rem; font-weight: 600;
}
.card h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 6px; }
.card-client { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.card-summary { color: var(--ink-2); font-size: 0.98rem; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--sea); font-weight: 600; font-size: 0.95rem; }
.card:hover .card-more .icon { transform: translateX(3px); }
.card-more .icon { transition: transform 0.2s; }
/* The first project is the featured one: full width, image beside the text. */
@media (min-width: 761px) {
  .work-grid .card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .work-grid .card:first-child .card-media { flex: 0 0 58%; border-bottom: 0; border-right: 1px solid var(--line); }
  .work-grid .card:first-child .card-body { padding: 40px 44px; justify-content: center; }
  .work-grid .card:first-child h3 { font-size: 2rem; }
  .work-grid .card:first-child .card-more { margin-top: 12px; }
}

/* Work filters, "built for" strip and demo markers */
.for-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -20px 0 22px; }
.for-strip span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.for-strip em { font-style: normal; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.86rem; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(21, 34, 44, 0.14); background: transparent;
  color: var(--ink-2); font: 600 0.9rem/1 var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover { border-color: var(--sea); color: var(--sea); }
.filters button.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.card[hidden] { display: none; }
.card-media { position: relative; }
.demo-flag {
  position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px;
  background: rgba(21, 34, 44, 0.78); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips .chip { margin: 0; }
.chip-demo { background: #fff1e6; color: var(--coral); }

/* ------------------------------------------------ services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.service-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--sea-soft); color: var(--sea); margin-bottom: 20px;
}
.service-icon .icon { width: 24px; height: 24px; }
.service h3 { font-size: 1.22rem; line-height: 1.25; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: start; }
.about-copy p { color: var(--ink-2); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 30px; display: flex; flex-direction: column; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -36px; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--sea);
}
.tl-years { font-size: 0.82rem; font-weight: 600; color: var(--coral); letter-spacing: 0.04em; }
.timeline strong { font: 500 1.2rem/1.3 var(--serif); margin: 2px 0; }
.tl-place { color: var(--muted); font-size: 0.93rem; }

/* ------------------------------------------------ contact band */
.band {
  padding: 88px 0; color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.08) 0, transparent 38%),
    radial-gradient(circle at 96% 100%, rgba(224, 120, 79, 0.25) 0, transparent 42%),
    linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
}
.band-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 16px; }
.band p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; margin: 0; }
.band-actions { display: flex; flex-direction: column; gap: 12px; }
.band-actions .btn { justify-content: flex-start; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: var(--ink-2); }

/* ------------------------------------------------ project page */
.project { padding-top: 40px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 0.95rem; margin-bottom: 32px; }
.preview-note { background: #fff4d6; border: 1px solid #efd58a; padding: 10px 16px; border-radius: 12px; font-size: 0.95rem; }
.project-head { max-width: 820px; margin-bottom: 40px; }
.project-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; margin-bottom: 12px; }
.project-client { color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.project-cover { margin: 0 0 56px; }
.project-cover img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.project-main section + section { margin-top: 44px; }
.project-main h2, .gallery-wrap h2 { font-size: 1.7rem; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sea-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4f57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.project-aside {
  position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px;
}
.project-aside dl { margin: 0 0 8px; display: grid; gap: 18px; }
.project-aside dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.project-aside dd { margin: 0; font-weight: 500; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tools span { padding: 4px 10px; border-radius: 8px; background: var(--bg-alt); font-size: 0.85rem; font-weight: 500; }
.gallery-wrap { margin-top: 72px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.04); }
.next {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  margin: 72px 0 96px; padding: 28px 32px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.next span { color: var(--muted); font-size: 0.85rem; }
.next strong { font: 500 1.5rem/1.2 var(--serif); grid-row: 2; }
.next .icon { grid-row: 1 / 3; grid-column: 2; width: 28px; height: 28px; color: var(--sea); transition: transform 0.2s; }
.next:hover .icon { transform: translateX(4px); }

.message { padding: 120px 0; min-height: 60vh; }
.message h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }

/* ------------------------------------------------ lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8, 20, 24, 0.92); padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

/* ------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .band-in, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 48px; }
  .hero-photo { max-width: 360px; margin-top: 8px; }
  .about-grid { gap: 48px; }
  .project-aside { position: static; }
  .project-grid { gap: 40px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 56px; }
  .section { padding: 72px 0; }
  .lightbox { padding: 56px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .brand-text small { display: none; }
  .topbar-in { height: 64px; gap: 12px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .hero-photo::before { inset: 14px -10px -14px 14px; }
  .cta-row .btn { flex: 1 1 100%; }
  .card-body { padding: 20px 20px 24px; }
  .next { padding: 22px; }
  .band-actions .btn { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ================================================= home: a day at the hotel
   A fixed sky (night → sunrise → day → sunset) sits behind the page. site.js
   sets its colours and the sun/moon position from the scroll position. */
html:has(body.home) { background: #070f1f; }
.home { background: transparent; }
.scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #070f1f;
  --sky-top: #070f1f; --sky-mid: #0e2240; --sky-low: #1b3a5c;
  --sea-top: #0b2233; --sea-deep: #050d16;
  --stars: 1; --clouds: 0.06; --reflect: 0.18; --island: #081626; --glint: rgba(255, 255, 255, 0.1);
}
.scene svg { display: block; width: 100%; height: 100%; }
.scene .stars { opacity: var(--stars); }
.scene .twinkle { animation: twinkle 4.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.2; } }
.scene .clouds { opacity: var(--clouds); }
.scene .cloud { animation: cloud-drift 140s linear infinite; }
.scene .cloud:nth-child(2) { animation-duration: 180s; animation-delay: -70s; }
.scene .cloud:nth-child(3) { animation-duration: 220s; animation-delay: -150s; }
@keyframes cloud-drift { from { transform: translateX(-500px); } to { transform: translateX(1700px); } }
.scene .island { fill: var(--island); }
.scene .reflect { opacity: var(--reflect); }
.scene .waves path { fill: none; stroke: var(--glint); stroke-linecap: round; }
.scene .wave-1 { animation: drift 46s linear infinite; }
.scene .wave-2 { animation: drift 34s linear infinite; }
.scene .wave-3 { animation: drift 26s linear infinite; }
.scene .wave-4 { animation: drift 18s linear infinite; }
@keyframes drift { to { transform: translateX(-1440px); } }

/* Header over the sky; it turns light again while the day panel is underneath. */
.topbar { transition: background 0.35s, border-color 0.35s; }
.topbar-dark:not(.on-day) { background: rgba(7, 15, 31, 0.32); border-bottom-color: rgba(255, 255, 255, 0.08); }
.topbar-dark:not(.on-day) .brand, .topbar-dark:not(.on-day) .nav a { color: rgba(255, 255, 255, 0.88); }
.topbar-dark:not(.on-day) .brand-text small { color: rgba(255, 255, 255, 0.6); }
.topbar-dark:not(.on-day) .brand-mark { background: #fff; color: var(--sea-deep); }
.topbar-dark:not(.on-day) .btn-primary { background: #fff; color: var(--sea-deep); }
.topbar-dark:not(.on-day) .nav a:hover { color: #fff; }

/* Hero at night */
.hero-sky { color: #fff; padding-bottom: 40px; }
.hero-sky h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero-sky .lead { color: rgba(255, 255, 255, 0.8); }
.hero-sky .eyebrow {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-sky .hero-photo::before { background: linear-gradient(135deg, rgba(224, 120, 79, 0.95), rgba(14, 103, 113, 0.95)); }
.hero-sky .stats { border-top-color: rgba(255, 255, 255, 0.16); }
.hero-sky .stat strong { color: #fff; }
.hero-sky .stat span { color: rgba(255, 255, 255, 0.68); }
.scroll-cue { display: flex; align-items: center; gap: 14px; margin: 56px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.scroll-cue span { position: relative; width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 12px; }
.scroll-cue span::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------------------------ the story */
.story { padding: 24px 0 120px; color: #fff; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
.frame {
  position: sticky; top: max(96px, calc(50vh - 220px));
  border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5f; }
.frame-bar i:nth-child(2) { background: #ffbd2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-urls { position: relative; flex: 1; height: 24px; margin-left: 10px; }
.frame-url {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 12px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.22); color: rgba(255, 255, 255, 0.78);
  font: 500 0.78rem/1 ui-monospace, Consolas, monospace; opacity: 0; transition: opacity 0.4s;
}
.frame-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.layer {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
img.layer { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame[data-step="1"] .layer-1, .frame[data-step="2"] .layer-2, .frame[data-step="3"] .layer-3,
.frame[data-step="4"] .layer-4, .frame[data-step="5"] .layer-5, .frame[data-step="6"] .layer-6 { opacity: 1; transform: none; }
.frame[data-step="1"] .frame-url[data-for="1"], .frame[data-step="2"] .frame-url[data-for="2"],
.frame[data-step="3"] .frame-url[data-for="3"], .frame[data-step="4"] .frame-url[data-for="4"],
.frame[data-step="5"] .frame-url[data-for="5"], .frame[data-step="6"] .frame-url[data-for="6"] { opacity: 1; }

/* 1: the career, card by card */
.layer-timeline {
  display: grid; align-content: center; gap: 10px; padding: 6% 8%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 60%);
}
.tl-card {
  display: grid; grid-template-columns: 7.5em 1fr; column-gap: 16px; align-items: center;
  padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateX(-18px);
  transition: opacity 0.6s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 120ms + 150ms);
}
.frame[data-step="1"] .tl-card { opacity: 1; transform: none; }
.tl-card span { grid-row: 1 / 3; font-size: 0.8rem; font-weight: 600; color: #f4b79c; letter-spacing: 0.03em; }
.tl-card strong { font: 500 1.08rem/1.25 var(--serif); color: #fff; }
.tl-card em { font-style: normal; color: rgba(255, 255, 255, 0.66); font-size: 0.84rem; }

/* 2: sticky-note chaos, pulled into the system in step 3 */
.layer-notes { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06), transparent 65%); }
.note {
  position: absolute; left: 50%; top: 50%; width: 27%; margin: 0; padding: 10px 12px 12px;
  background: #fff3a8; color: #3b3423; border-radius: 3px;
  font: 600 clamp(0.8rem, 1.25vw, 1.05rem)/1.2 'Caveat', 'Segoe Print', cursive;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translate(-50%, -50%) scale(0.3);
  transition: left 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s;
  transition-delay: calc(var(--i) * 50ms);
}
.note:nth-child(3n + 2) { background: #ffd4cc; }
.note:nth-child(3n) { background: #cfe8ff; }
.note:nth-child(5) { background: #fff; }
.frame[data-step="2"] .note {
  left: var(--x); top: var(--y); opacity: 1; transform: translate(-50%, -50%) rotate(var(--r));
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s);
}
@keyframes bob { 50% { translate: 0 -6px; } }

/* 5: desktop and phone */
.layer-trivaway img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.layer-trivaway .tv-phone {
  position: absolute; right: 5%; bottom: -10%; width: 21%; height: auto;
  border: 4px solid #0d1117; border-radius: 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(35%); transition: transform 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.frame[data-step="5"] .tv-phone { transform: none; }

/* 6: three more projects fanned out */
.layer-fan { display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, rgba(224, 120, 79, 0.28), transparent 62%); }
.fan-card {
  position: absolute; width: 50%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame[data-step="6"] .fan-card:nth-child(1) { transform: translate(-44%, 8%) rotate(-9deg); }
.frame[data-step="6"] .fan-card:nth-child(2) { transform: translateY(-8%); z-index: 2; }
.frame[data-step="6"] .fan-card:nth-child(3) { transform: translate(44%, 8%) rotate(9deg); }

/* The chapters */
.step { min-height: 88vh; display: flex; align-items: center; }
.step:first-child { min-height: 72vh; }
.step-card {
  width: 100%; padding: 30px 30px 32px; border-radius: 20px;
  background: rgba(7, 15, 31, 0.46); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
  opacity: 0.4; transform: translateY(14px);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step.is-active .step-card { opacity: 1; transform: none; }
.step-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #f4b79c; margin-bottom: 14px; }
.step h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.15; margin-bottom: 14px; }
.step p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.step .cta-row { margin-top: 24px; }

/* ------------------------------------------------ the day panel and the evening */
.day {
  position: relative; margin: 0 14px; border-radius: 40px; overflow: hidden;
  background: var(--bg); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.home .band { background: transparent; padding: 150px 0 110px; }
.home .band-in {
  padding: 48px; border-radius: 28px;
  background: rgba(7, 15, 31, 0.42); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.home .footer { color: rgba(255, 255, 255, 0.7); border-top-color: rgba(255, 255, 255, 0.12); }
.home .footer a { color: #fff; }

/* Content fades up as it enters the screen (only when JS is running). */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-visual { position: sticky; top: 76px; z-index: 2; }
  .frame { position: relative; top: 0; }
  .story-steps { position: relative; z-index: 1; }
  .step, .step:first-child { min-height: 78vh; align-items: flex-end; padding-bottom: 6vh; }
  .note { width: 30%; padding: 6px 8px 8px; }
  .home .band-in { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .day { margin: 0 6px; border-radius: 26px; }
  .layer-timeline { gap: 5px; padding: 3% 5%; }
  .tl-card { grid-template-columns: 5.4em 1fr; column-gap: 10px; padding: 7px 10px; border-radius: 10px; }
  .tl-card span { grid-row: auto; font-size: 0.7rem; }
  .tl-card strong { font-size: 0.84rem; }
  .tl-card em { display: none; }
  .step-card { padding: 22px; }
  .frame-bar { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .twinkle, .scene .cloud, .scene .waves path, .scroll-cue span::after, .frame[data-step="2"] .note { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
