/* ============================================================================
   HARSH PATHAK — A SCROLL STORY
   styles.css
   ---------------------------------------------------------------------------
   0.  Motion tokens + registered custom properties
   1.  Reset & base
   2.  The stage (WebGL backdrop, grain, vignette)
   3.  Cursor
   4.  HUD
   5.  Onee, the guide
   6.  Loader
   7.  Typography & shared primitives
   8.  Reveal engine
   9.  Chapter 01 — Signal
   10. Chapter 02 — Origin
   11. Chapter 03 — Ability
   12. Chapter 04 — Works
   13. Chapter 05 — Toolkit
   14. Chapter 06 — Transmission
   15. Footer
   16. Responsive
   17. Reduced motion
   ========================================================================= */

/* ─────────────────────────── 0. TOKENS ─────────────────────────── */

@property --bg        { syntax: '<color>'; inherits: true; initial-value: #05060A; }
@property --fg        { syntax: '<color>'; inherits: true; initial-value: #EDEFF5; }
@property --accent    { syntax: '<color>'; inherits: true; initial-value: #FF7500; }
@property --accent-2  { syntax: '<color>'; inherits: true; initial-value: #FFD900; }

:root {
  /* theme — overridden per chapter below */
  --bg: #05060A;
  --fg: #EDEFF5;
  --accent: #FF7500;
  --accent-2: #FFD900;
  --peach: #FFC28D;
  --ice: #DBE2F5;

  --fg-dim: color-mix(in oklab, var(--fg) 68%, transparent);
  --fg-faint: color-mix(in oklab, var(--fg) 46%, transparent);
  --line: color-mix(in oklab, var(--fg) 14%, transparent);
  --line-soft: color-mix(in oklab, var(--fg) 7%, transparent);
  --panel: color-mix(in oklab, var(--fg) 5%, transparent);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --pad: clamp(20px, 5.2vw, 84px);
  --gap: clamp(20px, 3vw, 56px);
  --maxw: 1560px;
  /* Onee's footprint. Bottom-left type steps aside by this much. */
  --onee-w: clamp(112px, 11vw, 148px);

  --ease: cubic-bezier(.22,.68,.16,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: 900ms;

  --hud-h: 74px;
}

/* Chapter palettes — these are what make the story shift colour as you travel. */
html[data-chapter="01"] { --bg:#05060A; --accent:#FF7500; --accent-2:#FFD900; }
html[data-chapter="02"] { --bg:#07080D; --accent:#FF9024; --accent-2:#FFE07A; }
html[data-chapter="03"] { --bg:#0A0806; --accent:#FF6A00; --accent-2:#FFC28D; }
html[data-chapter="04"] { --bg:#04050A; --accent:#FFB03A; --accent-2:#FFF3B0; }
html[data-chapter="05"] { --bg:#06080C; --accent:#9DC0FF; --accent-2:#DBE2F5; }
html[data-chapter="06"] { --bg:#0C0603; --accent:#FF4D00; --accent-2:#FFD900; }
html.is-foot             { --bg:#05060A; --accent:#FF7500; --accent-2:#FFD900; }

html {
  transition:
    --bg       900ms var(--ease),
    --accent   900ms var(--ease),
    --accent-2 900ms var(--ease);
  background: var(--bg);
}

/* ─────────────────────────── 1. BASE ─────────────────────────── */

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis takes over when it loads; native smooth scroll is the fallback. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 900ms var(--ease), background 900ms var(--ease);
}

body.is-locked { overflow: hidden; height: 100svh; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 600; color: var(--fg); }
i { font-style: normal; }
em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; }

::selection { background: var(--accent); color: #08090C; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  padding: 10px 16px; border-radius: 100px;
  background: var(--accent); color: #08090C;
  font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: none; }

.mono {
  font-family: var(--font-mono);
  font-size: clamp(10px, .72vw, 12px);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-feature-settings: 'tnum' 1;
}

/* ─────────────────────────── 2. STAGE ─────────────────────────── */

.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1600ms var(--ease);
}
body.is-ready #gl { opacity: 1; }
body.no-gl #gl { display: none; }

/* Warm floor beneath the light, always present, always shifting. */
.stage__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 78% at 50% 108%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 62%),
    radial-gradient(70% 52% at 82% -8%,  color-mix(in oklab, var(--accent-2) 12%, transparent), transparent 60%),
    radial-gradient(90% 60% at 8% 12%,   color-mix(in oklab, var(--accent) 9%, transparent), transparent 62%);
  transition: background 900ms var(--ease);
}

.stage__grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: clamp(64px, 7vw, 120px) clamp(64px, 7vw, 120px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 12%, transparent 76%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 12%, transparent 76%);
  opacity: .55;
}

.stage__vignette {
  position: absolute; inset: 0;
  background:
    /* a directional scrim so the left column of type always has something to
       sit on, no matter how bright the field gets behind it */
    linear-gradient(97deg, rgba(3,4,7,.74) 0%, rgba(3,4,7,.46) 28%, rgba(3,4,7,.16) 50%, transparent 72%),
    radial-gradient(130% 100% at 50% 50%, transparent 42%, rgba(3,4,7,.72) 100%),
    linear-gradient(to bottom, rgba(3,4,7,.62) 0%, transparent 18%, transparent 78%, rgba(3,4,7,.72) 100%);
}

/* Film grain — a single SVG tile nudged in steps. Cheap, and it sells the print. */
.stage__grain {
  position: absolute; inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: overlay;
  animation: grain 700ms steps(3) infinite;
  will-change: transform;
}
@keyframes grain {
  0%   { transform: translate3d(0,0,0); }
  33%  { transform: translate3d(-34px, 18px, 0); }
  66%  { transform: translate3d(22px, -26px, 0); }
  100% { transform: translate3d(0,0,0); }
}

.stage__scan {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in oklab, var(--accent-2) 6%, transparent) 48%, transparent 52%);
  background-size: 100% 220vh;
  opacity: .3;
  animation: scan 11s linear infinite;
}
@keyframes scan {
  0%   { background-position: 0 -110vh; }
  100% { background-position: 0 110vh; }
}

/* ─────────────────────────── 3. CURSOR ─────────────────────────── */

.cursor { position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.cursor.is-on { opacity: 1; }

.cursor__dot,
.cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}
.cursor__dot { width: 5px; height: 5px; background: var(--accent-2); }
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid color-mix(in oklab, var(--fg) 45%, transparent);
  transition: width 380ms var(--ease-out), height 380ms var(--ease-out),
              border-color 380ms var(--ease-out), background 380ms var(--ease-out),
              opacity 380ms var(--ease-out);
}
.cursor.is-link .cursor__ring {
  width: 62px; height: 62px;
  border-color: color-mix(in oklab, var(--accent) 85%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 22px; height: 22px; }

.cursor__label {
  position: absolute; top: 0; left: 0;
  transform: translate3d(26px, 26px, 0);
  color: var(--accent-2); white-space: nowrap;
  opacity: 0; transition: opacity 300ms ease;
}
.cursor.has-label .cursor__label { opacity: .9; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
}

/* ─────────────────────────── 4. HUD ─────────────────────────── */

.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  padding: 0 var(--pad);
  transform: translateY(-120%);
  transition: transform 1100ms var(--ease-out) 200ms;
}
body.is-ready .hud { transform: none; }
body.is-scrolled .hud__row { padding-block: 12px; }
.hud__row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: var(--hud-h);
  padding-block: 20px;
  border-bottom: 1px solid transparent;
  transition: padding 500ms var(--ease), border-color 500ms var(--ease);
}
body.is-scrolled .hud__row { border-color: var(--line-soft); }

.hud__brand { display: inline-flex; align-items: center; gap: 11px; }
.hud__mark { width: 24px; height: 24px; color: var(--ice); transition: transform 600ms var(--ease-out); }
.hud__mark svg { width: 100%; height: 100%; }
.hud__brand:hover .hud__mark { transform: rotate(-8deg) scale(1.08); }
.hud__name {
  font-weight: 600; font-size: clamp(14px, 1.05vw, 17px);
  letter-spacing: -0.015em;
}
.hud__dot { color: var(--accent); }

.hud__chapter {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-dim);
}
.hud__num { color: var(--accent); font-weight: 700; }
.hud__sep, .hud__total { color: var(--fg-faint); }
.hud__label {
  position: relative;
  margin-left: 6px; padding-left: 14px;
  color: var(--fg);
}
.hud__label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 80%, transparent);
}
.hud__label.is-swap { animation: labelSwap 620ms var(--ease-out); }
@keyframes labelSwap {
  0%   { opacity: 0; transform: translateY(9px); filter: blur(5px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

.hud__nav { display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.hud__nav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-dim); transition: color 300ms ease;
  position: relative;
}
.hud__nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 480ms var(--ease-out);
}
.hud__nav a:hover { color: var(--fg); }
.hud__nav a:hover::after { transform: scaleX(1); }

.hud__cta {
  padding: 10px 18px !important;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--fg) !important;
  transition: border-color 400ms var(--ease), background 400ms var(--ease), color 400ms var(--ease) !important;
}
.hud__cta::after { display: none; }
.hud__cta:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); }

