/* ============================================================
   Coded Mind — Integrated Creative Redesign · creative proof

   Adds to assets/css/styles.css. Every locked constant there --
   the palette, Public Sans, the Fibonacci spacing, the four
   voices, the Mark, the dark threshold and the Sri Yantra plate --
   is used as it stands. Nothing here alters the identity.

   The organising idea: the site is one instrument. A hairline
   chassis (identity, a measured rail of the whole journey, the
   chapter you are in, the sound) is always present and inverts
   with the material it is standing on. Chapters are not slides
   stacked underneath each other -- each one is a pinned stage
   whose every value is a pure function of one scroll position,
   the same discipline the original site already uses, so moving
   backwards unwinds a chapter rather than replaying it.
   ============================================================ */

:root {
  --dark:      #0B0A08;   /* the threshold's own near-black, carried on */
  --dark-2:    #121110;
  --on-dark:   #FBF3E8;
  --on-dark-2: #8C857A;

  --ease: cubic-bezier(.16,.84,.36,1);
  --rail-w: 1px;
}

/* Elements are deliberately larger than the frame that holds them, so
   the page must clip sideways -- but with `clip`, not `hidden`:
   `overflow: hidden` would make the root a scroll container and break
   every pinned stage on the page. */
html { overflow-x: clip; }
main { position: relative; }

/* ─────────────────────────────────────────────────────────────
   THE CHASSIS
   ───────────────────────────────────────────────────────────── */
.chassis {
  position: fixed; inset: 0;
  z-index: 90; pointer-events: none;
  --c-ink: var(--ink);
  --c-dim: var(--graphite-2);
  --c-line: rgba(20, 19, 17, 0.16);
  transition: color 700ms var(--ease);
}
html[data-tone="dark"] .chassis {
  --c-ink: var(--on-dark);
  --c-dim: var(--on-dark-2);
  --c-line: rgba(251, 243, 232, 0.20);
}
.chassis > * { pointer-events: auto; }

/* identity — held back by formation.js exactly as on the original
   site (--hdr), so the reveal of the logo is still an event */
.chassis-id {
  position: absolute; top: 0; left: 0;
  padding: clamp(1.15rem, 2.4vh, 1.75rem) var(--pad);
  opacity: var(--hdr, 0);
  transition: opacity 600ms var(--ease);
}
.chassis-id .name { color: var(--c-ink); transition: color 700ms var(--ease); }
.chassis-id img {
  /* the approved artwork is black; on a dark chapter it is shown
     through a warm-white disc rather than recoloured */
  border-radius: 50%;
  background: var(--c-ink);
  box-shadow: 0 0 0 2px var(--c-ink);
  transition: background 700ms var(--ease), box-shadow 700ms var(--ease);
}
html[data-tone="light"] .chassis-id img { background: transparent; box-shadow: none; }

/* the rail: the whole journey as one measured edge */
.rail {
  position: absolute; left: var(--pad); top: 22vh; bottom: 22vh;
  width: 1px;
  opacity: calc(var(--hdr, 0) * 1);
  transition: opacity 600ms var(--ease);
}
.rail-line {
  position: absolute; inset: 0;
  background: var(--c-line);
  transition: background 700ms var(--ease);
}
.rail-now {
  position: absolute; left: -3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  top: calc(var(--journey, 0) * 100%);
  transform: translateY(-50%);
  transition: top 120ms linear;
}
.rail-marks { list-style: none; margin: 0; padding: 0; }
.rail-marks li {
  position: absolute; left: 0; top: calc(var(--at) * 100%);
  width: 9px; height: 1px;
  background: var(--c-line);
  transition: background 700ms var(--ease), width 400ms var(--ease);
}
.rail-marks li[data-on="1"] { width: 17px; background: var(--accent); }

.chapter-now {
  position: absolute; left: var(--pad); bottom: clamp(1.15rem, 2.4vh, 1.75rem);
  display: flex; align-items: baseline; gap: 0.75rem;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--c-dim);
  opacity: var(--hdr, 0);
  transition: opacity 600ms var(--ease), color 700ms var(--ease);
}
.chapter-now .cn-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter-now .cn-name { color: var(--c-ink); transition: color 700ms var(--ease); }

/* sound — available from the first frame, never automatic */
.sound {
  position: absolute; right: var(--pad); bottom: clamp(1.15rem, 2.4vh, 1.75rem);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0; padding: 0.5rem 0;
  background: none; border: 0; cursor: pointer;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--c-dim);
  transition: color 400ms var(--ease);
}
.sound:hover, .sound:focus-visible { color: var(--c-ink); }
.sound:focus-visible { outline: 1px solid var(--accent); outline-offset: 8px; }
.sound[aria-pressed="true"] { color: var(--c-ink); }
.sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound-bars i {
  display: block; width: 1px; height: 3px;
  background: currentColor;
  transition: height 300ms var(--ease), background 400ms var(--ease);
}
.sound[aria-pressed="true"] .sound-bars i { background: var(--accent); }
.sound[aria-pressed="true"] .sound-bars i:nth-child(1) { animation: sb 1.9s ease-in-out -0.0s infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation: sb 1.9s ease-in-out -0.5s infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation: sb 1.9s ease-in-out -1.0s infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation: sb 1.9s ease-in-out -1.5s infinite; }
@keyframes sb { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.sound[data-failed="1"] { opacity: 0.4; }

/* ─────────────────────────────────────────────────────────────
   SCENES · the shared chassis of a chapter
   ───────────────────────────────────────────────────────────── */
.sc { position: relative; }
.sc-track { position: relative; height: var(--track, 300vh); }
.sc-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  --p: 0;
}
/* dark chapters carry their own ground, edge to edge */
.sc[data-tone="dark"] .sc-stage { background: var(--dark); color: var(--on-dark); }

