/* Pillar Linked — variant-c "The Instrument, Mk II"
   Tokens: the nine brand colors + white card faces. Nothing else. */

:root {
  --navy-900: #182E45;
  --navy-700: #24405F;
  --navy-500: #3A5C8C;
  --steel-500: #7E93AB;
  --steel-300: #A9BACD;
  --steel-100: #D9E2EC;
  --grey-600: #64798F;
  --paper: #F6F4EF;
  --offwhite: #F2F4F8;
  --white: #FFFFFF;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 64px;
}

/* ---------- reset / base ---------- */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
html.rm { scroll-behavior: auto; }
html.rm .monolith .depth { transform: none !important; } /* hard-stop: pointer depth can never move the mark under reduced motion */

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--navy-500); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: 2px;
}
/* navy-500 vanishes against navy-900 — dark grounds get a visible ring */
.nav :focus-visible,
.sec-dark :focus-visible,
.footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--steel-100);
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  background: var(--steel-100);
  color: var(--navy-900);
  font: 700 14px/1 var(--font-sans);
  padding: 12px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .12s var(--ease);
}
.skip:focus-visible { top: 0; }

/* ---------- type ---------- */

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  max-width: 13em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  max-width: 26em;
  margin-bottom: 20px;
}

h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

.sec-label {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-700);
  margin-bottom: 22px;
}
.sec-dark .sec-label { color: var(--steel-300); }

.body-m {
  font-size: 1.0625rem;
  max-width: 36em;
  margin-bottom: 14px;
}

.frag {
  font: 400 13px/1.4 var(--font-mono);
  letter-spacing: .02em;
}

.inline-fig {
  font-family: var(--font-mono);
  font-size: .95em;
  white-space: nowrap;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lockup-icon { width: 26px; height: 26px; flex: none; }

.wordmark {
  font-size: 1.0625rem;
  color: var(--steel-300);
  font-weight: 400;
  white-space: nowrap;
}
.wordmark strong { font-weight: 700; color: var(--offwhite); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a:not(.btn) {
  font-size: .9375rem;
  color: var(--offwhite);
  text-decoration: none;
  transition: color .12s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--steel-300); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  font: 700 .9375rem/1 var(--font-sans);
  color: var(--navy-900);
  background: var(--steel-100);
  border-radius: 8px;
  padding: 15px 24px;
  text-decoration: none;
  transition: background-color .12s var(--ease);
}
.btn:hover { background: var(--offwhite); }
.btn-nav { padding: 10px 16px; font-size: .875rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--offwhite);
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding-block: 72px;
}

.kicker {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--steel-300);
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--steel-300);
  max-width: 30em;
  margin-top: 24px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 36px;
}

.hero-frag { color: var(--steel-300); } /* was steel-500; 4.38:1 at 13px failed WCAG AA — steel-300 (7.0:1) keeps the quiet register and clears it */

.hero-mark { justify-self: center; position: relative; }
.monolith { width: min(380px, 34vw); height: auto; }

/* ---------- sections ---------- */

.sec { padding-block: 104px; }
.sec-paper { background: var(--paper); color: var(--navy-900); }
.sec-dark { background: var(--navy-900); color: var(--offwhite); }
.sec-seam { border-top: 1px solid var(--steel-100); }

section { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ---------- 01 · the leak / map ---------- */

.map-plate {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 8px;
  padding: 24px 32px 28px;
  margin-top: 52px;
}

.plate-head {
  display: flex;
  justify-content: space-between;
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-700);
  border-bottom: 1px solid var(--steel-100);
  padding-bottom: 14px;
  margin-bottom: 36px;
}

.map { position: relative; padding-bottom: 112px; }

.map-axis {
  display: flex;
  align-items: center;
}

.map-node {
  font: 500 13px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--navy-700);
  border-radius: 4px;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
.map-node:hover { background: var(--offwhite); border-color: var(--navy-500); }

