/* KW Live — Director's Cut (Fable)
   ---------------------------------------------------------------
   One native-scroll film in six chapters. Each chapter is a tall section
   whose stage sticks to the viewport; landing.js writes scroll progress into
   custom properties on the section:
     --p  chapter progress 0 → 1 (scrubbed while the stage is stuck)
     --e  entry progress   0 → 1 (stage rising into view)
     --x  exit progress    0 → 1 (next stage covering this one)
   Every image is a pre-rendered teaser derivative; CSS only frames it.
   Without JavaScript or with reduced motion, chapters render their composed
   end state (--p: 1) and the opening does not autoplay. */

@font-face {
  font-family: "KW Sans";
  src: local("Inter"), local("Segoe UI"), local("Helvetica Neue");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f2f7fb;
  --muted: #a9b7c7;
  --dim: #6f8298;
  --black: #02050a;
  --navy-900: #07111f;
  --cyan: #65d9e7;
  --cyan-bright: #8be6f0;
  --amber: #f2a33a;
  --line: rgba(173, 203, 225, 0.16);
  --gutter: clamp(20px, 4.4vw, 76px);
  --mast-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-film: cubic-bezier(0.65, 0, 0.2, 1);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--black); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ink);
  font-family: "KW Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan-bright); outline-offset: 4px; }