.sc-track--symbols      { --track: 460vh; }
.sc-track--harmony      { --track: 420vh; }
.sc-track--vibration    { --track: 400vh; }
.sc-track--perception   { --track: 380vh; }
.sc-track--explorations { --track: 360vh; }
.sc-track--threshold    { --track: 240vh; }
.sc-track--yantra       { --track: 340vh; }
.sc-track--process      { --track: 460vh; }

/* one shared editorial voice on dark ground */
.sc[data-tone="dark"] .t-editorial { color: #CFC5B7; }

/* ═════════════════════════════════════════════════════════════
   01 · SYMBOLS
   The aperture the threshold's orange point becomes. Everything
   in this scene is larger than the frame that holds it.
   ═════════════════════════════════════════════════════════════ */
.sy-aperture {
  position: absolute; inset: 0;
  /* the opening: a point on the same centre the threshold ended on */
  clip-path: circle(calc(2px + var(--ap, 0) * 92vmax) at 50% 50%);
}
.sy-arch { position: absolute; inset: -8%; }
.sy-arch img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 52% 44%;
  /* monumental: the interior is never contained by the viewport, and
     it keeps travelling for the whole chapter */
  transform: scale(calc(1.30 - var(--p) * 0.16)) translate3d(calc(var(--p) * -3.5%), calc(var(--p) * -2%), 0);
  filter: contrast(1.10) saturate(0.86) brightness(calc(0.72 + var(--ap, 0) * 0.30));
}
/* the grade: warm light from the opening, and the ground the word
   stands on gathered into the lower third -- the page's own
   upper-left source, obeyed */
.sy-grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 56% 30%, rgba(255,238,214,0.22) 0%, rgba(255,238,214,0) 70%),
    linear-gradient(to top, rgba(11,10,8,0.86) 0%, rgba(11,10,8,0.40) 26%, rgba(11,10,8,0) 52%),
    radial-gradient(126% 104% at 50% 42%, rgba(11,10,8,0) 30%, rgba(11,10,8,0.58) 92%);
  opacity: calc(0.62 + var(--p) * 0.38);
}

/* the word, cropped by the frame on purpose, standing on the darkened
   floor of the picture rather than washed over the whole of it */
.sy-word {
  position: absolute; left: -0.055em; bottom: -0.15em;
  margin: 0; z-index: 3;
  font: var(--v-monument);
  font-size: clamp(4.2rem, 21vw, 18rem);
  letter-spacing: -0.05em; line-height: 0.82;
  color: var(--on-dark);
  opacity: calc(var(--w-sym, 0) * 0.94);
  transform: translate3d(calc(var(--p) * -7vw), calc((1 - var(--w-sym, 0)) * 5vh), 0);
  pointer-events: none;
}

/* the nearer plane: one isolated threshold, oversize, crossing the
   word, cropped by the left edge */
.sy-relic {
  position: absolute; z-index: 4;
  left: -12vw; bottom: -8vh;
  width: min(62vw, 58vh * 1.0); aspect-ratio: 1 / 1;
  opacity: var(--relic, 0);
  transform: translate3d(calc(var(--relic-x, 0) * 1px), calc((1 - var(--relic, 0)) * 6vh), 0)
             scale(calc(1.0 + (1 - var(--relic, 0)) * 0.10));
  filter: drop-shadow(24px 34px 42px rgba(0,0,0,0.55)) contrast(1.06) brightness(0.9);
  pointer-events: none;
}
.sy-relic img { width: 100%; height: 100%; object-fit: contain; object-position: bottom left; display: block; }

/* the measured axis — the reading the copy names, drawn on the image */
.sy-measure {
  position: absolute; z-index: 5;
  left: 50%; top: 0; height: 100%; width: 2px;
  transform: translateX(-50%);
  opacity: calc(var(--measure-on, 0) * 0.7);
  overflow: visible;
}
.sy-m-axis {
  stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 400; stroke-dashoffset: calc((1 - var(--measure-on, 0)) * 400);
}
.sy-measure-cap {
  position: absolute; z-index: 5;
  left: calc(50% + 12px); top: 12vh;
  margin: 0;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent);
  opacity: var(--measure-on, 0);
}

/* the reading column: off-centre, never a second column of equal
   weight. It carries its own shadow so it is legible over whatever
   part of the picture happens to be behind it. */
.sy-col {
  position: absolute; z-index: 6;
  right: var(--pad); top: 16vh;
  width: min(27rem, 34vw);
  opacity: var(--col1, 0);
  transform: translateY(calc((1 - var(--col1, 0)) * 3vh));
  text-shadow: 0 1px 26px rgba(11,10,8,0.85), 0 0 3px rgba(11,10,8,0.55);
}
.sy-col::before {
  content: ""; position: absolute; inset: -8% -14% -10% -22%;
  background: radial-gradient(70% 62% at 62% 46%, rgba(11,10,8,0.62) 0%, rgba(11,10,8,0) 76%);
  z-index: -1; pointer-events: none;
}
/* a hairline that ties the column to the axis it is describing */
.sy-col::after {
  content: ""; position: absolute; left: -1.6rem; top: 0.35rem; bottom: 0.35rem;
  width: 1px; background: rgba(251,243,232,0.24);
}
.sy-col--2 {
  top: auto; bottom: 14vh; right: auto;
  left: calc(var(--pad) + 3vw);
  width: min(23rem, 30vw);
  opacity: var(--col2, 0);
  transform: translateY(calc((1 - var(--col2, 0)) * 3vh));
}
.sy-col > * + * { margin-top: var(--s3); }
.sy-tag { color: var(--accent); font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; }
.sy-lead {
  font: var(--v-monument);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  letter-spacing: -0.026em; line-height: 1.12;
  color: var(--on-dark);
  text-wrap: balance;
}