.hud__progress {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0;
  height: 1px; background: var(--line-soft); transform: scaleX(0);
  transition: transform 500ms var(--ease);
}
body.is-scrolled .hud__progress { transform: scaleX(1); }
.hud__progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 14px color-mix(in oklab, var(--accent) 70%, transparent);
}

/* ─────────────────────────── 5. ONEE ─────────────────────────── */

.onee {
  position: fixed; z-index: 350;
  left: var(--pad); bottom: clamp(18px, 3vh, 34px);
  width: clamp(112px, 11vw, 148px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(28px) scale(.94);
  transition: opacity 900ms var(--ease-out) 400ms, transform 1100ms var(--ease-out) 400ms;
  pointer-events: none;
}
body.is-ready .onee { opacity: 1; transform: none; }

.onee__bubble {
  position: relative;
  width: max-content; max-width: 30ch;
  padding: 11px 15px;
  background: color-mix(in oklab, #0B0D13 82%, var(--accent) 6%);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 16px;
  backdrop-filter: blur(14px) saturate(1.2);
  font-family: var(--font-mono);
  font-size: 10.5px; line-height: 1.5; letter-spacing: .04em;
  color: var(--fg-dim);
  opacity: 0; transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.onee.is-talking .onee__bubble { opacity: 1; transform: none; }
.onee__bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px;
  margin-left: -4px; transform: rotate(45deg);
  background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.onee__stage { position: relative; width: 100%; aspect-ratio: 1 / .96; }
.onee__svg { width: 100%; height: 100%; overflow: visible; }

.onee__body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: oneeBob 4.6s var(--ease) infinite;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.55));
}
@keyframes oneeBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-1.6deg); }
}
.onee__glow {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: oneeGlow 3.4s ease-in-out infinite;
}
@keyframes oneeGlow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.13); } }