.map-link {
  flex: 1;
  min-width: 36px;
  height: 0;
  border-top: 1px solid var(--steel-300);
  position: relative;
  align-self: center;
  transition: border-color .12s var(--ease);
}
.map-link .a-h,
.map-link .a-v {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  background: var(--white);
  padding: 0 6px;
  font: 500 14px/1 var(--font-mono);
  color: var(--navy-700);
  transition: color .12s var(--ease);
}
.a-v { display: none; }

/* nodes light + their links brighten */
.map-node:hover + .map-link,
.map-link:has(+ .map-node:hover),
.map-link:has(+ .map-anchor .map-node:hover) {
  border-color: var(--navy-500);
}
.map-node:hover + .map-link .a-h,
.map-link:has(+ .map-node:hover) .a-h,
.map-link:has(+ .map-anchor .map-node:hover) .a-h {
  color: var(--navy-500);
}

.map-anchor { position: relative; display: inline-flex; }

.leak-stem {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  height: 52px;
  width: 0;
  border-left: 1px dashed var(--navy-700);
}

.leak-label {
  position: absolute;
  top: calc(100% + 58px);
  right: 0;
  white-space: nowrap;
  font: 400 13px/1.4 var(--font-mono);
  color: var(--navy-700);
}

.map-payback {
  position: absolute;
  left: 0;
  bottom: 0;
  font: 500 13px/1.4 var(--font-mono);
  color: var(--navy-700);
  border-left: 2px solid var(--navy-500);
  padding-left: 12px;
}

/* ---------- 02 · founder ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 72px;
  align-items: center;
}

.plate { max-width: 340px; width: 100%; }

.plate-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  padding: 16px;
}

.reg { position: absolute; width: 12px; height: 12px; }
.reg-tl { top: 7px; left: 7px; border-top: 1px solid var(--steel-300); border-left: 1px solid var(--steel-300); }
.reg-tr { top: 7px; right: 7px; border-top: 1px solid var(--steel-300); border-right: 1px solid var(--steel-300); }
.reg-bl { bottom: 7px; left: 7px; border-bottom: 1px solid var(--steel-300); border-left: 1px solid var(--steel-300); }
.reg-br { bottom: 7px; right: 7px; border-bottom: 1px solid var(--steel-300); border-right: 1px solid var(--steel-300); }

.plate-pending {
  position: absolute;
  inset: 16px;
  background: var(--offwhite);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.plate-mark { width: 72px; }
.plate-note {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-700);
}

.plate-img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: cover;
  border-radius: 4px;
  display: none;
}
.plate.has-photo .plate-img { display: block; }
.plate.has-photo .plate-pending { display: none; }

.plate-cap {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em;
  color: var(--navy-700);
  margin-top: 16px;
}

/* ---------- 01 · the work (exploded monolith + process) ---------- */

.work-diagram {
  display: grid;
  grid-template-columns: 200px 1fr; /* fix cycle 7: 280→200 — the exploded figure was over-stretched; ~30% smaller, still centered against all four rows */
  gap: 40px 72px;
  margin-top: 56px;
  align-items: stretch;
}

/* fix cycle 8: the figure spans pillars 1–3, not all four rows. Lifted so the
   top and bottom course midpoints straddle the Pillar 1 / Pillar 3 heading
   midpoints symmetrically (course-mid span 456px vs heading span 395px — the
   61px mismatch is split ±30.5px; exact dual alignment would need a resize,
   which cycle 10 forbids). Tuned at 1440: -21px from the column top puts
   c1-mid/c3-mid equidistant from their headings and keeps the whole figure
   above The Link row. At narrower desktop widths rows grow taller and the
   pinned top drifts the figure UP — safe direction, never into The Link. */
.exploded-col { display: flex; flex-direction: column; justify-content: flex-start; }
.exploded { width: 100%; height: auto; margin-top: 119px; } /* courses sit on the three block separators: c1 mid = wb-1/wb-2 hairline, c2 = wb-2/wb-3, c3 = wb-3/link — svg gap geometry matches the blocks' NATURAL 167.4px rhythm (the 1fr rows must not be stretched by this figure column: keep figure column height below the blocks' natural height or the rhythm inflates and the mids drift) */
.exploded-cap {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-700);
  text-align: center;
  margin-top: 20px;
}

