/* CTBRE · The Instrument · v3 (2026-09-03)
   Tokens: ~/.claude/tools/design-tokens.ctbre.json v3.0.0 — every colour, size, gap,
   radius and duration below is a set member. Mobile-first: plain rules are 390px,
   layer-ups are min-width only. Dark instrument fields run edge to edge; warm paper
   bands host conversation. One accent (oxblood). */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/bodoni-moda.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/bodoni-moda-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-italic.woff2") format("woff2");
}
/* metric-matched fallbacks so the swap does not reflow */
@font-face {
  font-family: "Bodoni Fallback";
  src: local("Georgia");
  size-adjust: 94%;
  ascent-override: 96%;
  descent-override: 24%;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 98%;
}

:root {
  color-scheme: dark;
  --ink-950: #080d10;
  --ink-900: #0d1418;
  --ink-800: #131c21;
  --ink-700: #1b262c;
  --ink-600: #26333a;
  --ink-text: #15181b;
  --paper-50: #f7f2e8;
  --paper-100: #efe8da;
  --paper-200: #e4dac7;
  --paper-300: #d3c7b1;
  --cream: #f2ead9;
  --cream-72: rgba(242, 234, 217, 0.72);
  --cream-56: rgba(242, 234, 217, 0.56);
  --cream-24: rgba(242, 234, 217, 0.24);
  --cream-14: rgba(242, 234, 217, 0.14);
  --cream-8: rgba(242, 234, 217, 0.08);
  --ink-14: rgba(21, 24, 27, 0.14);
  --ink-8: rgba(21, 24, 27, 0.08);
  --ink-32: rgba(21, 24, 27, 0.32);
  --graphite: #5b6066;
  --ox: #8b1420;
  --ox-500: #a3192a;
  --ox-800: #6a0f18;
  --ox-300: #f0a3a8;
  --bronze: #9a6a2c;
  --bronze-300: #d8b17e;
  --sky: #8ec9e8;
  --sky-12: rgba(142, 201, 232, 0.12);
  --moss: #2f6b3a;
  --moss-300: #9fd3a6;
  --white: #ffffff;
  --display: "Bodoni Moda", "Bodoni Fallback", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Instrument Sans", "Instrument Fallback", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-instant: 120ms;
  --t-hover: 200ms;
  --t-reveal: 280ms;
  --t-drawer: 480ms;
  --t-hero: 700ms;
  --gutter: 16px;
  --header: 64px;
  --ground: var(--ink-950);
  --fg: var(--cream);
  --fg-muted: var(--cream-72);
  --hair: var(--cream-14);
  --hair-strong: var(--cream-24);
  --field-bg: var(--ink-800);
  --raise: var(--ink-900);
  --raise-2: var(--ink-800);
  --italic: var(--bronze-300);
  --eyebrow: var(--bronze-300);
  --focus: var(--sky);
  --accent-hover: var(--ox-500);
  --danger: var(--ox-300);
  --success: var(--moss-300);
}
@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --header: 72px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 80px; }
}

/* ─── reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--ink-950);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-optical-sizing: auto;
}
body {
  min-width: 280px;
  min-height: 100vh;
  background: var(--ground);
  color: var(--fg);
  font: 16px/1.55 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; min-width: 0; }
legend { display: block; }
small, sup, sub { font-size: 13px; }
strong, b { font-weight: 600; }
em { font-style: italic; }
[hidden] { display: none !important; }
option { color: var(--ink-text); background: var(--paper-50); }
::selection { background: var(--ox); color: var(--white); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px;
  padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center;
  background: var(--paper-50); color: var(--ink-text); font-size: 14px; font-weight: 600;
  transform: translateY(-200%); transition: transform var(--t-instant) var(--standard);
}
.skip-link:focus { transform: none; }

/* ─── surface contexts ──────────────────────────────────────────────────── */
.paper {
  --ground: var(--paper-50);
  --fg: var(--ink-text);
  --fg-muted: var(--graphite);
  --hair: var(--ink-14);
  --hair-strong: var(--ink-32);
  --field-bg: var(--paper-100);
  --raise: var(--paper-100);
  --raise-2: var(--paper-200);
  --italic: var(--bronze);
  --eyebrow: var(--graphite);
  --focus: var(--ox);
  --accent-hover: var(--ox-800);
  --danger: var(--ox-500);
  --success: var(--moss);
  background: var(--ground);
  color: var(--fg);
  color-scheme: light;
}
.dark {
  --ground: var(--ink-950);
  --fg: var(--cream);
  --fg-muted: var(--cream-72);
  --hair: var(--cream-14);
  --hair-strong: var(--cream-24);
  --field-bg: var(--ink-800);
  --raise: var(--ink-900);
  --raise-2: var(--ink-800);
  --italic: var(--bronze-300);
  --eyebrow: var(--bronze-300);
  --focus: var(--sky);
  --accent-hover: var(--ox-500);
  --danger: var(--ox-300);
  --success: var(--moss-300);
  background: var(--ground);
  color: var(--fg);
  color-scheme: dark;
}
.dark.raised { --ground: var(--ink-900); }

