/* Pockets Full Systems — v3 "the ledger with a leak line"
   Warm paper ground · four active hues · alternating section grounds · drawn-line motif */

:root {
  --paper: #f6f0e5;
  --white: #fffdf8;
  --ink: #1b1710;
  --ink-soft: #57503f;
  --faint: #8d8471;
  --gold: #d9a441;
  --gold-tint: #f3e2bd;
  --green: #1e5c3f;
  --green-tint: #dfe9d8;
  --terra: #c25c47;
  --terra-tint: #f4ddd4;
  --line: #d9d0bd;
  --max: 1240px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

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

::selection { background: var(--gold); color: var(--ink); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- reveal system ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.12s; }
.rv-d2 { transition-delay: 0.24s; }
.rv-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- vernacular ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 7px 16px;
  box-shadow: 3px 3px 0 var(--gold);
}
.on-dark .eyebrow { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 3px 3px 0 var(--gold); }

/* word highlights inside headlines */
.hl {
  display: inline-block;
  padding: 0 0.18em;
  border-radius: 10px;
  line-height: 1.05;
}
/* "gaps" is a bare terracotta word — no box. It cracks and leaves a REAL gap in the
   sentence, so the typography enacts the thesis instead of illustrating it. */
.hl-terra {
  background: transparent;
  box-shadow: none;
  transform: none;
  padding: 0;
  color: var(--terra);
}
/* "catch it." rest state is a GOLD UNDERLINE (no box) — the ::after bar is the underline.
   Keeps .hl's inline-block + padding so the headline footprint (and wrapping) is unchanged. */