.work-blocks {
  display: grid;
  grid-template-rows: repeat(4, 1fr); /* three pillars + the link, equal rhythm */
}

.wblock {
  position: relative;
  padding: 10px 0 10px 0; /* fix cycle 9 (invoker): rhythm −15% — 20→10 with kicker/h3/frag margins trimmed below */
  border-top: 1px solid var(--steel-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color .12s var(--ease);
}
.wb-link { border-bottom: 1px solid var(--steel-100); } /* fourth block closes the list */
.wblock:hover { border-top-color: var(--navy-900); }

.wb-kicker {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.wblock h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.wb-glyph { height: 30px; width: auto; flex: none; }

/* hover ↔ mark mapping lives at the end of the motion section — it must
   sit after the workmap reveal's settled-state rule in the cascade */
.exploded .xp { transition: opacity .12s var(--ease); }
/* fix cycle 7: the thread is ONE rect (full coverage, y 8→183) but its rest
   fill is steel-100 on paper — ~1.06:1, invisible at any opacity. The Link
   highlight therefore shifts its FILL to navy-500 (strength on par with a
   lit course face) instead of relying on opacity alone. */
.exploded .xp-thread rect { transition: fill .12s var(--ease); }

.wblock p { max-width: 38em; }

/* the link — the fourth block of the list, a structural twin of the pillars
   (fix cycle 8): same kicker → glyph + h3 → body anatomy, the bare thread
   glyph sitting in the course-glyph slot. The thread is the tell; no spec
   fragment — the ongoing relationship doesn't reduce to one. */

.work-close {
  font: 400 13px/1.4 var(--font-mono);
  color: var(--navy-700);
  margin-top: 30px;
}

.frag-inset {
  display: inline-block;
  align-self: flex-start;
  font: 400 13px/1.4 var(--font-mono);
  color: var(--navy-700);
  background: var(--offwhite);
  border-radius: 4px;
  padding: 6px 12px;
  margin-top: 8px;
  transition: background-color .12s var(--ease);
}
.wblock:hover .frag-inset { background: var(--steel-100); }

/* ---------- 03 · engage ---------- */

/* booking panel — the scheduler is simply present, no expand mechanism.
   The iframe src lives in the HTML with loading="lazy": visually always
   there, but the third-party frame costs nothing until the visitor
   approaches it. Fix cycle 7: 720px forced Calendly's narrow STACKED
   layout (tall branded header + centered column, ~1400px of widget).
   ≥~1000px of iframe width flips it to the horizontal desktop layout —
   profile column left, calendar center, time list right — so the panel
   is 1040px (iframe 1038px inside the hairline), height fixed at 700px
   so the frame never shifts layout. */
.book-panel {
  max-width: 1040px;
  height: 700px;
  margin-top: 44px;
  margin-inline: auto; /* centered under the left-set heading — the panel is the section's counterweight */
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  border-radius: 8px;
  overflow: clip;
}

/* the wide scheduler already fills the band — tighter dark ground BELOW it
   (104→88). The top keeps the sections' shared 104px: this page ends 13px
   inside Chrome's ~2500px iframe lazy-load distance when the top is cut to
   80px, and the eager third-party fetch costs more than 24px of navy buys. */
#engage.sec { padding-bottom: 88px; }
.book-iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--navy-700); }
.book-noscript { display: inline-block; margin: 24px; background: var(--steel-100); color: var(--navy-900); text-decoration: none; border-radius: 8px; padding: 12px 20px; font-weight: 700; }

