/* ============================================================================
   HALDEMAN.CO — SITE LAYER
   Marketing components over the paper token system (css/tokens.css, verbatim).
   Register: Distyl mechanics on paper — blur-rise reveals, drawn geometry,
   evidence ticker, dark landing. tokens.css is never edited; overrides live here.
   ============================================================================ */

:root {
  --page-max: 72rem;            /* outer container: nav, grids, footer */
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 0.9s;
  --guide: rgba(10, 10, 10, 0.04);
  --paper-veil: rgba(247, 244, 237, 0.72);

  /* RHYTHM CONTRACT — the only vertical-spacing constants the site layer may
     use between blocks. Beat-to-beat = --rhythm-beat (each beat pads half).
     Head-to-content = --rhythm-head. Block-to-block inside a beat = --rhythm-block. */
  --rhythm-beat: clamp(5.5rem, 10vh, 8rem);
  --rhythm-head: 3rem;
  --rhythm-block: 2.25rem;

  /* TYPE ROLES — site-layer heading scale (hero h1 keeps tokens --t-hero) */
  --t-site-h2: clamp(2.1rem, 3.4vw, 3rem);
}

::selection { background: rgba(196, 145, 86, 0.32); }

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }
[id] { scroll-margin-top: 6rem; }

/* Re-scope token globals that leak into chrome */
.site-nav p, .site-footer p, .ticker p { max-width: none; margin: 0; }

.skip-link {
  position: absolute; left: var(--s-4); top: -3rem; z-index: 100;
  background: var(--anchor); color: var(--paper);
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: var(--s-2) var(--s-4); transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: var(--s-4); }

/* ----------------------------------------------------------------------------
   NAV
   ---------------------------------------------------------------------------- */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--hair);
}
.site-nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  min-height: 4.25rem;
}
.nav-links {
  display: flex; flex-wrap: wrap; column-gap: var(--s-6); row-gap: var(--s-2);
  justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--bronze-deep); }
.nav-links a[aria-current="page"] {
  color: var(--bronze-deep);
  border-bottom-color: var(--bronze);
}

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 0, "wght" 620;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--anchor);
  text-decoration: none;
}
.wordmark-dot { color: var(--bronze); }
/* desktop: the menu wrapper is transparent (its children are the grid items);
   the hamburger toggle only appears on mobile (≤960, below) */
.nav-menu { display: contents; }
.nav-toggle { display: none; }

/* ----------------------------------------------------------------------------
   BUTTONS + CHIPS
   ---------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--solid { background: var(--anchor); color: var(--paper); }
.btn--solid:hover { background: var(--bronze-deep); color: #FFF; }
.btn--line { border-color: var(--rule-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--bronze-deep); color: var(--bronze-deep); }

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  background: rgba(10, 10, 10, 0.06);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  line-height: 1;
}

/* ----------------------------------------------------------------------------
   HERO
   ---------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------
   HERO — scroll-driven sticky matchstick lattice (docs/04, the plan).
   .hero-scroll = the scroll track (its height = the scrub distance).
   .hero-stage  = pinned for one viewport while you scroll the track.
   DEFAULT (no .hero-linked) = final composed state (no JS / reduced-motion /
   ?static). Only .hero-linked — added pre-paint by an inline script when JS +
   motion are allowed — engages the tall track, the sticky pin, and the
   --pf/--ph/--ps scroll vars written by js/main.js (scroll-LINKED, not jacked).
   ---------------------------------------------------------------------------- */

.hero-scroll { position: relative; }
.hero-stage {
  position: relative;
  min-height: clamp(34rem, 86svh, 58rem);
  display: flex; align-items: center;
  overflow: clip;
}
.hero-stage-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--page-max); margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.4vw, 6.25rem); /* 7.4vw → ~94px at 1280: line 1 "Heroics don't scale." clears the honeycomb (the heroC composition Jonas validated; his written 8.2vw was an oversight that re-collides) */
  font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 560;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--anchor);
  max-width: 21ch;
  text-wrap: pretty;
  margin: 0;
}
/* The hero line is a two-sentence antithesis — each sentence holds its own line
   (problem → answer). The break carries the argument; the two block spans pin it
   so the browser never re-balances into a mid-clause wrap. (Sigrid + Jonas, R-hero.) */
