/* =========================================================================
   AKONO — Interactive Experience for Merimei Studio
   ------------------------------------------------------------------------
   0.  Tokens
   1.  Reset & base
   2.  Utilities (kicker / statement / tag / lines)
   3.  Ground, grain, progress, navigation
   4.  Opening — darkness (#intro)
   5.  The grid (#grid)
   6.  Brand reveal (#brand)
   7.  Chapters & stages (generation / transmission / storage / people)
   8.  What energy moves (#moves)
   9.  Storage cell
   10. System view (#system)
   11. Scale / Africa (#scale)
   12. Finale (#finale)
   13. Disclosure (#disclosure)
   14. Reduced-motion fallback
   15. Mobile & tablet fallback
   ========================================================================= */

/* ---------- 0 · TOKENS ---------------------------------------------------- */
:root {
  --ink:      #0d0f12;   /* near-black charcoal            */
  --ink-2:    #14181d;   /* raised charcoal                */
  --steel:    #2b323b;   /* cool industrial neutral        */
  --bone:     #ecebe4;   /* warm off-white                 */
  --bone-dim: #a7a69d;   /* muted off-white                */
  --amber:    #f0a94b;   /* warm electrical amber          */
  --amber-dp: #c9863a;   /* deep amber                     */
  --pulse:    #3fe0a0;   /* luminous energy accent (spare) */
  --line:     #3a434e;   /* schematic stroke on dark       */

  --maxw: 1680px;
  --gut: clamp(20px, 5vw, 88px);

  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 1 · RESET & BASE ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

/* decorative SVG overlays never intercept scroll / selection */
.intro__svg, .grid__svg, .stage__pulse, .finale__horizon, .scale__web,
.system__svg, .storage__svg, .thread svg { pointer-events: none; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }

::selection { background: var(--pulse); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--pulse); color: var(--ink);
  padding: 10px 16px; font-family: var(--f-mono); font-size: 13px;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; }

/* ---------- 2 · UTILITIES ------------------------------------------------- */
.kicker {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pulse);
  margin-bottom: 0.9em;
}

.statement {
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  color: var(--bone);
  text-wrap: balance;
}
.statement--light  { color: var(--bone); font-weight: 400; }
.statement--muted  { color: var(--bone-dim); }
.statement--accent { color: var(--pulse); }

.tag {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag span + span, .tag li + li { color: var(--bone-dim); }
.tag--stack { list-style: none; }
.tag li { line-height: 1.7; }

/* headline assembly */
.lines .line { display: block; overflow: hidden; }
.lines .line > span { display: block; }
.js .lines .line > span { transform: translateY(112%); }

/* generic reveal (rect-driven, see animations.js) */
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- 3 · GROUND / GRAIN / PROGRESS / NAV ------------------------- */
#ground {
  position: fixed; inset: 0; z-index: -3;
  background: var(--ink);
  transition: background-color .2s linear;
}
#grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#progress {
  position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 120;
  background: rgba(255, 255, 255, 0.06);
}
#progress-bar {
  display: block; height: 100%; width: 0;
  background: var(--pulse);
  box-shadow: 0 0 12px var(--pulse);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.4vw, 30px) var(--gut);
  mix-blend-mode: difference;
  color: #fff;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__node {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 10px var(--pulse);
}
.nav__word {
  font-family: var(--f-display); font-weight: 600;
  letter-spacing: 0.34em; font-size: 15px;
}
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.8; transition: opacity .25s;
}
.nav__links a:hover { opacity: 1; }