/* fix cycle 8 — even card insets. In the horizontal Calendly layout the
   widget card sits 68px below the panel top but only 32px above its bottom
   (Calendly's own internal page margins — unreachable cross-origin). The
   36px surplus is cropped instead: the iframe keeps its full 700px height
   but shifts up 36px under the panel's overflow:clip, and the panel
   shrinks to match, so the card reads 32px from both edges.
   LOAD-BEARING: the panel's margin-top grows by the same 36px so the
   iframe's absolute page position — and with it the lazy-load boundary
   (~2529px from the fold at scroll 0, ~29px outside Chrome's ~2500px
   fetch distance; see fix cycle 7) — is byte-identical. Scoped ≥1100px:
   below that the container squeezes the iframe under ~1000px, Calendly
   flips to the stacked layout, and its internal margins differ. */
@media (min-width: 1100px) {
  .book-panel { height: 664px; margin-top: 80px; }
  .book-iframe { height: 700px; margin-top: -36px; }
}

/* ---------- footer ---------- */

.footer {
  background: var(--navy-900);
  color: var(--offwhite);
  border-top: 1px solid var(--navy-700);
  padding: 72px 0 56px;
}

.settled-map { width: 220px; margin-bottom: 44px; }

.foot-lockup { display: flex; align-items: center; gap: 10px; }
.foot-lockup .lockup-icon { width: 24px; height: 24px; }

.tagline {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 22px 0 30px;
}

.foot-legal {
  font: 400 12px/1.9 var(--font-mono);
  color: var(--steel-300);
}

/* ---------- 404 ---------- */

.err {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy-900);
  color: var(--offwhite);
  display: flex;
  flex-direction: column;
}
.err .container { width: 100%; } /* flex auto-margins disable stretch — restore the grid */
.err-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 64px;
}
.err-label {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--steel-300);
  margin-bottom: 24px;
}
.err h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 16em; }
.err-back {
  display: inline-block;
  font: 400 15px/1 var(--font-mono);
  color: var(--offwhite);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 32px;
  transition: color .12s var(--ease);
}
.err-back:hover { color: var(--steel-300); }
.err-top { padding-top: 28px; }

/* =============================================================
   MOTION — Mk II. Custom easing only. Everything below collapses
   under .rm (reduced motion) and without JS.
   ============================================================= */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* one-shot scroll reveals */