::selection { background: rgba(101, 217, 231, 0.32); color: #fff; }

/* Skip link ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: #07111f;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Masthead ---------------------------------------------------------------- */
.masthead {
  position: fixed;
  z-index: 200;
  inset: 0 0 auto 0;
  height: var(--mast-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.masthead > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #9fb7ff; text-decoration: none; }
.brand-mark { width: 18px; height: 23px; }
.brand-name { color: var(--ink); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand-name span { color: var(--cyan); }
.masthead-place {
  margin: 0 auto;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.masthead-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(173, 203, 225, 0.28);
  border-radius: 2px;
  color: var(--ink);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(2, 5, 10, 0.4);
  transition: border-color 160ms ease, color 160ms ease;
}
.masthead-cta:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }

/* Chapter marks (quiet, keyboard reachable) ---------------------------------- */
.chapter-marks {
  position: fixed;
  z-index: 190;
  right: clamp(12px, 1.6vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chapter-marks a {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
}
.chapter-marks a::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--dim);
  opacity: 0.55;
  transition: transform 220ms var(--ease-out), background 160ms ease, opacity 160ms ease;
}
.chapter-marks a.is-current::after { background: var(--cyan-bright); opacity: 1; transform: scale(1.6); }
.chapter-marks a:hover::after { opacity: 1; }

/* Film status + controls ---------------------------------------------------- */
.film-status {
  position: fixed;
  z-index: 190;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.film-status > * { pointer-events: auto; }
.status-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.status-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.film-controls { display: flex; gap: 4px; }
.film-button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(173, 203, 225, 0.2);
  border-radius: 2px;
  background: rgba(2, 5, 10, 0.55);
  color: var(--muted);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.film-button:hover { color: var(--ink); border-color: rgba(139, 230, 240, 0.5); }
.film-button[disabled] { opacity: 0.4; cursor: default; }
.no-js .film-controls { display: none; }

/* Chapter scaffold ------------------------------------------------------------- */
main { display: block; }
.chapter { position: relative; height: 240vh; --p: 0; --e: 1; --x: 0; }
.chapter-arrival { height: 140vh; }
.chapter-movement { height: 250vh; }
.chapter-ask { height: 340vh; }
.chapter-everything { height: 300vh; }
.chapter-access { height: 100vh; }
.no-js .chapter, .reduced .chapter { --p: 1; --e: 1; --x: 0; }

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc((1 - var(--e)) * 40%));
  mask-image: linear-gradient(to bottom, transparent 0, #000 calc((1 - var(--e)) * 40%));
}
.plate, .plate picture, .plate img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate img { object-fit: cover; object-position: 50% 50%; will-change: transform; }
.tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; }
.exit-shade { position: absolute; inset: 0; z-index: 40; pointer-events: none; background: var(--black); opacity: calc(var(--x) * 0.92); }

/* Typography ---------------------------------------------------------------------- */
.headline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.6rem, 11.2vw, 17.5rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.headline .h-line { display: block; }
.headline em { font-style: normal; font-weight: 300; color: var(--cyan-bright); letter-spacing: -0.04em; }

.title { margin: 0; font-size: clamp(2.5rem, 5.8vw, 7.4rem); line-height: 0.98; letter-spacing: -0.04em; }
.title .t1, .title .t2 { display: block; }
.title .t1 { font-weight: 800; }
.title .t2 { font-weight: 300; color: rgba(242, 247, 251, 0.78); }
.title .t2:not(.big) { font-size: 0.62em; letter-spacing: -0.02em; margin-top: 0.22em; line-height: 1.08; max-width: 18em; }

.eyebrow {
  margin: 0 0 20px;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lede {
  margin: 20px 0 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.95vw + 0.6rem, 1.2rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 700; }
.disclaimer { margin: 16px 0 0; max-width: 30rem; color: var(--dim); font-size: 12px; line-height: 1.5; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--cyan-bright);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}
.cta:hover { background: #b0f1f7; transform: translateY(-1px); }
.cta-quiet { background: transparent; color: var(--ink); border: 1px solid rgba(173, 203, 225, 0.32); }
.cta-quiet:hover { background: rgba(255, 255, 255, 0.05); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.credit {
  position: absolute;
  z-index: 60;
  left: var(--gutter);
  bottom: 40px;
  margin: 0;
  max-width: calc(100% - var(--gutter) * 2 - 56px);
  font: 500 9.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: rgba(169, 183, 199, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Copy placements ------------------------------------------------------------------ */
.copy { position: absolute; z-index: 50; max-width: min(760px, 80vw); }
.copy-bottom-left { left: var(--gutter); bottom: clamp(64px, 11vh, 132px); }
.copy-top-left { left: var(--gutter); top: calc(var(--mast-h) + clamp(28px, 7vh, 96px)); }
.copy-top-right { right: calc(var(--gutter) + 48px); top: calc(var(--mast-h) + clamp(28px, 7vh, 96px)); text-align: right; }
.copy-top-right .title .t2 { margin-left: auto; }
.copy-center { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(820px, 88vw); max-width: none; }
.copy-center .lede { margin-inline: auto; }
.copy-center .actions { justify-content: center; }
.title-center .t1 { font-size: clamp(2.8rem, 8.6vw, 10rem); letter-spacing: -0.05em; }

.chapter { --copy-at: 0.1; }
.chapter .copy {
  --c: clamp(0, calc((var(--p) - var(--copy-at)) / 0.16), 1);
  opacity: var(--c);
  transform: translate3d(0, calc((1 - var(--c)) * 24px), 0);
}
.chapter .copy-center { transform: translate3d(-50%, calc(-50% + (1 - var(--c)) * 24px), 0); }
.copy-bottom-left::before, .copy-top-left::before, .copy-top-right::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20vh -28vw;
  background: radial-gradient(closest-side, rgba(2, 5, 10, 0.78), rgba(2, 5, 10, 0));
  pointer-events: none;
}

/* ===========================================================================
   00 · ARRIVAL — camera arrives from the region and settles on Waterloo
   Defaults are the FINISHED state. .hero.is-playing runs the timeline.
   ======================================================================== */
.far { position: absolute; inset: 0; opacity: 0; }
.far img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.near { position: absolute; inset: 0; transform-origin: 46% 46%; }
.near picture, .near img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 46%; }
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(139, 230, 240, 0.9) 35%, rgba(139, 230, 240, 0.9) 65%, transparent);
  box-shadow: 0 0 24px 4px rgba(101, 217, 231, 0.45);
  mix-blend-mode: screen;
}
.signal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(38% 52% at 46% 46%, rgba(101, 217, 231, 0.34), rgba(101, 217, 231, 0) 100%);
  mix-blend-mode: screen;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(2, 5, 10, 0.92) 0%, rgba(2, 5, 10, 0.5) 30%, rgba(2, 5, 10, 0) 58%),
    linear-gradient(to bottom, rgba(2, 5, 10, 0.55) 0%, rgba(2, 5, 10, 0) 26%),
    radial-gradient(110% 90% at 50% 50%, rgba(2, 5, 10, 0) 44%, rgba(2, 5, 10, 0.45) 100%);
}
.hero-copy {
  position: absolute;
  z-index: 50;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(84px, 13vh, 150px);
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(22px, 3.2vh, 40px);
  flex-wrap: wrap;
}
.thesis {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(1.05rem, 1.15vw + 0.5rem, 1.5rem);
  line-height: 1.3;
  font-weight: 300;
  color: var(--ink);
}
.thesis::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--cyan);
}
.scroll-cue {
  position: absolute;
  z-index: 50;
  right: calc(var(--gutter) + 48px);
  bottom: 40px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  opacity: 0.85;
}
.scroll-cue:hover { color: var(--cyan-bright); }
.hero .credit { bottom: 40px; }