.nav__toggle {
  display: none; width: 34px; height: 20px; position: relative;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: #fff;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__toggle span:nth-child(1) { top: 3px; }
.nav__toggle span:nth-child(2) { bottom: 3px; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: 0; z-index: 125;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  gap: 30px; padding: var(--gut);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.nav-menu.show { opacity: 1; pointer-events: auto; }
.nav-menu nav { display: flex; flex-direction: column; gap: 18px; }
.nav-menu a {
  font-family: var(--f-display); font-size: 12vw; font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-menu__tag {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bone-dim);
}

/* ---------- 4 · OPENING — DARKNESS ------------------------------------- */
.intro {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  background: #05070a;
}
.intro__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.intro__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__lines { filter: drop-shadow(0 0 4px rgba(63, 224, 160, 0.55)); }
.intro__nodes { filter: drop-shadow(0 0 5px rgba(63, 224, 160, 0.7)); }
.intro__seed, .intro__ring { filter: drop-shadow(0 0 8px rgba(63, 224, 160, 0.9)); }
.js .intro__ring { opacity: 0; }

.intro__copy {
  position: absolute; z-index: 2; text-align: center;
  left: var(--gut); right: var(--gut);
  top: 68%;
}
.intro__line {
  position: absolute; left: 0; right: 0; top: 0;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.4vw, 2.7rem);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.js .intro__line { opacity: 0; }
.intro__line[data-line="2"] { color: var(--pulse); }

.intro__scrollcue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bone-dim);
}
.intro__scrollcue i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--bone-dim), transparent);
}
.js .intro__scrollcue { opacity: 0; }

/* ---------- 5 · THE GRID --------------------------------------------- */
.grid { position: relative; height: 620vh; background: #05070a; }
.grid__pin {
  position: sticky; top: 0;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}
.grid__layer { position: absolute; inset: 0; }
.grid__network { z-index: 2; }
.grid__svg { width: 100%; height: 100%; }
.grid__edges { filter: drop-shadow(0 0 5px rgba(63, 224, 160, 0.5)); }
.grid__pts { filter: drop-shadow(0 0 6px rgba(63, 224, 160, 0.75)); }

.grid__city { z-index: 1; opacity: 0; }
.js .grid__city { opacity: 0; }
.grid__city img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62) contrast(1.06) saturate(1.05);
  transform: scale(1.14);
}
.grid__bloom {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 62%, rgba(240, 169, 75, 0.22), transparent 70%);
  mix-blend-mode: screen; opacity: 0;
}

.grid__headline {
  position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: clamp(48px, 9vh, 120px);
}
.grid__headline h2 { font-size: clamp(2.2rem, 7vw, 6.4rem); font-weight: 600; color: var(--bone); }

/* ---------- 6 · BRAND REVEAL --------------------------------------- */
.brand {
  min-height: calc(var(--vh, 1vh) * 92);
  display: grid; place-items: center;
  padding: 22vh var(--gut);
  background: var(--ink);
}
.brand__inner { text-align: center; }
.brand__mark { display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.brand__node {
  width: clamp(10px, 1.3vw, 16px); height: clamp(10px, 1.3vw, 16px);
  border-radius: 50%; background: var(--pulse);
  box-shadow: 0 0 20px var(--pulse), 0 0 4px var(--pulse);
}
.brand__word {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(3rem, 11vw, 9rem);
  letter-spacing: 0.06em; color: var(--bone);
}
.brand__sub {
  margin-top: 1.6em;
  font-family: var(--f-mono); font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--bone-dim);
}
.brand__sub span { display: block; margin-top: 0.4em; }

/* ---------- 7 · CHAPTERS & STAGES ---------------------------------- */
.chapter { position: relative; }

.stage {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}
.stage--tall { height: calc(var(--vh, 1vh) * 118); }
/* extra scroll distance = longer fully-visible HOLD on a non-pinned scene.
   .stage--hold also gives the Transmission Pulse its establish + travel + hold room. */
.stage--hold    { height: calc(var(--vh, 1vh) * 182); }
.stage--hold-sm { height: calc(var(--vh, 1vh) * 140); }
.stage__media { position: absolute; inset: -9% 0; will-change: transform; }
.stage__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.74) contrast(1.05);
}
.chapter--generation .stage__media img { filter: brightness(0.82) contrast(1.04); }