.hero-headline span { display: block; }

/* full-bleed lattice canvas behind the headline */
.hero-lattice { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-lattice svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* engaged (scroll-linked) state — JS drives --pf/--ph/--ps */
.hero-linked.hero-scroll { height: 220svh; }
.hero-linked .hero-stage { position: sticky; top: 0; height: 100svh; min-height: 100svh; }
.hero-linked .lat-stick { opacity: clamp(0, (var(--pf, 0) * 1.2 - var(--i, 0)) * 7, 1); }
.hero-linked .lat-cell  { opacity: clamp(0, (var(--ph, 0) * 1.2 - var(--o, 0)) * 7, 1); }
.hero-linked .lat-scale { transform: scale(var(--ps, 0.62)); will-change: transform; }

/* Lattice material — DOUBLE-STROKE cylindrical matchstick stems + two-layer z-order.
   Each stem/bond = a DARK BASE (wider, warm bronze body) + a thinner LIGHT CENTER
   highlight on top = a rounded cylinder at every angle. The generator paints ALL
   stems in .lat-layer-stems first, then ALL heads in .lat-layer-nodes — so every
   head sits cleanly over every stem (consistent z-order, no dots-under-sticks). */
.lat-scale {
  transform-box: view-box;
  transform-origin: calc(var(--lat-ox, 640) * 1px) calc(var(--lat-oy, 762) * 1px);
  transform: scale(1);                 /* final state by default */
}
.lat-stick, .lat-cell { opacity: 1; }   /* final state by default */
.lat-layer { }                          /* inert z-order container (no transform/opacity) */
.lat-bond { stroke: #6B4A22; stroke-width: 5.2; stroke-linecap: round; fill: none; }
.lat-stem { stroke: #6B4A22; stroke-width: 5.2; stroke-linecap: round; fill: none; }
.lat-bond-hi { stroke: #D8AA68; stroke-width: 2.0; stroke-linecap: round; fill: none; }
.lat-stem-hi { stroke: #D8AA68; stroke-width: 2.0; stroke-linecap: round; fill: none; }
.lat-node { fill: url(#headGrad); }
.lat-node--deep { fill: var(--anchor); }
.lat-shadow { fill: rgba(20, 16, 12, 0.14); }

/* Grid guides — blueprint register; hero + figure sections only */
.guides {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--guide) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

/* ----------------------------------------------------------------------------
   BEATS + SECTION HEADS — the § grammar
   ---------------------------------------------------------------------------- */

.beat { position: relative; padding-block: calc(var(--rhythm-beat) / 2); }
.beat:first-of-type, .hero + .beat, .ticker + .beat { padding-top: var(--rhythm-beat); }
.beat:has(+ .landing) { padding-bottom: var(--rhythm-beat); }

.section-head { margin-bottom: var(--rhythm-head); }
.section-rule {
  display: block;
  height: 1px;
  background: var(--rule-strong);
  margin-bottom: var(--s-5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--reveal-dur) var(--reveal-ease);
}
.is-visible .section-rule, html:not(.js) .section-rule { transform: scaleX(1); }
.section-head .section-marker { margin-bottom: var(--s-4); }
.section-head h2 {
  font-size: var(--t-site-h2);
  font-variation-settings: "opsz" 72, "SOFT" 0, "wght" 580;
  max-width: 24ch;
  text-wrap: balance;
}
.section-head .section-sub {
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: var(--measure);
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

/* ----------------------------------------------------------------------------
   REVEAL-UP — Distyl mechanics, once, IO-driven
   ---------------------------------------------------------------------------- */

.reveal-up {
  transition: opacity var(--reveal-dur) var(--reveal-ease),
              transform var(--reveal-dur) var(--reveal-ease),
              filter var(--reveal-dur) var(--reveal-ease);
}
.js .reveal-up:not(.is-visible) {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(10px);
}
.reveal-up.is-visible { opacity: 1; transform: none; filter: none; }

/* ----------------------------------------------------------------------------
   EVIDENCE TICKER — marquee, edge-masked, hover-paused
   ---------------------------------------------------------------------------- */

.ticker {
  border-block: var(--hair);
  padding-block: var(--s-4);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: var(--s-7);
  padding-right: var(--s-7);
  animation: ticker-scroll 58s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; gap: var(--s-7); align-items: baseline; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: var(--t-mono-lg);
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.ticker-item strong { font-weight: 600; color: var(--bronze-deep); }
.ticker-src { color: color-mix(in srgb, var(--ink) 55%, transparent); font-size: var(--t-mono); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------------------
   STAT BAND
   ---------------------------------------------------------------------------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 var(--s-6);
  margin-top: var(--rhythm-block);
}
/* a two-stat teaser band (home §01) — two columns, held to a measure so the pair
   reads as a compact anchor, not a sprawled half-row of a four-up. */
.stat-band--pair { grid-template-columns: 1fr 1fr; max-width: 44rem; }
.stat { padding-block: var(--s-4); min-width: 0; }
.stat-line {
  display: block; height: 1px; background: var(--rule-strong);
  margin-bottom: var(--s-5);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--reveal-dur) var(--reveal-ease) 0.15s;
}
.is-visible .stat-line, html:not(.js) .stat-line { transform: scaleX(1); }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--anchor);
  margin-bottom: var(--s-3);
}
.stat-value .stat-unit { font-size: 0.6em; font-weight: 500; color: color-mix(in srgb, var(--ink) 58%, transparent); }
.stat-desc { font-size: var(--t-small); line-height: 1.5; margin-bottom: var(--s-3); }
.stat-src { display: block; }
.stat-src a { color: inherit; text-decoration-color: var(--rule-strong); }
.stat-src a:hover { color: var(--bronze-deep); }

/* ----------------------------------------------------------------------------
   ARGUMENT — the italic moment, one per beat
   ---------------------------------------------------------------------------- */

.argument {
  max-width: var(--content-max);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  margin-block: 0 var(--rhythm-block);
}
.argument em, .argument .accent-italic {
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 100, "wght" 400;
}

/* ----------------------------------------------------------------------------
   OFFER CARDS — the two doors
   ---------------------------------------------------------------------------- */

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--rhythm-block);
}
.offer-card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: var(--hair);
  border-radius: 2px;
  padding: var(--s-6);
  transition: border-color 0.25s;
}
.offer-card:hover { border-color: var(--bronze); }
.offer-card .section-marker { margin-bottom: var(--s-5); }
.offer-card h3 {
  font-size: var(--t-sub-h);
  font-variation-settings: "opsz" 40, "SOFT" 0, "wght" 580;
  margin-bottom: var(--s-2);
}
.offer-oneliner {
  font-style: italic;
  font-size: var(--t-lead);
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.offer-card p { max-width: none; margin-bottom: var(--s-4); }
.offer-card .offer-link { margin-top: auto; padding-top: var(--s-4); margin-bottom: 0; }

/* Quiet text link with drawn arrow */
.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  text-decoration: none;
}
.text-link .arrow { transition: transform 0.2s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------------------
   PILLAR LIST — ruled ordinal catalog
   ---------------------------------------------------------------------------- */

.pillar-list { list-style: none; margin: var(--rhythm-block) 0 0; padding: 0; }
.pillar-list > li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-top: var(--hair);
}
.pillar-list > li:last-child { border-bottom: var(--hair); }
.pillar-ord {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  padding-top: 0.4rem;
}
.pillar-body h3 {
  font-size: var(--t-sub-h);
  font-variation-settings: "opsz" 40, "SOFT" 0, "wght" 580;
  margin-bottom: var(--s-2);
}
.pillar-kicker {
  font-style: italic;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.pillar-body p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------------------
   TABLES — responsive card-stack under 640px
   ---------------------------------------------------------------------------- */

.tier-table th:first-child { width: 22%; }
.tier-table td:first-child {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 0, "wght" 580;
  font-size: 1.125rem;
  color: var(--anchor);
}

/* ----------------------------------------------------------------------------
   FIGURES
   ---------------------------------------------------------------------------- */

.figure { margin: var(--rhythm-block) 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure-caption {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.figure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--rhythm-block);
}
.figure-cell .figure { margin: 0 0 var(--s-4); }
.figure-cell h3 {
  font-size: 1.2rem;
  font-variation-settings: "opsz" 24, "SOFT" 0, "wght" 580;
  margin-bottom: var(--s-2);
}
.figure-cell p { font-size: var(--t-small); }

/* Figures use the tokens .build utility at the site's register tempo */
.figure.build, .lattice-fig.build { --build-dur: var(--reveal-dur); --build-ease: var(--reveal-ease); }

/* Figures are self-contained: solid bronze strokes (the gradient def lives only
   in the hero SVG), mono figure labels, ink nodes */
.figure .lat-stem, .figure .lat-bond { stroke: var(--bronze); fill: none; stroke-linecap: round; }
.figure .lat-stem { stroke-width: 3; }
.figure .lat-bond { stroke-width: 2.5; }
.figure .lat-node { fill: var(--ink); }
/* Figure labels live in an HTML overlay (NOT in-SVG <text>) so they hold a CSS-px
   legibility floor instead of scaling to ~5px with the figure at 390 (crucible R03 —
   Jonas Fail, Sigrid + Mara converge). The generator positions each by percentage of
   the figure box; clamp() keeps them between ~10px (phone) and 11px (desktop). */
.fig-stage { position: relative; }
.fig-labels { position: absolute; inset: 0; pointer-events: none; }
.fig-labels .fig-label,
.fig-labels .fig-note {
  position: absolute;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  font-family: var(--font-mono);
  line-height: 1.1;
}
.fig-labels .fig-label {
  font-size: clamp(10px, 1.35vw, 11px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.fig-labels .fig-note {
  font-size: clamp(9.5px, 1.25vw, 10.5px);
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
/* On a phone the figure shrinks but labels hold their px floor, so secondary notes
   crowd the station labels. Shed the notes ≤640 — the geometry stays legible and the
   notes' content lives in the figure caption / prose (crucible R03 — Mara: the words
   carry on mobile). Primary station labels always remain. */
@media (max-width: 640px) {
  .fig-labels .fig-note { display: none; }
}
.figure .fig-arrow { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.figure .fig-arrowhead { fill: var(--ink); }
.figure .fig-rule { stroke: var(--rule-strong); stroke-width: 1; }
.figure .fig-dash { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 4 4; }
/* the capped-score diagram is a compact teaching figure, not a full-bleed illustration */
.figure--cap { max-width: 30rem; margin-inline: auto; }
/* fig-cap: the capping dimension + the score-floor line render in deepest bronze */
.figure .lat-stem-cap { stroke: var(--bronze-deep); fill: none; stroke-linecap: round; stroke-width: 3; }
.figure .lat-node-cap { fill: var(--bronze-deep); }
.figure .lat-cap { stroke: var(--bronze-deep); stroke-width: 2; transition-delay: var(--d-300); }

/* ----------------------------------------------------------------------------
   SPECIMEN — a framed page of the ACTUAL Maturity Map deliverable, faithful to
   the real component (same paper/bronze tokens). Proof the instrument is built.
   ALWAYS labelled a simulated read — never presented as a client result.
   ---------------------------------------------------------------------------- */
.specimen {
  margin: var(--rhythm-block) 0;
  border: var(--hair);
  background: var(--paper-2);
  border-radius: 3px;
  overflow: hidden;
}
.specimen-chrome {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hair);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.specimen-chrome .sim { color: color-mix(in srgb, var(--ink) 52%, transparent); letter-spacing: 0.06em; }
.specimen-body {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: var(--s-6);
  padding: var(--s-5) var(--s-4);
}
@media (max-width: 720px) { .specimen-body { grid-template-columns: 1fr; gap: var(--s-5); } }
.spec-label { font-family: var(--font-mono); font-size: var(--t-mono-sm); letter-spacing: 0.08em; color: color-mix(in srgb, var(--ink) 56%, transparent); }
.spec-score { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4rem); line-height: 1; font-variation-settings: "opsz" 60, "wght" 560; margin: 6px 0 3px; }
.spec-score small { font-size: 0.42em; color: color-mix(in srgb, var(--ink) 50%, transparent); }
.spec-meta { font-family: var(--font-mono); font-size: var(--t-mono-sm); color: color-mix(in srgb, var(--ink) 60%, transparent); letter-spacing: 0.02em; }
.spec-dim { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.spec-dim .nm { flex: 0 0 128px; font-size: 0.8rem; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.spec-dim .bar { flex: 1; height: 8px; background: var(--paper-3); border-radius: 2px; overflow: hidden; }
.spec-dim .bar i { display: block; height: 100%; background: var(--bronze-light); border-radius: inherit; }
.spec-dim .sc { flex: 0 0 70px; text-align: right; font-family: var(--font-mono); font-size: var(--t-mono-sm); letter-spacing: 0.04em; color: color-mix(in srgb, var(--ink) 58%, transparent); }
.spec-dim.cap .bar i { background: var(--bronze-deep); }
.spec-dim.cap .sc { color: var(--bronze-deep); }
.spec-dim.lvl-1 .bar i { width: 20%; }
.spec-dim.lvl-2 .bar i { width: 40%; }
.spec-dim.lvl-3 .bar i { width: 60%; }
.spec-dim.lvl-4 .bar i { width: 80%; }
.spec-dim.lvl-5 .bar i { width: 100%; }
.spec-note { margin-top: var(--s-3); font-size: 0.82rem; line-height: 1.5; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.spec-gap { align-self: start; }
.spec-gap .num { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.12; font-variation-settings: "opsz" 40, "wght" 480; }
.spec-gap .num em { font-style: normal; color: var(--bronze-deep); }
.spec-series { margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--t-mono-sm); letter-spacing: 0.04em; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.evl {
  border: none; background: none; padding: 0 1px; font: inherit;
  color: var(--bronze-deep); border-bottom: 1px dotted var(--bronze); cursor: help;
}
.evl::after { content: " \2316"; font-size: 0.7em; color: var(--bronze); }

/* ----------------------------------------------------------------------------
   WRITING — long-form essays + field notes (the thought-leadership section)
   ---------------------------------------------------------------------------- */
.article { padding-block: var(--rhythm-block) 0; }
.article-head { max-width: 42rem; }
.article-head .chip { margin-bottom: var(--s-4); }
.article-head h1, .writing-feature h2, .writing-item h3 {
  /* hyphenated terms like "FDE-Obsessed" must break, not overflow, at narrow widths */
  overflow-wrap: break-word;
}
.article-head h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-variation-settings: "opsz" 96, "SOFT" 0, "wght" 580;
  margin-bottom: var(--s-4);
}
.article-dek {
  font-family: var(--font-body);
  font-size: var(--t-lead);
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  font-variation-settings: "opsz" 32;
  max-width: 36rem;
  margin-bottom: var(--s-4);
}
.article-meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}
.article-body { max-width: 38rem; margin-top: var(--rhythm-head); }
.article-body > p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.72;
  font-variation-settings: "opsz" 18;
  margin-bottom: var(--s-4);
  max-width: none;
}
.article-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-variation-settings: "opsz" 40, "SOFT" 0, "wght" 560;
  margin-top: var(--rhythm-block);
  margin-bottom: var(--s-3);
}
.article-body .article-aside {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-variation-settings: "opsz" 40;
  line-height: 1.32;
  color: var(--ink);
  margin-block: var(--rhythm-head);
  max-width: 30rem;
}
.article-foot {
  max-width: 38rem;
  margin-top: var(--rhythm-block);
  padding-top: var(--s-6);
  border-top: var(--hair);
}
.article-cta-line {
  font-family: var(--font-body);
  font-size: var(--t-lead);
  line-height: 1.4;
  margin-bottom: var(--s-5);
  max-width: 34rem;
}

.writing-feature {
  display: block;
  max-width: 44rem;            /* the hairline frames the idea, not empty paper (R06 — Sigrid) */
  padding: var(--s-6);
  border: var(--hair);
  border-radius: 3px;
  background: var(--paper-2);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--d-200) var(--ease);
}
/* the quiet mid-article return + the soft hand-back on transformation notes */
.article-return { font-family: var(--font-body); margin-block: var(--rhythm-head); }
.article-return--foot { max-width: 38rem; margin-top: var(--rhythm-block); padding-top: var(--s-6); border-top: var(--hair); }
.writing-feature:hover { border-color: var(--rule-strong); }
.writing-kind {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bronze);
}
.writing-feature h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: var(--s-3) 0; max-width: 30rem; }
.writing-dek {
  font-family: var(--font-body);
  font-size: var(--t-lead);
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  max-width: 34rem;
  margin-bottom: var(--s-4);
}
.writing-list { list-style: none; margin: 0; padding: 0; }
.writing-item { display: block; padding: var(--s-5) 0; border-top: var(--hair); text-decoration: none; color: inherit; }
.writing-list li:last-child .writing-item { border-bottom: var(--hair); }
.writing-item h3 { font-size: 1.3rem; margin-bottom: var(--s-2); transition: color var(--d-200) var(--ease); }
.writing-item:hover h3 { color: var(--bronze-deep); }
.writing-item p {
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  max-width: 46rem;
  font-size: var(--t-small);
}

/* ----------------------------------------------------------------------------
   CRED STRIP — three sides
   ---------------------------------------------------------------------------- */

.cred-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.cred {
  border-top: var(--hair);
  padding-top: var(--s-5);
}
.cred .mono-label { display: block; margin-bottom: var(--s-3); color: var(--bronze-deep); }
.cred h3 {
  font-size: var(--t-sub-h);
  font-variation-settings: "opsz" 40, "SOFT" 0, "wght" 580;
  margin-bottom: var(--s-2);
}
.cred p { font-size: var(--t-small); margin: 0; }

/* ----------------------------------------------------------------------------
   DARK LANDING — the page closes on ink
   ---------------------------------------------------------------------------- */

.landing {
  background: var(--anchor);
  color: var(--paper);
  /* re-scope semantic aliases for everything inside */
  --text: var(--paper);
  --text-assert: var(--paper);
  --label: var(--bronze-light);
  --emphasis: var(--bronze-light);
  --rule: rgba(247, 244, 237, 0.16);
  --rule-strong: rgba(247, 244, 237, 0.3);
  --hair: 1px solid var(--rule);
}
.landing :focus-visible { outline-color: var(--bronze-light); }
.landing h1, .landing h2, .landing h3 { color: var(--paper); }
.landing p { color: color-mix(in srgb, var(--paper) 86%, transparent); }
.landing a { color: var(--bronze-light); }

.cta-block { padding-block: var(--s-9) var(--s-8); position: relative; }
.cta-block h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-variation-settings: "opsz" 96, "SOFT" 0, "wght" 540;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: var(--s-5);
}
.cta-block .cta-sub { font-size: var(--t-lead); max-width: 32rem; margin-bottom: var(--s-6); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.landing .btn--solid { background: var(--paper); color: var(--anchor); }
.landing .btn--solid:hover { background: var(--bronze-light); color: var(--anchor); }
.cta-email {
  font-family: var(--font-mono);
  font-size: var(--t-mono-lg);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  text-decoration-color: var(--rule-strong);
}
.cta-email:hover { color: var(--bronze-light); }

/* Quiet lattice band inside the landing */
.landing-lattice { opacity: 0.22; }
.landing-lattice svg { display: block; width: 100%; height: 5.5rem; }
.landing .lat-stem, .landing .lat-bond { stroke: var(--bronze-light); stroke-width: 2; }
.landing .lat-node { fill: var(--paper); }

/* ----------------------------------------------------------------------------
   FOOTER — self-sufficient (dark band on its own; same color seam when it also
   sits inside .landing, so firm pages are unchanged). Footers must read on any
   page whether or not a .landing wraps them — this is the system fix for the
   light-on-paper footer that hit the writing pages and 404.
   ---------------------------------------------------------------------------- */

.site-footer {
  background: var(--anchor);
  color: var(--paper);
  /* re-scope semantic aliases so children resolve light-on-dark even when bare */
  --text: var(--paper);
  --text-assert: var(--paper);
  --label: var(--bronze-light);
  --rule: rgba(247, 244, 237, 0.16);
  --rule-strong: rgba(247, 244, 237, 0.3);
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--rule);
}
.footer-mark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: 0.04em;
  color: var(--paper);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.footer-mark .wordmark-dot { color: var(--bronze-light); }
.footer-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--t-lead);
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  margin-bottom: var(--s-7);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.footer-col .mono-label { display: block; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.footer-col a {
  font-family: var(--font-mono);
  font-size: var(--t-mono-lg);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  text-decoration: none;
}
.footer-col a:hover { color: var(--bronze-light); }
.footer-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  padding-top: var(--s-6);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin: 0;
}
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--bronze-light); }

