/* Riff — site stylesheet
   Palette: blueprint ink, cool paper, brass (action), verdigris (remembered).
   Type: Bricolage Grotesque (display) + Instrument Sans (body). */

:root {
  --ink: #0F1B2D;
  --ink-2: #16253B;
  --ink-3: #1F3150;
  --line-ink: rgba(233, 238, 243, 0.12);
  --paper: #F4F6F8;
  --paper-2: #FFFFFF;
  --line-paper: rgba(15, 27, 45, 0.12);
  --chalk: #E9EEF3;
  --chalk-2: #B8C4D1;
  --slate: #5B6B7F;
  --brass: #E0AE4E;
  --brass-2: #F2C766;
  --brass-ink: #2A1F08;
  --verdigris: #3FA796;
  --verdigris-2: #6BD0BF;
  --ember: #E07A5F;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs: 0.8rem;
  --t-sm: 0.9rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.6rem;
  --t-xl: 2.1rem;
  --t-2xl: 2.9rem;
  --t-3xl: clamp(2.6rem, 6.2vw, 4.8rem);

  --r-pill: 999px;
  --r-card: 14px;
  --r-tag: 6px;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --space-section: clamp(4.5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--brass-ink); }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.15; }
p { margin: 0 0 1em; }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--slate); max-width: 58ch; }
.section--ink .lede, .section--ink-2 .lede { color: var(--chalk-2); }
.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-md);
  color: var(--brass);
  margin: 0 0 0.8rem;
}
.section--paper .kicker { color: #9A6F14; }

/* The stanza: one thought per line, set in the display face. */
.stanza {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  max-width: 24ch;
}
.stanza p { margin: 0 0 0.85em; }
.stanza .quiet { color: var(--chalk-2); }
.section--paper .stanza .quiet { color: var(--slate); }
.stanza .mark { color: var(--brass); }
.stanza .hold { display: block; margin-top: 1.6em; }
.stanza--wide { max-width: 34ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--t-base);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
h1[tabindex="-1"]:focus { outline: none; }
.btn-brass { background: var(--brass); color: var(--brass-ink); }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(233, 238, 243, 0.35); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: var(--ink-3); }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--t-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn .key {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  padding: 0.1rem 0.45rem; border-radius: 4px;
  background: rgba(233, 238, 243, 0.14);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-ink);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--chalk); text-decoration: none;
}
.brand .glyph { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--chalk-2); text-decoration: none; font-weight: 500; font-size: var(--t-sm); }
.nav-links a:hover { color: var(--chalk); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav .btn { padding: 0.6rem 1.1rem; font-size: var(--t-sm); }
.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; color: var(--chalk); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section--ink { background: var(--ink); color: var(--chalk); }
.section--ink-2 { background: var(--ink-2); color: var(--chalk); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-2 { background: var(--paper-2); color: var(--ink); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--hero { grid-template-columns: 1.1fr 1fr; align-items: center; }
.split--narrow { grid-template-columns: 5fr 7fr; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 45%, rgba(63, 167, 150, 0.16), transparent 70%),
    radial-gradient(45% 40% at 15% 90%, rgba(224, 174, 78, 0.10), transparent 70%);
}
.hero .wrap { position: relative; }
.hero h1 { margin-bottom: 1.1rem; max-width: 12ch; }
.hero .lede { margin-bottom: 2rem; }
.trades-line { margin-top: 1.6rem; color: var(--chalk-2); font-size: var(--t-sm); }
.trades-line span { color: var(--chalk); font-weight: 500; }

/* ---------- Live call panel ---------- */
.call {
  background: var(--ink-2);
  border: 1px solid var(--line-ink);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.call-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-ink);
  font-size: var(--t-sm); color: var(--chalk-2);
}
.call-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verdigris); box-shadow: 0 0 0 4px rgba(63, 167, 150, 0.18); }
.call-bar .time { margin-left: auto; font-variant-numeric: tabular-nums; }
.call-body { display: grid; grid-template-columns: 1.25fr 1fr; }
.transcript { padding: 1rem; border-right: 1px solid var(--line-ink); min-height: 300px; }
.line { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; font-size: var(--t-sm); line-height: 1.45; opacity: 0; transform: translateY(6px); }
.line.on { opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.line .who { flex: 0 0 auto; width: 3.6rem; font-family: var(--font-display); font-weight: 600; font-size: var(--t-xs); color: var(--chalk-2); padding-top: 0.15rem; }
.line.riff .who { color: var(--brass); }
.line .what { color: var(--chalk); }
.wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; margin-left: 0.4rem; vertical-align: middle; }
.wave i { width: 3px; background: var(--brass); border-radius: 2px; animation: wave 0.9s ease-in-out infinite; height: 4px; }
.wave i:nth-child(2) { animation-delay: 0.15s; } .wave i:nth-child(3) { animation-delay: 0.3s; } .wave i:nth-child(4) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Property record ---------- */
.record { padding: 1rem; font-size: var(--t-sm); }
.record-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 0.6rem; margin-bottom: 0.7rem; }
.record-head strong { font-family: var(--font-display); font-weight: 600; font-size: var(--t-base); color: var(--chalk); line-height: 1.2; }
.record-head .since { color: var(--verdigris-2); font-size: var(--t-xs); }
.record dl { margin: 0; }
.record dt { color: var(--chalk-2); font-size: var(--t-xs); margin-top: 0.55rem; }
.record dt:first-child { margin-top: 0; }
.record dd { margin: 0.1rem 0 0; color: var(--chalk); opacity: 0.25; transition: opacity 0.4s var(--ease); }
.record dd.on { opacity: 1; }
.record dd.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verdigris); margin-right: 0.5rem; vertical-align: 1px; }
.record-foot { margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px dashed var(--line-ink); color: var(--chalk-2); font-size: var(--t-xs); opacity: 0; transition: opacity 0.4s var(--ease); }
.record-foot.on { opacity: 1; }
.record-foot b { color: var(--brass); font-weight: 600; }