.stage__text { position: absolute; z-index: 3; max-width: 62ch; padding: 0 var(--gut); }
.stage__text--bl { left: 0; bottom: clamp(60px, 12vh, 150px); }
.stage__text--tl { left: 0; top: clamp(110px, 16vh, 190px); }
.stage__text--c  { inset: 0; display: grid; place-items: center; text-align: center; }
.stage__text--c .statement { max-width: 22ch; }
.stage__text .kicker { color: var(--pulse); }

.tag {
  position: absolute; z-index: 3;
}
.tag--tr { top: clamp(96px, 15vh, 170px); right: var(--gut); text-align: right; align-items: flex-end; }
.tag--tl { top: clamp(96px, 15vh, 170px); left: var(--gut); }
.tag--bl { bottom: clamp(50px, 10vh, 120px); left: var(--gut); }
.tag--c  { position: static; align-items: center; text-align: center; margin-top: 26px; }

/* gradient scrims for legibility */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, transparent 30%, transparent 55%, rgba(5, 7, 10, 0.72) 100%);
}

/* quiet scene (solar detail) */
.quiet {
  position: relative;
  min-height: calc(var(--vh, 1vh) * 100);
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch;
  background: var(--ink);
}
.quiet__media { position: relative; overflow: hidden; min-height: 60vh; }
.quiet__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.quiet__text { display: grid; place-items: center; padding: 10vh var(--gut); }

/* transmission thread + pulse path */
.thread { height: 34vh; display: grid; place-items: center; background: var(--ink); }
.thread svg { width: 4px; height: 100%; overflow: visible; }
.js .thread line { stroke-dasharray: 400; stroke-dashoffset: 400; }

.lede { padding: 12vh var(--gut); background: var(--ink); max-width: 1200px; }

.stage__pulse { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* while its scene is fully established, the Pulse locks to the viewport so the
   whole green travel is visible (see animations.js · transmission) */
.stage__pulse.is-fixed { position: fixed; z-index: 90; }
.js .stage__pulse-path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.55; }
.js .stage__pulse-dot { opacity: 0; filter: drop-shadow(0 0 6px var(--pulse)); }

/* flow-words spatial layout */
.flowwords {
  position: absolute; inset: 0; z-index: 3; list-style: none;
  font-family: var(--f-mono); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--bone);
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
}
.flowwords li { position: absolute; opacity: 0.9; }
/* alternating white / green rhythm across the four stages */
.flowwords li:nth-child(1) { top: 24%;  left: 8%;  }                        /* GENERATE  — white */
.flowwords li:nth-child(2) { top: 41%;  left: 34%; color: var(--pulse); }   /* TRANSFORM — green */
.flowwords li:nth-child(3) { top: 58%;  left: 60%; }                        /* TRANSMIT  — white */
.flowwords li:nth-child(4) { top: 74%;  left: 82%; color: var(--pulse); }   /* DISTRIBUTE — green */
.js .flowwords li { opacity: 0; }

/* ---------- 8 · WHAT ENERGY MOVES -------------------------------- */
.moves { position: relative; height: 840vh; background: #04060a; }
.moves__pin {
  position: sticky; top: 0;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}
.moves__scene { position: absolute; inset: 0; }
.js .moves__scene { opacity: 0; }
.moves__scene[data-scene="0"] { opacity: 1; }
.moves__scene img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.68) contrast(1.07);
  transform: scale(1.06);
}
.moves__scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.5), transparent 34%, transparent 52%, rgba(4, 6, 10, 0.82));
}
.moves__label { position: absolute; z-index: 3; left: var(--gut); bottom: clamp(64px, 13vh, 150px); }
.moves__verb {
  font-family: var(--f-mono); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: clamp(12px, 1.5vw, 16px);
  color: var(--pulse); margin-bottom: 0.5em;
}
.moves__noun {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 7rem); color: var(--bone);
}