/* repetition, shown: a low band of the relief running off both edges */
.sy-relief {
  position: absolute; z-index: 2;
  left: -6vw; right: -6vw; bottom: 0; height: 34vh;
  opacity: calc(var(--relief, 0) * 0.55);
  transform: translate3d(calc(var(--relief, 0) * -4vw), calc((1 - var(--relief, 0)) * 8vh), 0);
  mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  pointer-events: none;
}
.sy-relief img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; filter: brightness(0.5) contrast(1.2); }

/* ═════════════════════════════════════════════════════════════
   02 · HARMONY — the monochord
   ═════════════════════════════════════════════════════════════ */
#stHarmony { background: var(--dark); }
.hm-lead {
  position: absolute; z-index: 4;
  left: var(--pad); top: 13vh;
  margin: 0; width: min(30rem, 46vw);
  font: var(--v-monument);
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  letter-spacing: -0.03em; line-height: 1.1;
  color: var(--on-dark);
  opacity: var(--hm-lead, 0);
  transform: translateY(calc((1 - var(--hm-lead, 0)) * 3vh));
}

.hm-string {
  position: absolute; z-index: 3;
  left: -8vw; right: -8vw; top: 50%;
  height: 30vh; transform: translateY(-50%);
  opacity: var(--hm-str, 0);
  cursor: ew-resize;
  touch-action: pan-y;
  outline: none;
}
.hm-string:focus-visible { outline: 1px solid var(--accent); outline-offset: 0; }
.hm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hm-wire {
  fill: none; stroke: #B8AE9E; stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(251,243,232,0.28));
}
.hm-nodes line { stroke: rgba(251,243,232,0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hm-nodes line.is-on { stroke: var(--accent); stroke-width: 1.6; }
.hm-nodes circle { fill: var(--accent); }

.hm-ratios {
  position: absolute; inset: 0;
  pointer-events: none;
}
/* the ratio is set at the division it belongs to, on the string */
.hm-ratios b {
  position: absolute; top: calc(50% + 30px);
  transform: translateX(-50%);
  font-weight: 300; font-family: "Public Sans", sans-serif;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  letter-spacing: 0.06em;
  color: rgba(251,243,232,0.52);
  opacity: 0; transition: opacity 500ms var(--ease), color 400ms var(--ease), font-size 300ms var(--ease);
  white-space: nowrap;
}
.hm-ratios b.is-in { opacity: 1; }
.hm-ratios b.is-on { color: var(--accent); font-size: clamp(1rem, 1.5vw, 1.35rem); }

.hm-readout {
  position: absolute; z-index: 5;
  left: var(--pad); bottom: 22vh;
  display: flex; flex-direction: column; gap: 0.3rem;
  opacity: var(--hm-str, 0);
}
.hm-ratio-big {
  font: var(--v-monument);
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hm-ratio-name {
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.hm-hint {
  position: absolute; z-index: 5;
  left: 50%; bottom: 12vh; transform: translateX(-50%);
  margin: 0;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--on-dark-2);
  opacity: calc(var(--hm-str, 0) * var(--hm-hint, 1));
  transition: opacity 500ms var(--ease);
}

/* the same ratios as proportion — nested, cropped by the right edge */
/* the same divisions again, as proportion rather than as interval:
   rectangles sharing one corner, cropped by the edge of the frame */
.hm-rect {
  position: absolute; z-index: 2;
  right: -12vw; top: 8vh;
  width: min(60vw, 46rem); height: auto;
  opacity: calc(var(--hm-rect, 0) * 0.95);
  overflow: visible;
}
.hm-rect rect {
  fill: none; stroke: rgba(251,243,232,0.30); stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: stroke 400ms var(--ease), stroke-width 400ms var(--ease);
}
.hm-rect rect.is-key { stroke: var(--accent); stroke-width: 1.8; }
.hm-rect path { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.hm-verse {
  position: absolute; z-index: 5;
  right: var(--pad); bottom: 20vh;
  width: min(24rem, 34vw); text-align: right;
  opacity: var(--hm-verse, 0);
  transform: translateY(calc((1 - var(--hm-verse, 0)) * 2.5vh));
}
.hm-verse p + p { margin-top: 0.35em; }

.hm-close {
  position: absolute; z-index: 6;
  left: 50%; top: 50%;
  width: min(38rem, 84vw); text-align: center;
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  letter-spacing: -0.028em; line-height: 1.16;
  color: var(--on-dark);
  opacity: var(--hm-close, 0);
  transform: translate(-50%, calc(-50% + (1 - var(--hm-close, 0)) * 2vh));
  text-wrap: balance;
}

/* ═════════════════════════════════════════════════════════════
   03 · VIBRATION
   ═════════════════════════════════════════════════════════════ */
#stVibration { background: var(--dark); }
.vb-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: var(--vb-field, 0);
}
.vb-plate {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: min(160vh, 130vw); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(calc(0.62 + var(--vb-plate, 0) * 0.38));
  opacity: var(--vb-plate, 0);
  clip-path: circle(calc(14% + var(--vb-plate, 0) * 36%) at 50% 50%);
  pointer-events: none;
}
.vb-plate img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.16) brightness(0.95); }

.vb-word {
  position: absolute; z-index: 4;
  right: -0.04em; top: 8vh;
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(3.2rem, 13.5vw, 12rem);
  letter-spacing: -0.05em; line-height: 0.86;
  color: var(--on-dark);
  opacity: calc(var(--vb-word, 0) * 0.93);
  pointer-events: none;
}
.vb-word .vch { display: inline-block; transform: translateY(var(--d, 0px)); will-change: transform; }

.vb-line {
  position: absolute; z-index: 5;
  left: var(--pad); bottom: 26vh;
  width: min(26rem, 40vw);
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.026em; line-height: 1.14;
  color: var(--on-dark);
  opacity: var(--vb-line, 0);
  transform: translateY(calc((1 - var(--vb-line, 0)) * 2.5vh));
}
.vb-mode {
  position: absolute; z-index: 5;
  left: var(--pad); bottom: 20vh;
  margin: 0;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  opacity: var(--vb-line, 0);
}
.vb-controls {
  position: absolute; z-index: 6;
  left: var(--pad); bottom: 12vh;
  display: flex; gap: 8px;
  opacity: var(--vb-line, 0);
}
.vb-btn {
  width: 34px; height: 34px; padding: 0;
  background: none; cursor: pointer;
  border: 1px solid rgba(251,243,232,0.28);
  color: var(--on-dark); font-size: 15px; line-height: 1;
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.vb-btn:hover, .vb-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.vb-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ═════════════════════════════════════════════════════════════
   04 · PERCEPTION
   ═════════════════════════════════════════════════════════════ */
#stPerception { background: #F1EDE6; }
.pc-room { position: absolute; inset: -6%; }
.pc-room img {
  width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; display: block;
  transform: scale(calc(1.18 - var(--p) * 0.10));
  filter: saturate(0.80) contrast(1.04) brightness(1.03);
  opacity: calc(0.62 + var(--pc-room, 0) * 0.34);
}
.pc-space {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  perspective: 1400px;
  outline: none;
  touch-action: pan-y;
  opacity: var(--pc-on, 0);
}
.pc-space:focus-visible { outline: 1px solid var(--accent); outline-offset: -14px; }
.pc-planes {
  position: relative;
  width: min(72vh, 58vw); aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--vx, 0) * 20deg)) rotateX(calc(var(--vy, 0) * -13deg));
}
.pc-plane {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  fill: none;
  stroke: #35302A; stroke-width: 1.5;
}
.pc-plane * { vector-effect: non-scaling-stroke; }
/* Each plane is displaced in proportion to its own distance, so the
   three only close into one construction from a single viewpoint --
   and that viewpoint is not the middle of the room. --dx / --dy are
   how far the visitor is from it. */
