/* ============================================================
   Coded Mind — Desktop Foundation
   Locked constants. Do not alter without approval.
   ============================================================ */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/PublicSans-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/PublicSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Approved, and already in the brand folder. The italic is what gives
   the editorial voice a register of its own without adding a face. */
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/PublicSans-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* Hero display only. Montserrat Medium was tested against Public Sans
   Medium at the same size in the orange field: its circular bowls and
   round terminals answer the Mark's geometry, where Public Sans reads
   flatter and more grotesque. One weight, self-hosted, SIL OFL 1.1,
   licence kept beside the file. Public Sans remains the typeface of
   the entire rest of the site. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── TEMPORARY HANDWRITTEN PLACEHOLDER ───────────────────────────
   There is no authentic handwriting anywhere in the Coded Mind
   Project. Searched the whole tree by name, and looked at all 130
   deck pages, the watermark, the reflection worksheet, the layer
   cards, the concept visuals and the New Images folder. Nothing.

   So this is a stand-in, and it is named so it cannot be mistaken
   for anything else: Caveat, SIL Open Font License 1.1, licence text
   kept beside it. Gabrielle's own hand should replace it, captured as
   an image or SVG rather than as a font. Until then the handwritten
   voice appears exactly once, on the making scene. */
@font-face {
  font-family: "PLACEHOLDER Hand";
  src: url("../fonts/PLACEHOLDER-Caveat-variable.ttf") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* ── locked palette ────────────────────────────────────── */
  --ground:     #FAF8F5;   /* warm white */
  --ink:        #141311;   /* near black */
  --graphite:   #5A5751;
  --graphite-2: #767068;   /* tertiary — 4.6:1, labels only */
  --grey:       #E6E2DB;   /* light grey hairline */
  --grey-2:     #CFC9C0;   /* drawn line */
  --accent:     #FF4D00;   /* a mark, never a fill */

  /* ── type scale ────────────────────────────────────────── */
  --t-label:   0.75rem;
  --t-small:   0.875rem;
  --t-body:    1.0625rem;
  --t-lead:    1.25rem;
  --t-sub:     1.375rem;
  --t-section: 1.6875rem;
  --t-display: clamp(2.25rem, 1.5rem + 2.1vw, 3.125rem);

  /* ── spacing · Fibonacci ───────────────────────────────── */
  --s1: 8px;  --s2: 13px; --s3: 21px; --s4: 34px;
  --s5: 55px; --s6: 89px; --s7: 144px;

  /* ── structure ─────────────────────────────────────────── */
  /* ── the four voices ───────────────────────────────────────
     One family, four registers. Monumental proposes, editorial
     explains, structural orients, and the hand -- rarely -- says
     something a person would say. */
  --v-monument: 300 clamp(3rem, 9vw, 8.5rem)/0.9 "Public Sans", sans-serif;
  --v-editorial: 300 clamp(1.0625rem, 1.35vw, 1.25rem)/1.62 "Public Sans", sans-serif;
  --v-structural: 400 0.6875rem/1.4 "Public Sans", sans-serif;
  --v-hand: 500 clamp(1.75rem, 3.6vw, 3.1rem)/1.2 "PLACEHOLDER Hand", cursive;

  --hdr: 0;
  --measure: 34rem;
  --gutter-col: 9.5rem;
  --live: 72rem;
  --pad: clamp(1.75rem, 5vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── the lit sheet ────────────────────────────────────────────
   A real sheet under a real window is not one flat value. One
   distant source, upper-left, established once here and obeyed by
   everything else on the page: the rules and the mark's shadow. The gradient is fixed to the viewport, so the light stays
   still while the content moves past it -- the way light behaves on
   a physical surface. Total range is under 3% luminance: felt, not
   seen. The shadow corner drops least in blue, so it cools very
   slightly -- colour arriving as a consequence of light, not as
   decoration. This is not an ambient background; remove it and the
   page stops being a material. */
html {
  background-color: var(--ground);
  background-image: linear-gradient(148deg, #FDFCFA 0%, #FAF8F5 45%, #F3F1EF 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ── the one structure: a gutter names, a measure explains ─ */
.wrap { width: min(100% - (var(--pad) * 2), var(--live)); margin-inline: auto; }
.row {
  display: grid;
  grid-template-columns: var(--gutter-col) minmax(0, var(--measure));
  column-gap: var(--s5);
  align-items: start;
}
/* Hairlines catch the light. A drawn line under a raking source is
   not one value along its length: it opens where the light falls
   (upper-left) and closes as it runs into shadow. Same 1px, same
   grey at its midpoint -- only the ends differ. */
.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background-image: linear-gradient(90deg, #EEEAE3 0%, #E6E2DB 34%, #DFDBD3 100%);
}
.item, .way, .exploration, .researched, .foot, .list .item:last-child {
  border-image: linear-gradient(90deg, #EEEAE3 0%, #E6E2DB 34%, #DFDBD3 100%) 1;
}

.label {
  margin: 0;
  font-size: var(--t-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--graphite-2);
  line-height: 1.9;
}
.dim { color: var(--graphite); }
.stack > * + * { margin-top: var(--s3); }

/* ── identity ────────────────────────────────────────────── */
.identity { display: flex; align-items: center; gap: var(--s2); padding-top: var(--s5); }
.identity img { width: 24px; height: 24px; display: block; }
.identity .name {
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── hero: text left, construction right, one composition ── */
/* Sits higher than centre with more room beneath it: the space
   below is what pulls the eye down the page, rather than a band of
   vacancy above holding it back. */
.hero {
  padding: clamp(var(--s5), 5vw, var(--s6)) 0 clamp(var(--s6), 9vw, 9rem);
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
}

.statement {
  margin: 0;
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.021em;
  text-wrap: balance;
}
.standfirst {
  margin: var(--s4) 0 0;
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.55;
  color: var(--graphite);
  text-wrap: pretty;
}

/* ── the construction ─────────────────────────────────────────
   Nine arcs tiling one circle at radius 118, concentric with the
   mark. --reg runs 0 (at rest) to 1 (resolved) and is set by
   register.js from pointer proximity. Each arc carries its own
   radial offset --o; at --reg 0 they sit at nine different radii
   and read as a stepped spiral of fragments, at --reg 1 they all
   arrive at the same radius and the circle closes.
   Scaling is about the mark's own centre, so the mark is what the
   whole construction resolves around. */
.figure { position: relative; display: flex; justify-content: center; --reg: 0; }
.figure svg { width: min(100%, 36rem); height: auto; display: block; overflow: visible; }

.arc {
  fill: none;
  stroke: #C2BBB1;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: 280px 160px;
  transform: scale(calc(1 + (1 - var(--reg)) * var(--o)));
  /* Fragments read faintly at rest and firm up as they resolve --
     the same line, seen more clearly, never a different line.

     --d is depth. An arc far from the resolved radius is further
     from the plane the construction will settle into, so it reads
     softer, the way a thing further back reads softer. At rest the
     spiral genuinely recedes; resolved, every arc arrives in one
     plane and the depth disappears with the offset that caused it.
     This is focus describing a spatial relationship, not a fade. */
  opacity: calc(0.36 + var(--reg) * 0.64 - (1 - var(--reg)) * var(--d) * 0.20);
}
.arc:nth-child(1) { --o: -0.3051; --d: 1;    }
.arc:nth-child(2) { --o: -0.2288; --d: 0.75; }
.arc:nth-child(3) { --o: -0.1525; --d: 0.5;  }
.arc:nth-child(4) { --o: -0.0763; --d: 0.25; }
.arc:nth-child(5) { --o:  0.0000; --d: 0;    }
.arc:nth-child(6) { --o:  0.0763; --d: 0.25; }
.arc:nth-child(7) { --o:  0.1525; --d: 0.5;  }
.arc:nth-child(8) { --o:  0.2288; --d: 0.75; }
.arc:nth-child(9) { --o:  0.3051; --d: 1;    }

.figure .plate {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(19.6%, 7rem);
}
/* A tight contact shadow only. The mark sits IN the plane of the
   construction, not floating above it -- a wide soft shadow would
   detach it and make it read as a badge. */
.figure .plate img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 1px 2px rgba(20, 19, 17, 0.16));
}

/* Touch and other no-hover contexts cannot approach, so they are
   given the resolved construction rather than a state they can
   never reach. */
@media (hover: none) {
  .figure { --reg: 0.88; }
}


/* ── sections ────────────────────────────────────────────── */
.section { padding-top: var(--s6); }
.section > .rule + .row { margin-top: var(--s5); }
h2 {
  margin: var(--s3) 0 0;
  font-size: var(--t-section);
  font-weight: 300;
  letter-spacing: -0.014em;
  line-height: 1.2;
  text-wrap: balance;
}
h3 { margin: 0; font-weight: 400; }

/* ── list rows: ideas, journal ───────────────────────────── */
.list { margin-top: var(--s5); }
.item {
  display: grid;
  grid-template-columns: var(--gutter-col) minmax(0, var(--measure));
  column-gap: var(--s5);
  padding: var(--s4) 0;
  border-top: 1px solid var(--grey);
}
.list .item:last-child { border-bottom: 1px solid var(--grey); }
.item h3 { font-size: var(--t-body); line-height: 1.6; color: var(--ink); }
.item p { color: var(--graphite); }

/* ── explorations ─────────────────────────────────────────────
   The passage above gathers the orange into a single line. This
   section opens on that line: same colour, same weight, arriving
   as the thing that introduces the first exploration. */
.exploration { margin-top: var(--s5); }
.worlds { margin-top: var(--s6); }
.worlds h2 { margin: 0; }
.exploration-open { display: flex; align-items: center; gap: var(--s3); }
.ex-line {
  flex: 0 0 auto;
  width: clamp(2.5rem, 7vw, 5.5rem);
  height: 1px;
  background: var(--accent);
}
.exploration-open .label { line-height: 1; }

/* Artwork and reading column side by side, optically centred on
   each other. Vertically stacking them is what produced an
   oversized diagram followed by a block of document text; beside
   each other, the name changing sits at reading height and the
   space between artwork and copy closes. */
.exploration-body {
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 24rem);
  column-gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: center;
}
.exploration h3 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.028em;
  line-height: 1.05;
}
.facts { margin-top: var(--s4); color: var(--graphite); font-size: var(--t-small); }
.facts p + p { margin-top: var(--s1); }
.researched { margin-top: var(--s6); border-top: 1px solid var(--grey); padding-top: var(--s4); }

/* ── One layer at a time ──────────────────────────────────────
   The ten approved Layer Diagrams, stacked and cross-faded. The
   artwork is never scaled, rotated or recoloured -- only which
   frame is opaque changes, so the yantra itself stays perfectly
   still and only the gold appears to move inward.
   Source art is 1024px square; the plate is capped at 520px so it
   never renders past its own resolution on a 2x display. */
.yantra-line { margin-top: var(--s3); color: var(--graphite); font-size: var(--t-small); }

.yantra {
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  /* pan-y keeps normal vertical page scrolling available on touch
     while horizontal drags drive the layers */
  touch-action: pan-y;
}
.yantra:focus-visible { outline: 1px solid var(--accent); outline-offset: var(--s3); border-radius: 2px; }

.yantra-plate {
  position: relative;
  width: min(100%, 46vh, 420px);
  aspect-ratio: 1 / 1;   /* reserves the box up front: no layout shift */
  cursor: crosshair;
  /* every layer moves together as one rigid unit, so nothing loses
     registration -- mouse/pen only, set in layers.js; a short ease
     damps it rather than tracking the pointer instantly */
  transform: translate(var(--yp-x, 0px), var(--yp-y, 0px));
  transition: transform 220ms cubic-bezier(.22,.9,.28,1);
}
.yantra-plate .yl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 380ms cubic-bezier(.16,.84,.36,1);
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.yantra-plate .yl.is-on { opacity: 1; }

/* The Bindu, website-only. Measured from the Trikona's own geometry
   (incentre 50.000% / 49.881% of the plate, inradius 12.8px on the
   1024px original) and set at one third of that inradius, because a
   bindu is a point rather than a disc. It is an overlay, never a
   change to the artwork: the approved BINDU frame has no highlight
   in it to recolour. */
.yantra-bindu {
  position: absolute;
  left: 50.000%;
  top: 49.881%;
  width: 0.8323%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 380ms cubic-bezier(.16,.84,.36,1);
  pointer-events: none;
}
.yantra-plate.is-bindu .yantra-bindu { opacity: 1; }
/* a restrained pulse -- concentration, not a heartbeat or a
   notification dot -- and only while the section is actually on
   screen and the Bindu itself is showing. */
@keyframes bindu-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.05); opacity: 0.86; }
}
#yantra.is-visible .yantra-plate.is-bindu .yantra-bindu {
  animation: bindu-pulse 4s ease-in-out infinite;
}