.onee__eye {
  fill: #111316;
  transform-box: fill-box; transform-origin: 50% 50%;
  transition: ry 260ms var(--ease-out), transform 240ms var(--ease-out);
}
.onee__eyes { translate: var(--look-x, 0) var(--look-y, 0); transition: translate 260ms var(--ease-out); }
.onee.is-blinking .onee__eye { ry: 1.6; }
.onee__smile {
  transform-box: fill-box; transform-origin: 50% 0%;
  transition: transform 400ms var(--ease-out), d 400ms var(--ease-out), opacity 400ms ease;
}
.onee.is-focused .onee__eye { ry: 11; }
.onee.is-focused .onee__smile { transform: scaleY(.25); opacity: .5; }
.onee.is-wow .onee__eye { ry: 19; }
.onee.is-happy .onee__smile { transform: scaleY(1.8) translateY(-2px); }

.onee.is-squash .onee__body { animation-play-state: paused; transform: scale(1.07, .9); }

/* In the work chapter the cards need the whole frame — the guide keeps her
   posture but stops talking over them. */
html[data-chapter="04"] .onee .onee__bubble { opacity: 0; transform: translateY(8px); }

/* ─────────────────────────── 6. LOADER ─────────────────────────── */

.loader {
  position: fixed; inset: 0; z-index: 950;
  background: #04050A;
  display: grid; place-items: center;
  transition: opacity 620ms var(--ease) 300ms, visibility 0ms 1000ms;
}
body.is-ready .loader { opacity: 0; visibility: hidden; }
.loader__inner {
  width: min(560px, 84vw);
  display: grid; gap: 22px;
  transform: translateY(0);
  transition: transform 900ms var(--ease-out);
}
body.is-ready .loader__inner { transform: translateY(-16px); }