.pc-p1 {
  transform: translate3d(calc(var(--dx, 0) * -76px), calc(var(--dy, 0) * -50px), -130px) scale(1.16);
  opacity: 0.62;
}
.pc-p2 { transform: translateZ(0px); opacity: 0.82; }
.pc-p3 {
  transform: translate3d(calc(var(--dx, 0) * 76px), calc(var(--dy, 0) * 50px), 130px) scale(0.86);
  opacity: 0.92;
}
.pc-accent { stroke: var(--accent); }
.pc-hit { fill: var(--accent); stroke: none; opacity: var(--reg, 0); }
/* registration is a change of clarity, not a new element */
.pc-planes { filter: blur(calc((1 - var(--reg, 0)) * 0.6px)); }

.pc-line {
  position: absolute; z-index: 5;
  left: var(--pad); top: 16vh;
  margin: 0; width: min(26rem, 38vw);
  font: var(--v-monument);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.1;
  color: var(--ink);
  opacity: var(--pc-on, 0);
  transform: translateY(calc((1 - var(--pc-on, 0)) * 3vh));
}
.pc-sub {
  position: absolute; z-index: 5;
  left: var(--pad); top: calc(16vh + 8.5rem);
  margin: 0;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--graphite-2);
  opacity: var(--pc-on, 0);
}
.pc-readout {
  position: absolute; z-index: 5;
  right: var(--pad); bottom: 20vh;
  margin: 0;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent); font-variant-numeric: tabular-nums;
  opacity: var(--pc-on, 0);
}
.pc-align {
  position: absolute; z-index: 6;
  right: var(--pad); bottom: 13vh;
  padding: 0.7rem 1.1rem;
  background: none; border: 1px solid var(--grey-2); cursor: pointer;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--graphite);
  opacity: var(--pc-on, 0);
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.pc-align:hover, .pc-align:focus-visible { border-color: var(--accent); color: var(--accent); }
.pc-align:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ═════════════════════════════════════════════════════════════
   05 · EXPLORATIONS — the programme
   ═════════════════════════════════════════════════════════════ */