/* ─── type ──────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; line-height: 1.5; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--fg); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em, h1 em, h2 em { font-style: italic; color: var(--italic); font-weight: 400; }
h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.2; }
.lede { font-size: 18px; line-height: 1.5; color: var(--fg-muted); max-width: 34em; }
.measure { max-width: 68ch; }
p { max-width: 68ch; }
.muted { color: var(--fg-muted); }
.num { font-variant-numeric: tabular-nums; }
@media (min-width: 600px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .lede { font-size: 20px; }
}
@media (min-width: 900px) {
  h1 { font-size: 64px; letter-spacing: -0.025em; }
  h2 { font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; }
}
@media (min-width: 1280px) {
  h1 { font-size: 72px; letter-spacing: -0.03em; line-height: 0.98; }
  h2 { font-size: 48px; }
}
@media (min-width: 1600px) {
  h1 { font-size: 96px; }
  h2 { font-size: 56px; }
}

/* ─── layout primitives ─────────────────────────────────────────────────── */
.shell { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-lg { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 600px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-lg { padding-top: 96px; padding-bottom: 96px; }
}
@media (min-width: 900px) {
  .section { padding-top: 96px; padding-bottom: 96px; }
  .section-lg { padding-top: 128px; padding-bottom: 128px; }
}
@media (min-width: 1600px) {
  .section-lg { padding-top: 160px; padding-bottom: 160px; }
}
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hair-top { border-top: 1px solid var(--hair); }
.hair-bottom { border-bottom: 1px solid var(--hair); }

/* section head: eyebrow · title · lede · aside note */
.head { display: grid; gap: 16px; }
.head .note {
  font-size: 14px; line-height: 1.5; color: var(--fg-muted);
  padding-left: 16px; border-left: 2px solid var(--ox); max-width: 30em;
}
.head .note strong { color: var(--fg); display: block; }
@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 40px; }
  .head .note { justify-self: end; }
}

/* ─── header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header);
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding-left: var(--gutter); padding-right: var(--gutter);
  gap: 16px;
  color: var(--cream);
  background: var(--ink-950);
  border-bottom: 1px solid var(--cream-8);
  transition: background-color var(--t-hover) var(--standard), height var(--t-reveal) var(--standard);
}
.site-header.is-scrolled { background: rgba(13, 20, 24, 0.86); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
body[data-page="home"] .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; }
body[data-page="home"] .site-header.is-scrolled { background: rgba(13, 20, 24, 0.86); border-bottom-color: var(--cream-8); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity var(--t-hover) var(--standard);
}
.brand:hover { opacity: 0.8; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9999px;
  border: 1px solid var(--cream-24);
  display: grid; place-items: center;
  font: 400 16px/1 var(--display); letter-spacing: 0;
}
.brand-tag { color: var(--cream-56); font-weight: 500; }
.primary-nav { display: none; }
.site-header .header-brief { display: none; }
.menu-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--cream-24); border-radius: 2px;
  transition: background-color var(--t-hover) var(--standard), border-color var(--t-hover) var(--standard);
}
.menu-button:hover { background: var(--cream-8); border-color: var(--cream-56); }
.site-header .button { color: var(--cream); border-color: var(--cream-24); }
.site-header .button:hover { background: var(--cream-8); border-color: var(--cream); }
.menu-button:active { transform: scale(0.97); }
.menu-button[aria-expanded="true"] { background: var(--cream); color: var(--ink-text); border-color: var(--cream); }
@media (min-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 40px; }
  .primary-nav { display: flex; justify-content: center; gap: 4px; }
  .primary-nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
    color: var(--cream-72); transition: color var(--t-hover) var(--standard);
  }
  .primary-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-reveal) var(--out);
  }
  .primary-nav a:hover { color: var(--cream); }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .primary-nav a[aria-current="page"] { color: var(--cream); }
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--ox-500); height: 2px; }
  .site-header .header-brief { display: inline-flex; min-height: 44px; }
  .menu-button { display: none; }
}

/* mobile drawer */
.menu-drawer {
  position: fixed; inset: var(--header) 0 0 0; z-index: 39;
  background: var(--ink-950); color: var(--cream);
  padding: 24px var(--gutter) 40px;
  display: grid; grid-template-rows: 1fr auto; gap: 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--t-reveal) var(--out), transform var(--t-reveal) var(--out), visibility 0s linear var(--t-reveal);
}
.menu-drawer.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
html.js .menu-drawer nav a { opacity: 0; transform: translateY(12px); transition: opacity var(--t-reveal) var(--out), transform var(--t-reveal) var(--out), color var(--t-hover) var(--standard), padding-left var(--t-hover) var(--standard); }
html.js .menu-drawer.is-open nav a { opacity: 1; transform: none; }
html.js .menu-drawer.is-open nav a:nth-child(2) { transition-delay: 40ms; }
html.js .menu-drawer.is-open nav a:nth-child(3) { transition-delay: 80ms; }
html.js .menu-drawer.is-open nav a:nth-child(4) { transition-delay: 120ms; }
html.js .menu-drawer.is-open nav a:nth-child(5) { transition-delay: 160ms; }
.menu-drawer nav { display: grid; align-content: start; }
.menu-drawer nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 12px 0; text-decoration: none;
  font-family: var(--display); font-size: 32px; line-height: 1.1; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--cream-14);
  transition: color var(--t-hover) var(--standard), padding-left var(--t-hover) var(--standard);
}
.menu-drawer nav a small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-56); }
.menu-drawer nav a:hover { padding-left: 8px; color: var(--bronze-300); }
.menu-drawer nav a[aria-current="page"] { color: var(--bronze-300); }
.menu-drawer .drawer-foot { display: grid; gap: 16px; }
.menu-drawer .drawer-foot p { font-size: 13px; color: var(--cream-56); }
@media (min-width: 900px) { .menu-drawer { display: none; } }