.hl-gold {
  position: relative;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.hl-gold::after {
  content: "";
  position: absolute;
  left: 0.18em; right: 0.18em;   /* inset by the padding -> spans the text width */
  bottom: 0.12em;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;             /* rounded caps */
  transition: opacity 0.3s ease;
}
/* stripped state — applied ONLY by JS while the catch animation is armed, so the
   default (reduced-motion / <700px / no-JS) rendering shows the underline from first paint */
.hl-gold.naked::after { opacity: 0; }
.hl-green { background: var(--green-tint); box-shadow: inset 0 0 0 1.5px var(--green); transform: rotate(-0.6deg); }

/* ---------- header ---------- */
/* OPTION A (LIVE) — "the ink bar".
   The header bookends the ink footer: opaque ink ground, muted gold hairline edge,
   reversed brand mark (paper arc, gold dot). No blur, no gradient, no shrink gimmicks.
   Base state below = the SETTLED state, so any browser without scroll-driven
   animations (or any page that cannot scroll) renders the finished bar. */
header {
  --hdr-edge: color-mix(in srgb, var(--gold) 78%, var(--ink));
  position: sticky; top: 0; z-index: 100;
  background-color: var(--ink);
  border-bottom: 1.5px solid var(--hdr-edge);
}

/* At scroll top the bar is a touch translucent and its edge is held back; past ~40px
   it reaches full ink + the gold hairline. Border box is always 1.5px (transparent at
   top), so the state change cannot shift layout. */
@supports (animation-timeline: scroll()) {
  header {
    animation: hdr-settle 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 40px;
  }
  @keyframes hdr-settle {
    from { background-color: color-mix(in srgb, var(--ink) 90%, transparent);
           border-bottom-color: transparent; }
    to   { background-color: var(--ink);
           border-bottom-color: var(--hdr-edge); }
  }
  /* reduced motion: keep BOTH states, drop the interpolation — the bar snaps at ~40px */
  @media (prefers-reduced-motion: reduce) {
    @keyframes hdr-settle {
      0%, 99% { background-color: color-mix(in srgb, var(--ink) 90%, transparent);
                border-bottom-color: transparent; }
      100%    { background-color: var(--ink);
                border-bottom-color: var(--hdr-edge); }
    }
  }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;                     /* clear space ≈ dot diameter (~6px at 28px mark) */
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .wm-mark { display: block; flex: none; }
/* guide: "Systems" italic in ink — the italic is the signature, never green */
.wordmark em { color: var(--ink); font-style: italic; }
nav { display: flex; align-items: center; gap: 30px; }
nav a.nav-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
nav a.nav-link:hover { color: var(--ink); }
nav a.nav-link.active { color: var(--green); font-weight: 600; }

/* --- on-ink header treatment (CSS-only recolour of the inline mark + nav + button) --- */
header .wordmark { color: var(--paper); }
/* "Systems" stays italic; on ink it goes paper — never green, never roman */
header .wordmark em { color: var(--paper); font-style: italic; }
/* reversed mark: paper arc, gold dot (overrides the SVG's hardcoded attributes) */
header .wm-mark path { stroke: var(--paper); }
header .wm-mark circle { fill: var(--gold); }

header nav a.nav-link { color: color-mix(in srgb, var(--paper) 66%, transparent); }
header nav a.nav-link:hover,
header nav a.nav-link:focus-visible { color: var(--paper); }
/* active page: gold, not green — green on ink fails contrast */
header nav a.nav-link.active { color: var(--gold); font-weight: 600; }
header nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

/* on-ink button per the guide: gold fill, ink text, low-opacity paper offset shadow.
   gold #D9A441 on ink #1B1710 ≈ 7.5:1 — comfortably AA/AAA for this size. */
header .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(246, 240, 229, 0.24);
}
header .btn:hover { box-shadow: 1px 1px 0 rgba(246, 240, 229, 0.24); }

/* small screens: same structure, tighter bar so the wordmark never crowds the pill
   (the nav links are already hidden below 900px) */
@media (max-width: 560px) {
  header .wrap { padding: 0 18px; }
  .header-inner { padding: 12px 0; }
  .wordmark { font-size: 1.15rem; gap: 7px; }
  .wordmark .wm-mark { width: 24px; height: 24px; }
  header .btn { padding: 11px 19px; font-size: 0.88rem; box-shadow: 3px 3px 0 rgba(246, 240, 229, 0.24); }
  header .btn:hover { box-shadow: 1px 1px 0 rgba(246, 240, 229, 0.24); }
}

/* ============================================================================
   OPTION B — "the paper card" (NOT LIVE — to switch, just uncomment this block.
   It sits after Option A and matches its specificity, so it wins the cascade;
   nothing above needs deleting. The mobile sizing block still applies.)
   The header stays light but stops merging into the hero: it moves off --paper
   onto --white, keeps the 1.5px ink bottom rule, and gains a hard offset shadow
   so it visibly sits ABOVE the page. Mark and wordmark stay ink; the button
   stays the standard ink pill. No blur, no translucency, no scroll states —
   the card is always the card.

header {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--white);
  backdrop-filter: none;
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--line);
  animation: none;
}
header .wordmark,
header .wordmark em { color: var(--ink); }
header .wm-mark path { stroke: var(--ink); }
header .wm-mark circle { fill: var(--gold); }
header nav a.nav-link { color: var(--ink-soft); }
header nav a.nav-link:hover { color: var(--ink); }
header nav a.nav-link.active { color: var(--green); }
header nav a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
header .btn {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
  box-shadow: 4px 4px 0 var(--gold);
}
header .btn:hover { box-shadow: 1px 1px 0 var(--gold); }

   ============================================================================ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gold); }
.btn-green { background: var(--green); border-color: var(--green); box-shadow: 4px 4px 0 var(--gold); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--line);
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.on-dark .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 rgba(255,255,255,0.25); }

.micro {
  display: block; margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.link-plain {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.link-plain:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 84px; position: relative; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { position: relative; }
.hero-copy > * { position: relative; z-index: 2; }

/* word cascade — split spans inside h1 */
.hero h1 .word {
  display: inline-block;
  will-change: transform, opacity;
}
.hero h1.cascade .word {
  opacity: 0;
  transform: translateY(0.4em);
}
.hero h1.cascade .word.word-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* the falling-work dot */
.hero-dot {
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* "gaps" split into two halves that crack apart, open a real gap, then heal.
   At rest the halves are visually seamless: bare terracotta text, no box, no seam. */
.hl-terra.cracked {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.hl-half {
  display: inline-block;
  line-height: 1.05;
  color: var(--terra);
  background: transparent;
  will-change: transform;
}
.hl-half-l, .hl-half-r { padding: 0; border-radius: 0; box-shadow: none; }

/* the gold "net" that scoops the ball below the headline and flattens into the
   "catch it." underline on arrival (built by JS) */
.hero-net {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.hero-net path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}

/* shard particles thrown off when "gaps" shatters (pooled + reused by JS).
   Solid terracotta flecks — fragments of the word itself, not of a container. */
.hero-shard {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;                    /* rest state */
  border: none;
  background: var(--terra);
  will-change: transform, opacity;
}

/* hero visual — the diagram card */
.hero-visual { position: relative; z-index: 2; }
.diagram-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 9px 9px 0 var(--gold-tint);
  overflow: hidden;
  transform: rotate(1.4deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.diagram-card:hover { transform: rotate(0deg); box-shadow: 12px 12px 0 var(--gold-tint); }
.diagram-card .chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}
.diagram-card .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.2px solid var(--ink); }
.diagram-card .d1 { background: var(--terra); }
.diagram-card .d2 { background: var(--gold); }
.diagram-card .d3 { background: var(--green); }
.diagram-card .chrome-label {
  margin-left: auto;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.diagram-card canvas { display: block; width: 100%; height: 380px; }
.diagram-legend {
  display: flex; gap: 22px;
  padding: 12px 16px;
  border-top: 1.5px dashed var(--line);
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.diagram-legend .lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.lg-ink { background: var(--ink); }
.lg-gold { background: var(--gold); }
.lg-terra { background: var(--terra); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 21ch;
  margin-top: 30px;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}
.hero .lede {
  margin-top: 28px;
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-cta { margin-top: 38px; display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }

/* ---------- scroll-driven collapse/expand ---------- */
@supports (animation-timeline: view()) {
  .zoom {
    animation-name: zoom-in, zoom-out;
    animation-timing-function: linear, linear;
    /* zoom-out is forwards-only so it does not back-fill over zoom-in during entry
       (both, both makes the later zoom-out win precedence and mask the enter animation) */
    animation-fill-mode: both, forwards;
    animation-duration: auto, auto;
    animation-timeline: view(), view();
    animation-range: entry 0% entry 85%, exit 20% exit 100%;
  }
  @keyframes zoom-in {
    from { transform: scale(0.93) translateY(36px); opacity: 0.3; }
    to { transform: scale(1) translateY(0); opacity: 1; }
  }
  @keyframes zoom-out {
    from { transform: scale(1) translateY(0); opacity: 1; }
    to { transform: scale(0.95) translateY(-26px); opacity: 0.35; }
  }
  .drift {
    animation-name: drift;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-duration: auto;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes drift {
    from { transform: translateY(34px); }
    to { transform: translateY(-34px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .zoom, .drift { animation: none; }
  }
}

/* incident cards catch their own color on hover */
.incident.i-sales:hover { border-color: var(--gold); box-shadow: 8px 8px 0 var(--gold-tint); }
.incident.i-support:hover { border-color: var(--green); box-shadow: 8px 8px 0 var(--green-tint); }
.incident.i-ops:hover { border-color: var(--terra); box-shadow: 8px 8px 0 var(--terra-tint); }

/* leak canvas on paper */
.leak-stage { position: relative; margin-top: 56px; border-top: 1.5px solid var(--ink); background: var(--white); }
.leak-stage canvas { display: block; width: 100%; height: 230px; }
.leak-caption {
  position: absolute; right: 28px; bottom: 12px;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- marquee (ink band) ---------- */
.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 15px 0;
  border-bottom: 1.5px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper);
  white-space: nowrap;
  padding-right: 18px;
  opacity: 0.85;
}
.marquee-track span b { color: var(--gold); font-weight: 600; padding-right: 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- section scaffolding ---------- */
section { padding: 96px 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.idx {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--faint);
  display: block; margin-bottom: 18px;
}
h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
  margin-top: 20px;
}
h2.section-title em { font-style: italic; color: var(--green); }

/* ---------- incident log ---------- */
.incidents { display: grid; gap: 22px; }
.incident {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 26px 28px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 5px 5px 0 var(--line);
}
.incident:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.incident .stamp {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.incident .dept {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 100px;
}
/* guide chip spec: 1.5px ink border on tint fill (tints already match F3E2BD/DFE9D8/F4DDD4) */
.incident.i-sales .dept { background: var(--gold-tint); color: #8a6414; box-shadow: inset 0 0 0 1.5px var(--ink); }
.incident.i-support .dept { background: var(--green-tint); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--ink); }
.incident.i-ops .dept { background: var(--terra-tint); color: var(--terra); box-shadow: inset 0 0 0 1.5px var(--ink); }
.incident .stamp .time { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }
.incident p { font-size: 1.04rem; line-height: 1.55; }
.incident p em { font-style: normal; color: var(--ink-soft); }
.incident .cost {
  margin-top: 16px; padding-top: 13px;
  border-top: 1.5px dashed var(--line);
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em;
}
.incident.i-sales .cost { color: #a3770f; }
.incident.i-support .cost { color: var(--green); }
.incident.i-ops .cost { color: var(--terra); }

/* ---------- full-bleed statement (green band) ---------- */
.band-green {
  background: var(--green);
  color: var(--paper);
  padding: 96px 0;
}
.band-green .statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.16;
  max-width: 26ch;
  text-wrap: balance;
}
.band-green .statement em { font-style: italic; color: var(--gold); }
.band-green .glue { margin-top: 30px; max-width: 62ch; color: rgba(246, 240, 229, 0.78); font-size: 1.1rem; }
.band-green .glue strong { color: var(--paper); font-weight: 600; }

/* ---------- method ---------- */
.steps { display: grid; gap: 0; }
.step {
  position: relative;
  padding: 40px 0 40px 110px;
  border-bottom: 1.5px solid var(--line);
}
.step:first-child { border-top: 1.5px solid var(--line); }
.step .ghost {
  position: absolute; left: 0; top: 26px;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
}
.step h3 em { font-style: italic; color: var(--green); }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; max-width: 54ch; }

/* ---------- featured case (ink band) ---------- */
.band-ink {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
}
.band-ink .case-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.big-number {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7.6vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 26px;
}
.big-number .of { color: rgba(246, 240, 229, 0.4); font-style: italic; }
.big-number .unit { color: var(--gold); }
.case-sub {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(246, 240, 229, 0.55);
}
.band-ink .case-story { color: rgba(246, 240, 229, 0.75); font-size: 1.08rem; }
.band-ink .case-story strong { color: var(--paper); }
.band-ink .link-plain { color: var(--gold); border-bottom-color: var(--gold); display: inline-block; margin-top: 26px; }
.band-ink .link-plain:hover { color: var(--paper); }

/* ---------- founder ---------- */
.founder-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--gold-tint);
  padding: 56px;
  display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start;
}
.founder-photo {
  width: 250px; aspect-ratio: 4/5;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  display: flex; align-items: flex-end;
  padding: 16px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
  transform: rotate(-1.5deg);
}
.founder-copy p { margin-top: 18px; color: var(--ink-soft); max-width: 58ch; font-size: 1.05rem; }
.founder-copy p.first { color: var(--ink); }
.founder-copy .link-plain { display: inline-block; margin-top: 26px; }

/* ---------- final CTA (gold band) ---------- */
.band-gold {
  background: var(--gold);
  color: var(--ink);
  padding: 104px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.band-gold h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  max-width: 20ch;
  text-wrap: balance;
}
.band-gold h2 em { font-style: italic; }
.band-gold .sub { margin-top: 24px; max-width: 52ch; font-size: 1.12rem; color: rgba(27, 23, 16, 0.75); }
.band-gold .hero-cta { margin-top: 38px; }
.band-gold .btn { background: var(--ink); border-color: var(--ink); color: var(--gold); box-shadow: 4px 4px 0 rgba(27,23,16,0.25); }
.band-gold .btn-ghost { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 rgba(27,23,16,0.18); }
.band-gold .micro { color: rgba(27, 23, 16, 0.65); }

/* newsletter */
.newsletter {
  margin-top: 56px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 rgba(27,23,16,0.18);
  padding: 30px 34px;
  max-width: 640px;
}
.newsletter p { font-size: 0.96rem; color: var(--ink-soft); }
.newsletter form { margin-top: 16px; display: flex; gap: 10px; }
.newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--paper);
  color: var(--ink);
}
.newsletter input::placeholder { color: var(--faint); }
.newsletter input:focus { outline: 2px solid var(--gold); }
.newsletter button {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 700;
  background: var(--green); color: var(--paper);
  border: 1.5px solid var(--green); border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.newsletter button:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--gold); }

/* ---------- subpages ---------- */
.page-hero { padding: 84px 0 52px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
  margin-top: 26px;
}
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-hero .lede { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }

.case-body { padding: 12px 0 96px; }
.case-section { max-width: 680px; margin-bottom: 52px; }
.case-section h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.case-section h2::after { content: ""; height: 1.5px; flex: 1; background: var(--line); }
.case-section p { margin-bottom: 16px; color: var(--ink-soft); }
.case-section p strong { color: var(--ink); }
.case-section p:first-of-type { color: var(--ink); }

.lesson {
  max-width: 660px;
  margin: 0 0 60px;
  background: var(--green-tint);
  border: 1.5px solid var(--green);
  border-radius: 14px;
  padding: 30px 34px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.35;
}
.lesson em { font-style: italic; color: var(--green); }

.cta-strip {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--gold-tint);
  padding: 40px 44px;
  max-width: 740px;
}
.cta-strip p { margin-bottom: 22px; font-size: 1.1rem; max-width: 54ch; }

/* case index cards */
.case-cards { display: grid; gap: 20px; margin-top: 12px; }
.case-card {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 36px; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--line);
  padding: 38px 42px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold-tint); }