#stExplorations { background: var(--dark); }
.ex-word {
  position: absolute; z-index: 5;
  left: var(--pad); top: 12vh;
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(2.6rem, 8vw, 7rem);
  letter-spacing: -0.045em; line-height: 0.9;
  color: var(--on-dark);
  opacity: var(--ex-head, 0);
  transform: translateY(calc((1 - var(--ex-head, 0)) * 3vh));
  pointer-events: none;
}
.ex-what {
  position: absolute; z-index: 5;
  left: var(--pad); top: calc(12vh + clamp(3.1rem, 8.4vw, 7.4rem));
  width: min(25rem, 40vw); margin: 0;
  opacity: calc(var(--ex-head, 0) * 0.95);
  pointer-events: none;
}
.ex-field {
  position: absolute; inset: 0; z-index: 4;
  outline: none; touch-action: pan-y;
  opacity: var(--ex-field, 0);
}
.ex-field:focus-visible { outline: 1px solid var(--accent); outline-offset: -14px; }
.ex-plane {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--ex-x, 0) * 1px), calc(var(--ex-y, 0) * 1px), 0);
  transition: transform 700ms var(--ease);
}
.ex-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(to right, rgba(251,243,232,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(251,243,232,0.055) 1px, transparent 1px);
  background-size: 9vmin 9vmin;
  mask-image: radial-gradient(58% 58% at 50% 50%, #000 10%, transparent 82%);
  -webkit-mask-image: radial-gradient(58% 58% at 50% 50%, #000 10%, transparent 82%);
}
/* the constellation the Explorations sit in — drawn between the
   nodes themselves, so the programme reads as one connected world */
.ex-web { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.ex-web line { stroke: rgba(251,243,232,0.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ex-web line.is-live { stroke: rgba(255,77,0,0.34); }

/* Nothing here is hover-only: every Exploration states its number and
   its status from the first frame. Approaching one raises it. */
.ex-node {
  position: absolute;
  left: calc(var(--nx) * 1%); top: calc(var(--ny) * 1%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.6rem; margin: 0;
  background: none; border: 0; cursor: default;
  color: var(--on-dark-2);
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  transition: color 400ms var(--ease), transform 600ms var(--ease);
}
.ex-node .nd-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid currentColor;
  transition: width 500ms var(--ease), height 500ms var(--ease),
              background 500ms var(--ease), border-color 500ms var(--ease);
}
.ex-node .nd-label { white-space: nowrap; opacity: 0.9; }
.ex-node .nd-state {
  font-size: 0.5625rem; letter-spacing: 0.15em;
  opacity: 0.5; transition: opacity 400ms var(--ease);
}
.ex-node:hover, .ex-node:focus-visible, .ex-node[data-near="1"] { color: var(--on-dark); }
.ex-node:hover .nd-state, .ex-node:focus-visible .nd-state, .ex-node[data-near="1"] .nd-state { opacity: 1; }
.ex-node:hover .nd-dot, .ex-node[data-near="1"] .nd-dot { width: 13px; height: 13px; }
.ex-node:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

/* the one that is open */
.ex-node[data-open="1"] { cursor: pointer; color: var(--on-dark); }
.ex-node[data-open="1"] .nd-dot {
  width: 15px; height: 15px;
  background: var(--accent); border-color: var(--accent);
  animation: nd 4.5s ease-in-out infinite;
}
.ex-node[data-open="1"] .nd-label { font-size: 0.8125rem; opacity: 1; }
.ex-node[data-open="1"] .nd-state { opacity: 1; color: var(--accent); }
.ex-node[data-open="1"]:hover, .ex-node[data-open="1"][data-near="1"] { transform: translate(-50%, -50%) scale(1.07); }
@keyframes nd {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,0,0.42); }
  50%      { box-shadow: 0 0 0 14px rgba(255,77,0,0); }
}

/* how much of the programme is open, stated plainly */
.ex-count {
  position: absolute; z-index: 6;
  right: var(--pad); top: 13vh;
  margin: 0; text-align: right;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--on-dark-2);
  opacity: var(--ex-head, 0);
}
.ex-count b { display: block; color: var(--accent); font-weight: 400; }

.ex-ways {
  position: absolute; z-index: 6;
  right: var(--pad); bottom: 15vh;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.2em;
  margin: 0; text-align: right;
  font: var(--v-monument);
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  letter-spacing: -0.022em; line-height: 1.2;
  color: var(--on-dark);
}
.ex-ways .ways-a { opacity: calc(var(--ex-ways, 0) * 0.55); }
.ex-ways .ways-b { opacity: var(--ex-ways, 0); }

/* ═════════════════════════════════════════════════════════════
   06 · THE FIRST EXPLORATION — the threshold
   ═════════════════════════════════════════════════════════════ */
#stThreshold { background: var(--dark); display: grid; place-items: center; }
.fe-halo {
  position: absolute; left: 50%; top: 50%;
  width: 120vmax; height: 120vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(255,77,0,0.15) 0%, rgba(255,77,0,0) 42%);
  opacity: var(--fe-halo, 0);
  pointer-events: none;
}
.fe-tag {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  margin: 0 0 15rem;
  font: var(--v-structural); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-dark-2);
  opacity: var(--fe-tag, 0);
  transform: translateY(calc((1 - var(--fe-tag, 0)) * 1.6vh));
}
.fe-title {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  margin: 0 0 4.5rem;
  font: var(--v-monument);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  letter-spacing: -0.05em; line-height: 0.94;
  color: var(--on-dark);
  opacity: var(--fe-title, 0);
  transform: translateY(calc((1 - var(--fe-title, 0)) * 2.4vh)) scale(calc(0.985 + var(--fe-title, 0) * 0.015));
  white-space: nowrap;
}
.fe-enter {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  margin: 13rem 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem;
  font: var(--v-structural); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  opacity: var(--fe-enter, 0);
  transition: color 300ms var(--ease);
}
.fe-enter:focus-visible { outline: 1px solid var(--accent); outline-offset: 14px; }
.fe-ring { display: block; width: clamp(58px, 8vw, 84px); aspect-ratio: 1 / 1; }
.fe-ring svg { width: 100%; height: 100%; overflow: visible; }
.fe-ring circle {
  fill: none; stroke: var(--accent); stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 358; stroke-dashoffset: calc((1 - var(--fe-ring, 0)) * 358);
  transition: stroke-dashoffset 500ms var(--ease);
}
.fe-enter:hover .fe-ring circle, .fe-enter:focus-visible .fe-ring circle { stroke-width: 2; }
.fe-enter::after {
  /* the aperture the ring becomes */
  content: ""; position: absolute; left: 50%; top: calc(50% - 6.5rem);
  width: clamp(58px, 8vw, 84px); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(calc(1 + var(--fe-open, 0) * 34));
  border-radius: 50%;
  background: var(--ground);
  opacity: var(--fe-open, 0);
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════
   07 · THE YANTRA
   The approved plate, given the whole field. Nothing about the
   artwork or its interaction is changed here.
   ═════════════════════════════════════════════════════════════ */
#stYantra { background: var(--ground); }
.yt-glow {
  position: absolute; left: 34%; top: 50%;
  width: 130vmax; height: 130vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(255,236,214,0.55) 0%, rgba(255,236,214,0) 46%);
  pointer-events: none;
}
.yt-art {
  position: absolute; z-index: 3;
  left: 38%; top: 50%; transform: translate(-50%, -50%);
  opacity: var(--yt-on, 0);
}
#stYantra .yantra-plate {
  width: min(84vh, 52vw, 760px);
  transform: translate(var(--yp-x, 0px), var(--yp-y, 0px)) scale(calc(0.94 + var(--yt-on, 0) * 0.06));
}
#stYantra .yantra > .yantra-hint { display: none; }   /* the reading column carries it */