.loader__ascii {
  color: var(--accent-2);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: .1em;
  text-shadow: 0 0 10px color-mix(in oklab, var(--accent-2) 60%, transparent),
               0 0 30px color-mix(in oklab, var(--accent) 40%, transparent);
  white-space: nowrap;
}
.loader__word { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.loader__name {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.loader__sub { color: var(--fg-faint); }

.loader__bar { height: 1px; background: color-mix(in oklab, var(--fg) 12%, transparent); overflow: hidden; }
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 80%, transparent);
}
.loader__row { display: flex; justify-content: space-between; color: var(--fg-faint); }

/* ─────────────────────────── 7. TYPE ─────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-size: clamp(2.6rem, 7.4vw, 8.2rem);
  text-wrap: balance;
}
.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, var(--peach), var(--accent-2) 52%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}

.chapter {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(120px, 15vh, 190px) var(--pad) clamp(90px, 12vh, 150px);
}
.chapter__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; }

.chapter__head { display: grid; gap: clamp(14px, 2vw, 26px); max-width: 60ch; margin-bottom: clamp(46px, 7vh, 96px); }
.chapter__no { color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.chapter__no::before {
  content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6;
}
.chapter__title { font-size: clamp(2.4rem, 6.6vw, 7rem); }

.lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.55vw, 1.5rem);
  line-height: 1.45;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
.lede--wide { max-width: 62ch; }
.lede b { color: var(--fg); font-weight: 500; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  isolation: isolate; overflow: hidden;
  transition: color 420ms var(--ease), border-color 420ms var(--ease);
  will-change: transform;
}
.btn__i { transition: transform 500ms var(--ease-out); }
.btn:hover .btn__i { transform: translate(3px, -3px); }
.btn__i--down:hover, .btn:hover .btn__i--down { transform: translateY(4px); }

.btn--solid { background: var(--accent); color: #08090C; border: 1px solid var(--accent); }
.btn--solid::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent-2);
  transform: translateY(101%);
  transition: transform 560ms var(--ease-out);
}
.btn--solid:hover::before { transform: none; }
.btn--solid:hover { color: #08090C; }

.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--fg) 9%, transparent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 520ms var(--ease-out);
}
.btn--ghost:hover::before { transform: none; }
.btn--ghost:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }

.btn--xl { padding: 22px 40px; font-size: 12px; }

/* ─────────────────────────── 8. REVEALS ─────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms var(--ease-out), transform 1200ms var(--ease-out);
  transition-delay: calc(var(--d, 1) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Split text: each word rides up behind a mask.
   The padding/negative-margin pair stops overflow:hidden from shaving off
   descenders like the g in "getting" at tight display line-heights. */
.split-line { display: block; overflow: hidden; }
.split-word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.split-word > * {
  display: inline-block;
  transform: translateY(122%) rotate(3.5deg);
  opacity: 0;
  transition: transform 1250ms var(--ease-out), opacity 900ms var(--ease-out);
  transition-delay: calc(var(--d, 1) * 62ms);
}
.is-in .split-word > * { transform: none; opacity: 1; }

/* ─────────────────────────── 9. HERO ─────────────────────────── */

.hero { justify-content: space-between; padding-bottom: clamp(78px, 11vh, 130px); }
.hero__inner { position: relative; flex: 1 1 auto; display: grid; gap: clamp(24px, 3.4vh, 46px); align-content: center; padding-right: clamp(260px, 38vw, 420px); }
.hero__inner > :not(.hero__portrait) { position: relative; z-index: 1; }
.hero__title { max-width: 20ch; }
.hero__portrait {
  position: absolute; z-index: 0; inset: 0 0 0 auto;
  width: clamp(200px, 34vw, 400px); margin: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__portrait img {
  display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain;
  filter: drop-shadow(0 18px 34px color-mix(in oklab, var(--accent) 12%, transparent));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(10px, .8vw, 12px);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-dim);
}
70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.eyebrow__sep { color: var(--fg-faint); }

.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.hero__lower .lede { max-width: 40ch; }

.chips {
  grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px;
  align-self: start;
}
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--fg-dim);
  background: color-mix(in oklab, var(--fg) 3%, transparent);
  backdrop-filter: blur(8px);
}

.hero__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero__foot {
  display: flex; justify-content: space-between; gap: 20px;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  color: var(--fg-faint);
  padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.hero__count { color: var(--fg-dim); }
.hero__count span { color: var(--accent); }

/* ─────────────────────────── 10. ORIGIN ─────────────────────────── */

.origin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: start;
}
.origin__text {
  font-size: clamp(1.15rem, 2.05vw, 2.15rem);
  line-height: 1.34; letter-spacing: -0.02em;
  color: var(--fg-dim);
}
.origin__text b { color: var(--fg); font-weight: 500; }