/* ----------------------------------------------------------------------------
   PROSE HELPERS
   ---------------------------------------------------------------------------- */

.lead { font-size: var(--t-lead); line-height: 1.55; }

/* Statement — a large editorial block paragraph; the thesis beat after the hero.
   Newsreader at its DISPLAY cut (opsz ~40) since it's set large; one weight bump
   on the brand pivot, no bronze (the accent is reserved for the CTA). */
.statement {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-variation-settings: "opsz" 40;
  line-height: 1.4;
  letter-spacing: -0.006em;
  max-width: 44rem;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0;
}
.statement b, .statement strong { font-weight: 600; }
.lead + .lead, .argument + .lead { margin-top: 0; }
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); max-width: none; }
.prose-cols p { max-width: var(--measure); }
/* split variant: a dividing hairline so two columns read as two roads converging
   on one answer (R06 — Sigrid), not two side-by-side paragraphs. */
.prose-cols--split { gap: var(--s-7); }
.prose-cols--split > div + div { border-inline-start: var(--hair); padding-inline-start: var(--s-7); }
.muted { color: color-mix(in srgb, var(--ink) 64%, transparent); }

/* Trailing link / note after a band (replaces ad-hoc margin-top inline styles) */
.section-foot { margin-top: var(--rhythm-block); }
.beat > .wrap > .lead { margin-top: var(--rhythm-block); }
.beat > .wrap > .argument + .lead { margin-top: 0; }