.yt-read {
  position: absolute; z-index: 4;
  right: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(24rem, 32vw);
  opacity: var(--yt-read, 0);
}
.yt-tag { margin: 0 0 var(--s4); color: var(--accent); font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; }
#stYantra .yantra-name {
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.14;
  min-height: 2.5em;
  transition: opacity 260ms var(--ease);
}
#stYantra .yantra-name.is-clearing { opacity: 0.16; }
#stYantra .yantra-name .yn-desc { display: block; font-size: 0.42em; letter-spacing: 0.19em; text-transform: uppercase; color: var(--graphite-2); margin-top: 0.9em; }
#stYantra #yantraHint { margin-top: var(--s4); text-align: left; }
.yt-depth { position: absolute; right: -2.5rem; top: 0; width: 10px; height: 220px; overflow: visible; }
.yt-depth rect { fill: var(--grey-2); }
.yt-depth rect.is-on { fill: var(--accent); }

/* ═════════════════════════════════════════════════════════════
   08 · HOW AN EXPLORATION WORKS — the four seconds
   ═════════════════════════════════════════════════════════════ */
/* Paper, not a texture effect: the generated grain is a genuine alpha
   overlay of graphite tooth on the page's own warm white, held far
   below the point where it reads as noise. */
#stProcess { background: var(--ground); }
#stProcess::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/generated/TEMP-paper-grain.png");
  background-size: 512px 512px;
  opacity: 0.45;
  pointer-events: none;
}
.pr-kicker {
  position: absolute; z-index: 5;
  left: var(--pad); top: 11vh; margin: 0;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--graphite-2);
  opacity: var(--pr-kick, 0);
}
/* the whole sequence, moving sideways as the page moves down */
.pr-strip {
  position: absolute; z-index: 4;
  left: 0; right: 0; top: 17vh;
  display: flex; gap: clamp(2rem, 5vw, 5rem);
  padding-left: 50vw;
  transform: translateX(calc(var(--strip, 0) * -1px));
  opacity: var(--pr-kick, 0);
  pointer-events: none;
  white-space: nowrap;
}
.pr-step {
  display: inline-flex; align-items: baseline; gap: 0.7rem;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--grey-2);
  transition: color 500ms var(--ease);
}
.pr-step i { font-style: normal; color: var(--grey-2); font-variant-numeric: tabular-nums; }
.pr-step--now { color: var(--ink); }
.pr-step--now i { color: var(--accent); }

.pr-visual {
  position: absolute; z-index: 2;
  right: -8vw; top: 0; width: min(62vw, 74vh); height: 100%;
  opacity: var(--pr-vis, 0);
  clip-path: inset(0 0 calc((1 - var(--pr-vis, 0)) * 22%) 0);
  pointer-events: none;
}
.pr-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 46%; display: block;
  transform: scale(calc(1.1 - var(--pr-vis, 0) * 0.06));
  filter: saturate(0.94);
}
.pr-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ground) 0%, rgba(250,248,245,0.55) 22%, rgba(250,248,245,0) 55%);
}
.pr-copy {
  position: absolute; z-index: 5;
  left: var(--pad); top: 34vh; width: min(22rem, 34vw);
  opacity: var(--pr-copy, 0);
  transform: translateY(calc((1 - var(--pr-copy, 0)) * 3vh));
}
.pr-tag { margin: 0 0 var(--s3); color: var(--accent); font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; }
.pr-line {
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.026em; line-height: 1.14;
}

/* the interval */
.four {
  position: absolute; z-index: 6;
  left: var(--pad); bottom: 11vh;
  width: min(46rem, 62vw);
  opacity: var(--four, 0);
  transform: translateY(calc((1 - var(--four, 0)) * 4vh));
}
.four-lead {
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.03em; line-height: 1;
}
.four-body { margin: var(--s3) 0 0; max-width: 30rem; }
.four-instrument {
  margin-top: var(--s4);
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
  flex-wrap: wrap;
}
.four-start {
  padding: 0.85rem 1.3rem;
  background: none; border: 1px solid var(--ink); cursor: pointer;
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--ink);
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.four-start:hover, .four-start:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.four-start:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.four-start[disabled] { opacity: 0.35; cursor: default; }
.four-start[disabled]:hover { background: none; color: var(--ink); border-color: var(--ink); }

.four-clock { position: relative; width: 62px; height: 62px; }
.four-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fc-track { fill: none; stroke: var(--grey); stroke-width: 2; }
.fc-run {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
  stroke-linecap: round;
}
.fc-count {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: var(--v-structural); letter-spacing: 0.06em;
  color: var(--graphite-2); font-variant-numeric: tabular-nums;
}
.four.is-running .fc-count { color: var(--accent); }