/* ─── buttons ───────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--hair-strong); border-radius: 2px;
  color: var(--fg); background: transparent;
  transition: background-color var(--t-hover) var(--standard), border-color var(--t-hover) var(--standard), color var(--t-hover) var(--standard), transform var(--t-instant) var(--standard);
}
.button:hover { background: var(--cream-8); border-color: var(--fg); }
.paper .button:hover { background: var(--ink-8); }
.button:active { transform: scale(0.97); }
.button.primary { background: var(--ox); border-color: var(--ox); color: var(--white); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.ink { background: var(--cream); border-color: var(--cream); color: var(--ink-text); }
.button.ink:hover { background: var(--paper-200); border-color: var(--paper-200); }
.paper .button.ink { background: var(--ink-text); border-color: var(--ink-text); color: var(--cream); }
.paper .button.ink:hover { background: var(--ink-700); border-color: var(--ink-700); }
.button:disabled { opacity: 0.56; cursor: progress; transform: none; }
.button .arrow { transition: transform var(--t-hover) var(--out); }
.button:hover .arrow { transform: translateX(4px); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  color: var(--fg); border-bottom: 1px solid var(--hair-strong);
  transition: border-color var(--t-hover) var(--standard), color var(--t-hover) var(--standard);
}
.text-link:hover { border-color: var(--fg); color: var(--italic); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── forms ─────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field label, .field .label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--field-bg); color: var(--fg);
  border: 1px solid var(--hair); border-radius: 2px;
  font-size: 16px; line-height: 1.5;
  transition: border-color var(--t-hover) var(--standard), background-color var(--t-hover) var(--standard);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--hair-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%235b6066' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.dark .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23f2ead9' stroke-width='1.5'/%3E%3C/svg%3E");
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); }
.field .hint { font-size: 13px; color: var(--fg-muted); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.honeypot { display: none; }
.consent {
  display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 8px;
  font-size: 14px; line-height: 1.5; color: var(--fg-muted); cursor: pointer;
}
.consent span { padding-top: 12px; }
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; flex: none;
}
input[type="checkbox"]::before, input[type="radio"]::before {
  content: ""; width: 20px; height: 20px;
  border: 1px solid var(--hair-strong); border-radius: 2px; background: var(--field-bg);
  transition: background-color var(--t-instant) var(--standard), border-color var(--t-instant) var(--standard), box-shadow var(--t-instant) var(--standard);
}
input[type="radio"]::before { border-radius: 9999px; }
input[type="checkbox"]:hover::before, input[type="radio"]:hover::before { border-color: var(--fg); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { background: var(--ox); border-color: var(--ox); box-shadow: inset 0 0 0 4px var(--field-bg); }
input[type="checkbox"]:checked::before { box-shadow: inset 0 0 0 3px var(--field-bg); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; }
input[type="checkbox"]:focus-visible::before, input[type="radio"]:focus-visible::before { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-status { min-height: 24px; font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.form-status[data-tone="error"] { color: var(--danger); }
.form-status[data-tone="success"] { color: var(--success); }
.form-status:empty { display: none; }

/* segmented radio row (diagnostic) */
.segments { display: grid; gap: 8px; }
.segments label {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 4px;
  min-height: 48px; padding-right: 12px;
  border: 1px solid var(--hair); border-radius: 4px; background: var(--raise);
  font-size: 16px; cursor: pointer;
  transition: border-color var(--t-hover) var(--standard), background-color var(--t-hover) var(--standard);
}
.segments label:hover { border-color: var(--hair-strong); background: var(--raise-2); }
.segments label:has(input:checked) { border-color: var(--ox); }
.segments input { margin-left: 2px; }
.question { display: grid; gap: 12px; }
.question legend { font-family: var(--display); font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.question .index { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }

/* ─── choice rows (sell) ────────────────────────────────────────────────── */
.choice-list { display: grid; border-top: 1px solid var(--hair); }
.choice {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px;
  min-height: 72px; padding: 16px 0; text-decoration: none; text-align: left;
  border-bottom: 1px solid var(--hair);
  transition: padding-left var(--t-hover) var(--out), background-color var(--t-hover) var(--standard);
}
.choice .choice-index { font-family: var(--mono); font-size: 13px; color: var(--italic); }
.choice .choice-title { font-family: var(--display); font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; }
@media (min-width: 600px) { .choice .choice-title { font-size: 24px; } }
.choice .choice-note { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.choice:hover { padding-left: 8px; }
.choice:hover .choice-title { color: var(--italic); }
.choice.selected, .choice[aria-pressed="true"] { border-left: 2px solid var(--ox); padding-left: 16px; }
.choice.selected .choice-note, .choice[aria-pressed="true"] .choice-note { color: var(--italic); }
.paper .choice.selected .choice-note, .paper .choice[aria-pressed="true"] .choice-note { color: var(--ox); }
@media (min-width: 900px) {
  .choice { min-height: 96px; padding: 24px 0; }
  .choice .choice-title { font-size: 32px; }
}

/* ─── metrics ───────────────────────────────────────────────────────────── */
.metric-grid { display: grid; gap: 24px; }
@media (min-width: 600px) { .metric-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.rail .metric-grid, .instrument aside .metric-grid { grid-template-columns: 1fr; }
.metric { display: grid; gap: 4px; align-content: start; padding-top: 16px; border-top: 1px solid var(--hair); }
.metric-value { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-label { font-size: 14px; line-height: 1.4; color: var(--fg-muted); }
.metric-source { font-family: var(--mono); font-size: 13px; color: var(--sky); }
.paper .metric-source { color: var(--ox); }
@media (min-width: 900px) { .metric-value { font-size: 48px; } }
@media (min-width: 1600px) { .metric-value { font-size: 56px; } }
.provenance { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--fg-muted); max-width: 72ch; }
.status-panel {
  display: grid; gap: 4px; padding: 16px 20px;
  border-left: 2px solid var(--bronze-300); background: var(--raise);
  font-size: 14px; line-height: 1.5; color: var(--fg-muted);
}
.status-panel strong { color: var(--fg); }
.status-panel.error { border-left-color: var(--danger); }
.paper .status-panel { border-left-color: var(--bronze); }

/* ─── tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.data-table thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; border-bottom-color: var(--hair-strong); }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table .num { text-align: right; font-family: var(--mono); font-size: 13px; }
.data-table thead .num { font-family: var(--sans); font-size: 12px; }
.data-table tbody tr { transition: background-color var(--t-hover) var(--standard); }
.data-table tbody tr:hover { background: var(--raise); }
.data-table tbody th { font-weight: 500; }
.data-table .na { color: var(--fg-muted); font-family: var(--sans); font-size: 13px; }
.data-table a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; text-decoration: none; }
.data-table a:hover { color: var(--italic); }
.data-table .row-link:hover { cursor: pointer; }

/* ─── reveal + motion ───────────────────────────────────────────────────── */
/* Scroll reveals ride the browser's own view timeline and move TRANSFORM ONLY — content is
   never hidden at rest (captures, readers and robots always see it); it simply settles 24px
   as it enters. Browsers without view timelines show the content in place. */
@supports (animation-timeline: view()) {
  html.js .reveal {
    animation: rise-view linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 48%;
  }
}
@keyframes rise-view { from { transform: translateY(24px); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.04) translateX(1%); } to { transform: scale(1) translateX(0); } }
html.js .hero-seq > * { animation: rise var(--t-hero) var(--out) both; }
html.js .hero-seq > :nth-child(2) { animation-delay: 60ms; }
html.js .hero-seq > :nth-child(3) { animation-delay: 120ms; }
html.js .hero-seq > :nth-child(4) { animation-delay: 180ms; }
html.js .hero-seq > :nth-child(5) { animation-delay: 240ms; }

/* ─── HOME ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: end;
  min-height: 100svh; padding-top: 128px; padding-bottom: 32px;
  background: var(--ink-950); color: var(--cream);
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
html.js .hero-art img { animation: drift 1600ms var(--out) both; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 13, 16, 0.72) 0%, rgba(8, 13, 16, 0) 32%, rgba(8, 13, 16, 0.24) 64%, rgba(8, 13, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 13, 16, 0.96) 0%, rgba(8, 13, 16, 0.72) 42%, rgba(8, 13, 16, 0.08) 72%, rgba(8, 13, 16, 0) 100%);
}
.hero-copy { display: grid; gap: 20px; max-width: 40em; }
.hero-copy .button-row { margin-top: 8px; }
.hero-lens {
  display: grid; gap: 16px; margin-top: 40px; padding: 24px;
  background: rgba(13, 20, 24, 0.78); border: 1px solid var(--cream-14); border-radius: 2px;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.lens-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lens-index { font-family: var(--mono); font-size: 13px; color: var(--cream-56); }
.lens-number { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lens-number strong { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 0.98; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.lens-number small { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-72); }
.lens-copy { font-size: 14px; line-height: 1.5; color: var(--cream-72); }
.lens-tabs { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--cream-14); }
.lens-tab {
  min-height: 48px; padding: 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream-56); border-top: 2px solid transparent; margin-top: -1px;
  transition: color var(--t-hover) var(--standard), border-color var(--t-hover) var(--standard), background-color var(--t-hover) var(--standard);
}
.lens-tab:hover { color: var(--cream); background: var(--cream-8); }
.lens-tab[aria-selected="true"] { color: var(--cream); border-top-color: var(--ox-500); }
.lens-spark { height: 48px; }
.lens-spark svg { width: 100%; height: 100%; overflow: visible; }
.hero-foot {
  display: grid; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--cream-14);
  font-size: 13px; line-height: 1.5; color: var(--cream-56);
}
.hero-foot strong { color: var(--cream-72); font-weight: 500; }
.prov { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.prov div { display: grid; gap: 2px; }
.prov dt { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-56); }
.prov dd { font-family: var(--mono); font-size: 13px; color: var(--cream-72); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .hero { padding-top: 160px; padding-bottom: 40px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 40px; align-items: end; }
  .hero-lens { margin-top: 0; padding: 32px; }
  .lens-number strong { font-size: 48px; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(400px, 0.7fr); gap: 80px; }
  .lens-number strong { font-size: 56px; }
}
@media (min-width: 1600px) {
  .hero-grid { gap: 128px; }
  .lens-number strong { font-size: 72px; }
  .hero-lens { padding: 40px; }
}

/* routes band: three doors, edge to edge */
.doors { display: grid; border-top: 1px solid var(--cream-14); }
.door {
  display: grid; gap: 16px; align-content: space-between;
  min-height: 280px; padding: 32px var(--gutter);
  text-decoration: none; border-bottom: 1px solid var(--cream-14);
  transition: background-color var(--t-hover) var(--standard);
}
.door:hover { background: var(--ink-800); }
.door:hover .door-go { color: var(--cream); }
.door:hover h2 em { color: var(--cream); }
.door h2 { font-size: 32px; line-height: 1.1; }
.door p { font-size: 14px; color: var(--cream-72); max-width: 30em; }
.door .door-figure { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.door .door-figure small { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--sky); margin-top: 8px; }
.door .door-figure [data-dof-value]:not([data-count]) { color: var(--cream-24); }
.door .door-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze-300); }
.door .door-go .arrow { transition: transform var(--t-hover) var(--out); }
.door:hover .door-go .arrow { transform: translateX(6px); }
@media (min-width: 900px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
  .door { min-height: 400px; padding: 40px var(--gutter); border-right: 1px solid var(--cream-14); }
  .door:last-child { border-right: 0; }
  .door h2 { font-size: 40px; }
}
@media (min-width: 1600px) {
  .door { min-height: 480px; }
  .door h2 { font-size: 48px; }
  .door .door-figure { font-size: 56px; }
}