.moves__payoff {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; text-align: center;
  padding: 0 var(--gut);
  background: rgba(4, 6, 10, 0.62);
  opacity: 0;
}
.moves__payoff h2 { font-size: clamp(2.2rem, 7.5vw, 6.6rem); font-weight: 600; }

.moves__ticks {
  position: absolute; top: clamp(96px, 14vh, 150px); right: var(--gut); z-index: 5;
  display: flex; gap: 8px;
}
.moves__ticks span { width: 26px; height: 2px; background: rgba(255, 255, 255, 0.25); }
.moves__ticks span.on { background: var(--pulse); }

/* ---------- 9 · STORAGE CELL ------------------------------------ */
.chapter--storage .stage::after {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.4), transparent 40%, rgba(5, 7, 10, 0.6));
}
.storage__cell {
  min-height: calc(var(--vh, 1vh) * 90);
  display: grid; place-items: center; gap: 20px;
  padding: 12vh var(--gut); background: var(--ink);
}
.storage__svg { width: min(420px, 82vw); height: auto; overflow: visible; }
.js .storage__cells rect { opacity: 0; }
.js .storage__dot { opacity: 0; }
.js .storage__term, .js .storage__shell { opacity: 0.25; }

/* ---------- 10 · SYSTEM VIEW ----------------------------------- */
.system { position: relative; height: 640vh; background: var(--ink); }
.system__pin {
  position: sticky; top: 0;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
}
.system__frame { position: relative; padding: 11vh var(--gut) 1vh; display: flex; align-items: center; justify-content: center; min-height: 0; }
.system__svg { width: 100%; height: 100%; max-height: 68vh; overflow: visible; }
.system__labels { font-size: 15px; }
.js .system__edges path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .system__nodes .node { opacity: 0; }
.js .system__labels text { opacity: 0; }
.system__flow path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.9; }
.system__pulse { filter: drop-shadow(0 0 8px var(--pulse)); }

.system__caption {
  position: relative; z-index: 3;
  padding: 0 var(--gut) clamp(36px, 7vh, 84px);
  min-height: 3.4em;
}
.system__line {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(36px, 7vh, 84px);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.05;
}
.system__line[data-c="2"] { color: var(--pulse); }
.js .system__line { opacity: 0; }

/* ---------- 11 · SCALE / AFRICA ------------------------------ */
.scale { position: relative; background: var(--ink); padding-bottom: 12vh; }
.scale__intro { text-align: center; padding: 20vh var(--gut) 8vh; }
.scale__web { width: min(1100px, 92vw); height: auto; margin: 0 auto 6vh; display: block; overflow: visible; }
.js .scale__web-lines line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .scale__web-nodes circle { opacity: 0; }

.project {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  gap: clamp(24px, 5vw, 80px);
  max-width: var(--maxw); margin: 0 auto; padding: 8vh var(--gut);
}
.project--flip { grid-template-columns: 1fr 1.15fr; }
.project--flip .project__media { order: 2; }
.project__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.project__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: brightness(0.82); will-change: transform; }
.project__region {
  font-family: var(--f-mono); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 13px; color: var(--pulse); margin-bottom: 0.8em;
}
.project__title { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 0.7em; }
.project__body { color: var(--bone-dim); max-width: 42ch; }

/* ---------- 12 · FINALE ------------------------------------- */
.finale { position: relative; height: 560vh; background: #06070c; }
.finale__pin {
  position: sticky; top: 0;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}
.finale__media { position: absolute; inset: -8% 0; will-change: transform; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) contrast(1.04); transform: scale(1.12); }
.finale__pin::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 12, 0.4), transparent 40%, rgba(6, 7, 12, 0.8));
}
.finale__horizon { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.js .finale__horizon-path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.5; }
.js .finale__dot { opacity: 0; filter: drop-shadow(0 0 8px var(--pulse)); }

