:root {
  --black: #101010;
  --accent: #FF5C7A; --white: #FFFFFF; --muted-on-dark: #C9C3C4;
  /* Ink of the light sections; the script flips both to white tones while the page colour blends to black. */
  --ink: #101010; --ink-muted: #5C5C5C;
  --gutter: clamp(16px, 5vw, 72px); --max: 1360px; --radius: 22px; --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
/* Lenis eases every scroll (wheel, keys, anchors) itself, so the browser's own smoothing must be off under it. */
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* The page background is one colour the scroll moves between sections (see paintBackground). */
body { background: var(--black); color: var(--white); font-family: "Mona Sans", system-ui, sans-serif; overflow-x: hidden;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--black); padding: 12px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Nav: blends with whatever is under it. 44px hit areas; the padding is invisible. */
/* Over the film the nav is bare; past it, it takes the section's ink and a soft bar of the page colour. */
nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 8px var(--gutter);
      color: var(--nav-ink, var(--white)); background: var(--nav-bar, transparent); backdrop-filter: var(--nav-blur, none);
      -webkit-backdrop-filter: var(--nav-blur, none); transition: color .3s, background-color .3s;
      opacity: 0; animation: fade .9s var(--ease) .2s forwards; }
nav .logo { width: clamp(84px, 9vw, 116px); display: block; margin-right: auto; padding: 16px 0; }
nav .logo svg { width: 100%; height: auto; display: block; }
nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 12px 0; }
nav a:not(.logo)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
                          transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
nav a:not(.logo):hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.lang { background: none; border: 1px solid currentColor; color: inherit; font: 500 .8rem/1 inherit; padding: 6px 9px; border-radius: 99px;
        cursor: pointer; position: relative; display: inline-flex; gap: 7px; }
.lang::before { content: ""; position: absolute; inset: -8px; }
/* Both codes show, the page's own language lit, so the button reads as the current state rather than a target. */
.lang span { opacity: .45; transition: opacity .2s; }
.lang span.on { opacity: 1; }
@keyframes fade { to { opacity: 1; } }

/* 1 · Film */
.film { height: 520vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--black);
         /* Films enter and leave as a card that opens to full bleed and closes again, like the closing photo. */
         clip-path: inset(var(--si, 0%) var(--sx, 0%) round var(--sr, 0px)); }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                background: linear-gradient(to top, rgba(16,16,16,.8), transparent 46%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.45)); }
.beat { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 12vh; max-width: 40rem;
        opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 40px)); }
/* The last journey beat sits up top so the cove the film rests on stays clear. */
.beat.high { top: calc(64px + 5vh); bottom: auto; }
.beat h1, .beat h2 { font-weight: 300; font-size: clamp(2.5rem, 6.2vw, 6rem); line-height: .95; letter-spacing: -.035em; }
.beat p { margin-top: 1.1rem; font-size: clamp(1rem, 1.35vw, 1.2rem); color: #E4E4E4; max-width: 30rem; line-height: 1.45;
          text-shadow: 0 1px 16px rgba(0,0,0,.55); }