/* ─── SPLIT (conversation) ──────────────────────────────────────────────── */
.split { display: grid; }
.split > * { padding: 48px var(--gutter); }
.split .split-copy { display: grid; gap: 24px; align-content: start; }
.split .split-copy h2 { max-width: 14em; }
.split .split-form { display: grid; gap: 24px; align-content: start; }
.folio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hair-strong); }
.folio-head h2 { font-size: 28px; }
.folio-number { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.aside-note { display: grid; gap: 8px; padding: 20px 24px; border-left: 2px solid var(--bronze-300); background: var(--raise); font-size: 14px; line-height: 1.5; color: var(--fg-muted); max-width: 36em; }
.aside-note strong { color: var(--fg); font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.25; }
.paper .aside-note { border-left-color: var(--bronze); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split > * { padding: 96px var(--gutter); min-height: 100%; }
  .split .split-copy { position: sticky; top: var(--header); align-self: start; }
}
@media (min-width: 1280px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split > * { padding: 128px var(--gutter); }
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-950); color: var(--cream-72); border-top: 1px solid var(--cream-14); }
.site-footer .foot-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.site-footer h2 { font-size: 24px; color: var(--cream); }
.site-footer p { font-size: 14px; line-height: 1.55; }
.site-footer nav { display: grid; gap: 4px; }
.site-footer nav a, .site-footer .foot-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; color: var(--cream-72); transition: color var(--t-hover) var(--standard); }
.site-footer nav a:hover, .site-footer .foot-link:hover { color: var(--cream); }
.site-footer .foot-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-56); margin-bottom: 8px; }
.site-footer .foot-legal { display: grid; gap: 8px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--cream-8); font-size: 13px; color: var(--cream-56); }
@media (min-width: 900px) {
  .site-footer .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 80px; padding-bottom: 64px; }
  .site-footer .foot-legal { grid-template-columns: 1fr auto; }
}