.finale__copy { position: absolute; inset: 0; z-index: 3; text-align: center; }
.finale__line {
  position: absolute; left: var(--gut); right: var(--gut);
  top: 50%; transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.8rem, 5.6vw, 4.4rem); line-height: 1.06;
}
.finale__line[data-f="2"] { color: var(--pulse); }
.js .finale__line { opacity: 0; }
.finale__sign { display: grid; justify-items: center; gap: 14px; }
.brand__mark--sm .brand__word { font-size: clamp(2rem, 7vw, 4rem); }
.brand__mark--sm .brand__node { width: 10px; height: 10px; }
.finale__sign .brand__sub { margin-top: 0.4em; }
.finale__tagline {
  margin-top: 1.4em;
  font-family: var(--f-mono); font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone);
}

/* ---------- 13 · DISCLOSURE -------------------------------- */
.disclosure {
  min-height: 82vh; display: grid; place-items: center;
  padding: 16vh var(--gut); background: var(--ink);
  border-top: 1px solid var(--line);
}
.disclosure__inner { max-width: 640px; text-align: center; }
.disclosure__mark {
  font-family: var(--f-mono); text-transform: uppercase;
  letter-spacing: 0.28em; font-size: 13px; color: var(--pulse); margin-bottom: 1.8em;
}
.disclosure__body { color: var(--bone-dim); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.75; }
.disclosure__body strong { color: var(--bone); font-weight: 500; }
.disclosure__foot {
  margin-top: 3em; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-mono); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 12px; color: var(--bone-dim);
}