.stats { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.stat {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr);
  gap: 4px 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 500ms var(--ease);
}
.stat:hover { border-color: color-mix(in oklab, var(--accent) 50%, transparent); }
.stat dt { grid-row: span 2; color: var(--accent); font-weight: 700; }
.stat dd {
  font-size: clamp(.98rem, 1.15vw, 1.18rem);
  font-weight: 500; letter-spacing: -0.015em;
}
.stat p { color: var(--fg-faint); font-size: .88em; }

.marquee {
  margin-top: clamp(60px, 9vh, 130px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(16px, 2.4vh, 30px) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row {
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px);
  width: max-content;
  will-change: transform;
}
.marquee__row span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.03em;
  color: color-mix(in oklab, var(--fg) 78%, transparent);
  white-space: nowrap;
}
.marquee__row i { color: var(--accent); font-size: .6em; }

/* ─────────────────────────── 11. ABILITY ─────────────────────────── */

.ability__list { border-top: 1px solid var(--line-soft); }
.ability__item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1.05fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 48px);
  padding: clamp(22px, 3.4vh, 44px) 0;
  border-bottom: 1px solid var(--line-soft);
  isolation: isolate;
  transition: padding-left 620ms var(--ease-out), border-color 620ms var(--ease);
}
.ability__item:hover { padding-left: clamp(8px, 1.6vw, 26px); border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.ability__no { color: var(--fg-faint); transition: color 500ms var(--ease); }
.ability__item:hover .ability__no { color: var(--accent); }
.ability__name {
  font-size: clamp(1.5rem, 3.5vw, 3.3rem);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.02;
  color: color-mix(in oklab, var(--fg) 74%, transparent);
  transition: color 500ms var(--ease);
}
.ability__item:hover .ability__name { color: var(--fg); }
.ability__desc { color: var(--fg-faint); max-width: 40ch; transition: color 500ms var(--ease); }
.ability__item:hover .ability__desc { color: var(--fg-dim); }

.ability__beam {
  position: absolute; inset: -1px 0;
  z-index: -1;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--accent) 20%, transparent),
    color-mix(in oklab, var(--accent-2) 8%, transparent) 42%,
    transparent 78%);
  opacity: 0; transform: scaleX(.55); transform-origin: left;
  transition: opacity 620ms var(--ease), transform 900ms var(--ease-out);
}
.ability__item:hover .ability__beam { opacity: 1; transform: none; }

/* ─────────────────────────── 12. WORKS ─────────────────────────── */

.works { position: relative; z-index: 2; }
/* Chapter four is a single scene: head, rail, caption, copy and meter all sit
   inside one viewport, and the rail takes the wheel from the page until it
   reaches the last card. */
.works__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(100px, 12.5vh, 148px) clamp(26px, 4vh, 52px);
}
.works__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto clamp(16px, 2.4vh, 30px);
  padding-inline: var(--pad);
}
.works__title { font-size: clamp(1.9rem, 4.6vw, 4.6rem); }
.works__counter { color: var(--fg-faint); display: inline-flex; gap: 8px; align-items: baseline; }
.works__counter span { color: var(--accent); font-weight: 700; font-size: 1.5em; letter-spacing: .04em; }

/* The rail of cards. The component owns everything inside this box. */
.works__carousel {
  position: relative;
  flex: 0 0 auto;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
}

/* The focused project, written out beneath the rail and re-typed on change. */
.works__meta {
  width: 100%; max-width: var(--maxw);
  margin: clamp(14px, 2.2vh, 28px) auto 0;
  padding-inline: var(--pad);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(18px, 3.5vw, 58px);
  align-items: start;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(13px, 2vh, 22px);
}
.works__meta-main { display: grid; gap: 6px; align-content: start; }
.works__meta-side { display: grid; gap: 12px; align-content: start; justify-items: start; }