/* ─── INTERIOR HERO (typographic) ───────────────────────────────────────── */
.page-hero { padding-top: 48px; padding-bottom: 48px; }
.page-hero .head { gap: 20px; }
.page-hero h1 { max-width: 12em; }
@media (min-width: 900px) { .page-hero { padding-top: 96px; padding-bottom: 64px; } }
@media (min-width: 1280px) { .page-hero { padding-top: 128px; padding-bottom: 80px; } }

/* interior hero carrying a rendered schematic */
.page-hero.has-art { position: relative; isolation: isolate; overflow: hidden; }
.page-hero.has-art .hero-art { position: absolute; inset: 0; z-index: -2; }
.page-hero.has-art .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.page-hero.has-art .hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 13, 16, 0.98) 0%, rgba(8, 13, 16, 0.86) 44%, rgba(8, 13, 16, 0.32) 76%, rgba(8, 13, 16, 0.12) 100%), linear-gradient(180deg, rgba(8, 13, 16, 0.6) 0%, rgba(8, 13, 16, 0) 40%, rgba(8, 13, 16, 0.7) 100%); }
.page-hero.has-art .art-note { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-56); margin-top: 24px; }
@media (min-width: 900px) { .page-hero.has-art { min-height: 560px; display: grid; align-content: end; } .page-hero.has-art .head { padding-bottom: 8px; } }
@media (min-width: 1280px) { .page-hero.has-art { min-height: 640px; } }
@media (min-width: 1600px) { .page-hero.has-art { min-height: 720px; } }