.four-swatches { display: flex; gap: 10px; }
.sw {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(20,19,17,0.18);
  background: var(--c); cursor: pointer;
  opacity: 0.32; transform: scale(0.9);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease), box-shadow 350ms var(--ease);
}
.four.is-running .sw { opacity: 1; transform: scale(1); }
.four.is-running .sw:hover { transform: scale(1.12); }
.sw:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.sw[data-chosen="1"] { opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 1px var(--ink); }

.four-status { margin: var(--s3) 0 0; font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; color: var(--graphite-2); }

.four-sheet {
  position: absolute; z-index: 5;
  right: 6vw; bottom: 16vh;
  width: min(30vw, 40vh); aspect-ratio: 1 / 1;
  opacity: var(--four, 0);
  transform: rotate(-1.4deg) translateY(calc((1 - var(--four, 0)) * 3vh));
  /* a real sheet lying on the table, not a diagram floating on the page */
  background-color: #FCFAF7;
  background-image: url("../img/generated/TEMP-paper-grain.png");
  background-size: 300px 300px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset,
              0 18px 44px rgba(20,19,17,0.18),
              0 2px 5px rgba(20,19,17,0.10);
  pointer-events: none;
}
.four-sheet canvas { width: 100%; height: 100%; display: block; }
.four-after { margin: var(--s3) 0 0; max-width: 32rem; opacity: 0; transition: opacity 700ms var(--ease); }
.four.is-done .four-after { opacity: 1; }

/* ═════════════════════════════════════════════════════════════
   end of proof
   ═════════════════════════════════════════════════════════════ */
.proof-end {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--ground);
}
.pe-inner { width: min(100% - (var(--pad) * 2), 44rem); text-align: center; }
.pe-tag { margin: 0; color: var(--accent); font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; }
.pe-line {
  margin: var(--s4) 0 0;
  font: var(--v-monument);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em; line-height: 1.14;
}
.pe-note {
  margin: var(--s5) 0 0;
  font: var(--v-structural); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--graphite-2); line-height: 2;
}

/* ═════════════════════════════════════════════════════════════
   MOBILE
   The same journey, recomposed: one column, the monumental type
   still cropped, every interaction reachable by touch.
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .rail { display: none; }
  .chapter-now { font-size: 0.625rem; letter-spacing: 0.16em; }
  .sound { font-size: 0.625rem; letter-spacing: 0.16em; }
  .sound-text { display: none; }
  .sound::after {
    content: attr(data-short);
    font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  }

  .sc-track--symbols      { --track: 420vh; }
  .sc-track--harmony      { --track: 380vh; }
  .sc-track--vibration    { --track: 360vh; }
  .sc-track--perception   { --track: 340vh; }
  .sc-track--explorations { --track: 330vh; }
  .sc-track--yantra       { --track: 320vh; }
  .sc-track--process      { --track: 430vh; }

  /* on a phone the reading has to hold the middle of the picture, so it
     brings a heavier ground with it */
  .sy-col { right: var(--pad); left: var(--pad); width: auto; top: 13vh; }
  .sy-col::before { inset: -6% -18% -8% -18%; background: linear-gradient(to bottom, rgba(11,10,8,0.86) 0%, rgba(11,10,8,0.72) 62%, rgba(11,10,8,0) 100%); }
  .sy-col::after { display: none; }
  .sy-col--2 { left: var(--pad); right: var(--pad); width: auto; bottom: 24vh; }
  .sy-lead { font-size: clamp(1.35rem, 5.6vw, 1.8rem); }
  .sy-relic { left: -22vw; width: 78vw; bottom: -4vh; }
  .sy-word { font-size: clamp(3.4rem, 26vw, 8rem); }
  .sy-measure-cap { display: none; }

  .hm-lead { width: auto; right: var(--pad); font-size: clamp(1.5rem, 6.4vw, 2rem); }
  /* the string sits above the middle so the closing line has a field of
     its own underneath rather than crossing the divisions */
  .hm-string { height: 30vh; left: -14vw; right: -14vw; top: 38%; }
  .hm-rect { right: -16vw; top: auto; bottom: 3vh; width: 58vw; }
  .hm-verse { left: var(--pad); right: var(--pad); width: auto; text-align: left; bottom: 26vh; }
  .hm-readout { bottom: 15vh; }
  .hm-ratio-big { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .hm-hint { bottom: 8vh; }
  .hm-close { top: 64%; width: min(30rem, 86vw); font-size: clamp(1.4rem, 6.2vw, 2rem); }
  /* at this width the divisions are close enough to touch, so they are
     staggered onto two lines rather than shrunk into illegibility */
  .hm-ratios b { font-size: 0.625rem; letter-spacing: 0.04em; }
  .hm-ratios b.is-on { font-size: 0.875rem; }
  .hm-ratios b:nth-child(even) { top: calc(50% + 48px); }

  .vb-word { font-size: clamp(2.6rem, 19vw, 6rem); top: 10vh; }
  .vb-line { width: auto; right: var(--pad); bottom: 30vh; font-size: clamp(1.35rem, 5.6vw, 1.8rem); }
  .vb-plate { width: 150vw; }

  .pc-planes { width: min(52vh, 76vw); }
  .pc-line { width: auto; right: var(--pad); font-size: clamp(1.4rem, 6vw, 2rem); }
  .pc-sub { top: calc(16vh + 7rem); }
  .pc-readout { left: var(--pad); right: auto; bottom: 21vh; }
  .pc-align { left: var(--pad); right: auto; bottom: 13vh; }

  .ex-word { font-size: clamp(2.2rem, 13vw, 4rem); }
  .ex-what { width: auto; right: var(--pad); top: calc(12vh + clamp(2.6rem, 13.4vw, 4.4rem)); }
  /* the count would sit on top of the headline at this width; the field
     itself already states which Explorations are open */
  .ex-count { display: none; }
  .ex-node .nd-label { font-size: 0.625rem; }
  .ex-node[data-open="1"] .nd-label { font-size: 0.75rem; }
  .ex-ways { left: var(--pad); right: var(--pad); text-align: left; align-items: flex-start; bottom: 11vh; }

  .fe-tag { margin-bottom: 11rem; }
  .fe-title { margin-bottom: 3.4rem; font-size: clamp(2.2rem, 13vw, 4rem); }
  .fe-enter { margin-top: 10rem; }

  .yt-art { left: 50%; top: 40%; }
  #stYantra .yantra-plate { width: min(74vw, 44vh); }
  .yt-read { right: var(--pad); left: var(--pad); width: auto; top: auto; bottom: 8vh; transform: none; text-align: center; }
  #stYantra .yantra-name { font-size: clamp(1.4rem, 6.4vw, 2rem); min-height: 3.6em; }
  #stYantra #yantraHint { text-align: center; }
  .yt-depth { display: none; }
  .yt-glow { left: 50%; }

  .pr-visual { right: -20vw; width: 92vw; opacity: calc(var(--pr-vis, 0) * 0.5); }
  .pr-copy { width: auto; right: var(--pad); top: 28vh; }
  .four { left: var(--pad); right: var(--pad); width: auto; bottom: 7vh; }
  .four-lead { font-size: clamp(1.5rem, 7vw, 2rem); }
  .four-sheet { width: 34vw; right: var(--pad); bottom: auto; top: 24vh; }
  .four-instrument { gap: 0.9rem; }
  .four-swatches { gap: 8px; }
  .sw { width: 30px; height: 30px; }
}