.case-card .cc-idx { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; color: var(--faint); }
.case-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15;
  max-width: 32ch;
}
.case-card h3 em { font-style: italic; color: var(--green); }
.case-card p { margin-top: 10px; color: var(--ink-soft); font-size: 0.98rem; max-width: 56ch; }
.case-card .go { font-size: 1.5rem; color: var(--gold); transition: transform 0.2s ease; }
.case-card:hover .go { transform: translateX(6px); }

/* prose / about */
.prose { max-width: 680px; }
.prose p { margin-bottom: 20px; color: var(--ink-soft); }
.prose p.first, .prose p strong { color: var(--ink); }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.9rem;
  margin: 52px 0 18px;
  color: var(--ink);
}
.prose h2 em { font-style: italic; color: var(--green); }
.prose a { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }
.prose a:hover { color: var(--ink); }

/* contact */
.next-steps { max-width: 680px; margin: 40px 0; }
.next-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: baseline;
  padding: 22px 0;
  border-bottom: 1.5px solid var(--line);
}
.next-step:first-child { border-top: 1.5px solid var(--line); }
.next-step .n {
  font-family: var(--serif); font-size: 1.7rem; color: transparent;
  -webkit-text-stroke: 1.2px var(--gold);
}
.next-step p { color: var(--ink-soft); }
.espanol {
  margin-top: 40px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; color: var(--green); max-width: 50ch;
}