html.js:not(.rm) [data-reveal] { opacity: 0; }
html.js:not(.rm) [data-reveal].on {
  animation: rise .2s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

/* map assembly — stepped, left-to-right, latched */
html.js:not(.rm) [data-map] .map-node,
html.js:not(.rm) [data-map] .map-link,
html.js:not(.rm) [data-map] .leak-stem,
html.js:not(.rm) [data-map] .leak-label,
html.js:not(.rm) [data-map] .map-payback { opacity: 0; }
html.js:not(.rm) [data-map].on .map-node,
html.js:not(.rm) [data-map].on .map-link,
html.js:not(.rm) [data-map].on .leak-stem,
html.js:not(.rm) [data-map].on .leak-label,
html.js:not(.rm) [data-map].on .map-payback {
  animation: slide-in .2s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

/* work diagram — courses + blocks in step; the link block lands last.
   The .xp reveals fill BACKWARDS, not both: a finished `both` fill keeps
   owning opacity and silently defeats the hover↔mark dim below (that was
   the dilution) — backwards covers the delay, then releases to the
   cascade's settled opacity:1, which the hover rules may override. */
html.js:not(.rm) [data-workmap] .xp,
html.js:not(.rm) [data-workmap] .wblock { opacity: 0; }
html.js:not(.rm) [data-workmap].on .xp { opacity: 1; }
html.js:not(.rm) [data-workmap].on .xp-thread { animation: settle .2s var(--ease) backwards; }
html.js:not(.rm) [data-workmap].on .xp-c1 { animation: settle .2s var(--ease) backwards .07s; }
html.js:not(.rm) [data-workmap].on .xp-c2 { animation: settle .2s var(--ease) backwards .14s; }
html.js:not(.rm) [data-workmap].on .xp-c3 { animation: settle .2s var(--ease) backwards .21s; }
html.js:not(.rm) [data-workmap].on .wb-1 { animation: rise .2s var(--ease) both .07s; }
html.js:not(.rm) [data-workmap].on .wb-2 { animation: rise .2s var(--ease) both .14s; }
html.js:not(.rm) [data-workmap].on .wb-3 { animation: rise .2s var(--ease) both .21s; }
html.js:not(.rm) [data-workmap].on .wb-link { animation: rise .2s var(--ease) both .28s; }

/* hover ↔ mark mapping (restored fix cycle 5): hovering a pillar block
   selects ITS course in the exploded mark — the other two courses AND the
   thread fall back to .45 (a 55% dim; the figure is decorative-informational,
   everything stays comfortably visible). Hovering the link card is the
   inverse: the THREAD stays lit, all three courses dim. 120ms brand ease
   (transition on .exploded .xp). Fine pointers only — inert on touch and
   under reduced motion. Placed after the settled-state rule above so the
   cascade resolves hover > settled > hidden. */
@media (hover: hover) and (pointer: fine) {
  html:not(.rm) .work-diagram:has(.wb-1:hover) .xp-c2,
  html:not(.rm) .work-diagram:has(.wb-1:hover) .xp-c3,
  html:not(.rm) .work-diagram:has(.wb-2:hover) .xp-c1,
  html:not(.rm) .work-diagram:has(.wb-2:hover) .xp-c3,
  html:not(.rm) .work-diagram:has(.wb-3:hover) .xp-c1,
  html:not(.rm) .work-diagram:has(.wb-3:hover) .xp-c2,
  html:not(.rm) .work-diagram:has(.wblock:not(.wb-link):hover) .xp-thread,
  html:not(.rm) .work-diagram:has(.wb-link:hover) .xp-c1,
  html:not(.rm) .work-diagram:has(.wb-link:hover) .xp-c2,
  html:not(.rm) .work-diagram:has(.wb-link:hover) .xp-c3 { opacity: .35; }
  /* the link's own highlight: the whole thread lights navy-500 (see the
     coverage/contrast note at .xp-thread above) while the courses dim */
  html:not(.rm) .work-diagram:has(.wb-link:hover) .xp-thread rect { fill: var(--navy-500); }
}

/* hero monolith assembly — the one sanctioned arrival sequence.
   Mk III choreography (fix cycle 3, light removed fix cycle 5): courses
   land first, ground up — a pillar is laid, not bounced — then ONE thread
   climbs the stack from the bottom (the "Linked" is the payoff, a single
   line rising through things that now exist), and the sequence is done.
   Trigger: main.js adds .assembled ~200ms after load. Timeline:
     c3 0–.36s · c2 .34–.70s · c1 .68–1.04s (each: fade .26s inside a
     .36s drop-and-settle) · beat · th-b (lower link) 1.14–1.54s ·
     th-a (upper link) 1.38–1.78s.
   Brand ease only, zero overshoot. */
.monolith .ml, .monolith .th { transform-box: fill-box; }
html.js:not(.rm) .monolith .ml-c1,
html.js:not(.rm) .monolith .ml-c2,
html.js:not(.rm) .monolith .ml-c3 {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .26s var(--ease), transform .36s var(--ease);
}
html.js:not(.rm) .monolith .ml-c3 { transition-delay: 0s; }   /* bottom course lands… */
html.js:not(.rm) .monolith .ml-c2 { transition-delay: .34s; } /* …then middle… */
html.js:not(.rm) .monolith .ml-c1 { transition-delay: .68s; } /* …then top */
/* Each 16-unit link rect shows only ~4 units of open gap — the rest is
   buried under the courses. A single eased scale squeezes all visible
   tip travel into a sliver of the duration and reads as a pop, so the
   draw is keyframed instead: fast buried run-up (0–10%), the tip
   climbing the open gap for most of the duration (10–75%), buried tail
   to rest (75–100%). Both rects share the geometry, so one set of stops
   serves both. Rest state = scaleY(1): pixel-identical to no transform. */
@keyframes th-rise {
  0%   { transform: scaleY(0); }
  10%  { transform: scaleY(0.26); } /* tip at the gap mouth, still buried */
  75%  { transform: scaleY(0.62); } /* tip seated under the course above */
  100% { transform: scaleY(1); }
}
html.js:not(.rm) .monolith .th {
  transform: scaleY(0);
  transform-origin: 50% 100%; /* each link rises from the course face below it */
}
/* fill backwards, not both: the 0% frame covers the delay, and at the end
   the fill releases to the cascade's `transform: none` (visually identical
   to the 100% frame) — computed rest is `none`, byte-for-byte the approved
   steady state, with no persistent identity matrix nudging rasterization. */
html.js:not(.rm) .monolith.assembled .th { animation: th-rise .4s var(--ease) backwards; }
html.js:not(.rm) .monolith.assembled .th-b { animation-delay: 1.14s; } /* lower link first… */
html.js:not(.rm) .monolith.assembled .th-a { animation-delay: 1.38s; } /* …upper continues the same climb — visible tips hand off ~1.42s */
/* once the sequence has played, main.js adds .threaded and the spent
   animations detach — a rect still carrying a finished animation rasterizes
   on its own layer and its edge AA drifts a hair from the plain render.
   Detaching restores byte-identical steady-state pixels (verified against
   the rm render). Computed transform is already `none` via the rule below. */
html.js:not(.rm) .monolith.threaded .th { animation: none; }
html.js:not(.rm) .monolith.assembled .ml-c1,
html.js:not(.rm) .monolith.assembled .ml-c2,
html.js:not(.rm) .monolith.assembled .ml-c3 { opacity: 1; transform: none; }
html.js:not(.rm) .monolith.assembled .th { transform: none; }

/* pointer depth layers */
.depth { transform-box: fill-box; transform-origin: center; }

/* reduced motion: force final states, kill all animation */
html.rm *, html.rm *::before, html.rm *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =============================================================
   PRINT — the one-pager prints as a light-ink document
   ============================================================= */

@media print {
  .nav, .skip, .btn, .hero-mark, .book-panel { display: none; } /* hero mark is reversed-ink — invisible on paper; the scheduler doesn't print */
  .hero, .sec-dark, .footer, body { background: #FFFFFF !important; }
  .hero, .hero *, .sec-dark, .sec-dark *, .footer, .footer * { color: #182E45 !important; }
  .footer { border-top-color: #D9E2EC; }
  .hero { min-height: 0; }
  [data-reveal], [data-map] .map-node, [data-map] .map-link, [data-map] .leak-stem,
  [data-map] .leak-label, [data-map] .map-payback, [data-workmap] .xp,
  [data-workmap] .wblock, .monolith .ml, .monolith .th {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { order: 2; }
  .monolith { width: min(46vw, 250px); }
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .plate { margin-inline: auto; }
  .work-diagram { grid-template-columns: 1fr; gap: 40px; }
  .exploded-col { display: none; }
}

@media (max-width: 760px) {
  .sec { padding-block: 72px; }
  .container { padding-inline: 20px; }

  /* map goes vertical */
  .map { padding-bottom: 0; }
  .map-axis { flex-direction: column; align-items: center; }
  .map-node { width: min(280px, 100%); text-align: center; }
  .map-link {
    flex: none;
    width: 0;
    min-width: 0; /* base rule's min-width:36px left the border-left stem 18px off the centered arrow glyph */
    height: 32px;
    border-top: 0;
    border-left: 1px solid var(--steel-300);
    align-self: center;
  }
  .a-h { display: none; }
  .a-v {
    display: block;
    padding: 3px 0 !important;
  }
  .map-anchor { flex-direction: column; align-items: center; }
  .leak-stem { display: none; }
  .leak-label {
    position: static;
    white-space: normal;
    text-align: left;
    border-left: 1px dashed var(--navy-700);
    padding-left: 12px;
    margin-top: 16px;
    max-width: 280px;
  }
  .map-payback { position: static; margin-top: 28px; display: inline-block; }
  .map-plate { padding: 20px 20px 24px; }
}

@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .book-panel { height: 640px; }
}