/* Evidence list (sourced claims) */
.claim-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.claim-list > li {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-top: var(--hair);
}
.claim-list > li:last-child { border-bottom: var(--hair); }
.claim-figure {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  /* IBM Plex Mono's full-em space reads as a typo between two human words
     ("The gap"); pull it back so the label reads as a phrase (crucible R04). */
  word-spacing: -0.22em;
  color: var(--anchor);
  line-height: 1.25;
}
.claim-body p { margin-bottom: var(--s-2); }
.claim-body .caption a { color: inherit; }
.claim-body .caption a:hover { color: var(--bronze-deep); }

/* ----------------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .stat-band { grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-6); }
  .offer-grid { grid-template-columns: 1fr; }
  .figure-row { grid-template-columns: 1fr; gap: var(--s-7); }
  .cred-strip { grid-template-columns: 1fr; gap: var(--s-5); }
  .prose-cols { grid-template-columns: 1fr; }
  .prose-cols--split > div + div { border-inline-start: none; padding-inline-start: 0; }
}

@media (max-width: 960px) {
  /* Hamburger: wordmark | toggle. The full menu drops as an absolute panel. */
  .site-nav .wrap { grid-template-columns: 1fr auto; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; margin-inline-end: calc(var(--s-3) * -1);
    justify-self: end; padding: 0; border: 0; background: none;
    color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block; width: 22px; height: 1.5px; background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease, background 200ms ease;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .site-nav.nav-open .nav-toggle-bars { background: transparent; }
  .site-nav.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .site-nav.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    padding: var(--s-5) var(--gutter) var(--s-6);
    background: var(--paper); border-bottom: var(--hair);
    box-shadow: 0 18px 28px -22px rgba(26, 24, 22, 0.4);
  }
  .site-nav.nav-open .nav-menu { display: flex; }
  .nav-menu .nav-links {
    flex-direction: column; align-items: flex-start;
    column-gap: 0; row-gap: var(--s-1);
  }
  .nav-menu .nav-links a { padding-block: var(--s-2); font-size: 0.95rem; }
  .nav-menu .btn { align-self: flex-start; }

  /* No-JS: the toggle can't open the panel — show the menu stacked inline instead */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-menu {
    display: flex; position: static; padding: 0 0 var(--s-3);
    background: none; border-bottom: 0; box-shadow: none; gap: var(--s-2);
  }
}