.works__meta-type {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.works__kicker {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  color: var(--accent-2); line-height: 1.2;
}
.works__desc { color: var(--fg-dim); max-width: 56ch; font-size: clamp(.9rem, 1vw, .99rem); line-height: 1.5; }

.works__stack { display: flex; flex-wrap: wrap; gap: 7px; }
.works__stack li {
  padding: 6px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-faint);
}
.works__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.works__links a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 400ms var(--ease), border-color 400ms var(--ease);
}
.works__links a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* The swap: retype the copy each time the rail settles on a new project. */
.works__meta .is-swap-in { animation: worksSwap 560ms var(--ease-out) both; }
@keyframes worksSwap {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.works__meter {
  width: 100%; max-width: var(--maxw);
  margin: clamp(16px, 2.4vh, 32px) auto 0;
  padding-inline: var(--pad);
}
.works__meter span {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform-origin: left; transform: scaleX(0);
  transition: transform 700ms var(--ease-out);
}

/* ═══════════════════ 12b. THE PROJECT CAROUSEL (fc) ═══════════════════════
   .fc is built by flex-carousel.js. Everything is sized from the custom
   properties the component writes onto the root, so the JS never has to
   know a single pixel of layout. */

.fc {
  --fc-card-w: 320px;
  --fc-card-h: 220px;
  --fc-gap: 12px;
  --fc-aspect: 1.45;
  --fc-look: 0;
  position: relative;
  outline: none;
}

.fc__stage {
  position: relative;
  height: clamp(250px, 46vh, 470px);
  perspective: 1500px;
  perspective-origin: calc(50% + var(--fc-look) * 14px) 46%;
  touch-action: pan-y;
}

.fc__rail {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}

.fc__card {
  position: absolute;
  left: calc(var(--fc-card-w) / -2);
  top: calc(var(--fc-card-h) / -2);
  width: var(--fc-card-w);
  height: var(--fc-card-h);
  transform-style: preserve-3d;
  will-change: transform;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fc.is-drag .fc__card { cursor: grabbing; }

.fc__frame {
  position: absolute; inset: 0;
  border-radius: var(--fc-radius, 0px);
  overflow: hidden;
  background: #05060A;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,.9),
    0 2px 10px -4px rgba(0,0,0,.6);
  transition: transform 1100ms var(--ease-out),
              border-color 700ms var(--ease), box-shadow 800ms var(--ease);
}
.fc__card.is-focus .fc__frame {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow:
    0 40px 90px -34px rgba(0,0,0,.95),
    0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent),
    0 0 60px -14px color-mix(in oklab, var(--accent) 42%, transparent);
}

.fc__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  filter: saturate(.86) contrast(1.04) brightness(.82);
  transition: filter 900ms var(--ease), transform 1400ms var(--ease-out);
}
.fc__card.is-focus .fc__img { filter: saturate(1) contrast(1.02) brightness(.96); }
.fc__card:not(.is-focus):hover .fc__img { filter: saturate(.95) contrast(1.03) brightness(.92); }

/* a cool wash over the whole frame so photos sit inside the palette */
.fc__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(158deg, color-mix(in oklab, var(--accent) 20%, transparent), transparent 44%),
    linear-gradient(to top, rgba(4,5,9,.72), rgba(4,5,9,.06) 46%, transparent 68%);
  mix-blend-mode: normal;
}
.fc__sheen::after {
  content: '░▒▓░  .:+xX#  ░▒▓';
  position: absolute;
  inset: -30% -80%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff3d5;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .24em;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--accent), 0 0 24px var(--accent-2);
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(108deg, transparent 42%, color-mix(in oklab, var(--accent) 28%, transparent) 47%, #fff3d5 50%, color-mix(in oklab, var(--accent-2) 64%, transparent) 53%, transparent 59%);
  transform: translateX(-40%) skewX(-18deg);
  pointer-events: none;
}
.fc__card.is-focus .fc__sheen::after {
  animation: carouselGlint 1100ms var(--ease-out) both;
}
@keyframes carouselGlint {
  0% { opacity: 0; transform: translateX(-40%) skewX(-18deg); }
  18% { opacity: .95; }
  100% { opacity: 0; transform: translateX(40%) skewX(-18deg); }
}