/* two-pane instrument: stage (dark) + rail */
.instrument { display: grid; }
.instrument .stage { padding: 48px var(--gutter); display: grid; gap: 32px; align-content: start; }
.instrument .rail { padding: 48px var(--gutter); display: grid; gap: 24px; align-content: start; }
.instrument > aside.rail { background: var(--ink-800); }
.rail-item { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--hair); }
.rail-item .eyebrow { color: var(--eyebrow); }
.rail-item p { font-size: 16px; line-height: 1.5; color: var(--fg-muted); }
.rail-item:first-child { border-top: 0; padding-top: 0; }
.rail-item .metric-value { font-size: 40px; line-height: 1; color: var(--fg); }
@media (min-width: 900px) { .rail-item .metric-value { font-size: 48px; } }
@media (min-width: 900px) {
  .instrument { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
  .instrument .stage { padding: 64px var(--gutter); }
  .instrument .rail { padding: 64px var(--gutter) 64px 40px; }
}
@media (min-width: 1280px) {
  .instrument { grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); }
  .instrument .stage { padding: 80px var(--gutter); }
  .instrument .rail { padding: 80px var(--gutter) 80px 48px; }
}

/* ─── CHARTS ────────────────────────────────────────────────────────────── */
.chart { display: grid; gap: 16px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-head h2 { font-size: 28px; }
.chart-key { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.chart-key i { display: inline-block; width: 12px; height: 2px; background: var(--sky); vertical-align: middle; margin-right: 8px; }
.chart-key i.ref { background: var(--bronze-300); }
.chart-key i.bar { height: 10px; background: var(--ox-500); }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg text { font-family: var(--mono); font-size: 12px; fill: var(--fg-muted); }
.chart-svg .grid { stroke: var(--hair); }
.chart-svg .axis { stroke: var(--hair-strong); }
.chart-svg .line { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .area { fill: var(--sky-12); }
.chart-svg .ref { stroke: var(--bronze-300); stroke-width: 1; }
.chart-svg .dot { fill: var(--sky); }
.chart-svg .dot.latest { fill: var(--ox-500); }
.chart-svg .bar { fill: var(--ink-600); transition: fill var(--t-hover) var(--standard); }
.chart-svg .bar.latest { fill: var(--ox-500); }
.chart-svg .bar:hover { fill: var(--cream-56); }
.chart-svg .value { fill: var(--fg); font-size: 13px; }
.chart-svg .value.em { fill: var(--cream); }
html.js .chart-svg .line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1400ms var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-note { font-size: 13px; line-height: 1.5; color: var(--fg-muted); max-width: 60ch; }
.spark { width: 100%; height: 40px; overflow: visible; }
.spark .line { fill: none; stroke: var(--sky); stroke-width: 1.5; }
.spark .area { fill: var(--sky-12); }
.spark .dot { fill: var(--ox-500); }
.paper .spark .line { stroke: var(--ox); }
.paper .spark .area { fill: var(--ink-8); }

/* waterfall (seller costs) */
.waterfall { display: grid; gap: 12px; }
.wf-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.wf-row .wf-label { font-size: 14px; color: var(--fg-muted); }
.wf-row .wf-value { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.wf-row .wf-bar { grid-column: 1 / -1; height: 8px; background: var(--raise-2); border-radius: 2px; overflow: hidden; }
.wf-row .wf-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--cream-56); transition: width var(--t-drawer) var(--out); }
.wf-row.total .wf-bar i { background: var(--sky); }
.wf-row.net .wf-label { color: var(--fg); font-weight: 500; }
.wf-row.net .wf-value { font-family: var(--display); font-size: 32px; letter-spacing: -0.02em; color: var(--bronze-300); }
.wf-row.net .wf-bar i { background: var(--bronze-300); }
.wf-row.cost .wf-bar i { background: var(--ox-500); }
@media (min-width: 900px) { .wf-row.net .wf-value { font-size: 40px; } }

/* ─── MAP (neighborhoods) ───────────────────────────────────────────────── */
.map-stage { display: grid; gap: 32px; }
.map-figure { display: grid; gap: 12px; order: 2; }
/* below 900 the stack's children join the map grid so the locator sits between filter and table */
.map-stage > .stack-lg { display: contents; }
.map-stage > .stack-lg > .stack { order: 0; }
.map-stage > .stack-lg > .place-filter { order: 1; }
.map-stage > .stack-lg > .neighborhood-ledger { order: 3; }
.map-stage > .stack-lg > .provenance { order: 4; }
.map-stage > .stack-lg > .button-row { order: 5; }
.map-figure svg { width: 100%; height: auto; max-height: 340px; overflow: visible; }
.map-land { fill: var(--ink-800); stroke: var(--cream-24); stroke-width: 1; }
.map-marker { cursor: pointer; }
.map-marker .hit { fill: transparent; }
.map-marker .dot { fill: var(--sky); transition: r var(--t-hover) var(--standard), fill var(--t-hover) var(--standard); }
.map-marker .halo { fill: var(--sky-12); }
.map-marker text { font-family: var(--sans); font-size: 12px; fill: var(--cream); opacity: 0; transition: opacity var(--t-hover) var(--standard); paint-order: stroke; stroke: var(--ink-950); stroke-width: 4; stroke-linejoin: round; }
.map-marker:hover .dot, .map-marker:focus-visible .dot, .map-marker.is-active .dot { fill: var(--bronze-300); r: 7; }
.map-marker:hover text, .map-marker:focus-visible text, .map-marker.is-active text { opacity: 1; }
.map-marker:focus-visible { outline: none; }
.map-marker:focus-visible .dot { stroke: var(--sky); stroke-width: 3; }
.map-note { font-size: 13px; line-height: 1.5; color: var(--fg-muted); max-width: 40em; }
.place-filter { display: grid; gap: 8px; }
.place-filter input { min-height: 48px; padding: 12px 16px; background: var(--field-bg); border: 1px solid var(--hair); border-radius: 2px; font-size: 16px; width: 100%; }
.place-filter input:hover { border-color: var(--hair-strong); }
.place-count { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.place-table tbody tr.is-active { background: var(--raise-2); }
.place-table tbody tr[hidden] { display: none; }
.place-table .period { color: var(--fg-muted); white-space: nowrap; }
@media (min-width: 900px) {
  .map-stage { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
  .map-figure { position: sticky; top: calc(var(--header) + 24px); order: 0; }
  .map-stage > .stack-lg { display: grid; }
  .map-figure svg { max-height: calc(100vh - 160px); }
}
@media (min-width: 1280px) { .map-stage { grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.4fr); gap: 80px; } }

/* compare tray (relocate) */
.compare { display: grid; gap: 16px; }
.compare-pick { display: grid; gap: 12px; }
.compare-grid { display: grid; gap: 16px; }
.compare-card { display: grid; gap: 12px; align-content: start; padding: 20px 0; border-top: 1px solid var(--hair); }
.compare-card h3 { font-size: 24px; }
.compare-card dl { display: grid; gap: 8px; }
.compare-card dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.compare-card dt { color: var(--fg-muted); }
.compare-card dd { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.compare-card .text-link { justify-self: start; }
.compare-card.empty { color: var(--fg-muted); font-size: 14px; min-height: 120px; align-content: center; text-align: center; border: 1px solid var(--hair); }
@media (min-width: 900px) { .compare-pick { grid-template-columns: repeat(3, 1fr); } .compare-grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── REPORT (paper folio) ──────────────────────────────────────────────── */
.report { max-width: 1120px; }
.report-hero-figure { display: grid; gap: 8px; }
.report-hero-figure .big { font-family: var(--display); font-size: 72px; line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.report-hero-figure .big em { color: var(--italic); }
@media (min-width: 900px) { .report-hero-figure .big { font-size: 96px; } }
.report-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .report-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: 64px; align-items: start; } }
details.method { border-top: 1px solid var(--hair); }
details.method summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; list-style: none; }
details.method summary::-webkit-details-marker { display: none; }
details.method summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--fg-muted); transition: transform var(--t-hover) var(--out); }
details.method[open] summary::after { transform: rotate(45deg); }
details.method summary:hover { color: var(--italic); }
details.method p { padding-bottom: 20px; font-size: 14px; line-height: 1.55; color: var(--fg-muted); }

/* calc results (tools) */
.calc-results { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--hair-strong); }
.calc-results table th, .calc-results table td { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--hair); text-align: left; }
.calc-results table td { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.calc-results table tr:last-child th, .calc-results table tr:last-child td { border-bottom: 0; font-weight: 600; }
.net-value { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.net-value small { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: 0; line-height: 1.5; color: var(--fg-muted); margin-top: 8px; }
.findings { display: grid; gap: 12px; }
.finding { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.finding strong { color: var(--fg); }

/* no-JS home panel */
.visual-nojs-panel { display: grid; gap: 24px; padding: 48px var(--gutter); }
.route-grid { display: grid; gap: 0; border-top: 1px solid var(--hair); }

/* visual-state helpers (approved states only) */
.visual-focus-target { outline: 2px solid var(--focus); outline-offset: 2px; }
.visual-intent-selected { outline: 2px solid var(--ox-500); outline-offset: 2px; }
.visual-receipt { display: grid; gap: 8px; padding: 20px 24px; border-left: 2px solid var(--moss); background: var(--raise); }
.visual-receipt span { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.visual-receipt strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.visual-receipt p { font-size: 14px; color: var(--fg-muted); }
.visual-state-panel { margin-bottom: 16px; }
html[data-visual-zoom="200"] body { zoom: 2; }
html[data-forced-colors="true"] .button { border: 2px solid currentColor; }


/* paper-context chart colours */
.paper .chart-svg .line { stroke: var(--ox); }
.paper .chart-svg .area { fill: var(--ink-8); }
.paper .chart-svg .dot { fill: var(--ox); }
.paper .chart-svg .dot.latest { fill: var(--ox); }
.paper .chart-svg .ref { stroke: var(--bronze); }
.paper .chart-svg .bar { fill: var(--paper-300); }
.paper .chart-svg .bar.latest { fill: var(--ox); }
.paper .chart-svg .bar:hover { fill: var(--graphite); }
.paper .chart-svg .value.em { fill: var(--ink-text); }
.paper .chart-key i { background: var(--ox); }
.paper .chart-key i.ref { background: var(--bronze); }
.map-marker.is-dim { opacity: 0.32; }
.title-sm { font-size: 24px; line-height: 1.2; }
.stage .metric-value.word { font-size: 32px; }
.report .big small { font-size: 14px; }
.wf-row .wf-label b { color: var(--fg); font-weight: 500; }
.calc-results .title-sm { font-size: 24px; }
.instrument form.rail { border-top: 1px solid var(--hair); }
.instrument .stage .map-figure svg { max-height: 480px; }
.instrument .stage .map-figure { max-width: 480px; }
@media (min-width: 900px) { .instrument form.rail { border-top: 0; } }

/* ─── motion preferences ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { animation: none; }
  html.js .hero-seq > * { animation: fade var(--t-reveal) linear both; }
  html.js .hero-art img { animation: none; }
  html.js .chart-svg .line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .button, .choice, .door, .menu-drawer, .wf-row .wf-bar i, .primary-nav a::after { transition: none; }
}
html[data-reduced-motion="true"] .reveal { animation: none; }
html[data-reduced-motion="true"] .hero-seq > * { animation: fade var(--t-reveal) linear both; }
html[data-reduced-motion="true"] .hero-art img { animation: none; }
html[data-reduced-motion="true"] .chart-svg .line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }

@media (forced-colors: active) {
  .button, .choice, .field input, .field select, .field textarea { border: 1px solid CanvasText; }
  .primary-nav a[aria-current="page"]::after { background: Highlight; }
}

/* ─── print ─────────────────────────────────────────────────────────────── */
@media print {
  @page { size: letter; margin: 0.55in; }
  html, body, .dark, .paper, .hero, .site-footer { background: #ffffff !important; color: #000000 !important; }
  .dark, .paper { --fg: #000000; --fg-muted: #333333; --hair: #cccccc; --hair-strong: #888888; --italic: #6a4518; --eyebrow: #555555; }
  .site-header, .menu-drawer, .skip-link, .button, .hero-art, .hero-scrim, .site-footer nav, .doors { display: none !important; }
  .hero { min-height: auto; padding-top: 24px; }
  .split, .instrument, .map-stage, .report-grid, .head { display: block; }
  .split > *, .instrument > * { padding: 12px 0; }
  .section, .section-lg, .page-hero { padding-top: 16px; padding-bottom: 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .metric, .chart, .finding, .calc-results, .rail-item, tr { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  .table-wrap { overflow: visible; }
  html.js .reveal { animation: none; }
  .chart-svg .line { stroke: #000000; stroke-dasharray: none; stroke-dashoffset: 0; }
  .chart-svg .area { fill: #eeeeee; }
  .chart-svg text { fill: #333333; }
  a[href]::after { content: none; }
}