@media (max-width: 640px) {
  .stat-band { grid-template-columns: 1fr; }
  .pillar-list > li { grid-template-columns: 1fr; gap: var(--s-2); }
  .claim-list > li { grid-template-columns: 1fr; gap: var(--s-2); }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-linked.hero-scroll { height: 200svh; }
  .hero-headline { max-width: 21ch; }  /* hold the sentence-per-line break on mobile (line 1 ~20ch) */

  /* Hairline tables card-stack: every td carries data-th */
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table tbody tr { border-top: 1.5px solid var(--anchor); padding-block: var(--s-4); }
  .stack-table tbody td { border-bottom: none; padding: var(--s-2) 0; }
  .stack-table tbody td::before {
    content: attr(data-th);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-mono-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze-deep);
    margin-bottom: 0.2rem;
  }
}

/* ----------------------------------------------------------------------------
   MOTION GUARDS — reduced motion + no-JS resolve to final states
   ---------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .js .reveal-up:not(.is-visible) {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .section-rule, .stat-line { transform: scaleX(1); transition: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker { mask-image: none; -webkit-mask-image: none; }
  .lat-anim { transition: none !important; }
  /* hero → final composed state, never pinned */
  .hero-linked.hero-scroll { height: auto !important; }
  .hero-linked .hero-stage { position: static !important; height: auto !important; min-height: clamp(34rem, 86svh, 58rem); }
  .lat-scale { transform: scale(1) !important; }
  .lat-stick, .lat-cell { opacity: 1 !important; }
}