.js .hero.is-playing .headline .h-line { animation: hero-line 1.1s var(--ease-out) both; }
.js .hero.is-playing .headline .h-line:nth-child(2) { animation-delay: 0.1s; }
.js .hero.is-playing .eyebrow { animation: hero-soft 0.9s 0.3s var(--ease-out) both; }
.js .hero.is-playing .far { animation: hero-far 4.2s var(--ease-film) both; }
.js .hero.is-playing .near { animation: hero-near 5.4s 0.9s var(--ease-out) both; }
.js .hero.is-playing .scanline { animation: hero-scan 1.5s 2.9s var(--ease-film) both; }
.js .hero.is-playing .signal { animation: hero-signal 2s 3.9s var(--ease-out) both; }
.js .hero.is-playing .thesis { animation: hero-soft 1s 1.4s var(--ease-out) both; }
.js .hero.is-playing .hero-copy .cta { animation: hero-soft 1s 2s var(--ease-out) both; }
.js .hero.is-playing .credit { animation: hero-soft 1s 5.1s var(--ease-out) both; }
.js .hero.is-playing .scroll-cue { animation: hero-cue 1s 5.5s var(--ease-out) both; }
.js .hero.is-paused *, .js .hero.is-paused { animation-play-state: paused !important; }

@keyframes hero-line {
  from { transform: translate3d(0, 0.1em, 0); letter-spacing: -0.02em; opacity: 0.85; }
  to   { transform: translate3d(0, 0, 0); letter-spacing: -0.055em; opacity: 1; }
}
@keyframes hero-soft { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes hero-far {
  0%   { opacity: 0; transform: scale(1); }
  30%  { opacity: 0.55; }
  62%  { opacity: 0.55; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.22); }
}
@keyframes hero-near {
  0%   { opacity: 0; transform: scale(1.36); }
  32%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hero-scan {
  0%   { top: 8%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 84%; opacity: 0; }
}
@keyframes hero-signal {
  0%   { opacity: 0; }
  40%  { opacity: 0.6; }
  100% { opacity: 0.18; }
}
@keyframes hero-cue { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 0.85; transform: translate3d(0, 0, 0); } }

/* ===========================================================================
   01 · MOVEMENT — lit wipe along the route, gentle lateral drift, one fragment
   ======================================================================== */