/* =========================================================================
   14 · REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .grid, .moves, .system, .finale { height: auto !important; }
  .grid__pin, .moves__pin, .system__pin, .finale__pin,
  .intro { position: static !important; height: auto !important; overflow: visible !important; }
  .intro { min-height: 60vh; display: grid; place-items: center; padding: 18vh var(--gut); }

  /* the animated intro stacks both statements at the same absolute position and
     opacity-sequences them; with motion reduced they must return to flow
     (same principle as .system__line / .finale__line above). */
  .intro__stage { position: static; display: block; }
  .intro__copy { position: static; }
  .intro__line { position: relative; top: auto; left: auto; right: auto; margin-bottom: 0.5em; }

  .grid__pin { min-height: calc(var(--vh, 1vh) * 100); }
  .grid__network { display: none; }
  .grid__city, .js .grid__city { opacity: 1; }
  .grid__city img { transform: none; }

  .moves__pin { display: grid; gap: 2px; }
  .moves__scene, .js .moves__scene { position: relative; opacity: 1; }
  .moves__scene img { transform: none; height: auto; aspect-ratio: 16 / 9; }
  .moves__payoff { position: relative; opacity: 1; padding: 18vh var(--gut); }
  .moves__ticks { display: none; }

  .system__pin { min-height: auto; display: block; }
  .system__frame { padding: 14vh var(--gut) 4vh; }
  .system__caption { position: relative; min-height: 0; padding-bottom: 12vh; }
  .system__line { position: relative; left: 0; right: 0; bottom: 0; margin-bottom: 0.6em; }

  .finale__pin { position: relative; min-height: calc(var(--vh, 1vh) * 100); }
  .finale__media img { transform: none; }
  .finale__copy { position: relative; padding: 20vh var(--gut); background: rgba(6, 7, 12, 0.6); }
  .finale__line { position: relative; top: auto; margin-bottom: 1.2em; }

  .stage__media, .project__media img, .finale__media { inset: 0; }
  .stage__media img { transform: none; }
  .stage--hold, .stage--hold-sm { height: calc(var(--vh, 1vh) * 100); }

  /* reveal everything, kill transforms/dash */
  .js .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .lines .line > span,
  .js .intro__line, .js .intro__ring, .js .intro__scrollcue,
  .js .flowwords li, .js .system__line, .js .finale__line { opacity: 1 !important; transform: none !important; }
  .js .stage__pulse-path, .js .stage__pulse-dot,
  .js .storage__cells rect, .js .storage__dot,
  .js .system__edges path, .js .system__nodes .node, .js .system__labels text,
  .js .scale__web-lines line, .js .scale__web-nodes circle,
  .js .finale__horizon-path, .js .finale__dot,
  .js .thread line { opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .system__flow path { opacity: 0 !important; }
  .stage__pulse, .intro__svg { display: none; }

  #progress { display: none; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* =========================================================================
   15 · MOBILE & TABLET
   ========================================================================= */
@media (max-width: 900px) {
  .quiet { grid-template-columns: 1fr; }
  .quiet__media { min-height: 62vh; }
  .project, .project--flip { grid-template-columns: 1fr; gap: 22px; }
  .project--flip .project__media { order: 0; }
  .system__pin { grid-template-rows: 1fr auto; }
  .system__svg { max-height: 60vh; }
  .system__labels { font-size: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { mix-blend-mode: normal; color: #fff; }
  .nav__word { letter-spacing: 0.26em; }
  /* 44x44 minimum touch target without enlarging the drawn glyph */
  .nav__toggle::before { content: ""; position: absolute; inset: -12px; }

  /* shorter pinned distances so mobile scrolling stays sane */
  .grid { height: 420vh; }
  .moves { height: 600vh; }
  .system { height: 460vh; }
  .finale { height: 400vh; }

  .stage--tall { height: calc(var(--vh, 1vh) * 100); }
  .stage--hold    { height: calc(var(--vh, 1vh) * 220); }
  .stage--hold-sm { height: calc(var(--vh, 1vh) * 126); }
  .stage__text { max-width: none; }

  /* ================================================================
     MOBILE PASS 2 — scroll-performance budget
     Every rule here removes per-frame compositor / raster work that a
     phone GPU was doing on the desktop treatment. Desktop is untouched.
     ---------------------------------------------------------------- */

  /* 1 · kill the full-viewport fixed grain layer (mix-blend-mode: screen
        forces a full-screen composite every frame while scrolling). */
  #grain { display: none; }

  /* 2 · the parallax "overbleed" boxes (inset:-9%/-8%) only exist to give
        parallax somewhere to travel. Mobile has no parallax loop, so snap
        them flush and drop the promoted layer + per-frame transform. */
  .stage__media,
  .finale__media,
  .project__media img { inset: 0; will-change: auto; }
  .project__media img { height: 100%; }
  .stage__media img,
  .finale__media img,
  .moves__scene img { transform: none; will-change: auto; }

  /* 3 · SVG drop-shadow filters re-rasterise the whole graphic every frame
        the pulse moves. Replace glow with a slightly heavier bright stroke;
        the moving head stays the brightest thing (JS gradient / bright fill). */
  .grid__edges { filter: none; stroke-width: 1.7; }
  .grid__pts   { filter: none; }
  .grid__bloom { mix-blend-mode: normal; }
  .system__pulse { filter: none; }
  .js .stage__pulse-dot { filter: none; }
  .js .finale__dot { filter: none; }

  /* 4 · Transmission Pulse: pin the SVG to the viewport with sticky (a
        compositor-only pin) instead of the desktop position:fixed toggle,
        so the head's whole travel plays out against a stationary corridor
        without a fixed layer or an absolute<->fixed class swap mid-scroll.
        Box is a centred 52vh band (path renders ~26vh tall — width-limited
        by preserveAspectRatio, so a shorter box does not shrink it) which
        keeps the SVG stuck for the whole ~120vh scrub range of the 220vh
        scene (releasing only in the 24vh tail, after the head has faded),
        so the head crosses a stationary corridor start to finish.
        overflow:hidden establishes a scroll container and would neuter the
        sticky (it'd resolve inside .stage--hold, which never scrolls), so
        switch to overflow:clip — still clips the path's few-px horizontal
        bleed, but sticky then resolves against the viewport. */
  #transmission .stage--hold { overflow: clip; }
  #transmission .stage__pulse {
    position: sticky;
    top: calc(var(--vh, 1vh) * 24);
    bottom: auto; left: 0; right: 0;
    display: block;
    height: calc(var(--vh, 1vh) * 52);
  }

  /* Transmission Pulse corridor: the green line is only ~0.9px at the
     390px render scale, so thicken + brighten it (dot/timing in JS). */
  .stage__pulse-path { stroke-width: 5; }

  /* Portrait system schematic (coordinates rebuilt in animations.js) needs the
     room the desktop landscape layout did not. */
  .system__svg { max-height: 64vh; }
  .system__labels { font-size: 30px; }
  .system__frame { padding: 7vh var(--gut) 1vh; }
  .system__caption { min-height: 6.5em; }

  /* keep the technician's face/helmet AND the raised working arm in the portrait
     crop (a 26%-wide window can't hold the gloved hands and the full face both;
     65% centres on face + reaching forearm, which reads as "at work"). */
  #people .stage__media img { object-position: 65% 42%; }

  .flowwords li:nth-child(1) { top: 16%; left: 7%; }
  .flowwords li:nth-child(2) { top: 34%; left: 12%; }
  .flowwords li:nth-child(3) { top: 52%; left: 20%; }
  .flowwords li:nth-child(4) { top: 70%; left: 12%; }

  .moves__label { right: var(--gut); }
  .moves__noun { font-size: clamp(2.4rem, 15vw, 4rem); }

  .nav-menu a { font-size: 15vw; }

  .grid__headline h2,
  .moves__payoff h2 { font-size: clamp(2rem, 10vw, 3.4rem); }

  .scale__intro { padding-top: 16vh; }
}

/* very large displays — keep it from stretching absurdly */
@media (min-width: 2100px) {
  .stage__text, .lede { margin-left: auto; margin-right: auto; }
  .moves__label, .grid__headline, .system__line { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
  body { font-size: 19px; }
}

/* SVG elements GSAP scales / rotates about their own centre */
.intro__seed, .intro__ring, .intro__seed,
.storage__dot, .system__pulse,
.stage__pulse-dot, .finale__dot,
.grid__svg { transform-box: fill-box; transform-origin: center; }
.system__nodes .node { transform-box: fill-box; transform-origin: center; }

/* No-JS / no-GSAP: make sure nothing stays hidden or stuck */
.no-js .lines .line > span,
.no-js .reveal,
.no-js .intro__line,
.no-gsap .lines .line > span,
.no-gsap .reveal,
.no-gsap .intro__line,
.no-gsap .flowwords li,
.no-gsap .system__line,
.no-gsap .finale__line { opacity: 1 !important; transform: none !important; }

.no-gsap .grid__network, .no-gsap .intro__svg, .no-gsap .stage__pulse,
.no-gsap .scale__web, .no-gsap .storage__svg { display: none; }
.no-gsap .grid, .no-gsap .moves, .no-gsap .system, .no-gsap .finale { height: auto; }
.no-gsap .grid__pin, .no-gsap .moves__pin, .no-gsap .system__pin, .no-gsap .finale__pin {
  position: relative; height: auto; min-height: calc(var(--vh, 1vh) * 100);
}
.no-gsap .grid__city, .no-gsap .js .grid__city { opacity: 1; }
.no-gsap .grid__city img, .no-gsap .finale__media img, .no-gsap .moves__scene img { transform: none; }
.no-gsap .moves__scene, .no-gsap .js .moves__scene { position: relative; opacity: 1; }
.no-gsap .moves__payoff { position: relative; opacity: 1; background: var(--ink); padding: 16vh var(--gut); }
.no-gsap .system__pin { display: block; }
.no-gsap .system__line { position: relative; left: 0; right: 0; bottom: 0; margin-bottom: 0.5em; transform: none; }
.no-gsap .finale__copy { position: relative; background: rgba(6, 7, 12, 0.55); padding: 16vh var(--gut); }
.no-gsap .finale__line { position: relative; top: auto; transform: none; margin-bottom: 1em; }
.no-gsap #progress { display: none; }