/* ---------- footer (ink) ---------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 56px;
}
.footer-word {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 40px;
  max-width: 22ch;
}
.footer-word em { font-style: italic; color: var(--gold); }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
footer .meta {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(246, 240, 229, 0.5); line-height: 2.1;
}
/* reversed mark (paper arc, gold dot) signing off above the footer meta */
.footer-sig { margin-bottom: 30px; }
.footer-sig .wm-mark { display: block; }

/* ---------- leak-line divider (brand FIG.05) ---------- */
.leak-divider { width: 100%; margin: 4px 0; }
.leak-divider svg { display: block; width: 100%; height: 72px; }
.case-body .leak-divider { max-width: 680px; margin: 40px 0; }
@media (max-width: 700px) { .leak-divider { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .diagram-card canvas { height: 260px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .band-ink .case-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-card { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .founder-photo { width: 200px; }
  .step { padding-left: 84px; }
  .step .ghost { font-size: 3.4rem; }
  .case-card { grid-template-columns: 1fr; gap: 12px; padding: 30px 26px; }
  .case-card .go { display: none; }
  nav { gap: 16px; }
  nav a.nav-link-hideable { display: none; }
  .hero { padding: 60px 0 0; }
  section { padding: 68px 0; }
  .band-green, .band-ink, .band-gold { padding: 68px 0; }
  .cta-strip { padding: 30px 26px; }
  .newsletter form { flex-direction: column; }
}

/* ============================================================================
   The Leak Finder — conversational form
   One question per viewport · lettered option cards · direction-aware motion
   ========================================================================== */

/* ---------- the honest progress rail (fixed, viewport top) ---------- */
.lf-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px; z-index: 200;
  /* the ink header sits directly under it, so the track is ink and the fill is
     gold — the gauge reads as part of the bar rather than a stripe on top of it */
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.lf-rail.is-live { opacity: 1; }
.lf-rail-fill {
  display: block; height: 100%; width: 0;
  background: var(--gold);
  box-shadow: 1.5px 0 0 rgba(246, 240, 229, 0.35);
  transition: width 0.42s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- the stage: one focused instrument, vertically centred ---------- */
.lf-main {
  display: grid; align-content: center;
  min-height: calc(100vh - 61px);          /* 61px = the sticky ink header */
  min-height: calc(100svh - 61px);
  padding: clamp(30px, 5vh, 72px) 0 clamp(48px, 9vh, 104px);
}
/* the wrap's `margin: 0 auto` would otherwise stop the grid item stretching
   and collapse it to max-content */
.lf-main > .wrap { width: 100%; }
.lf-stage { position: relative; max-width: 940px; margin: 0 auto; }
.lf-screen { width: 100%; padding: 0; }   /* beats the global `section` padding */
.lf-screen:focus { outline: none; }
/* the outgoing screen is lifted out of flow so the incoming one does not jump */
.lf-screen-out { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }

/* ---------- intro: an invitation ---------- */
.lf-introhead { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.lf-mark { display: block; flex: none; }
.lf-h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.022em;
  margin-top: clamp(20px, 3.4vh, 34px);
  max-width: 20ch; text-wrap: balance;
}
.lf-h1 em { font-style: italic; color: var(--green); }
.lf-lede {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.62; color: var(--ink-soft); max-width: 60ch;
}
.lf-intro-cta {
  margin-top: clamp(26px, 4.2vh, 44px);
  display: flex; align-items: center; gap: 18px 38px; flex-wrap: wrap;
}
.lf-direct {
  flex: 1 1 260px;
  font-family: var(--mono); font-size: 0.76rem; line-height: 1.8;
  color: var(--ink-soft); max-width: 62ch; text-wrap: pretty;
}
.lf-direct a { color: var(--green); text-decoration: none; border-bottom: 2px solid var(--gold); }
.lf-direct a:hover { color: var(--ink); }
.lf-motif { margin-top: clamp(26px, 4.6vh, 52px); max-width: 560px; }
.lf-motif svg { display: block; width: 100%; height: auto; }
.lf-motif-caught { max-width: 240px; margin-top: clamp(26px, 4vh, 44px); }

/* ---------- question head: honest counter + rule + back ---------- */
.lf-qhead {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(18px, 3.2vh, 34px);
}
.lf-progress-label {
  flex: none;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.lf-qhead-rule { flex: 1; height: 1.5px; background: var(--line); }
.lf-back {
  flex: none; background: none; border: none; cursor: pointer;
  padding: 4px 2px; border-radius: 4px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  transition: color 0.2s ease;
}
.lf-back:hover { color: var(--ink); }
.lf-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lf-bridge {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--green); margin-bottom: 14px;
}
.lf-q-stem {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.02em;
  max-width: 26ch; text-wrap: balance;
}
.lf-q-micro {
  margin-top: clamp(12px, 1.8vh, 18px);
  font-size: 1.02rem; line-height: 1.55;
  color: var(--ink-soft); max-width: 56ch;
}

/* ---------- lettered option cards ---------- */
.lf-options {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid; gap: 13px;
  max-width: 780px;
}
.lf-option {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  text-align: left; width: 100%; min-height: 76px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--line);
  padding: 17px 26px 17px 20px;
  font-family: var(--sans); font-size: 1.08rem; font-weight: 500; line-height: 1.4;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.6, 0.2, 1),
              box-shadow 0.18s cubic-bezier(0.2, 0.6, 0.2, 1),
              border-color 0.18s ease, background-color 0.18s ease;
}
.lf-option-key {
  flex: none; width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 10px;
  background: var(--paper);
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0; line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.lf-option-text { display: block; }
.lf-option:hover,
.lf-option.is-cursor {
  border-color: var(--gold);
  box-shadow: 8px 8px 0 var(--gold-tint);
  transform: translate(-3px, -3px);
}
.lf-option:hover .lf-option-key,
.lf-option.is-cursor .lf-option-key { background: var(--gold); }
.lf-option:focus-visible { outline: 2.5px solid var(--green); outline-offset: 4px; }
/* confirm flash — green, then the screen advances */
.lf-option.is-picked {
  border-color: var(--green);
  background: var(--green-tint);
  box-shadow: 3px 3px 0 var(--green);
  transform: translate(2px, 2px);
}
.lf-option.is-picked .lf-option-key {
  background: var(--green); border-color: var(--green); color: var(--paper);
}
/* per-answer brand-dot feedback */
.lf-dot {
  position: absolute; right: 22px; top: 50%; margin-top: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); pointer-events: none;
}

.lf-keyhint {
  margin-top: 22px;
  display: flex; gap: 8px 26px; flex-wrap: wrap; align-items: center;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint);
}
.lf-keyhint span { display: inline-flex; align-items: center; gap: 3px; }
.lf-keyhint i { font-style: normal; margin-left: 7px; }
.lf-keyhint kbd {
  font-family: var(--mono); font-size: 0.66rem;
  background: var(--white); color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 5px;
  padding: 2px 6px;
}
@media (hover: none) { .lf-keyhint { display: none; } }

/* ---------- gate: teaser on the left, the ask on the right ---------- */
.lf-gate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 4.4vw, 62px);
  align-items: start;
}
.lf-teaser {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08;
  letter-spacing: -0.018em;
  margin-top: 18px; max-width: 22ch; text-wrap: balance;
}
.lf-teaser em { font-style: italic; color: var(--green); }
.lf-gate-micro {
  margin-top: 16px; font-size: 1.02rem; line-height: 1.6;
  color: var(--ink-soft); max-width: 40ch;
}
.lf-gate-do { display: grid; justify-items: start; }
.lf-form {
  width: 100%; display: grid; gap: 18px;
  background: var(--white);
  border: 1.5px solid var(--ink); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--gold-tint);
  padding: clamp(24px, 2.6vw, 36px);
}
.lf-form-inline {
  margin-top: 16px; max-width: 480px;
  box-shadow: 5px 5px 0 var(--line);
}
.lf-field { display: grid; gap: 8px; }
.lf-field label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.lf-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.02rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lf-field input:hover { background: var(--white); }
.lf-field input:focus {
  outline: none; background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-tint), 0 0 0 1.5px var(--gold) inset;
}
.lf-field input:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }

/* the disclosure is a considered block, not a raw checkbox */
.lf-disclosure {
  background: var(--paper);
  border: 1.5px dashed var(--line); border-radius: 14px;
  padding: 17px 19px; display: grid; gap: 14px;
}
.lf-disclosure-line { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.lf-check {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 0.93rem; font-weight: 600; line-height: 1.4;
  cursor: pointer;
}
.lf-check input {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.lf-box {
  flex: none; width: 24px; height: 24px; margin-top: -1px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1.5px solid var(--ink); border-radius: 7px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lf-box svg { display: block; opacity: 0; transition: opacity 0.15s ease; }
.lf-check input:checked + .lf-box { background: var(--green); border-color: var(--green); }
.lf-check input:checked + .lf-box svg { opacity: 1; }
.lf-check input:focus-visible + .lf-box { outline: 2.5px solid var(--gold); outline-offset: 3px; }
.lf-check:hover .lf-box { border-color: var(--green); }

.lf-error {
  color: var(--terra); font-size: 0.9rem; font-weight: 600;
  border-left: 2.5px solid var(--terra); padding-left: 12px;
}
.lf-form .btn { justify-self: start; }
.lf-skip {
  margin-top: 20px; background: none; border: none; cursor: pointer;
  padding-bottom: 3px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1.5px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lf-skip:hover { color: var(--ink); border-bottom-color: var(--gold); }
.lf-skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- result: an editorial statement + the leak ledger ---------- */
.lf-result {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 58px) clamp(30px, 4.4vw, 60px);
  align-items: start;
}
.lf-result-read { grid-column: 1; }
.lf-result-fig { grid-column: 2; }
.lf-result-foot { grid-column: 1 / -1; }
.lf-result-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 5.4rem); line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 16px; color: var(--ink);
}
.lf-result-body {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.62;
  max-width: 56ch;
}
.lf-result-meta {
  margin-top: 26px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
  border-top: 1.5px solid var(--ink); padding-top: 15px;
  width: 100%; max-width: 460px;
}
.lf-result-meta strong {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; line-height: 1; color: var(--gold);
  letter-spacing: 0; vertical-align: -0.12em;
}
.lf-actions { margin-top: 30px; display: flex; align-items: center; gap: 22px 28px; flex-wrap: wrap; }
.lf-nearmiss { margin-top: 24px; font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); max-width: 54ch; }