.chapter-movement { --copy-at: 0.4; }
.plate-route-under img { object-position: 22% 55%; opacity: 0.35; }
.plate-route {
  --w: clamp(0, calc(var(--p) / 0.56), 1);
  clip-path: polygon(0 0, calc(var(--w) * 165% - 20%) 0, calc(var(--w) * 165% - 65%) 100%, 0 100%);
}
.plate-route img {
  object-position: 22% 55%;
  transform: translate3d(calc((1 - clamp(0, calc(var(--p) / 0.9), 1)) * -2.5%), 0, 0) scale(1.06);
}
.wipe-edge {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 2px;
  left: 0;
  z-index: 10;
  pointer-events: none;
  background: var(--cyan-bright);
  box-shadow: 0 0 22px 6px rgba(139, 230, 240, 0.5), 0 0 80px 26px rgba(101, 217, 231, 0.2);
  --w: clamp(0, calc(var(--p) / 0.56), 1);
  transform: translate3d(calc(var(--w) * 165vw - 42vw), 0, 0) rotate(24deg);
  opacity: calc(1 - clamp(0, calc((var(--p) - 0.5) / 0.08), 1));
}
.fragment {
  position: absolute;
  z-index: 30;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 230, 240, 0.12);
}
.fragment img { width: 100%; height: auto; }
.fragment-grt {
  left: var(--gutter);
  bottom: clamp(72px, 12vh, 140px);
  width: clamp(200px, 17vw, 300px);
  --g: clamp(0, calc((var(--p) - 0.58) / 0.18), 1);
  opacity: var(--g);
  transform: translate3d(0, calc((1 - var(--g)) * 20px), 0);
}
.tint-movement { background: linear-gradient(200deg, #3a2a12 0%, #06121f 55%); opacity: 0.38; }
.chapter-movement .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 5, 10, 0.72) 0%, rgba(2, 5, 10, 0) 38%), linear-gradient(to top, rgba(2, 5, 10, 0.7) 0%, rgba(2, 5, 10, 0) 30%);
}

/* ===========================================================================
   02 · ASK — the question reorganizes the world around one real place
   ======================================================================== */