/* ═════════════════════════════════════════════════════════════
   REDUCED MOTION
   Not "everything switched off with empty scenes left behind".
   Every chapter becomes a complete, composed, static reading in
   the correct order, with the same imagery, the same hierarchy
   and every interaction still operable — only the travel is gone.
   ═════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .sc-track { height: auto !important; }
  .sc-stage {
    position: static; height: auto; min-height: 0; overflow: visible;
    padding: var(--s7) var(--pad);
    display: grid; grid-template-columns: minmax(0, 1fr);
    justify-items: start; row-gap: var(--s5);
  }
  .sc-stage > * {
    position: static !important; inset: auto !important;
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; -webkit-clip-path: none !important;
    filter: none !important; mix-blend-mode: normal !important;
    width: auto; max-width: min(100%, 46rem); margin-left: 0; margin-right: 0;
  }
  .sc-stage img { transform: none !important; filter: none !important; }

  /* pictures become plain, complete, full-measure images */
  .sy-aperture, .sy-relic, .sy-relief, .vb-plate, .pc-room, .pr-visual, .four-sheet {
    width: 100%; max-width: 46rem; height: auto; aspect-ratio: 16 / 10;
  }
  .sy-aperture .sy-arch { position: static; inset: auto; }
  .sy-aperture img, .sy-relic img, .sy-relief img, .vb-plate img, .pc-room img, .pr-visual img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .sy-grade, .yt-glow, .fe-halo, .ex-grid, .sy-measure, .sy-measure-cap { display: none; }
  .pr-visual::after { display: none; }
  /* the aperture is a transition; there is no transition here */
  .fe-enter::after { display: none; }
  .yt-depth { position: static !important; margin-top: var(--s4); }
  .sy-col::before, .sy-col::after { display: none; }
  .sy-col { text-shadow: none; }

  .sy-word, .vb-word, .ex-word, .fe-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem); line-height: 1;
    letter-spacing: -0.04em;
  }
  .sy-word span::after { display: none; }
  .sc[data-tone="dark"] .sc-stage { padding-block: var(--s7); }

  /* the monochord and the planes stay usable, held still */
  .hm-string { position: relative !important; height: 26vh; width: 100%; max-width: 46rem; cursor: pointer; }
  .hm-ratios b { opacity: 1 !important; }
  /* values that live on descendants, so the blanket reset above cannot
     reach them: the content must be present, not merely un-animated */
  .ex-ways span { opacity: 1 !important; }
  .fe-ring circle { stroke-dashoffset: 0 !important; }
  .pc-space { display: block; perspective: none; height: auto; }
  .pc-planes { width: min(26rem, 80vw); aspect-ratio: 1/1; transform: none !important; filter: none !important; }
  .pc-plane { transform: none !important; opacity: 0.9 !important; }
  .pc-p1, .pc-p3 { position: absolute; }
  .pc-hit { opacity: 1 !important; }

  .ex-field { position: relative !important; height: 62vh; width: 100%; max-width: 46rem; }
  .ex-plane { position: absolute; inset: 0; }
  .ex-node { position: absolute; }
  .ex-node .nd-label, .ex-node .nd-state { opacity: 1; }

  .four { position: relative !important; }
  .four-sheet { position: static !important; aspect-ratio: 1 / 1; max-width: 22rem; margin-top: var(--s4); }
  .four-after { opacity: 1 !important; }
  .pr-strip { position: static; padding-left: 0; flex-wrap: wrap; white-space: normal; gap: var(--s3); }

  .rail { display: none; }
  .chassis-id, .chapter-now { opacity: 1 !important; }
  .ex-node[data-open="1"] .nd-dot { animation: none; }
  .sound[aria-pressed="true"] .sound-bars i { animation: none; height: 7px; }
}