/* The live layer name is the largest text in the reading column,
   because the name changing is the event. It holds two lines of
   its own height so no name ever nudges the page. */
.yantra-name {
  margin-top: var(--s4);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  min-height: 2.7em;
}
.yantra-name .yn-desc { color: var(--graphite-2); }

.yantra-hint {
  margin-top: var(--s2);
  font-size: var(--t-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--graphite-2);
  text-align: center;
  transition: opacity 400ms cubic-bezier(.16,.84,.36,1);
}
/* the invitation withdraws once it has been accepted */
.yantra.is-engaged .yantra-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .yantra-plate .yl { transition: opacity 1ms; }
  .yantra-plate { transform: none !important; transition: none; }
  .yantra-bindu { transition: none; animation: none !important; }
  .yantra-hint { transition: none; }
}

@media (max-width: 900px) {
  /* stacked, but tight: the copy follows the artwork immediately */
  .exploration-body { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }
  .exploration-copy { max-width: var(--measure); }
  .yantra-plate { width: min(100%, 380px); cursor: default; }
  .yantra-name { min-height: 0; }
}

/* ── two ways ────────────────────────────────────────────── */
.ways {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
  max-width: 52rem;
}
.way { border-top: 1px solid var(--grey); padding-top: var(--s4); }
.way h3 { font-size: var(--t-sub); letter-spacing: -0.008em; margin: var(--s2) 0 var(--s3); }
.way p { color: var(--graphite); }

.action { margin-top: var(--s4); }
.flush { margin-top: 0; }
.foot-line { margin-top: var(--s3); }

/* ── links ───────────────────────────────────────────────── */
.link {
  border-bottom: 1px solid var(--grey-2);
  padding-bottom: 2px;
  transition: color 200ms cubic-bezier(.16,.84,.36,1),
              border-color 200ms cubic-bezier(.16,.84,.36,1);
}
.link:hover { color: var(--graphite); border-color: var(--graphite-2); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 1px; }

/* ── footer ──────────────────────────────────────────────── */
.foot { margin-top: var(--s6); padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--grey); }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.foot img { width: 20px; height: 20px; display: block; }
.foot nav { display: flex; gap: var(--s4); flex-wrap: wrap; }

/* ── arrival: one motion, once, ending still ─────────────── */
.settle { opacity: 0; transform: translateY(6px); }
.loaded .settle {
  opacity: 1; transform: none;
  transition: opacity 1000ms cubic-bezier(.16,.84,.36,1),
              transform 1000ms cubic-bezier(.16,.84,.36,1);
}
.loaded .settle.d1 { transition-delay: 140ms; }
.loaded .settle.d2 { transition-delay: 280ms; }


@media (prefers-reduced-motion: reduce) {
  .settle, .loaded .settle { opacity: 1; transform: none; transition: none; }
}