.chapter-ask { --copy-at: 0.72; }
.scene-ask { background: #010305; }
.world {
  position: absolute;
  inset: 0;
  transform-origin: 36% 45%;
  --s: clamp(0, calc((var(--p) - 0.3) / 0.34), 1);
  --a: clamp(0, calc((var(--p) - 0.12) / 0.18), 1);
  opacity: calc(var(--a) * 0.92);
  transform: rotate(calc((1 - var(--s)) * -3.5deg)) scale(calc(1.2 - var(--s) * 0.2));
}
.plate-world img, .plate-lens img { object-position: 36% 45%; }
.plate-lens {
  --k: clamp(0, calc((var(--p) - 0.36) / 0.3), 1);
  clip-path: circle(calc(var(--k) * 30.4vh) at 36% 45%);
}
.lens-rim {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  --k: clamp(0, calc((var(--p) - 0.36) / 0.3), 1);
  --rr: calc(var(--k) * 30.4vh);
  background: radial-gradient(circle at 36% 45%, transparent calc(var(--rr) - 2px), rgba(139, 230, 240, 0.8) calc(var(--rr) - 0.5px), rgba(139, 230, 240, 0.8) calc(var(--rr) + 0.5px), rgba(101, 217, 231, 0.12) calc(var(--rr) + 26px), transparent calc(var(--rr) + 28px));
  opacity: calc(clamp(0, calc((var(--p) - 0.36) / 0.05), 1) * (0.35 + (1 - clamp(0, calc((var(--p) - 0.66) / 0.1), 1)) * 0.65));
}
.ask-stage {
  position: absolute;
  z-index: 50;
  left: var(--gutter);
  right: calc(var(--gutter) + 48px);
  top: 50%;
  text-align: right;
  --q: clamp(0, calc(var(--p) / 0.14), 1);
  --m: clamp(0, calc((var(--p) - 0.34) / 0.3), 1);
  transform: translate3d(0, calc(-50% - var(--m) * 30vh), 0);
}
.question {
  margin: 0;
  font-size: clamp(2.4rem, 7.2vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  transform-origin: 100% 50%;
  transform: scale(calc(1 - var(--m) * 0.56));
  text-shadow: 0 2px 40px rgba(2, 5, 10, 0.8);
}
.q-wipe {
  display: inline-block;
  clip-path: inset(0 calc((1 - var(--q)) * 100%) 0 0);
}
.question::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: var(--cyan-bright);
  opacity: calc((1 - clamp(0, calc((var(--p) - 0.14) / 0.06), 1)) * 0.9);
}
.ask-meaning { display: none; }
.copy-ask {
  left: auto;
  right: calc(var(--gutter) + 48px);
  text-align: right;
}
.copy-ask .lede { max-width: 26rem; margin-left: auto; }
.copy-ask::before { inset: -20vh -28vw; }
.tint-ask { background: radial-gradient(60% 70% at 36% 45%, #0d3f52, #030910 100%); opacity: 0.35; }

/* ===========================================================================
   03 · PROOF — evidence rises from the calm picture
   ======================================================================== */
.chapter-proof { --copy-at: 0.42; }
.plate-proof img { object-position: 46% 46%; opacity: 0.55; transform: scale(calc(1.06 - clamp(0, calc(var(--p) / 0.6), 1) * 0.06)); }
.tint-proof { background: linear-gradient(160deg, #0a2a2a, #04101a 70%); opacity: 0.4; }
.chapter-proof .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 5, 10, 0.9) 0%, rgba(2, 5, 10, 0.3) 42%, rgba(2, 5, 10, 0.2) 100%);
}
.evidence { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.panel { position: absolute; margin: 0; }
.panel img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 230, 240, 0.14);
}
.panel figcaption {
  margin-top: 10px;
  max-width: 34ch;
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.06em;
  color: var(--dim);
}
.panel-camera {
  left: var(--gutter);
  top: calc(var(--mast-h) + 4vh);
  width: clamp(230px, 22vw, 340px);
  --a: clamp(0, calc((var(--p) - 0.08) / 0.2), 1);
  opacity: var(--a);
  transform: translate3d(0, calc((1 - var(--a)) * 30px), 0);
}
.panel-civic {
  right: calc(var(--gutter) + 48px);
  top: calc(var(--mast-h) + 4vh);
  width: clamp(360px, 38vw, 600px);
  --a: clamp(0, calc((var(--p) - 0.22) / 0.2), 1);
  opacity: var(--a);
  transform: translate3d(0, calc((1 - var(--a)) * 30px), 0);
}
.copy-proof {
  left: var(--gutter);
  right: calc(var(--gutter) + 48px);
  bottom: clamp(56px, 8vh, 110px);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.copy-proof .eyebrow { grid-column: 1; }
.copy-proof .title { grid-column: 1; }
.copy-proof .lede { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: end; }
.copy-proof .disclaimer { grid-column: 2; margin-top: 12px; }
.copy-proof::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18vh -10vw -12vh;
  background: linear-gradient(to top, rgba(2, 5, 10, 0.88), rgba(2, 5, 10, 0));
  pointer-events: none;
}

/* ===========================================================================
   04 · EVERYTHING → RESOLUTION
   ======================================================================== */
.chapter-everything { --copy-at: 0.06; }
.plate-dense img { object-position: 50% 48%; transform: scale(calc(1.02 + clamp(0, calc(var(--p) / 0.45), 1) * 0.07)); }
.ignition {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(70% 60% at 50% 48%, rgba(139, 230, 240, 0.5), rgba(242, 163, 58, 0.16) 55%, rgba(0, 0, 0, 0) 80%);
  --i: clamp(0, calc((var(--p) - 0.12) / 0.18), 1);
  --io: clamp(0, calc((var(--p) - 0.34) / 0.16), 1);
  opacity: calc(var(--i) * (1 - var(--io)));
}
.plate-resolved {
  z-index: 6;
  --k: clamp(0, calc((var(--p) - 0.48) / 0.4), 1);
  clip-path: circle(calc(var(--k) * 78vmax) at 50% 48%);
}
.plate-resolved img { object-position: 46% 46%; }
.resolve-ring {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  --k: clamp(0, calc((var(--p) - 0.48) / 0.4), 1);
  --rr: calc(var(--k) * 78vmax);
  background: radial-gradient(circle at 50% 48%, transparent calc(var(--rr) - 2px), rgba(139, 230, 240, 0.7) calc(var(--rr) - 0.5px), rgba(139, 230, 240, 0.7) calc(var(--rr) + 0.5px), rgba(139, 230, 240, 0.08) calc(var(--rr) + 14px), transparent calc(var(--rr) + 15px));
  opacity: calc(clamp(0, calc((var(--p) - 0.47) / 0.05), 1) * (1 - clamp(0, calc((var(--p) - 0.84) / 0.1), 1)));
}
.tint-everything {
  background: linear-gradient(140deg, #3a1a12 0%, #06131f 55%);
  --t: clamp(0, calc((var(--p) - 0.48) / 0.4), 1);
  opacity: calc(0.45 - var(--t) * 0.25);
}
.chapter-everything .line-b {
  --lb: clamp(0, calc((var(--p) - 0.55) / 0.18), 1);
  opacity: var(--lb);
  transform: translate3d(0, calc((1 - var(--lb)) * 0.2em), 0);
  color: var(--cyan-bright);
}
.chapter-everything .line-c { --ls: clamp(0, calc((var(--p) - 0.66) / 0.16), 1); opacity: var(--ls); }
.chapter-everything .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 5, 10, 0.8) 0%, rgba(2, 5, 10, 0.2) 40%, rgba(2, 5, 10, 0) 60%);
}