.beat b { color: var(--white); font-weight: 600; }
.hint { position: absolute; z-index: 1; right: var(--gutter); bottom: 12vh; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
        color: #CFCFCF; display: flex; align-items: center; gap: 10px; transition: opacity .5s; }
.hint::before { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: tick 1.8s var(--ease) infinite; }
@keyframes tick { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 2 · Statement: words light up as the scroll reads them. */
/* Light-section text eases between ink tones as the page colour turns, instead of switching. */
.statement, .faq, .eyebrow, .head p, .qa-a p { transition: color .5s var(--ease); }
.statement { color: var(--ink); padding: 26vh 0 18vh; }
.eyebrow { font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2rem; }
.statement p.big { font-weight: 500; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.05; letter-spacing: -.03em; max-width: 22ch; }
.statement p.big span { opacity: .2; transition: opacity .25s linear; }
.statement p.big span.lit { opacity: 1; }

/* 3 · Journey: a second scrubbed film (a lantern at night to the stealth cove at dawn); beats ride it. */
.journey { height: 760vh; position: relative; }
.journey .stage::after { background: linear-gradient(to top, rgba(12,6,14,.72), transparent 48%), linear-gradient(to bottom, rgba(12,6,14,.62), transparent 42%); }
.rev-total { margin-top: 1.2rem; display: grid; gap: 4px; }
.rev-total b { font-weight: 700; font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: -.045em; line-height: .95; }
.rev-total span { color: #DADADA; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }


/* Section heading shared by the mission and the questions. */
.head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.head h2 { font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .95; letter-spacing: -.04em; }
.head p { max-width: 30rem; font-size: 1.1rem; line-height: 1.5; color: var(--ink-muted); }

/* 5 · Questions: each answer opens by easing its row height (grid 0fr to 1fr), never a jump. */
.faq { color: var(--ink); padding: 18vh 0; }
.qas { border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.qa { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.qa h3 { margin: 0; }
.qa button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
             padding: clamp(20px, 2.4vw, 30px) 0; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.qa button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.qa i { position: relative; flex: none; width: 18px; height: 18px; transition: transform .45s var(--ease); }
.qa i::before, .qa i::after { content: ""; position: absolute; inset: 8px 0 auto; height: 2px; background: currentColor; border-radius: 2px; }
.qa i::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.qa button[aria-expanded="true"] i { transform: rotate(180deg); }
.qa button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { max-width: 44rem; padding-bottom: clamp(20px, 2.4vw, 30px); font-size: 1.05rem; line-height: 1.55; color: var(--ink-muted);
          opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.qa-a.open { grid-template-rows: 1fr; }
.qa-a.open p { opacity: 1; transform: none; transition-delay: .1s; }

/* 6 · Close: the sunset grows from a card to the full screen; two pink lines draw across it. The page stays cream
   around the card (data-bg), and the black footer only follows once the photo covers the screen, so no flip shows. */
.close { height: 260vh; position: relative; }
.close .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.close .frame { position: absolute; inset: 0; clip-path: inset(var(--ci, 18%) var(--cx, 22%) round var(--cr, 28px)); }
.close .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; transform: scale(var(--cs, 1.15)); }
.close svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.close svg.lines path { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.close .say { position: relative; text-align: center; display: grid; gap: 1.6rem; justify-items: center; opacity: var(--so, 0);
              transform: translateY(calc((1 - var(--so, 0)) * 30px)); }
.close .say h2 { font-weight: 800; font-size: clamp(3rem, 8vw, 7.5rem); letter-spacing: -.045em; line-height: .9; color: var(--white);
                 text-shadow: 0 10px 50px rgba(0,0,0,.25); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); text-decoration: none; font-weight: 500;
       padding: 15px 24px; border-radius: 12px; transition: transform .25s var(--ease), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--black); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* 7 · Footer: static on purpose. It sits at the very bottom, so a scroll-driven fade would never reach 1 and stay blurred. */
footer { background: var(--black); color: var(--white); padding: 14vh 0 4vh; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; align-items: start; }
.foot .line { font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; max-width: 20ch; color: #F2F2F2; }
.foot h2 { color: #8A8485; font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.foot ul { list-style: none; padding: 0; display: grid; }
.foot li a { display: inline-block; padding: 10px 0; text-decoration: none; color: #E6E1E2; font-size: 1rem; transition: color .2s; }
.foot li a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.legal { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 16vh; color: #8A8485; font-size: .85rem; }
.legal .word { width: 84px; color: var(--white); }
.legal .word svg { width: 100%; height: auto; display: block; }
.legal p { margin-right: auto; }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--white); }

/* Scroll-driven entrances: the script writes --p (0 to 1) as each piece enters; nothing animates on its own. */
[data-s="fade"] { opacity: var(--p, 0); transform: translateY(calc((1 - var(--p, 0)) * 26px)); filter: blur(calc((1 - var(--p, 0)) * 4px)); }
.w { display: inline-block; opacity: var(--wp, 0); transform: translateY(calc((1 - var(--wp, 0)) * .55em)) rotate(calc((1 - var(--wp, 0)) * 3deg));
     transform-origin: left bottom; }

@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .line { grid-column: 1 / -1; margin-bottom: 1rem; }
  .legal { margin-top: 10vh; }
}
@media (max-width: 760px) {
  .beat { bottom: 9vh; }
  .hint { display: none; }
  nav { gap: 16px; }
  .statement { padding: 18vh 0 12vh; }
  .close .frame { clip-path: inset(var(--ci, 18%) calc(var(--cx, 22%) / 3) round var(--cr, 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-s], .w { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .hint::before { animation: none; }
}