/* ── narrow: legible, not yet designed ───────────────────── */
@media (max-width: 900px) {
  :root { --t-body: 1rem; --s7: 89px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  /* the headline stays the first thing read at every width */
  .row, .item { grid-template-columns: minmax(0, 1fr); row-gap: var(--s2); }
  .ways { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}


/* ══ The typographic system ══════════════════════════════════════
   Four voices, one family. Public Sans stays the master face; the
   only outside face is the clearly-named temporary handwriting
   placeholder, used once.

   The rule that holds the whole journey together: at every resting
   point exactly one thing is dominant. Monumental words never sit at
   similar weight beside each other -- one is always leaving. ══════ */

.t-monument {
  font: var(--v-monument);
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.t-editorial {
  font: var(--v-editorial);
  margin: 0;
  max-width: 30rem;
  text-wrap: pretty;
}
.t-editorial em { font-style: italic; }
.t-structural {
  font: var(--v-structural);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin: 0;
}
/* Rare, and never load-bearing: no navigation, no claims, no
   headings. One human sentence, once. */
.t-hand {
  font: var(--v-hand);
  letter-spacing: 0.005em;
  margin: 0;
}

/* ── Formation ── the headline arrives monumental, then reduces ───
   It does not fade into a static column. It comes in far larger than
   the composition it ends in and settles, so the first thing the page
   does is change scale in front of you. --w is its arrival, --q its
   reduction as the visitor keeps going. */
.formation-word .statement {
  font: var(--v-monument);
  font-size: clamp(2.4rem, calc(7.4vw - var(--q, 0) * 3.1vw), 6.2rem);
  letter-spacing: -0.042em;
  line-height: 0.96;
  transform: translateY(calc(var(--q, 0) * -4vh));
  transition: none;
}
.formation-word .standfirst {
  font: var(--v-editorial);
  font-style: italic;
  color: var(--graphite);
  max-width: 32rem;
  margin-inline: auto;
  opacity: calc(var(--w) * var(--w) * (1 - var(--q, 0) * 0.75));
}
.inward { font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; }

/* ── Making ── the formal voice goes quiet and a hand speaks ────── */
.hand-note {
  position: absolute; z-index: 2;
  left: 8vw; bottom: 24vh;
  color: #403C36;
  opacity: calc(var(--s) * 2.2);
  transform: rotate(-2.6deg) translateY(calc((1 - var(--s)) * 14px));
  pointer-events: none;
}
/* It should look found on the surface rather than pasted over it:
   multiply lets the paper's tone and grain come through the stroke
   the way graphite sits in the fibre. */
.hand-note .t-hand { mix-blend-mode: multiply; }
.scene-making .scene-word { opacity: calc(var(--s) * 1.6); }

/* ── Sri Yantra ── monumental, then the live name in the same voice ─ */
.exploration h3 {
  font: var(--v-monument);
  font-size: clamp(2.5rem, 6.2vw, 5.5rem);
  letter-spacing: -0.038em;
}
.yantra-name {
  font: var(--v-monument);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: var(--s4);
  min-height: 2.6em;
}
.yantra-name .yn-desc { color: var(--graphite-2); font-size: 0.82em; }
.yantra-line, .facts { font: var(--v-editorial); font-size: var(--t-small); color: var(--graphite); }
.yantra-line { font-style: italic; margin-top: var(--s3); }
.facts { margin-top: var(--s4); }
.exploration-open .label, .yantra-hint, .scene-label { font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase; }

@media (max-width: 760px) {
  /* recomposed, not shrunk: the monumental words stay large, the
     occlusion is dropped where it would cost readability */
  .scene-fore { display: none; }
  .scene-structure .scene-monument { left: var(--pad); top: 18vh; font-size: 17vw; opacity: 0.22; transform: none; }
  .scene-vibration .scene-monument { font-size: 16vw; }
  .scene-light .scene-monument { left: var(--pad); top: 26vh; font-size: 17vw; }
  .hand-note { right: auto; left: var(--pad); top: 16vh; }
  .hand-note .t-hand { font-size: 1.5rem; }
  .formation-word .statement { font-size: clamp(2rem, 9.5vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  /* the same hierarchy, held still: every word at its resolved scale,
     the occlusion kept, nothing depending on movement to be read */
  .scene-monument { opacity: 0.30 !important; transform: none !important; }
  .scene-vibration .scene-monument { opacity: 0.85 !important; }
  .scene-light .scene-monument { color: var(--accent) !important; opacity: 1 !important; }
  .scene-light .scene-monument::before,
  .scene-light .scene-monument::after { opacity: 0 !important; }
  .hand-note { opacity: 1 !important; transform: rotate(-3.4deg) !important; }
  .formation-word .statement { font-size: clamp(2.4rem, 6vw, 4.4rem); transform: none; }
}

/* ══ The expedition — one continuous field ═══════════════════════
   Seven layers share a single pinned stage. Nothing is stacked; each
   handover uses geometry the two images already have in common, and
   every one of them runs backwards as cleanly as forwards because
   they are all pure functions of one scroll value.

   --p   progress through the whole expedition, 0 to 1
   --aX  each layer's own presence and shaping, set by formation.js
   TEMPORARY PLACEHOLDER IMAGERY throughout. ═════════════════════ */

.expedition { position: relative; }
.exp-scroll { height: 1340vh; position: relative; }
.exp-stage {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
  background: var(--ground);
}
.exp-backdrop {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: #0B0A08;
  opacity: var(--exp-backdrop, 1);
}
.lay { position: absolute; inset: 0; will-change: transform, opacity, clip-path; }
.lay picture, .lay img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lay img { object-fit: cover; }

/* 1 · ARCHITECTURE arrives through the Mark's own aperture. The disc
   the Mark just closed opens again, and the space is behind it. */
.lay-arch {
  clip-path: circle(calc(var(--arch-r, 150) * 1%) at 50% 50%);
  opacity: var(--arch-o, 1);
}
/* base scale 1.00, matching the aperture's plain `cover` framing exactly
   at the handoff -- any zoom happens only after, as --arch-z advances */
.lay-arch img { object-position: 50% 42%; transform: scale(calc(1.00 + var(--arch-z, 0) * 0.16)); }

/* ── The harmony essay ── five held moments between Symbols' departure
   and Vibration's arrival. Each layer carries its own cut, drawn from
   an architectural relationship rather than a rectangle; each holds
   still through its reading and settles only slightly as it arrives. */
.lay-es { pointer-events: none; }

/* 1 · Harmony -- one exceptional image, not the Symbols architecture
   repeated: monumental columns, the same feathered aperture treatment
   so the field still opens the same way it always has. */
.lay-es1 {
  opacity: var(--es1, 0);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 58%, transparent 92%);
          mask-image: radial-gradient(circle at 50% 42%, #000 58%, transparent 92%);
}
.lay-es1 img { object-position: 50% 30%; transform: scale(1.05); }

/* 2 · Rhythm -- a true architectural arch, cropped monumental and
   held in open ground rather than filling the frame. */
.lay-es2 {
  opacity: var(--es2, 0);
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: min(8vw, 6rem);
}
.lay-es2 .es-arch {
  position: relative;
  width: min(48vw, 40rem); height: min(76vh, 52rem);
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 24% 24% 0 0;
  box-shadow: 0 50px 130px rgba(10, 8, 6, 0.4);
  transform: scale(calc(1 + var(--es2-mask, 0) * 0.04)) translateY(calc((1 - var(--es2-mask, 0)) * 18px));
}
.lay-es2 .es-arch img { object-position: 50% 36%; }

/* 3 · Across centuries -- a real architectural threshold (an isolated
   arch, clean-cut, no rectangle) in the foreground, a monochrome aerial
   courtyard pattern receding behind it at a shallower depth. Neither
   is the Sri Yantra: that repeat is exactly what this pass removes. */
.lay-es3 {
  opacity: var(--es3, 0);
  display: flex; align-items: center; justify-content: center;
}
.es-court {
  position: absolute; inset: -6% -4%; z-index: 0;
  opacity: calc(var(--es3-mask, 0) * 0.48);
  transform: scale(calc(1.1 - var(--es3-mask, 0) * 0.04));
}
.es-court img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  filter: saturate(0.9);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 90%);
          mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 90%);
}
.es-arch2 {
  position: relative; z-index: 1;
  width: min(26vw, 21rem);
  filter: drop-shadow(0 45px 90px rgba(10, 8, 6, 0.38));
  transform: scale(calc(0.9 + var(--es3-mask, 0) * 0.1));
}
.es-arch2 img { display: block; width: 100%; height: auto; }

/* 4 · Nature/matter -- an axial slit, tall and intimate, the one
   moment White Desert's language calls for restraint rather than
   scale. A contained box rather than a full-bleed mask, so its size
   can be governed cleanly at every breakpoint. A small colour field
   sits beside it, standing in directly for the closing line about one
   colour changing beside another -- meaningful scale instead of one
   small image floating alone in a mostly empty frame. */
.lay-es4 {
  opacity: var(--es4, 0);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: min(8vw, 7rem); gap: clamp(var(--s4), 3vw, var(--s6));
}
.lay-es4 .es-slit {
  position: relative;
  width: min(22vw, 17rem); height: min(72vh, 48rem);
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(10, 8, 6, 0.32);
  transform: scale(calc(1 + var(--es4-mask, 0) * 0.035));
}
.lay-es4 .es-slit img { object-position: 50% 46%; transform: scale(calc(1.14 + var(--es4-mask, 0) * 0.05)); }
.es-colourfield {
  position: relative; align-self: center;
  width: min(11vw, 8.5rem); height: min(34vh, 22rem);
  overflow: hidden; border-radius: 2px;
  box-shadow: 0 30px 70px rgba(10, 8, 6, 0.26);
  opacity: calc(var(--es4-mask, 0) * 0.92);
  transform: translateY(calc((1 - var(--es4-mask, 0)) * 14px));
}
.es-colourfield img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* 5 · Invisible order, made a culmination: the approved temporary
   video, geometry/material/light converging on paper, replacing the
   earlier static cymatics image in the same radiating-segment mask. */
.lay-es5 {
  opacity: var(--es5, 0);
  clip-path: polygon(48% 34%, -12% 128%, 108% 128%);
}
.es-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 40%;
  transform: scale(calc(1.14 + var(--es5-mask, 0) * 0.08));
  background: #ECE6D8;
}

/* ── the essay's own copy, one movement at a time ────────────────── */
.es-text {
  position: absolute; z-index: 4; margin: 0; pointer-events: none;
  width: min(100% - (var(--pad) * 2), 32rem);
}
.es-text p { margin: 0; color: var(--ink); }
.es-text p + p { margin-top: 0.6em; }

.es-t1 {
  left: 50%; bottom: 16vh; transform: translateX(-50%);
  width: min(100% - (var(--pad) * 2), 46rem); text-align: center;
  opacity: var(--et1, 0);
}
.es-lead {
  font: var(--v-monument); font-size: clamp(2rem, 4.6vw, 4rem);
  letter-spacing: -0.035em; line-height: 1.08; color: var(--ink);
  text-wrap: balance;
}

.es-t2 {
  right: var(--pad); top: 50%; transform: translateY(-50%);
  text-align: right; opacity: var(--et2, 0);
}
.es-t2 .t-editorial { color: var(--graphite); }
.es-t2 .t-editorial:nth-child(1) { color: var(--ink); }

.es-t3 {
  left: var(--pad); bottom: 14vh;
  opacity: var(--et3, 0);
}
.es-t3 .t-editorial { color: var(--graphite); }

.es-t4 {
  left: var(--pad); top: 50%; transform: translateY(-50%);
  opacity: var(--et4, 0);
}
.es-t4-lead { color: var(--ink) !important; margin-bottom: 0.2em; }
.es-t4 .t-editorial:not(.es-t4-lead) { color: var(--graphite); font-size: 0.95em; }

.es-t5 {
  /* the radiating wedge grows from a point at ~34% down and outward,
     so the band above it stays clear across the full width -- keeping
     the text there rather than at the bottom avoids the one movement
     whose image is not confined to a corner. */
  right: var(--pad); top: 11vh; text-align: right;
  opacity: var(--et5, 0);
}
.es-t5 .t-editorial { color: var(--graphite); }
.es-close {
  font: var(--v-monument); font-size: clamp(1.5rem, 2.9vw, 2.4rem);
  letter-spacing: -0.03em; line-height: 1.22; color: var(--ink);
  margin-top: 0.7em !important;
}

/* 2 · the oculus becomes the plate. The circle stays where the oculus
   is in the frame and grows out of it, so the plate is discovered
   inside the building rather than laid over it. */
.lay-vib {
  clip-path: circle(calc(var(--vib-r, 0) * 1%) at 48% 34%);
  opacity: var(--vib-o, 0);
}
.lay-vib img { object-position: 62% 50%; transform: scale(calc(1.16 - var(--vib-z, 0) * 0.14)); }

/* 3 · the ridges become relationships. The plate recedes and the
   approved vector planes are left holding the same centre. */

/* 4 · when the planes register, light comes through their edges: the
   prism is revealed along the beam's own direction, not cross-faded */
.lay-light { opacity: var(--li-o, 0); }
.lay-light img {
  object-position: 34% 68%;
  filter: saturate(calc(0.10 + var(--li-s, 0) * 0.85));
  -webkit-mask-image: linear-gradient(115deg, #000 calc(var(--li-w, 0) * 150% - 30%), transparent calc(var(--li-w, 0) * 150%));
          mask-image: linear-gradient(115deg, #000 calc(var(--li-w, 0) * 150% - 30%), transparent calc(var(--li-w, 0) * 150%));
}

/* 5 · the lit white field turns out to be paper. The reveal follows
   the same diagonal the light travels on, so the surface is
   continuous -- one plane, two materials. */
.lay-make { opacity: var(--mk-o, 0); }
.lay-make img {
  object-position: 40% 55%;
  -webkit-mask-image: linear-gradient(115deg, #000 calc(var(--mk-w, 0) * 150% - 34%), transparent calc(var(--mk-w, 0) * 150%));
          mask-image: linear-gradient(115deg, #000 calc(var(--mk-w, 0) * 150% - 34%), transparent calc(var(--mk-w, 0) * 150%));
  transform: scale(calc(1.10 - var(--mk-z, 0) * 0.10));
}

/* 6 · the drawn line opens into a real passage. It arrives from the
   page's depth rather than across it -- the way you enter a doorway. */
.lay-thresh { opacity: var(--th-o, 0); }
.lay-thresh img {
  object-position: 52% 50%;
  transform: scale(calc(1.30 - var(--th-z, 0) * 0.26));
}

/* 7 · everything gathers to one point, which is where the bindu is */
.lay-conv { opacity: var(--cv-o, 0); mix-blend-mode: screen; }
.lay-conv img {
  object-position: 50% 50%;
  filter: saturate(calc(0.30 + var(--cv-s, 0) * 0.80));
  transform: scale(calc(0.86 + var(--cv-z, 0) * 0.34));
}

.exp-scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(250,248,245,var(--scrim-b, 0)) 0%, transparent 44%),
              linear-gradient(to bottom, rgba(18,16,15,var(--scrim-t, 0)) 0%, transparent 40%);
}

/* ── typography travelling with the field ────────────────────────
   One word dominant at a time. Each is a pure function of --p, so
   scrolling back up unwinds it exactly. */
.exp-mono {
  position: absolute; z-index: 4; margin: 0;
  font: var(--v-monument); letter-spacing: -0.05em; white-space: nowrap;
  pointer-events: none; will-change: transform, opacity;
}
/* Set in from the edge so the whole word reads at the stable state --
   cropping is for the departure, not for the moment you are meant to
   be reading it. Luminous rather than grey, so it never sinks into
   the stone. */
.m-symbols {
  left: 5.5vw; top: 52vh;
  font-size: clamp(3.4rem, 13vw, 11rem);
  color: #FFFCF7;
  opacity: var(--w-sym, 0);
  /* fixed in place through the whole hold -- no drift while the
     sentence is meant to be read completely still */
  text-shadow: 0 1px 40px rgba(60,44,28,0.28);
}
.m-vibration {
  left: 50%; top: 46%;
  font-size: clamp(3.5rem, 13vw, 11rem);
  color: #F7F4EF;
  opacity: var(--w-vib, 0);
  transform: translate(-50%, -50%);
}
/* One wave, once, as the scene arrives -- not a loop. Each letter
   holds perfectly still until the front reaches it, oscillates, damps
   and stops. The word is fully legible before it starts and perfectly
   sharp for the whole reading hold afterwards. */
.m-vibration .vw { position: relative; display: block; white-space: nowrap; }
.m-vibration .vw-main { position: relative; z-index: 1; }
.m-vibration .vw-edge {
  position: absolute; inset: 0;
  color: var(--accent);
  opacity: var(--vedge, 0);
  pointer-events: none;
}
.m-vibration .vch { display: inline-block; transform: translateX(var(--d, 0px)); }
.m-vibration.is-live .vch { will-change: transform; }
/* nothing costly is left behind once it has settled */
.m-vibration:not(.is-live) .vch { will-change: auto; transform: none; }
.m-vibration:not(.is-live) .vw-edge { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* no displacement at all: one restrained orange edge, then the
     stable white word */
  .m-vibration .vch { transform: none !important; will-change: auto !important; }
  .m-vibration .vw-edge { transition: opacity 420ms ease; }
}
.m-colour {
  left: var(--pad); top: 34vh;
  font-size: clamp(3.5rem, 13vw, 11rem);
  color: color-mix(in srgb, var(--accent) calc(var(--w-colr, 0) * 100%), #4A4741);
  opacity: var(--w-col, 0);
}
.m-colour::before, .m-colour::after {
  content: attr(data-word); position: absolute; inset: 0; mix-blend-mode: screen;
  opacity: calc(var(--w-colr, 0) * (1 - var(--w-colr, 0)) * 1.6);
}
.m-colour::before { color: #48C4E4; transform: translateX(-0.012em); }
.m-colour::after  { color: #FF8A4A; transform: translateX(0.012em); }

.hand-note {
  position: absolute; z-index: 5; left: 8vw; bottom: 24vh;
  color: #403C36; margin: 0; pointer-events: none;
  opacity: var(--w-hand, 0);
  transform: rotate(-2.6deg) translateY(calc((1 - var(--w-hand, 0)) * 14px));
}
.hand-note .t-hand { mix-blend-mode: multiply; }

/* the sentence lives in the negative space at the right, clear of the
   word, the figure and the opening */
.exp-cap {
  position: absolute; z-index: 4; right: var(--pad); bottom: 14vh;
  max-width: 24rem; text-align: right; pointer-events: none;
  opacity: var(--w-cap, 0);
  transform: translateY(calc((1 - var(--w-cap, 0)) * 16px));
  color: var(--cap-fg, var(--ink));
}
/* the structural identification is its own thing, in the accent, in
   its own place -- never inside the letterforms */
.exp-cap .exp-label {
  position: absolute; top: -13vh; right: 0;
  color: var(--accent); letter-spacing: 0.14em; margin: 0;
}
.exp-line { font-size: clamp(1.125rem, 1.85vw, 1.5rem); font-weight: 300; line-height: 1.34; }

/* Composed against the passage rather than centred under a diagram:
   the type sits on the shadowed left wall, leaving the bright arched
   opening -- the thing the whole image is about -- completely clear.
   The wall's own falloff carries the contrast, so no panel is needed. */
.exp-perc {
  position: absolute; z-index: 4; left: var(--pad); bottom: 26vh;
  width: min(100% - (var(--pad) * 2), 30rem); text-align: left;
  margin: 0; pointer-events: none; opacity: var(--w-perc, 0);
}
.pw-line { display: block; font-size: clamp(1.125rem, 1.9vw, 1.5rem); font-weight: 300; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.pw-sub { display: block; margin-top: var(--s3); color: var(--graphite); }

.exp-ways {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(100% - (var(--pad) * 2), 44rem); text-align: center; margin: 0;
  font: var(--v-monument); font-size: clamp(1.75rem, 3.6vw, 3.1rem);
  letter-spacing: -0.03em; line-height: 1.16; color: var(--ink);
  pointer-events: none;
}
.exp-ways .ways-a { display: block; opacity: var(--w-waysa, 0); }
.exp-ways .ways-b { display: block; opacity: var(--w-waysb, 0); color: var(--graphite); }

/* ── mobile: the same single stage, simpler masks ───────────────── */
@media (max-width: 760px) {
  /* exp-scroll keeps the same 1340vh as desktop -- vh is already
     viewport-relative, so every hold (Symbols' 130vh included) gets
     the same proportion of scroll rather than being compressed */
  .m-symbols { left: var(--pad); top: 20vh; font-size: 17vw; }
  .m-vibration { font-size: 16vw; }
  .m-colour { left: var(--pad); top: 26vh; font-size: 17vw; }
  .hand-note { left: var(--pad); bottom: 30vh; }
  .hand-note .t-hand { font-size: 1.5rem; }
  .exp-cap { left: var(--pad); right: var(--pad); max-width: none; bottom: 10vh; }
  .exp-line { font-size: 1.2rem; }
  .lay-arch img { object-position: 50% 38%; }
  .lay-vib img  { object-position: 50% 50%; }
  .lay-light img{ object-position: 35% 75%; }
  .lay-make img { object-position: 45% 45%; }
  .lay-thresh img { object-position: 50% 50%; }

  /* the essay: one strong image at a time, kept to the upper field so
     every movement's text -- some of them several lines -- always has
     a clear band of its own below rather than sitting over the image */
  .lay-es1 {
    -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 46%, transparent 74%);
            mask-image: radial-gradient(circle at 50% 32%, #000 46%, transparent 74%);
  }
  .lay-es2 { align-items: flex-start; justify-content: center; padding: 6vh 0 0; }
  .lay-es2 .es-arch { width: 76vw; height: 46vh; border-radius: 50% 50% 0 0 / 26% 26% 0 0; }
  .lay-es3 { align-items: flex-start; padding-top: 6vh; }
  .es-court { display: none; }
  .es-arch2 { width: min(58vw, 18rem); }
  .lay-es4 { justify-content: center; padding: 6vh 0 0; align-items: flex-start; }
  .lay-es4 .es-slit { width: 34vw; height: 46vh; }
  /* one strong image at a time on mobile: the colour-field companion
     stays for desktop's fuller composition and is dropped here */
  .es-colourfield { display: none; }
  /* confined to the upper field like everything else here, so the
     text below (still the longest movement) keeps its own clear
     ground rather than sitting over the pattern */
  .lay-es5 { clip-path: polygon(48% 20%, 4% 56%, 96% 56%); }

  .es-text {
    left: var(--pad); right: var(--pad); width: auto;
    top: auto !important; bottom: 5vh; transform: none !important;
    text-align: left;
  }
  .es-t1 { text-align: center; }
  .es-lead { font-size: 9vw; }
  .es-close { font-size: clamp(1.3rem, 6vw, 1.9rem); }
}

/* ── reduced motion: a few elegant static states, in order ───────
   Never a blank pinned viewport: the stage releases and each layer
   is shown once, resolved, in the narrative order. */
@media (prefers-reduced-motion: reduce) {
  .exp-scroll { height: auto; }
  .exp-stage { position: static; height: auto; overflow: visible; }
  .lay {
    position: relative; inset: auto; height: 74vh;
    clip-path: none !important; opacity: 1 !important; mix-blend-mode: normal !important;
    -webkit-mask-image: none !important; mask-image: none !important;
  }
  .lay img { transform: none !important; filter: saturate(1) !important;
             -webkit-mask-image: none !important; mask-image: none !important; }
  .exp-mono, .hand-note, .exp-cap, .exp-perc, .exp-ways, .exp-scrim, .exp-backdrop { display: none; }

  /* the essay's own images fall back to the same static-sequence
     treatment as every other .lay above -- fixed aspect ratios and
     absolute positioning are released so each photograph is shown
     whole, not cropped to a shape meant for a pinned stage */
  .lay-es2 { display: block; padding: 0; }
  .lay-es2 .es-arch { position: static; width: auto; height: 74vh; border-radius: 0; box-shadow: none; transform: none; }
  .lay-es3 { display: block; }
  .es-court { display: none; }
  .es-arch2 {
    position: static; width: min(60vw, 22rem); height: 74vh; margin: 0 auto;
    filter: none; transform: none; display: flex; align-items: center; justify-content: center;
  }
  .es-arch2 img { width: auto; height: 100%; }
  .lay-es4 { display: flex; flex-direction: column; align-items: center; gap: var(--s5); padding: 0; }
  .lay-es4 .es-slit { position: static; width: auto; height: 60vh; box-shadow: none; transform: none; }
  .es-colourfield {
    position: static; width: min(60vw, 18rem); height: 20vh; opacity: 1 !important; transform: none !important;
  }
  /* reduced motion shows the poster only -- the JS never calls
     .play() when this media query matches, and this rule guarantees
     it even if some other trigger tried to */
  .lay-es5 { display: block; }
  .es-video { position: static; width: 100%; height: 74vh; transform: none !important; object-fit: cover; }

  /* each movement's text follows its image in the same static flow,
     fully legible and complete -- no crossfade, no absolute position */
  .es-text {
    position: static; opacity: 1 !important; transform: none !important;
    width: min(100% - (var(--pad) * 2), 34rem);
    margin: var(--s4) auto calc(var(--s4) * 2); text-align: left;
  }
  .es-t1 { text-align: center; }
  .es-t5 { text-align: left; }
}

/* ══ Formation ═══════════════════════════════════════════════════
   --f  the three elements coming home, 0 to 1
   --k  the field resolving from orange to black, 0 to 1
   --w  the headline arriving          --q  it reducing
   --n  pointer nearness once the Mark is complete
   Set by formation.js. ══════════════════════════════════════════ */

.formation { position: relative; }
.formation-scroll { height: 920vh; position: relative; }
.formation-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  --f: 0; --k: 0; --w: 0; --q: 0; --n: 0;
}
.caustics { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.85; }

/* ── The dark threshold ───────────────────────────────────────────
   No architecture image anywhere in this layer -- that would be a
   second rendering of the exact photograph Symbols is about to show,
   and during the sticky hand-off both would briefly be on screen at
   once (one scrolling out the top, one entering the bottom): a hard
   seam, not a reveal. This is plain near-black, not digital black --
   the ground the rest of the page is built from, carried to its
   darkest value -- that simply dissolves back to warm white. */
.threshold {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  pointer-events: none;
  background: #0B0A08;
  opacity: var(--th-field, 0);
}
.threshold-point {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  opacity: var(--th-point, 0);
  box-shadow: 0 0 26px 7px rgba(255, 77, 0, 0.55);
}
.threshold-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4em;
  width: min(100% - (var(--pad) * 2), 40rem);
  /* the constructions share the text's own centre -- once they begin,
     ease the phrase up clear of that busiest area rather than let any
     line cross through the legibility-critical letterforms */
  transform: translateY(calc(var(--th-geo, 0) * -16vh));
}
.th-line {
  margin: 0; text-align: center;
  font-family: "Public Sans", sans-serif;
  color: #FBF3E8;
  text-wrap: balance;
}
/* quiet and restrained -- arrives first, said once, then let go */
.th-1 {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: calc(var(--th-l1, 0) * 0.72);
  filter: blur(calc(var(--th-l1blur, 0) * 3px));
  transform: translateY(calc((1 - min(1, var(--th-l1, 0) * 3)) * 8px));
}
/* the dominant phrase: full strength, roughly 2.3x the scale of the
   first line at every size, impact from scale and contrast rather
   than weight. A very slight enlarge plus a shallow duplicate-layer
   shadow reads as gaining depth as it becomes the sole focus. */
.th-2 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.008em;
  opacity: var(--th-l2, 0);
  transform: translateY(calc((1 - min(1, var(--th-l2, 0) * 3)) * 8px))
             scale(calc(1 + var(--th-l2scale, 0) * 0.08));
  text-shadow: calc(var(--th-l2scale, 0) * 1.4px) calc(var(--th-l2scale, 0) * 2px) 0
               rgba(255, 77, 0, calc(var(--th-l2scale, 0) * 0.16));
}

/* ── the symbolic construction field ──────────────────────────────
   Five accurate constructions sharing one centre -- the orange origin
   -- shown one at a time, each drawn on via stroke-dasharray so the
   construction logic itself is what animates, never a finished form
   fading or rotating into place. --th-geo gates the whole layer;
   --g-vesica / --g-flower / --g-golden / --g-cross / --g-yantra each
   carry that construction's own arrive → hold → depart opacity, and
   --b-* (build) drives its draw-on progress, both set by formation.js. */
.th-geo {
  position: absolute; inset: -10% -10%; z-index: 1;
  width: 120%; height: 120%;
  overflow: visible; pointer-events: none;
  opacity: var(--th-geo, 0);
  transform-origin: 50% 50%;
  /* the shared centre recedes into the opening it becomes, right as
     the near-black field itself is dissolving (see --th-field) */
  transform: translate(var(--th-px, 0px), var(--th-py, 0px))
             scale(calc(1 + var(--th-converge, 0) * 0.55));
}
.tgc { fill: none; }
.tgc circle, .tgc path { vector-effect: non-scaling-stroke; }

/* 1 · Vesica Piscis */
.tgc-vesica { opacity: var(--g-vesica, 0); }
.tgc-vesica circle { stroke: #EDE6DA; stroke-width: 1; opacity: 0.65; }
.tgc-vesica .tgc-lens { stroke: none; fill: var(--accent); opacity: calc(var(--b-vesica-lens, 0) * 0.22); }
.tgc-vesica .tgc-origin { fill: var(--accent); stroke: none; opacity: var(--b-vesica-dot, 0); transform: translateX(calc(var(--b-vesica-dot, 0) * 130px)); }

/* 2 · Flower of Life */
.tgc-flower { opacity: var(--g-flower, 0); }
.tgf { stroke: #EDE6DA; stroke-width: 1; opacity: 0.5; }
.tgf-0 { stroke: var(--accent); opacity: 0.85; }

/* 3 · Golden-ratio construction */
.tgc-golden { opacity: var(--g-golden, 0); }
.tg-golden-squares path, .tg-golden-squares rect { stroke: #EDE6DA; stroke-width: 1; opacity: 0.55; }
.tg-golden-spiral { stroke: var(--accent); stroke-width: 1.2; opacity: var(--b-golden-spiral, 0); }

/* 4 · Equal-armed cross -- subordinate, abstract, brief */
.tgc-cross { opacity: calc(var(--g-cross, 0) * 0.7); }
.tgx-v, .tgx-h { stroke: #EDE6DA; stroke-width: 1; }
.tgc-cross .tgx-hit {
  fill: var(--accent); stroke: none; r: 2.5px;
  opacity: var(--b-cross-hit, 0);
}

/* 5 · Sri Yantra fragment -- three related triangles, not the full nine */
.tgc-yantra { opacity: var(--g-yantra, 0); }
.tgy { stroke: #EDE6DA; stroke-width: 1; opacity: 0.55; }
.tgy-3 { stroke: var(--accent); opacity: 0.8; }

@media (hover: hover) and (pointer: fine) {
  .threshold { --th-parallax: 1; }
}


.mark-field {
  position: relative; grid-area: 1 / 1;
  width: min(76vh, 54vw); aspect-ratio: 1 / 1;
  /* the circle opens large enough to be an event in its own right and
     comes down to the Mark's own scale as the symbol resolves; disc and
     glyph move together, so the finished proportions are never touched */
  /* The Mark is an identity, not a transition texture. Once resolved it
     is held at its settled size and never exceeds 1.06 of it. */
  transform: translateY(calc(var(--w) * -28vh))
             scale(calc(((1 + (1 - var(--swap, 0)) * 0.62) * (1 - var(--w) * 0.54)
                        + var(--n) * 0.012) * (1 - var(--contract, 0) * 0.94)));
  /* the identity contracting away, ahead of the dark threshold */
  opacity: calc(1 - var(--contract, 0));
  will-change: transform, opacity;
}
.mark { width: 100%; height: 100%; display: block; overflow: visible; }

/* The field. Orange first, and it stays the only saturated thing on
   the page until it resolves. The wipe is a hard-edged gradient swept
   across the circle from the upper left -- black material appearing
   under the colour rather than the colour being tinted away. */
.m-disc { fill: url(#resolve); }
.rs-a { stop-color: #141311; }
.rs-b { stop-color: #FF4D00; }
.m-disc {
  transform-box: view-box; transform-origin: 511.5px 511.5px;
}

/* one restrained spectral fringe, riding the wipe's leading edge */
.m-fringe {
  fill: none; stroke-width: 3;
  transform-box: view-box; transform-origin: 511.5px 511.5px;
  stroke: #4FC6E6;
  opacity: calc(var(--k) * (1 - var(--k)) * 2.2);
  stroke-dasharray: 300 1300;
  stroke-dashoffset: calc(400 - var(--k) * 1600);
}

/* the exact approved geometry takes over underneath, once registered */
/* the exact geometry, never distorted -- it scales as one object and
   then stops painting, so the field behind is seen through it */
.m-exact { fill: #FAF8F5; opacity: calc(var(--swap, 0) * (1 - var(--thru, 0) * 2.4)); }
.m-disc { opacity: 1; }
.m-disc { transform-box: view-box; transform-origin: 511.5px 511.5px; }


.formation-word {
  grid-area: 1 / 1; align-self: start; width: min(100% - (var(--pad) * 2), 52rem);
  margin-top: 42vh; text-align: center;
  opacity: calc(var(--w) * max(0, 1 - var(--thru, 0) * 5));
  transform: translateY(calc((1 - var(--w)) * 24px));
  pointer-events: none;
}
.formation-word .statement {
  font: var(--v-monument);
  font-size: clamp(2.5rem, calc(5.4vw - var(--q) * 1.6vw), 6.6rem);
  letter-spacing: -0.036em; line-height: 1.04;
}
/* part of the composition, not browser chrome: it sits under the
   headline with real clearance rather than against the bottom edge */
.inward {
  position: absolute; left: 50%; bottom: 16vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.16em;
  opacity: calc(var(--w) * var(--w) * max(0, 1 - var(--thru, 0) * 6));
  transition: color 300ms ease;
}
.inward:hover, .inward:focus-visible { color: var(--accent); }
.inward:focus-visible { outline: 1px solid var(--accent); outline-offset: var(--s2); }

@media (max-width: 760px) {
  /* the same 920vh as desktop -- vh is already viewport-relative, so
     every hold (including the construction field) keeps the same
     proportion of scroll instead of being compressed on a phone */
  .mark-field { width: min(52vh, 78vw); }
  .formation-word { margin-top: 32vh; }
  .formation-word .statement { font-size: clamp(1.9rem, 9vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  /* the orange is shown, the Mark resolves at once, the field goes
     black -- no waiting, and the headline is never gated behind it.
     Three explicit rows -- Mark, headline, threshold phrase -- so the
     reading order is correct and nothing shares a cell and overlaps,
     which is what place-items:center (built for one pinned viewport)
     would otherwise do to them in this shorter, auto-height box. */
  .formation-scroll { height: auto; }
  .formation-stage {
    position: static; height: auto; min-height: 0; padding: var(--s6) 0;
    display: grid; grid-template-rows: auto auto auto auto;
    justify-items: center; align-items: start; row-gap: var(--s5);
    --f: 1; --k: 1; --w: 1; --q: 0; --n: 0; --swap: 1;
  }
  .caustics { display: none; }
  .mark-field {
    grid-row: 1; grid-column: 1;
    transform: none; opacity: 1; width: min(34vh, 24vw);
  }
  .m-fringe { display: none; }
  .formation-word { grid-row: 2; grid-column: 1; margin-top: 0; }
  /* the dark threshold becomes its own static panel: the orange point,
     the complete phrase with "symbols begin." dominant, and three of
     the five construction fragments, held still -- no scale, no
     parallax, no near-black field animating in around them. Its own
     row, directly under the headline, in the correct reading order. */
  .threshold {
    grid-row: 3; grid-column: 1; width: 100%;
    position: static; inset: auto; opacity: 1; background: #0B0A08;
    padding: var(--s6) var(--pad);
  }
  .threshold-point { position: relative; opacity: 1; margin: 0 auto var(--s4); }
  .th-line { opacity: 1 !important; filter: none !important; transform: none !important; }
  .th-2 { transform: none !important; text-shadow: none !important; }
  /* the -10%/120% bleed exists only to give the parallax room to move
     without exposing an edge; with .threshold now static (no longer
     the sized positioning context it is in the normal, pinned stage)
     that bleed resolves against a much larger box and overflows */
  .th-geo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5 !important; transform: none !important; }
  .tg-spiral, .tg-flower { display: none; }
  .inward { grid-row: 4; grid-column: 1; position: static; transform: none; margin-top: var(--s2); }
}

/* ── Perception's environment ────────────────────────────────────
   Not wallpaper behind a diagram. The passage has real planes at real
   depths, so the vector is set into that perspective -- skewed to the
   wall's angle, multiplied into the surface, and sharing the picture's
   own light. It reads as something present in the space rather than
   printed on the photograph. TEMPORARY PLACEHOLDER IMAGERY. */
.lay-percenv { opacity: var(--pe-o, 0); }
.lay-percenv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(150,131,110,0.34) 0%, rgba(150,131,110,0.10) 26%, transparent 48%);
}
.lay-percenv img {
  object-position: 52% 50%;
  transform: scale(calc(1.16 - var(--pe-z, 0) * 0.14));
  filter: saturate(0.92);
}

/* the line begins large and reduces to an intimate one once aligned */

.pw-line {
  font: var(--v-monument);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1.1;
}
@media (max-width: 760px) {
  .exp-perc { left: var(--pad); right: var(--pad); bottom: 16vh; width: auto; }
  .pw-line { font-size: clamp(1.4rem, 6.4vw, 2rem); }
}

/* ══ Two ways ════════════════════════════════════════════════════
   Not two cards. One field with a threshold down the middle: the
   symbol you meet on a screen on one side, hands at paper on the
   other, and a small "or" holding them apart. Approaching a side
   gives it weight and light; the other never disappears, because the
   point is that both remain open. ═══════════════════════════════ */

.twoways { position: relative; padding: var(--s7) 0 var(--s6); }
.tw-head {
  width: min(100% - (var(--pad) * 2), var(--live));
  margin: 0 auto var(--s6);
  text-align: center;
}
.tw-head .label { color: var(--graphite-2); }
.tw-head h2 {
  margin: var(--s3) 0 0;
  font: var(--v-monument);
  font-size: clamp(1.75rem, 3.9vw, 3.25rem);
  letter-spacing: -0.03em; line-height: 1.1;
  text-wrap: balance;
}

.tw-field {
  position: relative;
  width: min(100% - (var(--pad) * 2), 78rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(var(--s4), 4vw, var(--s6));
}

.tw-side {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s5) 0;
  outline: none;
  cursor: default;
  /* weight, not visibility: the quiet side stays entirely legible */
  --on: 0;
}
.tw-side:hover, .tw-side:focus-visible, .tw-side.is-on { --on: 1; }
.tw-side:focus-visible { outline: 1px solid var(--accent); outline-offset: var(--s3); }

.tw-art {
  display: block; position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ground);
}
.tw-art img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(calc(1.02 + var(--on) * 0.04));
  transition: transform 620ms cubic-bezier(.16,.84,.36,1), filter 620ms ease;
}
/* Online is now a real photograph (a quiet, solitary paper practice),
   not the repeated Sri Yantra artwork this used to be -- it fills the
   frame like In Person's photo does, rather than sitting padded and
   contained inside it. */
.tw-online .tw-art img { object-position: 42% 55%; filter: saturate(calc(0.35 + var(--on) * 0.65)); }
.tw-person .tw-art img { object-position: 46% 42%; filter: saturate(calc(0.55 + var(--on) * 0.45)); }

.tw-copy { margin-top: var(--s4); max-width: 26rem; }
.tw-online .tw-copy { margin-right: auto; }
.tw-person .tw-copy { margin-left: auto; text-align: right; }
.tw-person .tw-copy .t-editorial { margin-left: auto; }
.tw-copy .label { color: color-mix(in srgb, var(--accent) calc(var(--on) * 100%), var(--graphite-2)); transition: color 380ms ease; }
.tw-copy h3 {
  margin: var(--s2) 0 var(--s3);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 300;
  letter-spacing: -0.014em; line-height: 1.25;
}
.tw-copy .t-editorial { color: var(--graphite); }

/* the threshold: a drawn line with one word in it, not a divider */
.tw-thresh {
  position: relative; width: 1px;
  background-image: linear-gradient(to bottom, transparent, var(--grey-2) 18%, var(--grey-2) 82%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.tw-thresh i {
  position: absolute;
  font: var(--v-structural); font-style: normal;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--graphite-2);
  background: var(--ground); padding: var(--s2) var(--s1);
}

@media (max-width: 860px) {
  /* stacked, but never ranked: the threshold turns horizontal and both
     sides keep the same weight and the same amount of room */
  .tw-field { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .tw-thresh { width: auto; height: 1px; background-image: linear-gradient(to right, transparent, var(--grey-2) 18%, var(--grey-2) 82%, transparent); }
  .tw-side { padding: var(--s3) 0; }
  .tw-person .tw-copy { margin-left: 0; text-align: left; }
  .tw-copy { max-width: none; }
  .tw-art { aspect-ratio: 16 / 10; }
  .tw-online .tw-art { aspect-ratio: 5 / 4; }
  /* mobile: prioritize the hands and marker meeting the page over
     the wider room context */
  .tw-person .tw-art img { object-position: 34% 56%; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-art img { transition: none; transform: none; }
  .tw-copy .label { transition: none; }
}

/* ══ Two ways ════════════════════════════════════════════════════
   Not two cards. One field with a threshold down the middle: the
   symbol you meet on a screen on one side, hands at paper on the
   other, and a small "or" holding them apart. Approaching a side
   gives it weight and light; the other never disappears, because the
   point is that both remain open. ═══════════════════════════════ */

.twoways { position: relative; padding: var(--s7) 0 var(--s6); }
.tw-head {
  width: min(100% - (var(--pad) * 2), var(--live));
  margin: 0 auto var(--s6);
  text-align: center;
}
.tw-head .label { color: var(--graphite-2); }
.tw-head h2 {
  margin: var(--s3) 0 0;
  font: var(--v-monument);
  font-size: clamp(1.75rem, 3.9vw, 3.25rem);
  letter-spacing: -0.03em; line-height: 1.1;
  text-wrap: balance;
}

.tw-field {
  position: relative;
  width: min(100% - (var(--pad) * 2), 78rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(var(--s4), 4vw, var(--s6));
}

.tw-side {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s5) 0;
  outline: none;
  cursor: default;
  /* weight, not visibility: the quiet side stays entirely legible */
  --on: 0;
}
.tw-side:hover, .tw-side:focus-visible, .tw-side.is-on { --on: 1; }
.tw-side:focus-visible { outline: 1px solid var(--accent); outline-offset: var(--s3); }

.tw-art {
  display: block; position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ground);
}
.tw-art img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(calc(1.02 + var(--on) * 0.04));
  transition: transform 620ms cubic-bezier(.16,.84,.36,1), filter 620ms ease;
}
/* Online is now a real photograph (a quiet, solitary paper practice),
   not the repeated Sri Yantra artwork this used to be -- it fills the
   frame like In Person's photo does, rather than sitting padded and
   contained inside it. */
.tw-online .tw-art img { object-position: 42% 55%; filter: saturate(calc(0.35 + var(--on) * 0.65)); }
.tw-person .tw-art img { object-position: 46% 42%; filter: saturate(calc(0.55 + var(--on) * 0.45)); }

.tw-copy { margin-top: var(--s4); max-width: 26rem; }
.tw-online .tw-copy { margin-right: auto; }
.tw-person .tw-copy { margin-left: auto; text-align: right; }
.tw-person .tw-copy .t-editorial { margin-left: auto; }
.tw-copy .label { color: color-mix(in srgb, var(--accent) calc(var(--on) * 100%), var(--graphite-2)); transition: color 380ms ease; }
.tw-copy h3 {
  margin: var(--s2) 0 var(--s3);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 300;
  letter-spacing: -0.014em; line-height: 1.25;
}
.tw-copy .t-editorial { color: var(--graphite); }

/* the threshold: a drawn line with one word in it, not a divider */
.tw-thresh {
  position: relative; width: 1px;
  background-image: linear-gradient(to bottom, transparent, var(--grey-2) 18%, var(--grey-2) 82%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.tw-thresh i {
  position: absolute;
  font: var(--v-structural); font-style: normal;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--graphite-2);
  background: var(--ground); padding: var(--s2) var(--s1);
}

@media (max-width: 860px) {
  /* stacked, but never ranked: the threshold turns horizontal and both
     sides keep the same weight and the same amount of room */
  .tw-field { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .tw-thresh { width: auto; height: 1px; background-image: linear-gradient(to right, transparent, var(--grey-2) 18%, var(--grey-2) 82%, transparent); }
  .tw-side { padding: var(--s3) 0; }
  .tw-person .tw-copy { margin-left: 0; text-align: left; }
  .tw-copy { max-width: none; }
  .tw-art { aspect-ratio: 16 / 10; }
  .tw-online .tw-art { aspect-ratio: 5 / 4; }
  /* mobile: prioritize the hands and marker meeting the page over
     the wider room context */
  .tw-person .tw-art img { object-position: 34% 56%; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-art img { transition: none; transform: none; }
  .tw-copy .label { transition: none; }
}

/* ══ Explorations — the threshold ════════════════════════════════
   The word starts as a point inside the converging light the previous
   scene ends on, comes forward until it is wider than the window, is
   held there long enough to be understood, then leaves past the edges
   while the orange closes into a square around the one centre that
   the Sri Yantra also holds.
   --e  emergence   --h  the hold   --x  departure
   TEMPORARY PLACEHOLDER IMAGERY in the field. ══════════════════ */

.expl { position: relative; }
/* ══ Explorations ════════════════════════════════════════════════
   One composition. The entrance is a mask that runs once when the
   section arrives -- it is not mapped to scroll, so nothing has to be
   scrolled through to finish revealing it. TEMPORARY PLACEHOLDER
   IMAGERY in the field. ═══════════════════════════════════════ */

.explor { position: relative; }
/* Encounter used to live at the end of this scroll; it now opens
   Process instead (see the Process section below), so this track was
   shortened to match -- the hold and recede keep the same absolute
   duration, only the trailing buffer shrank. */
.explor-scroll { height: 240vh; position: relative; }
.explor-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  padding: min(6vh, var(--s6)) 0;
  background: var(--ground);
}
.explor-inner {
  position: relative; width: min(100% - (var(--pad) * 2), var(--live));
  margin-inline: auto;
  max-height: 100%; overflow: visible;
  display: flex; flex-direction: column; justify-content: center;
  gap: min(4vh, var(--s5));
  /* fades and settles back as Encounter takes over -- the rest of
     the composition recedes rather than scrolling away underneath it */
  opacity: calc(1 - var(--eb-recede, 0));
  transform: scale(calc(1 - var(--eb-recede, 0) * 0.04));
  filter: blur(calc(var(--eb-recede, 0) * 2px));
}

/* warm white with a whisper of physical light -- no photograph, no
   repeat, nothing to cast a cool/grey cast over the artwork's linework */
.explor-glow {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 66% 30%, rgba(255, 244, 227, 0.9), transparent 58%),
              radial-gradient(circle at 20% 78%, rgba(72, 196, 228, 0.05), transparent 55%);
  opacity: 0;
  transition: opacity 900ms ease;
}
.explor.is-in .explor-glow { opacity: 1; }

.explor-head { position: relative; z-index: 2; }
.explor-word {
  margin: 0;
  font: var(--v-monument);
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.045em; line-height: 1.05;
  color: #2A2622;
  opacity: 0; transform: translateY(14px);
  transition: opacity 700ms ease 260ms, transform 900ms cubic-bezier(.16,.84,.36,1) 260ms;
}
.explor.is-in .explor-word { opacity: 1; transform: none; }
.explor-what {
  margin: var(--s3) 0 0; max-width: 30rem;
  color: var(--graphite);
  opacity: 0; transition: opacity 700ms ease 620ms;
}
.explor.is-in .explor-what { opacity: 1; }

.explor-body {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 23rem);
  column-gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: center;
  opacity: 0; transition: opacity 800ms ease 780ms;
}
.explor.is-in .explor-body { opacity: 1; }

.explor-copy .label { color: var(--accent); }
.explor-title {
  margin: var(--s2) 0 0;
  font: var(--v-monument);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  letter-spacing: -0.032em; line-height: 1.02;
}
/* the live layer name is the biggest thing in the reading column,
   because the name changing is the event */
.yantra-name {
  margin-top: var(--s5);
  font: var(--v-monument);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  letter-spacing: -0.018em; line-height: 1.3;
  color: var(--ink);
  min-height: 2.6em;
  transition: opacity 260ms ease;
}
.yantra-name.is-clearing { opacity: 0; }
.yantra-name .yn-desc { color: var(--graphite-2); font-size: 0.82em; }
.yantra-hint {
  margin-top: var(--s4);
  font: var(--v-structural); letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--graphite-2);
  opacity: 0; transition: opacity 600ms ease;
}
.yantra-hint.is-on { opacity: 1; }

@media (max-width: 900px) {
  .explor-body { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }
  .explor-copy { max-width: var(--measure); }
  .yantra-name { min-height: 0; }
}
@media (max-width: 760px) {
  .explor-scroll { height: 300vh; }
  .yantra-plate { width: min(100%, 40vh, 340px); }
}
@media (prefers-reduced-motion: reduce) {
  .explor-scroll { height: auto; }
  .explor-stage { position: static; height: auto; padding: var(--s7) 0 var(--s6); }
  .explor-inner { opacity: 1 !important; transform: none !important; filter: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  /* revealed immediately, nothing withheld behind motion */
  .explor-glow { opacity: 1; transition: none; }
  .explor-word, .explor-what, .explor-body { opacity: 1; transform: none; transition: none; }
  .yantra-hint { opacity: 1; }
}

/* ══ Restored rules ══════════════════════════════════════════════
   These were destroyed by a bad range-deletion during an earlier
   edit. --hdr was still being computed correctly; nothing was reading
   it, and the hero wordmark had lost its type entirely. ═════════ */

/* the hero name: Montserrat Medium, sized to 68% of the circle, held
   inside it by the SVG clipPath */
.hero-name text {
  font-family: "Montserrat", "Public Sans", sans-serif;
  font-weight: 500;
  font-size: 80px;
  letter-spacing: -0.3px;
  fill: #FFFCF7;
  dominant-baseline: central;
  /* --partx: the two words travelling apart, at full opacity.
     --partf: a separate, later fade -- so there is a real moment where
     "coded" and "mind" sit apart from each other, fully legible, before
     either one starts to go. */
  opacity: calc(var(--name, 0) * (1 - var(--partf, 0)));
}
.hn-a { text-anchor: end;   transform: translateX(calc(var(--partx, 0) * -36px)); }
.hn-b { text-anchor: start; transform: translateX(calc(var(--partx, 0) *  36px)); }

/* The header identity is withheld for the whole hero. The safe state
   is CSS, not JavaScript: it is hidden before any script runs, so
   there is no flash, and the scroll controller only ever reveals it. */
.identity {
  opacity: var(--hdr, 0);
  transition: opacity 620ms cubic-bezier(.16,.84,.36,1);
}
.identity[data-held="1"] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  /* the same identity rule, without the fade */
  .identity { transition: none; }
  .hn-a, .hn-b { transform: none !important; }
}

/* ══ Generic reveal-on-view ══════════════════════════════════════
   Any [data-reveal] section gets .is-in once, the first time it is
   20% on screen -- set by the observer in main.js. Plain flow, not a
   pinned stage: children fade up in place, once, and stay. Used by
   the Understanding, Process and Being Researched sections below. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] * { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ══ Symbols, harmony and repetition ═══════════════════════════════
   Distinct from the Harmony essay just closed: that essay showed
   harmony across the world; this explains how Coded Mind itself uses
   harmony and repetition to organize attention. Three movements, one
   continuous warm-white field, no cards -- the same asymmetric
   two-column language as Process, for one visual grammar across the
   whole redesigned chapter. ════════════════════════════════════════ */
.symrep { position: relative; }
.symrep-scroll { height: 340vh; position: relative; }
.symrep-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--ground);
}
.sr {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.sr-a, .sr-b {
  width: min(100% - (var(--pad) * 2), var(--live));
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(var(--s6), 6vw, var(--s7));
  align-items: center;
}
.sr-b { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.sr-b .sr-visual { order: -1; }
.sr-a { opacity: var(--sr-a, 0); }
.sr-b { opacity: var(--sr-b, 0); }

.sr-visual {
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: #ECE6D8;
  box-shadow: 0 30px 80px rgba(30, 22, 12, 0.14);
  transform: scale(var(--sr-visual-s, 0.95));
}
.sr-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.sr-copy { max-width: 28rem; }
.sr-lead {
  margin: 0 0 var(--s4);
  font: var(--v-monument); font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.024em; line-height: 1.2; color: var(--ink);
}
.sr-copy .t-editorial { color: var(--graphite); }
.sr-copy .t-editorial + .t-editorial { margin-top: var(--s3); }

.sr-c { flex-direction: column; text-align: center; opacity: var(--sr-c, 0); }
.sr-close {
  margin: 0; max-width: 32rem;
  font: var(--v-monument); font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  letter-spacing: -0.026em; line-height: 1.3; color: var(--ink);
}

@media (max-width: 900px) {
  .sr-a, .sr-b { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
  .sr-b .sr-visual { order: 0; }
  .sr-copy { max-width: var(--measure); }
}
@media (prefers-reduced-motion: reduce) {
  .symrep-scroll { height: auto; }
  .symrep-stage {
    position: static; height: auto; overflow: visible;
    display: flex; flex-direction: column; gap: var(--s7);
    padding: var(--s7) 0;
  }
  .sr { position: relative; inset: auto; opacity: 1 !important; padding: 0 var(--pad); }
  .sr-visual { transform: none !important; }
}

/* ══ What Coded Mind is ══════════════════════════════════════════
   A plain, editorial white field -- the same ground the rest of the
   page stands on -- carrying a large statement, a small decisive one
   in the accent, and a reading column, in three groups that arrive in
   order and then hold. No cards, no icons, no diagrams. ══════════ */
.understanding { position: relative; }
.und-scroll { height: 460vh; position: relative; }
.und-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  --u1: 0; --u2: 0; --u3: 0;
}
.und-field {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 46% at 10% 6%, rgba(79, 198, 230, 0.05), transparent 62%),
    radial-gradient(50% 42% at 90% 88%, rgba(255, 77, 0, 0.045), transparent 62%);
}

/* three composed states, one stable field -- each holds until read,
   then a clean departure before the next arrives. Never more than one
   on screen at once, never a blank interval between them. */
.und-m {
  grid-area: 1 / 1;
  width: min(100% - (var(--pad) * 2), var(--live));
  text-align: center;
  transform: translateY(10px);
  pointer-events: none;
}
.und-m1 { opacity: var(--u1, 0); transform: translateY(calc((1 - var(--u1, 0)) * 10px)); }
.und-m2 { opacity: var(--u2, 0); transform: translateY(calc((1 - var(--u2, 0)) * 10px)); }
.und-m3 { opacity: var(--u3, 0); transform: translateY(calc((1 - var(--u3, 0)) * 10px)); }

/* Movement 1 */
.und-statement {
  position: relative; z-index: 1;
  margin: 0 auto;
  max-width: 46rem;
  font-family: "Public Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.und-sub {
  position: relative; z-index: 1;
  margin: var(--s5) auto 0;
  max-width: 30rem;
  font-family: "Public Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.004em;
  color: var(--accent);
}

/* ── the noticing field ──────────────────────────────────────────
   Quiet structural relationships, present from the first frame at a
   low but real opacity -- never a blank slide. Pointer or a deliberate
   touch drag raises their contrast and colour within a soft radius
   that follows the visitor, revealing that the relationships were
   already there rather than conjuring new ones. */
.noticing-field {
  position: absolute; z-index: 0;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100%, 58rem); aspect-ratio: 100 / 62;
  pointer-events: auto; cursor: default;
}
.nf-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nf-line {
  fill: none; stroke: var(--graphite-2); stroke-width: 0.18;
  vector-effect: non-scaling-stroke;
}
.nf-quiet { opacity: 0.09; }
.nf-reveal {
  opacity: 0;
  transition: opacity 500ms ease;
}
.noticing-field.is-active .nf-reveal { opacity: 1; }
.nf-reveal {
  -webkit-mask-image: radial-gradient(circle 15% at var(--nx, 50%) var(--ny, 50%), #000 0%, transparent 100%);
          mask-image: radial-gradient(circle 15% at var(--nx, 50%) var(--ny, 50%), #000 0%, transparent 100%);
}
.nf-reveal .nf-line { stroke: var(--ink); stroke-width: 0.22; }
.nf-reveal .nf-accent { stroke: var(--accent); }
.nf-mark {
  font: 300 2.6px "Public Sans", sans-serif; fill: var(--accent);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .noticing-field { width: 96%; }
}
@media (prefers-reduced-motion: reduce) {
  /* the same relationships, fixed and legible, no follow, no motion --
     the discovery is conceptual (they were already there), not the
     animation of revealing them */
  .nf-reveal {
    opacity: 1; transition: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .nf-reveal .nf-line { stroke: var(--graphite-2); stroke-width: 0.18; opacity: 0.5; }
  .nf-reveal .nf-accent { stroke: var(--accent); opacity: 0.7; }
  .nf-mark { opacity: 0.6; }
}

/* Movement 2 */
.und-m2 .und-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  column-gap: clamp(var(--s6), 6vw, var(--s7));
  align-items: center;
  text-align: left;
}
.und-copy { max-width: 34rem; }
.und-copy .t-editorial { color: var(--graphite); max-width: none; }
.und-copy .t-editorial + .t-editorial { margin-top: var(--s4); }

/* ── the instrument: one circular canvas, six behaviors ──────────
   Not a dashboard, not six equal cards. One shared drawing surface;
   choosing a label plays that behavior's own one-time study inside
   it, in the same stroke language every time. Only the active study
   is ever visible or animating. */
/* .und-m2's ancestor sets pointer-events:none for the whole movement
   (it's normally just a reading composition); restore it here so the
   labels are genuinely clickable, not just visually present */
.instrument { display: flex; flex-direction: column; align-items: center; gap: var(--s5); pointer-events: auto; }
.in-canvas { width: min(100%, 15rem); aspect-ratio: 1 / 1; }
.in-svg { width: 100%; height: 100%; overflow: visible; }
.in-frame { fill: none; stroke: var(--grey-2); stroke-width: 0.6; }
.in-study {
  fill: none; stroke: var(--graphite); stroke-width: 1.4;
  opacity: 0; transform-origin: 50px 50px;
}
.in-study * { vector-effect: non-scaling-stroke; }
.instrument[data-active="breath"]    .in-breath,
.instrument[data-active="vibration"] .in-vibration,
.instrument[data-active="colour"]    .in-colour,
.instrument[data-active="line"]      .in-line,
.instrument[data-active="mark"]      .in-mark,
.instrument[data-active="symbol"]    .in-symbol { opacity: 1; }

/* Breath -- a field expands and settles, once */
.in-breath circle { stroke: var(--accent); }
.instrument.is-playing[data-active="breath"] .in-breath circle { animation: inBreathe 2.4s cubic-bezier(.4,0,.2,1) 1 both; }

/* Vibration -- an interval produces a visible pattern */
.in-vibration circle { stroke: var(--graphite); }
.in-vibration circle:nth-child(3) { stroke: var(--accent); }
.instrument.is-playing[data-active="vibration"] .in-vibration circle {
  animation: inVibrate 1.4s cubic-bezier(.2,.7,.3,1) 1 backwards;
}
.instrument.is-playing[data-active="vibration"] .in-vibration circle:nth-child(1) { animation-delay: 0ms; }
.instrument.is-playing[data-active="vibration"] .in-vibration circle:nth-child(2) { animation-delay: 120ms; }
.instrument.is-playing[data-active="vibration"] .in-vibration circle:nth-child(3) { animation-delay: 240ms; }

/* Colour -- relationships change through adjacency: two fields move
   from apart to overlapping, the seam between them the whole point */
.in-colour-a { fill: var(--accent); stroke: none; opacity: 0.82; }
.in-colour-b { fill: #48C4E4; stroke: none; opacity: 0.82; mix-blend-mode: multiply; }
.instrument.is-playing[data-active="colour"] .in-colour-a { animation: inColourA 1.6s cubic-bezier(.3,.7,.3,1) 1 both; }
.instrument.is-playing[data-active="colour"] .in-colour-b { animation: inColourB 1.6s cubic-bezier(.3,.7,.3,1) 1 both; }

/* Line -- repetition becomes rhythm: uneven, then even */
.in-line line { stroke: var(--graphite); }
.in-line line:nth-child(3) { stroke: var(--accent); }
.instrument.is-playing[data-active="line"] .in-line line { animation: inLineSettle 1.3s cubic-bezier(.2,.8,.3,1) 1 backwards; }
.instrument.is-playing[data-active="line"] .in-line line:nth-child(1) { animation-delay: 0ms; }
.instrument.is-playing[data-active="line"] .in-line line:nth-child(2) { animation-delay: 40ms; }
.instrument.is-playing[data-active="line"] .in-line line:nth-child(3) { animation-delay: 80ms; }
.instrument.is-playing[data-active="line"] .in-line line:nth-child(4) { animation-delay: 120ms; }
.instrument.is-playing[data-active="line"] .in-line line:nth-child(5) { animation-delay: 160ms; }

/* Mark -- pressure or speed leaves a trace: one stroke, drawn once */
.in-mark-path { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.instrument.is-playing[data-active="mark"] .in-mark-path { animation: inMarkDraw 1.5s cubic-bezier(.3,.6,.2,1) 1 both; }

/* Symbol -- geometry comes into registration */
.in-symbol-a { stroke: var(--graphite); }
.in-symbol-b { stroke: var(--accent); }
.instrument.is-playing[data-active="symbol"] .in-symbol-a { animation: inSymbolA 1.5s cubic-bezier(.3,.7,.25,1) 1 both; }
.instrument.is-playing[data-active="symbol"] .in-symbol-b { animation: inSymbolB 1.5s cubic-bezier(.3,.7,.25,1) 1 both; }

.in-labels {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s2) var(--s4);
}
.in-label {
  appearance: none; background: none; border: none; padding: 2px 1px;
  font: var(--v-structural); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--graphite-2); cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}
.in-label:hover { color: var(--ink); }
.in-label:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.in-label[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }

/* Movement 3 -- the prismatic field sits full-bleed behind this held
   statement only (TEMPORARY PLACEHOLDER IMAGERY: New Images/3.png).
   .und-m3 itself is never positioned, so this fills the whole pinned
   stage (100vw/100vh) rather than just the text's own narrower box. */
.und-m3-bg {
  grid-area: 1 / 1;
  position: relative; z-index: 0;
  width: 100%; height: 100%; overflow: hidden;
  opacity: var(--u3, 0);
  pointer-events: none;
}
.und-m3-bg picture, .und-m3-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover;
  object-position: 50% 40%;
  /* the luminous pale centre stays behind the words; colour and the
     darker edge sit toward the perimeter -- reduced saturation so it
     stays a field, not a competing image */
  filter: saturate(0.8);
  transform: scale(var(--m3-scale, 1));
}
.und-m3-veil {
  position: absolute; inset: 0;
  background: var(--ground);
  opacity: 0.32;
}
.und-m3-lead, .und-m3-main, .und-m3-close {
  position: relative; z-index: 1;
}
.und-m3-lead {
  margin: 0 auto;
  max-width: 34rem;
  font-family: "Public Sans", sans-serif; font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.5;
  color: var(--graphite);
}
.und-m3-main {
  margin: var(--s6) auto 0;
  max-width: 38rem;
  font-family: "Public Sans", sans-serif; font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.35;
  letter-spacing: -0.012em; color: var(--ink);
}
.und-m3-close {
  margin: var(--s6) auto 0;
  max-width: 30rem;
  font-family: "Public Sans", sans-serif; font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.125rem); line-height: 1.6;
  color: var(--graphite-2);
}

@media (max-width: 1180px) {
  .und-m3-bg img { object-position: 50% 35%; }
}
@media (max-width: 760px) {
  /* crop toward the luminous centre-left, where the reading column
     sits, and keep the busiest rainbow edge out of the text's way */
  .und-m3-bg img { object-position: 38% 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .und-m3-bg img { transform: none !important; }
}

@keyframes inBreathe {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}
@keyframes inVibrate {
  0% { opacity: 0; transform: scale(0.7); }
  55% { opacity: 1; }
  100% { opacity: 0.6; transform: scale(1); }
}
@keyframes inColourA {
  0% { transform: translateX(-14px); }
  100% { transform: translateX(0); }
}
@keyframes inColourB {
  0% { transform: translateX(14px); }
  100% { transform: translateX(0); }
}
@keyframes inLineSettle {
  0% { opacity: 0; transform: translateX(var(--lx, 8px)) scaleX(0.6); }
  100% { opacity: 1; transform: translateX(0) scaleX(1); }
}
.in-line line:nth-child(odd) { --lx: 10px; }
.in-line line:nth-child(even) { --lx: -10px; }
@keyframes inMarkDraw {
  0% { stroke-dashoffset: 1; opacity: 0.4; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes inSymbolA {
  0% { transform: translate(-10px, 0) rotate(-8deg); opacity: 0.5; }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes inSymbolB {
  0% { transform: translate(10px, 0); opacity: 0.5; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@media (max-width: 900px) {
  .und-m2 .und-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
}
@media (max-width: 760px) {
  .und-scroll { height: 560vh; }
  .in-canvas { width: min(70vw, 13rem); }
}
@media (prefers-reduced-motion: reduce) {
  .und-scroll { height: auto; }
  .und-stage {
    position: static; height: auto; min-height: 0; padding: var(--s7) 0;
    display: block;
  }
  .und-m {
    position: static; opacity: 1 !important; transform: none !important;
    margin: 0 auto var(--s7); pointer-events: auto;
  }
  .und-m:last-child { margin-bottom: 0; }
  /* every study shown at once, fixed and legible, in reading order --
     the instrument's whole point (six related behaviors) stays
     understandable without needing to select through them one by one */
  .instrument { flex-direction: column; }
  .in-canvas { display: none; }
  .in-labels { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .in-label {
    cursor: default; color: var(--ink) !important; border: none !important;
    pointer-events: none;
  }
  .in-label::before { content: "— "; color: var(--accent); }
  /* a plain static band, image then text in reading order, rather
     than an overlay -- simplest correct fallback once .und-stage is
     no longer a single pinned/grid composition */
  .und-m3-bg {
    position: relative; width: 100%; height: 50vh;
    margin: 0 auto var(--s6); opacity: 1;
  }
}

/* ══ The Process ═══════════════════════════════════════════════════
   Redesign: one continuous warm-white field, five movements (Encounter,
   Move Inward, Respond, Keep, a closing coda), each with its own
   arrival / hold / departure and its own visual relationship becoming
   the next. No card, no giant Yantra, no grey scrim -- see the note
   in index.html for what was removed and why.
   TEMPORARY PLACEHOLDER IMAGERY (Respond and Keep only; Move Inward
   is a cropped detail of the approved production Sri Yantra plate). */
.process { position: relative; }
.process-scroll { height: 720vh; position: relative; }
.process-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--ground);
}
.process-kicker {
  position: absolute; left: 50%; top: var(--s6); z-index: 3;
  transform: translateX(-50%);
  margin: 0; color: var(--accent); text-align: center;
  opacity: var(--pf-kicker, 0);
}

/* ── shared movement scaffolding ─────────────────────────────────── */
.pm {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.pm-tag { margin: 0 0 var(--s2); color: var(--accent); }
.pm-line, .pm-lead { margin: 0; color: var(--ink); }

/* 1 · Encounter -- typography alone, enough authority to hold the
   viewport on its own; no card, no border, no second symbol. As it
   departs, a quiet warmth gathers off to the side where Move Inward's
   own tactile material is about to arrive -- material beginning to
   emerge, not a hard cut into it. */
.pm-encounter {
  flex-direction: column; text-align: center;
  opacity: var(--pm-encounter, 0);
}
.pm-lead {
  max-width: 32rem;
  font: var(--v-monument); font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.12;
}
.pm-encounter-field {
  position: absolute; z-index: 0; right: 8%; top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 26rem); aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 50%, rgba(210, 190, 160, 0.4), transparent 72%);
  opacity: var(--pm-encounter-material, 0);
}

/* 2/3/4 · image + copy movements share one asymmetric two-column
   composition, sides alternating for rhythm rather than four equal
   cards. Text lives on plain warm white, never over the photograph,
   so no scrim is ever needed for legibility. */
.pm-inward, .pm-respond, .pm-keep {
  width: min(100% - (var(--pad) * 2), var(--live));
  margin-inline: auto;
  display: grid; column-gap: clamp(var(--s6), 6vw, var(--s7));
  align-items: center;
}
.pm-inward { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pm-keep { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
/* Respond gets the most visual weight of any movement -- human
   making is the emotional centre this sequence is building toward */
.pm-respond { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.pm-respond .pm-visual { order: -1; }

.pm-visual {
  position: relative; overflow: hidden; border-radius: 2px;
  background: #ECE6D8;
  box-shadow: 0 30px 80px rgba(30, 22, 12, 0.14);
}
.pm-visual picture, .pm-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-visual--inward { aspect-ratio: 4 / 3; transform: scale(var(--pm-inward-s, 0.94)); }
.pm-visual--inward img { object-position: 30% 40%; }
.pm-visual--respond { aspect-ratio: 6 / 5; }
.pm-visual--respond img { object-position: 68% 45%; }
.pm-visual--keep { aspect-ratio: 4 / 3; }
.pm-visual--keep img { object-position: 50% 45%; }

.pm-copy { max-width: 28rem; }
.pm-inward .pm-line { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 300; line-height: 1.4; }

.pm-inward { opacity: var(--pm-inward, 0); }
.pm-respond { opacity: var(--pm-respond, 0); }
.pm-keep { opacity: var(--pm-keep, 0); }

/* 3 · Respond -- the primary line clears before the four-second
   passage arrives; they are never both visible, and no unsupported
   claim ("before it is overthought") survives into either */
.pm-respond-primary {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 300; line-height: 1.4;
  opacity: var(--pm-respond-primary, 1);
  position: absolute;
}
.pm-four {
  opacity: var(--pm-four, 0);
}
.pm-four-lead {
  margin: 0 0 var(--s3); color: var(--ink);
  font: var(--v-monument); font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.pm-four p:not(.pm-four-lead) {
  margin: 0 0 var(--s3); color: var(--graphite);
  font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 300; line-height: 1.55;
  max-width: 26rem;
}
.pm-four p:last-child { margin-bottom: 0; }

/* 4 · Keep -- the longest reading hold, the largest image: the
   emotional destination of the sequence */
.pm-keep-text p {
  margin: 0 0 var(--s3); color: var(--graphite);
  font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 300; line-height: 1.55;
  max-width: 27rem;
}
.pm-keep-text p:last-child { margin-bottom: 0; color: var(--ink); }

/* 5 · a quiet coda, closing the Process sequence itself before the
   page hands off to the separate chapter-close line */
.pm-coda { flex-direction: column; text-align: center; opacity: var(--pm-coda, 0); }
.pm-coda-line {
  margin: 0; max-width: 30rem;
  font: var(--v-monument); font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.022em; line-height: 1.32; color: var(--ink);
}

@media (max-width: 900px) {
  .pm-inward, .pm-respond, .pm-keep { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
  .pm-respond .pm-visual { order: 0; }
  .pm-copy { max-width: var(--measure); }
}
@media (max-width: 760px) {
  .process-scroll { height: 860vh; }
  .pm-visual--inward, .pm-visual--respond, .pm-visual--keep { aspect-ratio: 4 / 3; max-height: 40vh; }
}
@media (prefers-reduced-motion: reduce) {
  .process-scroll { height: auto; }
  .process-stage { position: static; height: auto; padding: var(--s6) 0; display: flex; flex-direction: column; gap: var(--s7); }
  .process-kicker { position: static; transform: none; padding: 0 var(--pad); opacity: 1; }
  .pm {
    position: relative; inset: auto; opacity: 1 !important;
    padding: 0 var(--pad);
  }
  .pm-visual { transform: none !important; }
  .pm-respond-primary { position: static; opacity: 1; margin: 0 0 var(--s4); }
  .pm-four { opacity: 1; }
  .pm-four p:not(.pm-four-lead) { color: var(--graphite); }
}

/* ══ Why the method works ════════════════════════════════════════
   Five movements, one continuous abstract field: a single circular
   instrument (the same visual grammar as Movement 2's instrument
   above) that gains one relationship per movement rather than five
   separate illustrations. Text lives in the open ground beside it. */
.method { position: relative; }
.method-scroll { height: 620vh; position: relative; }
.method-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--ground);
  display: grid; place-items: center;
}
.method-kicker {
  position: absolute; left: 50%; top: var(--s6); z-index: 3;
  transform: translateX(-50%);
  margin: 0; color: var(--accent); text-align: center;
  opacity: var(--mf-kicker, 0);
}

.method-field {
  position: absolute; right: 8%; top: 50%; z-index: 0;
  transform: translateY(-50%);
  width: min(46vw, 30rem); aspect-ratio: 1 / 1;
}
.mf-svg { width: 100%; height: 100%; overflow: visible; }
.mf-ring { fill: none; stroke: var(--grey-2); stroke-width: 0.5; }
.mf-core {
  fill: none; stroke: var(--accent); stroke-width: 1.2;
  opacity: var(--mf-breath, 0);
  transform-origin: 50px 50px;
  transform: scale(var(--mf-breath-s, 0.85));
}
.mf-rings { fill: none; stroke: var(--graphite); stroke-width: 0.9; opacity: var(--mf-repetition, 0); }
.mf-lines { stroke: var(--graphite); stroke-width: 0.9; opacity: var(--mf-colour, 0); }
.mf-lines line:nth-child(1) { stroke: var(--accent); }
.mf-lines line:nth-child(3) { stroke: #48C4E4; }
.mf-symbol-a { fill: none; stroke: var(--graphite); stroke-width: 1; opacity: var(--mf-symbol, 0); }
.mf-symbol-b { fill: none; stroke: var(--accent); stroke-width: 1; opacity: var(--mf-symbol, 0); }
.mf-record { fill: var(--accent); opacity: var(--mf-record, 0); }

.mm {
  position: absolute; z-index: 2; left: var(--pad);
  top: 50%; transform: translateY(-50%);
  width: min(100% - (var(--pad) * 2), 28rem);
  opacity: 0; pointer-events: none;
}
.mm-breath     { opacity: var(--mf-breath, 0); }
.mm-repetition { opacity: var(--mf-repetition, 0); }
.mm-colour     { opacity: var(--mf-colour, 0); }
.mm-symbol     { opacity: var(--mf-symbol, 0); }
.mm-record     { opacity: var(--mf-record, 0); }
.mm-tag { margin: 0 0 var(--s3); color: var(--accent); }
.mm-lead {
  margin: 0 0 var(--s4);
  font: var(--v-monument); font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.024em; line-height: 1.2; color: var(--ink);
}
.mm-body { margin: 0; max-width: 26rem; color: var(--graphite); }

@media (max-width: 900px) {
  .method-field { right: auto; left: 50%; top: 30%; transform: translate(-50%, -50%); width: min(60vw, 20rem); }
  .mm { left: var(--pad); top: auto; bottom: 8vh; transform: none; text-align: left; }
}
@media (max-width: 760px) { .method-scroll { height: 760vh; } }
@media (prefers-reduced-motion: reduce) {
  .method-scroll { height: auto; }
  .method-stage {
    position: static; height: auto; padding: var(--s7) 0;
    display: flex; flex-direction: column; gap: var(--s7);
  }
  .method-kicker { position: static; transform: none; opacity: 1; margin-bottom: var(--s5); }
  .method-field { display: none; }
  .mm {
    position: relative; inset: auto; left: auto; top: auto; transform: none;
    opacity: 1 !important; pointer-events: auto; margin: 0 auto;
    padding: 0 var(--pad); text-align: left;
  }
}

/* ══ Chapter close ═══════════════════════════════════════════════
   One quiet, stable sentence -- the whole Explorations chapter (Sri
   Yantra, the Process, Why the Method Works) ends here before the
   page moves on to Gabrielle, Editions and Journal. No blank runway:
   a single short, centred hold, then normal document flow continues. */
.chapter-close {
  padding: var(--s7) var(--pad);
  display: flex; justify-content: center;
}
.cc-line {
  margin: 0; max-width: 34rem; text-align: center;
  font: var(--v-monument); font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  letter-spacing: -0.018em; line-height: 1.35; color: var(--ink);
}