/* ===========================================================================
   05 · PRIVATE BETA
   ======================================================================== */
.chapter-access { --copy-at: 0; }
.chapter-access .copy { --c: 1; opacity: 1; }
.plate-finale img { object-position: 60% 50%; opacity: 0.9; transform: scale(1.04); }
.tint-access { background: radial-gradient(70% 70% at 50% 50%, #0b2f3f, #02060c 100%); opacity: 0.5; }
.chapter-access .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%, rgba(2, 5, 10, 0.55), rgba(2, 5, 10, 0) 100%), linear-gradient(to top, rgba(2, 5, 10, 0.9), rgba(2, 5, 10, 0) 40%), linear-gradient(to bottom, rgba(2, 5, 10, 0.7), rgba(2, 5, 10, 0) 30%);
}

/* Footer ----------------------------------------------------------------- */
.film-footer { position: relative; z-index: 2; background: var(--black); border-top: 1px solid var(--line); padding: 56px var(--gutter) 60px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand-block p { margin: 16px 0 0; max-width: 28rem; }
.footer-label { margin: 0 0 10px; color: var(--dim); font: 600 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.footer-col p { margin: 0; }
.footer-col a { display: block; color: var(--ink); text-decoration: none; }
.footer-col a + a { margin-top: 8px; }
.footer-col a:hover { color: var(--cyan-bright); }
.footer-ai { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 40rem; }
.footer-programs { padding: 26px 0 8px; border-bottom: 1px solid var(--line); }
.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.program-list li {
  position: relative;
  padding-left: 14px;
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}
.program-note { margin: 12px 0 0; font-size: 12px; color: var(--dim); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan-bright); }
.footer-notes { padding: 28px 0 16px; }
.footer-notes p { margin: 0 0 12px; max-width: 80ch; font-size: 12.5px; line-height: 1.55; color: var(--dim); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.footer-bottom p { margin: 0; }

/* ===========================================================================
   Responsive art direction
   ======================================================================== */
@media (max-width: 1100px) {
  .copy-proof { grid-template-columns: 1fr; row-gap: 10px; }
  .copy-proof .lede, .copy-proof .disclaimer { grid-column: 1; grid-row: auto; }
  .copy-proof .lede { margin-top: 10px; }
  .panel-civic { width: clamp(320px, 44vw, 520px); }
}

@media (max-width: 899px) {
  .masthead-place { display: none; }
  .chapter-marks { display: none; }
  .copy-top-right { right: var(--gutter); }
  .panel-civic { right: var(--gutter); }
  .copy-proof { right: var(--gutter); }
  .scroll-cue { right: var(--gutter); }
  .credit { max-width: calc(100% - var(--gutter) * 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 699px) {
  :root { --mast-h: 56px; }
  .masthead-cta { height: 30px; padding: 0 10px; font-size: 10px; }
  .brand-name { font-size: 15px; }

  .headline { font-size: clamp(2.9rem, 15vw, 4.6rem); line-height: 0.9; }
  .headline .h-line:nth-child(2) em { display: block; }
  .title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .lede { font-size: 0.98rem; }
  .copy { max-width: 90vw; }
  .copy-top-right { text-align: left; left: var(--gutter); right: var(--gutter); }
  .copy-top-right .title .t2 { margin-left: 0; }
  .copy-center { width: 90vw; }
  .cta { height: 44px; padding: 0 18px; font-size: 13px; }

  .film-status { left: var(--gutter); right: var(--gutter); bottom: 10px; gap: 8px; }
  .status-line { font-size: 8.5px; letter-spacing: 0.1em; }
  .status-extra { display: none; }
  .film-button { height: 26px; padding: 0 8px; font-size: 9px; }
  .credit { bottom: 44px; font-size: 8.5px; }

  /* Arrival */
  .hero-copy { bottom: clamp(96px, 15vh, 150px); }
  .hero-copy .eyebrow { margin-bottom: 18px; font-size: 9.5px; letter-spacing: 0.16em; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .thesis { font-size: 1.02rem; }
  .near picture, .near img { object-position: 50% 42%; }
  .near { transform-origin: 50% 42%; }
  .signal { background: radial-gradient(48% 40% at 50% 42%, rgba(101, 217, 231, 0.34), rgba(101, 217, 231, 0) 100%); }
  .scroll-cue { display: none; }
  .hero .credit { bottom: 44px; }

  /* Movement */
  .plate-route img, .plate-route-under img { object-position: 45% 50%; }
  .fragment-grt { width: min(56vw, 230px); bottom: 90px; }
  .chapter-movement .copy-top-right { top: calc(var(--mast-h) + 16px); }

  /* Ask */
  .world { transform-origin: 50% 62%; }
  .plate-world img, .plate-lens img { object-position: 50% 62%; }
  .plate-lens { clip-path: circle(calc(var(--k) * 42vh) at 50% 62%); }
  .lens-rim { --rr: calc(var(--k) * 42vh); background: radial-gradient(circle at 50% 62%, transparent calc(var(--rr) - 2px), rgba(139, 230, 240, 0.8) calc(var(--rr) - 0.5px), rgba(139, 230, 240, 0.8) calc(var(--rr) + 0.5px), rgba(101, 217, 231, 0.12) calc(var(--rr) + 26px), transparent calc(var(--rr) + 28px)); }
  .question { font-size: clamp(2.2rem, 12vw, 3.6rem); transform: scale(calc(1 - var(--m) * 0.42)); transform-origin: 0 50%; }
  .ask-stage { right: var(--gutter); text-align: left; transform: translate3d(0, calc(-50% - var(--m) * 38vh), 0); }
  .copy-ask { left: var(--gutter); right: var(--gutter); text-align: left; bottom: 80px; }
  .copy-ask .lede { margin-left: 0; }

  /* Proof: panels stack, then rise to make room for copy */
  .panel-camera { left: var(--gutter); top: calc(var(--mast-h) + 10px); width: min(56vw, 220px); transform: translate3d(0, calc((1 - var(--a)) * 30px), 0); }
  .panel-camera figcaption { display: none; }
  .panel-civic { right: var(--gutter); top: calc(var(--mast-h) + 10px + min(56vw, 220px) * 0.83 + 16px); width: min(82vw, 320px); transform: translate3d(0, calc((1 - var(--a)) * 30px), 0); }
  .panel-civic figcaption { display: none; }
  .copy-proof { bottom: 78px; }
  .copy-proof .title { font-size: clamp(2rem, 10vw, 3rem); }
  .copy-proof .lede { font-size: 0.9rem; margin-top: 8px; }
  .copy-proof .disclaimer { font-size: 11px; margin-top: 10px; }
  .copy-proof::before { inset: -30vh -10vw -12vh; }

  /* Everything */
  .plate-dense img { object-position: 50% 45%; }
  .plate-resolved { clip-path: circle(calc(var(--k) * 78vmax) at 50% 45%); }
  .plate-resolved img { object-position: 50% 42%; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .film-footer { padding-bottom: 72px; }
}

@media (max-height: 600px) and (min-width: 700px) {
  .headline { font-size: clamp(3rem, 8.5vw, 8rem); }
  .title { font-size: clamp(2.2rem, 5vw, 5rem); }
  .hero-copy { bottom: 72px; }
}

/* Reduced motion — composed states; no smooth scrolling */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .film-button, .chapter-marks a::after { transition: none; }
}