/* the leak ledger — the brand leak-line, one row per area */
.lf-ledger {
  background: var(--white);
  border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--gold-tint);
  padding: 12px 22px;
}
.lf-ledger-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center; gap: 14px;
  padding: 6px 0;
  border-bottom: 1.5px dashed var(--line);
}
.lf-ledger-row:last-child { border-bottom: none; }
.lf-ledger-name {
  font-family: var(--mono); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft);
}
.lf-lr-2 .lf-ledger-name { color: var(--terra); }
.lf-ll { display: block; width: 132px; height: 26px; }
.lf-ll .ll-line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.lf-ll .ll-net { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.lf-ll .ll-dot { stroke: var(--ink); stroke-width: 1.5; }
.lf-ll .ll-held { fill: var(--green); }
.lf-ll .ll-slip { fill: var(--gold); }
.lf-ll .ll-gone { fill: var(--terra); }

.lf-recover { margin-top: 34px; font-size: 0.98rem; }
.lf-recover-open {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  color: var(--green); border-bottom: 2px solid var(--gold);
}
.lf-recover-open:hover { color: var(--ink); }
.lf-recover-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lf-recover-done { font-family: var(--mono); font-size: 0.82rem; color: var(--green); letter-spacing: 0.04em; }
.lf-news { margin-top: 40px; max-width: 660px; }
/* the grid row gap already separates it when there is no recovery block above */
.lf-result-foot > .lf-news:first-child { margin-top: 0; }
/* the shared newsletter input keeps its intrinsic default width, which overflows
   the card once the form stacks — clamp it inside the quiz */
.lf-news form input { min-width: 0; width: 100%; }

.footer-direct { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(246,240,229,0.55); }
.footer-direct a { color: var(--gold); text-decoration: none; }

/* ---------- reduced motion: instant, no transform ---------- */
@media (prefers-reduced-motion: reduce) {
  .lf-rail, .lf-rail-fill,
  .lf-option, .lf-option-key,
  .lf-field input, .lf-box, .lf-box svg { transition: none; }
  .lf-option:hover, .lf-option.is-cursor, .lf-option.is-picked { transform: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .lf-gate, .lf-result { grid-template-columns: 1fr; }
  .lf-result-read, .lf-result-fig, .lf-result-foot { grid-column: 1; }
  .lf-result-fig { max-width: 520px; }
}
@media (max-width: 700px) {
  .lf-main {
    min-height: calc(100svh - 55px);
    padding: 26px 0 64px;
    align-content: start;
  }
  .lf-h1 { font-size: clamp(2.2rem, 9.4vw, 3rem); max-width: 100%; }
  .lf-q-stem { font-size: clamp(1.8rem, 7.4vw, 2.4rem); max-width: 100%; }
  .lf-lede, .lf-q-micro, .lf-result-body { font-size: 1.04rem; }
  .lf-options { max-width: 100%; gap: 11px; }
  .lf-option {
    min-height: 68px; gap: 15px;
    padding: 15px 18px; font-size: 1.02rem;
    border-radius: 12px; box-shadow: 4px 4px 0 var(--line);
  }
  .lf-option-key { width: 32px; height: 32px; border-radius: 8px; font-size: 0.76rem; }
  .lf-intro-cta { gap: 16px 24px; }
  .lf-intro-cta .btn { width: 100%; text-align: center; }
  .lf-direct { flex: 1 1 100%; max-width: 100%; }
  .lf-form { padding: 22px 20px; box-shadow: 5px 5px 0 var(--gold-tint); }
  .lf-form .btn, .lf-form-inline .btn { width: 100%; text-align: center; }
  .lf-result-name { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lf-ledger { padding: 10px 16px; }
  .lf-ledger-row { grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
  .lf-ll { width: 104px; height: 24px; }
  .lf-actions .btn { width: 100%; text-align: center; }
}
.cta-secondary { margin-left: 20px; }
.lf-reassure {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: 56ch;
}