/* the number badge on each card */
.fc__card-cap {
  position: absolute; left: 14px; bottom: 12px;
  display: flex; align-items: baseline; gap: 8px;
  pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity 600ms var(--ease), transform 700ms var(--ease-out);
}
.fc__card.is-focus .fc__card-cap { opacity: 1; transform: none; }
.fc__card-no {
  font-size: 11px; letter-spacing: .1em;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 100px;
  background: color-mix(in oklab, #05060A 62%, transparent);
  backdrop-filter: blur(6px);
}
.fc__card-title { display: none; }

/* ── the caption bar under the rail ─────────────────────────────────────── */
.fc__caption {
  max-width: var(--maxw); margin: clamp(12px, 2vh, 22px) auto 0;
  padding-inline: var(--pad);
  display: flex; align-items: baseline; gap: 18px;
}
.fc__caption-line {
  flex: 0 0 auto; width: clamp(28px, 5vw, 74px); height: 1px;
  background: var(--accent);
  opacity: .6;
  transform: translateY(-4px);
}
.fc__caption-title {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  color: var(--fg);
  line-height: 1.15;
}
.fc__caption-sub { color: var(--fg-faint); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.fc__caption.is-swap .fc__caption-body { animation: worksSwap 520ms var(--ease-out) both; }

/* ── the intro ──────────────────────────────────────────────────────────── */
.fc.is-intro .fc__frame { transform: translateY(46px); }
.fc.is-intro .fc__caption { opacity: 0; transform: translateY(12px); }

.fc__card { transition: opacity 900ms var(--ease-out); }
.fc__caption { transition: opacity 900ms var(--ease), transform 900ms var(--ease-out); }

/* the no-JS fallback list */
.works__plain { display: grid; gap: 10px; padding-inline: var(--pad); color: var(--fg-dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.works__plain a { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.works__plain a:hover { color: var(--accent); border-color: var(--accent); }

/* ── the calm path: no 3D, no rail easing. A plain card strip you can drag. ── */
.fc.is-calm { --fc-card-h: clamp(200px, 34vh, 300px); }
.fc.is-calm .fc__stage {
  height: auto;
  perspective: none;
}
.fc.is-calm .fc__rail {
  position: static;
  display: flex; gap: var(--fc-gap);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px var(--pad) 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.fc.is-calm .fc__card {
  position: relative;
  left: auto; top: auto;
  flex: 0 0 auto;
  width: calc(var(--fc-card-h) * var(--fc-aspect));
  height: var(--fc-card-h);
  transform: none !important;
  opacity: 1 !important;
  z-index: auto !important;
  scroll-snap-align: center;
}
.fc.is-calm .fc__card-cap { opacity: 1; transform: none; }
.fc.is-calm .fc__caption { display: none; }

/* ─────────────────────────── 13. TOOLKIT ─────────────────────────── */

.toolkit__list { border-top: 1px solid var(--line-soft); }
.toolkit__list li {
  display: grid;
  grid-template-columns: 74px minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: baseline; gap: clamp(12px, 3vw, 44px);
  padding: clamp(16px, 2.4vh, 28px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.toolkit__no { color: var(--fg-faint); }
.toolkit__list h3 {
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  font-weight: 500; letter-spacing: -0.03em;
}
.toolkit__list p { color: var(--fg-faint); }

.toolkit__note {
  margin-top: clamp(26px, 4vh, 44px);
  max-width: 56ch;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.3vw, 1.24rem);
}
.toolkit__note .mono { color: var(--accent); margin-right: 6px; }

/* ─────────────────────────── 14. TRANSMISSION ─────────────────────────── */

.transmission__title { font-size: clamp(2.3rem, 7vw, 7.4rem); }
.transmission__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(30px, 4.6vh, 54px) 0 clamp(46px, 7vh, 92px); }

.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.contact li { background: var(--bg); padding: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 30px); display: grid; gap: 12px; align-content: start; }
/* Keep the contact row clear of the guide's corner. */
.transmission .contact { margin-bottom: clamp(96px, 15vh, 168px); }
.contact__label { color: var(--fg-faint); }
.contact li a { display: grid; gap: 9px; }
.contact__row { display: flex; align-items: center; gap: 13px; transition: transform 600ms var(--ease-out); }
.contact li a:hover .contact__row { transform: translateX(5px); }
.contact__mark {
  flex: 0 0 auto;
  width: clamp(28px, 2.7vw, 36px); height: clamp(28px, 2.7vw, 36px);
  transition: transform 600ms var(--ease-out), filter 600ms var(--ease);
}
.contact__mark svg, .contact__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contact li a:hover .contact__mark {
  transform: scale(1.07);
  filter: drop-shadow(0 0 11px rgba(255,255,255,.22));
}
.contact__big {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  transition: color 400ms var(--ease);
}
.contact li a:hover .contact__big { color: var(--accent-2); }
.contact__sub { color: var(--fg-faint); }

/* ─────────────────────────── 15. FOOTER ─────────────────────────── */

.foot {
  position: relative; z-index: 2;
  padding: clamp(70px, 10vh, 130px) var(--pad) clamp(30px, 5vh, 54px);
  border-top: 1px solid var(--line-soft);
}
.foot__inner { max-width: var(--maxw); margin-inline: auto; display: grid; gap: clamp(34px, 6vh, 72px); }
.foot__big {
  font-size: clamp(2.2rem, 8.4vw, 9rem);
  color: var(--fg);
  text-shadow: 0 0 90px color-mix(in oklab, var(--accent) 34%, transparent);
}
.foot__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px;
  color: var(--fg-faint);
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.foot__meta a { color: var(--fg-dim); transition: color 400ms var(--ease); }
.foot__meta a:hover { color: var(--accent-2); }

/* ─────────────────────────── 16. RESPONSIVE ─────────────────────────── */

/* Onee is pinned to the bottom-left, so the bottom-left pieces of type step
   aside by exactly her footprint. Screens too narrow for a side-by-side
   arrangement instead get vertical clearance (see the 860px block). */
.hero__foot,
.foot__meta > :first-child {
  padding-left: calc(var(--onee-w) + 18px);
}
/* In chapter four she stands over the project copy, so the copy steps aside
   and the meter starts where she ends. */
.works__meta-main,
.works__meter,
.works__carousel .fc__caption { padding-left: calc(var(--onee-w) + 18px); }

@media (max-width: 1100px) {
  .hero__lower { grid-template-columns: 1fr; align-items: start; }
  .chips { grid-column: 1; }
  .origin__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .hero__inner { padding-right: clamp(230px, 38vw, 310px); }
  .hero__portrait { width: min(34vw, 310px); }
  .hero__title > .split-word--el:last-child { display: block; width: max-content; max-width: 100%; }
}

@media (max-width: 560px) {
  .hero__inner { padding-right: 0; }
  .hero__title { max-width: 100%; font-size: clamp(2.45rem, 10vw, 3rem); line-height: 1; }
  .hero__title > .split-word--el:last-child { display: block; width: max-content; max-width: 100%; }
  .hero__portrait { position: relative; inset: auto; z-index: 1; grid-row: 3; justify-self: end; width: min(52vw, 190px); max-height: none; margin-block: -10px; }
  .hero__portrait img { max-height: none; }
}

@media (max-width: 860px) {
  :root { --hud-h: 62px; --onee-w: 92px; }
  .hud__nav a:not(.hud__cta) { display: none; }
  .hud__chapter .hud__label { display: none; }
  .onee { width: 92px; left: 14px; bottom: 14px; }
  .onee__bubble { display: none; }
  /* No room to sit beside her down here, so bottom-anchored type lifts clear. */
  .hero__foot,
  .foot__meta > :first-child,
  .works__meta-main,
  .works__meter,
  .works__carousel .fc__caption { padding-left: 0; }
  .works__pin { padding-bottom: clamp(120px, 18vh, 172px); }
  .hero { padding-bottom: clamp(126px, 19vh, 178px); }
  .foot { padding-bottom: clamp(118px, 18vh, 168px); }
  .chapter { padding-block: clamp(110px, 18vh, 150px) clamp(70px, 10vh, 110px); }
  .ability__item { grid-template-columns: 46px minmax(0,1fr); }
  .ability__desc { grid-column: 2; }
  .toolkit__list li { grid-template-columns: 40px minmax(0,1fr); }
  .toolkit__list li p { grid-column: 2; }
  .contact { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; gap: 8px; }
}

/* ─────────────────────────── 17. REDUCED MOTION ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* `html.motion-full` is set by ?motion=full — it opts out of this block so
     the full experience can still be previewed on a machine set to reduce. */
  html:not(.motion-full) { scroll-behavior: auto; }
  html:not(.motion-full) *,
  html:not(.motion-full) *::before,
  html:not(.motion-full) *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  html:not(.motion-full) [data-reveal] { opacity: 1 !important; transform: none !important; }
  html:not(.motion-full) .split-word > * { transform: none !important; opacity: 1 !important; }
  /* The light field stays: it is drawn once and held still, so it reads as
     backdrop rather than animation. The moving overlays do go. */
  html:not(.motion-full) .stage__scan,
  html:not(.motion-full) .stage__grain { display: none; }
  html:not(.motion-full) .loader { display: none; }
}