/* Standalone record card (light + dark contexts) */
.record-card {
  background: var(--ink-2); color: var(--chalk);
  border: 1px solid var(--line-ink); border-radius: var(--r-card);
  padding: 1.2rem 1.3rem; font-size: var(--t-sm);
}
.record-card .record-head strong { color: var(--chalk); }
.record-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; row-gap: 0.5rem; }
.record-card dt { color: var(--chalk-2); }
.record-card dd { margin: 0; }
.record-card dd::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verdigris); margin-right: 0.5rem; vertical-align: 1px; }
.record-card .note { margin-top: 0.9rem; padding: 0.7rem 0.8rem; border-left: 3px solid var(--brass); background: rgba(224, 174, 78, 0.08); color: var(--chalk); border-radius: 0 var(--r-tag) var(--r-tag) 0; }

/* ---------- Old world timeline ---------- */
.clock { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-ink); }
.clock li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.clock li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--chalk-2); }
.clock li.cost::before { border-color: var(--ember); background: var(--ember); }
.clock time { display: block; font-family: var(--font-display); font-weight: 600; color: var(--chalk-2); font-size: var(--t-sm); margin-bottom: 0.15rem; }
.clock p { margin: 0; color: var(--chalk); }
.clock .cost p { color: #F3B6A8; }
.section--paper .clock { border-color: var(--line-paper); }
.section--paper .clock li::before { background: var(--paper); border-color: var(--slate); }
.section--paper .clock time { color: var(--slate); }
.section--paper .clock p { color: var(--ink); }
.section--paper .clock li.cost::before { background: var(--ember); border-color: var(--ember); }
.section--paper .clock .cost p { color: #A8432A; }

/* ---------- Loop diagram ---------- */
.loop { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.loop-svg { width: 100%; max-width: 520px; margin: 0 auto; }
.loop-node { cursor: pointer; }
.loop-node circle { fill: var(--ink-2); stroke: var(--chalk-2); stroke-width: 1.5; transition: fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.loop-node text { fill: var(--chalk); font-family: var(--font-display); font-weight: 600; font-size: 13px; pointer-events: none; }
.loop-node.on circle, .loop-node:hover circle { fill: var(--brass); stroke: var(--brass); }
.loop-node.on text, .loop-node:hover text { fill: var(--brass-ink); }
.loop-ring { fill: none; stroke: var(--line-ink); stroke-width: 2; }
.loop-arc { fill: none; stroke: var(--verdigris); stroke-width: 2.5; stroke-dasharray: 6 8; animation: flow 6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -280; } }
.loop-detail { min-height: 9rem; }
.loop-detail h3 { color: var(--brass); margin-bottom: 0.4rem; }
.loop-detail p { color: var(--chalk-2); font-size: var(--t-md); }
.loop-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.loop-steps button {
  background: transparent; border: 1px solid var(--line-ink); color: var(--chalk-2);
  border-radius: var(--r-pill); padding: 0.4rem 0.9rem; font-size: var(--t-sm); cursor: pointer;
}
.loop-steps button.on, .loop-steps button:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Story tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tab {
  background: transparent; border: 1.5px solid var(--line-paper); color: var(--ink);
  border-radius: var(--r-pill); padding: 0.6rem 1.15rem; cursor: pointer; font-weight: 500;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.story { display: none; }
.story[aria-hidden="false"] { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story h3 { font-size: var(--t-xl); margin-bottom: 1.2rem; }
.story .stanza { font-size: clamp(1.15rem, 1.9vw, 1.45rem); max-width: 40ch; }
.story .btn { margin-top: 1rem; }
.story-side { position: sticky; top: 96px; }

/* ---------- Lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 14px; height: 8px;
  border-left: 2.5px solid var(--verdigris); border-bottom: 2.5px solid var(--verdigris); transform: rotate(-45deg);
}
.checks--two { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 0.55rem 0; border-bottom: 1px solid var(--line-ink); }
.section--paper .plain li { border-color: var(--line-paper); }

/* ---------- Chain (callbacks) ---------- */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 2rem 0; }
.chain span {
  font-family: var(--font-display); font-weight: 600;
  padding: 0.55rem 1rem; border-radius: var(--r-tag);
  background: var(--ink-2); border: 1px solid var(--line-ink); color: var(--chalk);
}
.chain span.hot { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.chain i { width: 18px; height: 2px; background: var(--chalk-2); opacity: 0.6; }

/* ---------- Field checklist ---------- */
.field { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.field-card { background: var(--paper-2); border: 1px solid var(--line-paper); border-radius: var(--r-card); padding: 1.2rem 1.3rem; }
.field-card h4 { font-family: var(--font-display); margin: 0 0 0.8rem; font-size: var(--t-md); }
.field-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.field-card li { display: flex; gap: 0.7rem; align-items: center; padding: 0.55rem 0.7rem; border-radius: var(--r-tag); background: var(--paper); font-size: var(--t-sm); }
.field-card li .box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--slate); flex: 0 0 auto; position: relative; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.field-card li.done .box { background: var(--verdigris); border-color: var(--verdigris); }
.field-card li.done .box::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.field-card li.missing { background: rgba(224, 174, 78, 0.14); }
.field-card li.missing .box { border-color: var(--brass); }
.field-card li .why { margin-left: auto; color: var(--slate); font-size: var(--t-xs); }
.field-card .ask { margin-top: 0.9rem; padding: 0.7rem 0.8rem; border-left: 3px solid var(--brass); background: rgba(224, 174, 78, 0.10); border-radius: 0 var(--r-tag) var(--r-tag) 0; font-size: var(--t-sm); }

/* ---------- Pitch ---------- */
.pitch { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 22ch; }
.pitch p { margin: 0 0 0.35em; }
.pitch .quiet { color: var(--chalk-2); font-weight: 500; }
.pitch .close { margin-top: 1.2em; color: var(--brass); }

/* ---------- Evidence ---------- */
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.evidence article { border-top: 3px solid var(--brass); padding-top: 1rem; }
.evidence .big { font-family: var(--font-display); font-weight: 700; font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.4rem; }
.evidence p { color: var(--slate); font-size: var(--t-sm); margin: 0; }
.evidence a { color: var(--slate); }
.footnote { color: var(--slate); font-size: var(--t-xs); margin-top: 1.5rem; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.calc-inputs { display: grid; gap: 1.1rem; }
.calc-inputs label { display: grid; gap: 0.35rem; font-weight: 500; font-size: var(--t-sm); }
.calc-inputs .row { display: flex; align-items: center; gap: 0.8rem; }
.calc-inputs input[type="range"] { flex: 1; accent-color: var(--brass); }
.calc-inputs output { min-width: 5.5rem; text-align: right; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out { background: var(--ink); color: var(--chalk); border-radius: var(--r-card); padding: 1.6rem 1.7rem; position: sticky; top: 96px; }
.calc-out h3 { color: var(--chalk-2); font-size: var(--t-md); font-weight: 500; margin-bottom: 1.2rem; }
.calc-out .stat { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line-ink); }
.calc-out .stat:last-of-type { border-bottom: 1px solid var(--line-ink); }
.calc-out .stat span { color: var(--chalk-2); font-size: var(--t-sm); }
.calc-out .stat b { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-out .stat b.brass { color: var(--brass); }
.calc-out .total { margin-top: 1rem; }
.calc-out .total span { display: block; color: var(--chalk-2); font-size: var(--t-sm); }
.calc-out .total b { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 700; color: var(--brass); letter-spacing: -0.03em; }
.calc-out .fine { color: var(--chalk-2); font-size: var(--t-xs); margin: 1rem 0 0; }

/* ---------- Photo slots (blueprint fallback) ---------- */
.photo {
  position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 320px;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(rgba(233, 238, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 238, 243, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  color: var(--chalk); font-size: var(--t-sm);
  background: rgba(15, 27, 45, 0.7); backdrop-filter: blur(6px);
  padding: 0.6rem 0.8rem; border-radius: var(--r-tag);
}
.photo--tall { min-height: 460px; }

/* ---------- Final CTA ---------- */
.final { text-align: left; }
.final .stanza { max-width: 30ch; }

/* ---------- Footer ---------- */
.footer { background: #0A1422; color: var(--chalk-2); padding: 3rem 0 2rem; font-size: var(--t-sm); border-top: 1px solid var(--line-ink); }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--chalk); font-family: var(--font-display); font-weight: 600; margin: 0 0 0.6rem; font-size: var(--t-base); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer a { color: var(--chalk-2); text-decoration: none; }
.footer a:hover { color: var(--chalk); }
.footer .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line-ink); color: var(--slate); font-size: var(--t-xs); }

/* ---------- Build page (wizard) ---------- */
.wizard { min-height: calc(100vh - 68px); display: grid; align-items: center; padding: clamp(2rem, 6vw, 4rem) 0; }
.step { display: none; }
.step[aria-hidden="false"] { display: block; }
.step h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 16ch; }
.progress-dots { display: flex; gap: 0.5rem; margin-bottom: 1.6rem; }
.progress-dots i { width: 34px; height: 4px; border-radius: 2px; background: var(--line-ink); }
.progress-dots i.on { background: var(--brass); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; margin: 1.6rem 0 2rem; }
.tile {
  background: var(--ink-2); border: 1.5px solid var(--line-ink); color: var(--chalk);
  border-radius: var(--r-card); padding: 1.2rem 1.1rem; text-align: left; cursor: pointer;
  display: grid; gap: 0.5rem; transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.tile:hover { border-color: var(--chalk-2); }
.tile[aria-pressed="true"] { border-color: var(--brass); background: rgba(224, 174, 78, 0.10); }
.tile svg { width: 34px; height: 34px; }
.tile { position: relative; }
.tile-badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-xs);
  color: var(--brass-ink); background: var(--brass); border-radius: var(--r-pill); padding: 0.15rem 0.6rem;
}
.tile-badge--soon { color: var(--chalk-2); background: transparent; border: 1px solid var(--line-ink); }
.tile b { font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); }
.tile span { color: var(--chalk-2); font-size: var(--t-sm); }
.fields { display: grid; gap: 1rem; max-width: 520px; margin: 1.6rem 0 2rem; }
.fields label { display: grid; gap: 0.4rem; font-weight: 500; font-size: var(--t-sm); color: var(--chalk-2); }
.fields input, .fields select {
  font: inherit; color: var(--chalk); background: var(--ink-2);
  border: 1.5px solid var(--line-ink); border-radius: 10px; padding: 0.85rem 1rem;
}
.fields input:focus { outline: none; border-color: var(--brass); }
.fields .hint { color: var(--slate); font-size: var(--t-xs); }
.build-log { list-style: none; margin: 1.6rem 0 0; padding: 0; max-width: 560px; display: grid; gap: 0.6rem; }
.build-log li { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 10px; color: var(--chalk-2); opacity: 0.4; transition: opacity 0.3s var(--ease); }
.build-log li.on { opacity: 1; color: var(--chalk); }
.build-log li.done { border-color: rgba(63, 167, 150, 0.5); }
.build-log .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-ink); border-top-color: var(--brass); animation: spin 0.8s linear infinite; flex: 0 0 auto; }
.build-log li.done .spin { border: 0; background: var(--verdigris); animation: none; position: relative; }
.build-log li.done .spin::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 1.5rem; }
.result .call { box-shadow: none; }
.result-aside { display: grid; gap: 1rem; }
.next { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: var(--r-card); padding: 1.3rem 1.4rem; }
.next h3 { font-size: var(--t-md); margin-bottom: 0.6rem; }
.next p { color: var(--chalk-2); font-size: var(--t-sm); }
.next form { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.next input { font: inherit; color: var(--chalk); background: var(--ink); border: 1.5px solid var(--line-ink); border-radius: 10px; padding: 0.8rem 1rem; }
.next input:focus { outline: none; border-color: var(--brass); }
.next .ok { color: var(--verdigris-2); font-weight: 500; }

/* ---------- Trade pages ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 14ch; }
.page-hero .trade { color: var(--brass); font-family: var(--font-display); font-weight: 500; font-size: var(--t-md); margin-bottom: 0.8rem; }
.prose { max-width: 62ch; }
.prose h2 { font-size: var(--t-xl); margin-top: 2.5rem; }
.prose .stanza { max-width: 36ch; }
.trade-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.trade-nav a { text-decoration: none; border: 1.5px solid var(--line-ink); color: var(--chalk-2); border-radius: var(--r-pill); padding: 0.5rem 1rem; font-size: var(--t-sm); }
.trade-nav a:hover, .trade-nav a[aria-current="page"] { border-color: var(--brass); color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .split--hero, .split--narrow, .loop, .field, .calc, .result { grid-template-columns: 1fr; }
  .story[aria-hidden="false"] { grid-template-columns: 1fr; }
  .story-side, .calc-out { position: static; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .evidence { grid-template-columns: 1fr; }
  .call-body { grid-template-columns: 1fr; }
  .transcript { border-right: 0; border-bottom: 1px solid var(--line-ink); min-height: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--ink); padding: 1rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line-ink); gap: 1rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .checks--two { grid-template-columns: 1fr; }
  .stanza { max-width: none; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i, .loop-arc, .build-log .spin { animation: none; }
  .line, .record dd, .record-foot, .build-log li, .field-card li .box { transition: none; }
}

/* ---------- Live front desk result ---------- */
.live-number { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: var(--r-card); padding: 1.4rem 1.5rem; display: grid; gap: 0.35rem; }
.live-number-label { color: var(--chalk-2); font-size: var(--t-sm); }
.live-number-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; color: var(--brass); text-decoration: none; line-height: 1.05; }
.live-number-value:hover { color: var(--brass-2); }
.live-number-meta { color: var(--chalk-2); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.live-busy { margin-top: 1rem; padding: 0.8rem 1rem; border-left: 3px solid var(--ember); background: rgba(224, 122, 95, 0.12); border-radius: 0 var(--r-tag) var(--r-tag) 0; font-size: var(--t-sm); }
.token { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-sm); background: var(--ink); border: 1px solid var(--line-ink); border-radius: 10px; padding: 0.7rem 0.9rem; word-break: break-all; color: var(--chalk); }
.build-log li.fail { border-color: rgba(224, 122, 95, 0.6); color: #F3B6A8; }
.build-log li.fail .spin { border: 0; background: var(--ember); animation: none; }
.trade-pill { display: inline-flex; align-items: center; gap: 0.7rem; margin: -0.3rem 0 1rem; padding: 0.35rem 0.4rem 0.35rem 0.9rem; border: 1px solid var(--line-ink); border-radius: var(--r-pill); color: var(--chalk-2); font-size: var(--t-sm); }
.trade-pill b { color: var(--brass); font-weight: 600; }
.linkish { background: none; border: 0; padding: 0.2rem 0.5rem; color: var(--chalk-2); text-decoration: underline; cursor: pointer; font-size: var(--t-xs); }
.linkish:hover { color: var(--chalk); }

/* ---------- Build panel (one step: pick a trade, name the company) ---------- */
.panel { max-width: 720px; margin: 0 auto; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 16px; padding: 1.6rem 1.7rem 1.4rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.panel-head h1 { font-size: var(--t-xl); margin: 0; max-width: none; }
.panel-close { color: var(--chalk-2); text-decoration: none; font-size: 1.7rem; line-height: 1; padding: 0.1rem 0.5rem; border-radius: 6px; }
.panel-close:hover { color: var(--chalk); }
.choices { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.choices legend { font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); color: var(--chalk); padding: 0; margin-bottom: 0.2rem; }
.choices .hint { color: var(--chalk-2); font-size: var(--t-sm); margin: 0 0 0.6rem; }
.choice-group { color: var(--chalk-2); font-size: var(--t-xs); font-weight: 600; margin: 1rem 0 0.5rem; }
.choice { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border: 1.5px solid var(--line-ink); border-radius: 12px; background: var(--ink); cursor: pointer; margin-bottom: 0.55rem; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.choice:hover { border-color: var(--chalk-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice svg { width: 24px; height: 24px; flex: 0 0 auto; }
.choice-text { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
.choice-text b { font-weight: 600; color: var(--chalk); }
.choice-text span { color: var(--chalk-2); font-size: var(--t-sm); }
.choice .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--chalk-2); flex: 0 0 auto; position: relative; }
.choice.on, .choice:has(input:checked) { border-color: var(--brass); background: rgba(224, 174, 78, 0.08); }
.choice.on .choice-text b, .choice:has(input:checked) .choice-text b { color: var(--brass); }
.choice.on .radio, .choice:has(input:checked) .radio { border-color: var(--brass); }
.choice.on .radio::after, .choice:has(input:checked) .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brass); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.fields--panel { max-width: none; margin: 0 0 1.2rem; }
.fields--panel label { color: var(--chalk); }
.fields--panel input { background: var(--ink); }
.panel-foot { display: flex; justify-content: flex-end; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-ink); }
@media (max-width: 760px) { .panel { padding: 1.2rem 1.1rem 1.1rem; } .panel-foot { flex-direction: column-reverse; } .panel-foot .btn { justify-content: center; } }