@media print {
  .site-nav, .ticker, .hero-lattice, .skip-link { display: none !important; }
  .landing { background: #fff; color: #000; }
}

/* ?static=1 — resolve every animated state to final (headless renderers, QA) */
html.static .reveal-up, html.static .js .reveal-up:not(.is-visible) {
  opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
}
html.static .section-rule, html.static .stat-line { transform: scaleX(1) !important; transition: none !important; }
html.static .build .build-grow { transform: scaleX(1) !important; transition: none !important; }
html.static .build .build-draw { stroke-dashoffset: 0 !important; transition: none !important; }
html.static .build .build-snap, html.static .build .build-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
/* …but fig-labels/notes carry a STRUCTURAL centering transform (translate(-50%,-100%)) that is
   their final resting state, not an entrance offset — re-assert it so static/QA captures place
   them faithfully instead of left-anchored (which pushes the rightmost label past the viewport). */
html.static .fig-labels .fig-label, html.static .fig-labels .fig-note { transform: translate(-50%, -100%) !important; }
html.static .ticker-track { animation: none !important; }
/* hero → final composed state for headless capture */
html.static .hero-linked.hero-scroll { height: auto !important; }
html.static .hero-linked .hero-stage { position: static !important; height: auto !important; }
html.static .lat-scale { transform: scale(1) !important; }
html.static .lat-stick, html.static .lat-cell { opacity: 1 !important; }
