/* ============================================================
   Amelfi site — console design system
   Dark is the brand default; [data-theme="light"] is the print
   variant. Every color routes through these tokens.
   ============================================================ */

:root {
  --bg: #060806;
  --panel: #0b0f0b;
  --panel-2: #0e130e;
  --line: #1c241c;
  --line-bright: #2c3a2c;
  --accent-fill: #b6ff2e;      /* fills: buttons, chips (always dark text on it) */
  --accent-fill-hover: #d2ff70;
  --accent-ink: #b6ff2e;       /* accent used as text/border */
  --accent-dim: #5a7f24;
  --text: #e8f0e4;
  --muted: #7d8a78;
  --faint: #4c584a;
  --deny: #ff5c47;
  --warn: #e8b02e;
  --allow: #b6ff2e;
  --on-accent: #060806;
  --dia-stroke: rgba(182, 255, 46, 0.5);
  --dia-zone: rgba(125, 138, 120, 0.55);
  --shadow-panel: none;
  --guide-paper: #1b1914;
  --guide-paper-raised: #211e18;
  --guide-ink: #eee7d8;
  --guide-pencil: #aaa291;
  --guide-faint: #6f695d;
  --guide-red: #ff6b52;
  --pixel: 'Silkscreen', monospace;
  --grot: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* Light = the dossier: neutral white paper, black ink, monochrome accents.
   Chartreuse appears only as a fill (buttons, chips); red carries denial.
   Screens (stream, schematic, terminal, ticker) stay dark instruments. */
:root[data-theme="light"] {
  --bg: #f7f6ef;
  --panel: #fffefa;
  --panel-2: #efeee4;
  --line: #e2e1d8;
  --line-bright: #14140f;
  --accent-fill: #b6ff2e;
  --accent-fill-hover: #a7f513;
  --accent-ink: #14140f;
  --accent-dim: rgba(20, 20, 15, 0.38);
  --text: #14140f;
  --muted: #57564d;
  --faint: #8b8a7e;
  --deny: #c8321a;
  --warn: #8a6200;
  --allow: #2c6a00;
  --on-accent: #14140f;
  --dia-stroke: rgba(20, 20, 15, 0.5);
  --dia-zone: rgba(87, 86, 77, 0.6);
  --shadow-panel: 0 1px 2px rgba(20, 20, 15, 0.05), 0 12px 32px -16px rgba(20, 20, 15, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--grot);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
::selection { background: var(--accent-fill); color: var(--on-accent); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---- top status bar ---- */
.statusbar {
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
}
.statusbar .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.statusbar .ok { color: var(--accent-ink); white-space: nowrap; }
.statusbar .dot { display: inline-block; width: 7px; height: 7px; background: var(--accent-ink); margin-right: 8px; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.25; } }
.statusbar span.mid { display: none; }
@media (min-width: 880px) { .statusbar span.mid { display: inline; } }

/* ---- nav ---- */
nav.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
}
nav.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--pixel); font-size: 15px; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
.logo svg rect { stroke: var(--accent-ink); }
.logo svg line { stroke: var(--accent-ink); }
.navlinks { display: none; align-items: center; gap: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.navlinks > a:hover, .navlinks > a[aria-current="page"] { color: var(--accent-ink); }
@media (min-width: 1000px) { .navlinks { display: flex; } }
.nav-disclosure { position: relative; }
.nav-disclosure-trigger {
  display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0;
  background: transparent; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.nav-disclosure-trigger svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 0.16s ease; }
.nav-disclosure.is-open .nav-disclosure-trigger,
.nav-disclosure:has(a[aria-current="page"]) .nav-disclosure-trigger { color: var(--accent-ink); }
.nav-disclosure.is-open .nav-disclosure-trigger svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 18px); left: -16px; z-index: 70;
  min-width: 220px; padding: 8px; background: var(--panel); border: 1px solid var(--line-bright);
  box-shadow: var(--shadow-panel); opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-disclosure.is-open .nav-menu,
html:not(.js) .nav-disclosure:focus-within .nav-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 11px; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--panel-2); color: var(--accent-ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-docs { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1000px) { .nav-docs { display: inline-block; } }

.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle:hover { color: var(--accent-ink); transform: rotate(10deg); }
.theme-toggle:focus-visible, .nav-disclosure-trigger:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }

.btn {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 22px;
  border: 1px solid var(--accent-ink); color: var(--accent-ink); background: transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn.solid { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn.solid:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.btn:active { transform: translateY(1px); }

/* ---- hero ---- */
.hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding-top: 72px; padding-bottom: 72px; position: relative;
}
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 24px; }
.eyebrow::before { content: "// "; color: var(--muted); }
h1 {
  font-family: var(--grot); font-weight: 500; font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04; letter-spacing: -0.028em; margin-bottom: 24px;
}
h1 .dim, h2 .dim { color: var(--muted); }
h1 .px { font-family: var(--pixel); font-size: 0.82em; color: var(--accent-ink); font-weight: 400; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 52ch; margin-bottom: 36px; }
.hero .ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--bg); padding: 14px 16px; }
.kpi .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kpi .v { font-family: var(--pixel); font-size: 14px; color: var(--text); }

/* decision stream panel */
.stream {
  border: 1px solid var(--line-bright); background: var(--panel);
  font-family: var(--mono); font-size: 12px; position: relative;
  box-shadow: var(--shadow-panel);
}
.stream .head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding: 12px 16px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.stream .head b { color: var(--accent-ink); font-weight: 600; }
.stream .rows { padding: 8px 0; min-height: 336px; }
.stream .row {
  display: grid; grid-template-columns: 56px 1fr 92px; gap: 12px;
  padding: 9px 16px; border-bottom: 1px dashed var(--line); align-items: baseline;
}
.stream .row .t { color: var(--faint); }
.stream .row .what { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream .row .what small { display: block; color: var(--muted); font-size: 11px; }
.verdict { font-family: var(--pixel); font-size: 11px; text-align: right; }
.verdict.allow { color: var(--allow); }
.verdict.deny { color: var(--deny); }
.verdict.hidden { color: var(--warn); }
.stream .foot { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* dither backdrop */
.dither {
  position: absolute; right: -120px; top: -80px; width: 560px; height: 560px;
  opacity: 0.16; pointer-events: none;
  background-image: radial-gradient(var(--accent-ink) 1.4px, transparent 1.4px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
          mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
}
:root[data-theme="light"] .dither { opacity: 0.12; }

/* ---- sections ---- */
section.band { border-bottom: 1px solid var(--line); }
section.band > .wrap { padding-top: 116px; padding-bottom: 116px; }
.sec-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.sec-label::before { content: "["; color: var(--muted); }
.sec-label::after { content: "]"; color: var(--muted); }
h2 { font-family: var(--grot); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.022em; line-height: 1.12; max-width: 26ch; margin-bottom: 20px; }
.lede { color: var(--muted); max-width: 60ch; font-size: 17.5px; line-height: 1.65; margin-bottom: 64px; }
.lede b, .lede strong { color: var(--text); font-weight: 600; }

/* boundary 3-up */
.cols3 { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.cell { background: var(--bg); padding: 32px 28px; }
.cell.hot { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.cell .tag { font-family: var(--pixel); font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.cell.hot .tag { color: var(--accent-ink); }
.cell h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.cell p { color: var(--muted); font-size: 14.5px; }

/* control grid */
.controls { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .controls { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .controls { grid-template-columns: repeat(3, 1fr); } }
.ctrl { background: var(--bg); padding: 30px 28px; transition: background 0.15s; }
.ctrl:hover { background: var(--panel-2); }
.ctrl .risk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deny); margin-bottom: 14px; }
.ctrl .risk::before { content: "✕ "; }
.ctrl h3 { font-size: 18px; margin-bottom: 8px; }
.ctrl h3::before { content: "→ "; color: var(--accent-ink); }
.ctrl p { color: var(--muted); font-size: 14px; }

/* ranked control model: two feature cells + compact lines */
.controls-ranked { border: 1px solid var(--line); background: var(--line); display: grid; gap: 1px; }
.ctrl-features { display: grid; gap: 1px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .ctrl-features { grid-template-columns: 1.3fr 1fr; } }
.ctrl-feature { background: var(--bg); padding: 32px 28px; min-width: 0; }
.ctrl-feature .risk, .ctrl-line .risk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deny); margin-bottom: 14px; display: block; }
.ctrl-feature .risk::before, .ctrl-line .risk::before { content: "✕ "; }
.ctrl-feature h3 { font-size: 19px; margin-bottom: 8px; }
.ctrl-feature h3::before, .ctrl-line h3::before { content: "→ "; color: var(--accent-ink); }
.ctrl-feature > p { color: var(--muted); font-size: 14.5px; max-width: 52ch; }
.ctrl-line { background: var(--bg); padding: 20px 28px; display: grid; grid-template-columns: 200px 250px 1fr; gap: 20px; align-items: baseline; transition: background 0.2s, box-shadow 0.25s; }
.ctrl-line:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.ctrl-line .risk { margin-bottom: 0; }
.ctrl-line h3 { font-size: 15.5px; }
.ctrl-line p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 899px) { .ctrl-line { grid-template-columns: 1fr; gap: 6px; padding: 22px 24px; } }

/* policy-filtered discovery demo (rendered as a screen via .mock) */
.pdemo { margin-top: 24px; }
.pdemo-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pdemo-body { grid-template-columns: 1.08fr 1fr; } }
.pd-col { padding: 14px 16px 16px; min-width: 0; }
.pd-col + .pd-col { border-top: 1px dashed var(--line); }
@media (min-width: 620px) { .pd-col + .pd-col { border-top: none; border-left: 1px dashed var(--line); } }
.pd-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.pd-rule { font-family: var(--mono); font-size: 12.5px; color: var(--text); padding: 7px 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; width: 100%; text-align: left; }
.pd-verb { font-family: var(--pixel); font-size: 10px; flex-shrink: 0; width: 40px; }
.pd-verb.allow { color: var(--allow); }
.pd-verb.deny { color: var(--deny); }
button.pd-toggle { background: transparent; border: 1px dashed var(--deny); cursor: pointer; margin-top: 8px; transition: border-color 0.15s; }
button.pd-toggle:hover { border-style: solid; }
button.pd-toggle:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.pd-state { margin-left: auto; font-family: var(--pixel); font-size: 9px; color: var(--deny); white-space: nowrap; }
.pdemo.rule-off button.pd-toggle { border-color: var(--line-bright); }
.pdemo.rule-off button.pd-toggle .pd-verb.deny { color: var(--faint); text-decoration: line-through; }
.pdemo.rule-off .pd-state { color: var(--faint); }
.pd-tools { list-style: none; margin: 0; }
.pd-tools li { font-family: var(--mono); font-size: 12.5px; color: var(--text); padding: 7px 8px 7px 26px; position: relative; border-bottom: 1px dashed var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-tools li:last-child { border-bottom: none; }
.pd-tools li::before { content: "✓"; position: absolute; left: 8px; color: var(--allow); }
.pd-tools li.pd-gated { display: none; color: var(--warn); }
.pd-tools li.pd-gated::before { content: "!"; color: var(--warn); }
.pdemo.rule-off .pd-tools li.pd-gated { display: block; }
.pd-note { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 12px 8px 0; }
.pd-note.off { display: none; color: var(--warn); }
.pdemo.rule-off .pd-note.on { display: none; }
.pdemo.rule-off .pd-note.off { display: block; }

/* credential broker mini-diagram */
.broker-mini { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 26px; }
.bm-box rect { fill: none; stroke: var(--dia-stroke); stroke-width: 1.5; }
.bm-box.bm-major rect { stroke: var(--accent-ink); stroke-width: 2; }
.bm-box text { font-family: var(--mono); font-size: 12px; fill: var(--text); text-anchor: middle; }
.bm-line { stroke: var(--dia-stroke); stroke-width: 1.4; fill: none; }
.bm-ref { font-family: var(--mono); font-size: 10.5px; fill: var(--accent-ink); }
.bm-secret { font-family: var(--mono); font-size: 10.5px; fill: var(--warn); }
.bm-cap { font-family: var(--mono); font-size: 9.5px; fill: var(--muted); letter-spacing: 0.06em; }

/* persona router */
.router { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .router { grid-template-columns: repeat(3, 1fr); } }
.door { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; transition: background 0.2s, box-shadow 0.25s; }
.door:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.door .tag { font-family: var(--pixel); font-size: 11px; color: var(--accent-ink); margin-bottom: 16px; }
:root[data-theme="light"] .door .tag { color: var(--deny); }
.door h3 { font-size: 19px; margin-bottom: 10px; }
.door p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; flex: 1; }
.door .door-fact { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text); border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 18px; }
.door .door-fact::before { content: "# "; color: var(--accent-ink); }
.door .more { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); transition: transform 0.2s; }
.door:hover .more { transform: translateX(4px); }
.router-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; }
.router-note a { color: var(--accent-ink); text-decoration: underline; }

/* honesty statement band */
.honesty { max-width: 900px; }
.honesty .h-line { font-family: var(--grot); font-weight: 500; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 30px; text-wrap: balance; }
.honesty .h-line .dim { color: var(--muted); }

/* contact form heading, prime rung, prime KPI row */
.form-head { font-size: 21px; margin-bottom: 22px; text-align: center; }
.rung.prime { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.kpis.prime .kpi { padding: 18px 16px; }
.kpis.prime .kpi .v { font-size: 18px; }
.kpis.prime .kpi .k { margin-bottom: 8px; }

/* interactive route chart */
.rc-node { cursor: pointer; }
.rc-node:hover rect { stroke: rgba(182, 255, 46, 0.75); }
.rc-node:focus-visible { outline: none; }
.rc-node:focus-visible rect { stroke: #b6ff2e; stroke-width: 1.6; }
.rc-node-hit rect { stroke: #b6ff2e; filter: drop-shadow(0 0 6px rgba(182, 255, 46, 0.7)); }
.rc-pulse { fill: #b6ff2e; filter: drop-shadow(0 0 7px rgba(182, 255, 46, 0.9)); pointer-events: none; }
.rc-pulse.deny { fill: #ff5c47; filter: drop-shadow(0 0 7px rgba(255, 92, 71, 0.9)); }
.rc-hint { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; fill: rgba(182, 255, 46, 0.55); }
.rc-deny-hit .rc-deny-x-ring { stroke-width: 2.4; fill: rgba(255, 92, 71, 0.32); }

/* ---- schematic (from blueprint option, console palette) ---- */
.schematic-wrap {
  border: 1px solid var(--line-bright); background: var(--panel);
  overflow-x: auto; box-shadow: var(--shadow-panel);
}
.schematic-inner { min-width: 900px; padding: 36px 36px 24px; }
svg.schematic { display: block; width: 100%; height: auto; }
.sc-box { fill: none; stroke: var(--dia-stroke); stroke-width: 1.6; }
.sc-box.major { stroke-width: 2.2; stroke: var(--accent-ink); }
.sc-dash { stroke-dasharray: 6 6; }
.sc-line { stroke: var(--dia-stroke); stroke-width: 1.4; fill: none; }
.sc-deny-line { stroke: var(--deny); stroke-width: 1.4; fill: none; stroke-dasharray: 4 5; }
.sc-label { font-family: var(--mono); font-size: 12.5px; fill: var(--text); letter-spacing: 0.08em; }
.sc-label.dim { fill: var(--dia-zone); font-size: 10.5px; letter-spacing: 0.14em; }
.sc-label.deny { fill: var(--deny); }
.sc-title { font-family: var(--pixel); font-size: 13px; fill: var(--accent-ink); letter-spacing: 0.1em; }
.balloon { fill: var(--panel); stroke: var(--accent-ink); stroke-width: 1.4; }
.balloon-t { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: var(--accent-ink); text-anchor: middle; }
.dim-line { stroke: var(--dia-zone); stroke-width: 1; }
.dim-t { font-family: var(--mono); font-size: 10px; fill: var(--dia-zone); letter-spacing: 0.18em; text-anchor: middle; }
.sc-deny-box { fill: none; stroke: var(--deny); stroke-width: 1.6; }

/* pipeline legend under schematic */
.pipe { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-top: none; }
@media (min-width: 980px) { .pipe { grid-template-columns: repeat(6, 1fr); } }
.step { padding: 22px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.step:last-child { border-bottom: none; }
@media (min-width: 980px) {
  .step { border-bottom: none; border-right: 1px solid var(--line); }
  .step:last-child { border-right: none; }
}
.step .n { font-family: var(--pixel); font-size: 18px; color: var(--accent-ink); margin-bottom: 12px; }
.step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--muted); }
.pipe-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; }
.pipe-note b { color: var(--deny); font-weight: 600; }

/* stack strip */
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .stack { grid-template-columns: repeat(6, 1fr); } }
.stk { background: var(--bg); padding: 22px 20px; text-align: center; }
.stk .name { font-family: var(--pixel); font-size: 13px; color: var(--text); margin-bottom: 6px; }
.stk .role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---- field guide teaser (a page from the paper world) ---- */
.fieldguide-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--guide-paper); color: var(--guide-ink);
  border: 1px solid var(--line-bright);
  box-shadow: var(--shadow-panel);
  transform: rotate(-0.35deg);
}
@media (min-width: 860px) { .fieldguide-card { grid-template-columns: 1fr 0.9fr; } }
.fieldguide-card .copy { padding: 44px 40px; }
.fieldguide-card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--guide-pencil); margin-bottom: 16px; }
.fieldguide-card h3 { font-family: 'Special Elite', 'Courier New', monospace; font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; margin-bottom: 14px; }
.fieldguide-card .scrawl { font-family: 'Caveat', cursive; color: var(--guide-red); font-size: 24px; font-weight: 700; display: inline-block; transform: rotate(-2deg); margin-bottom: 18px; }
.fieldguide-card p.desc { color: var(--guide-pencil); font-size: 15px; margin-bottom: 28px; max-width: 46ch; }
.fieldguide-card .art { padding: 24px; display: flex; align-items: center; justify-content: center; border-left: 1px dashed var(--guide-faint); }
@media (max-width: 859px) { .fieldguide-card .art { border-left: none; border-top: 1px dashed var(--guide-faint); } }
.btn-paper {
  display: inline-block; font-family: 'Special Elite', 'Courier New', monospace; font-size: 14px;
  letter-spacing: 0.06em; background: var(--guide-ink); color: var(--guide-paper);
  padding: 13px 24px; border: 2px solid var(--guide-ink);
  transition: background 0.15s, color 0.15s;
}
.btn-paper:hover { background: transparent; color: var(--guide-ink); }
.fieldguide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.fieldguide-short {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--guide-pencil);
  border-bottom: 1px solid var(--guide-faint); padding: 8px 0 5px;
}
.fieldguide-short:hover { color: var(--guide-ink); border-color: var(--guide-ink); }

/* ---- pricing ledger ---- */
.pricing-teaser { display: grid; grid-template-columns: .82fr 1.18fr; border: 1px solid var(--line-bright); background: var(--line); box-shadow: var(--shadow-panel); }
.pricing-teaser .t-copy { padding: 48px; position: relative; background: var(--panel); }
.pricing-teaser .t-copy::before { content: ""; height: 4px; position: absolute; top: -1px; left: -1px; right: -1px; background: var(--accent-fill); }
.pricing-teaser .t-copy h2 { max-width: 10ch; margin-bottom: 18px; font-size: clamp(38px,4.4vw,66px); line-height: .98; }
.pricing-teaser .t-copy .lede { max-width: 48ch; margin-bottom: 28px; color: var(--muted); font-size: 16px; }
.pricing-cta { display: inline-flex; }
.price-ledger { min-width: 0; background: var(--bg); }
.ledger-head { min-height: 48px; padding: 0 58px 0 28px; display: grid; grid-template-columns: 1.4fr .85fr 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); color: var(--faint); font: 9px var(--pixel); letter-spacing: .09em; }
.price-row { min-height: 118px; padding: 22px 20px 22px 28px; display: grid; grid-template-columns: 1.4fr .85fr 1fr 18px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); background: var(--bg); transition: background .2s,box-shadow .2s,transform .2s; }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent-fill); }
.price-row:active { transform: translateY(1px); }
.price-row.featured { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent-fill); }
.price-row b,.price-row small { display: block; }
.plan-name b { color: var(--text); font-size: 18px; }
.plan-name small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.plan-price b { color: var(--accent-ink); font: 24px var(--pixel); }
.plan-price.custom b { font-size: 15px; }
.plan-price small,.plan-scale small { margin-top: 5px; color: var(--faint); font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan-scale b { color: var(--text); font: 16px var(--pixel); }
.price-arrow { color: var(--accent-ink); font: 18px var(--mono); transition: transform .2s; }
.price-row:hover .price-arrow { transform: translateX(3px); }
@media (max-width: 1000px) {
  .pricing-teaser { grid-template-columns: 1fr; }
  .pricing-teaser .t-copy { padding: 40px; }
}
@media (max-width: 640px) {
  .pricing-teaser .t-copy { padding: 32px 22px; }
  .pricing-teaser .t-copy h2 { font-size: 42px; }
  .ledger-head { display: none; }
  .price-row { min-height: 0; padding: 22px; grid-template-columns: 1fr auto 14px; gap: 14px; }
  .plan-name { grid-column: 1; }
  .plan-price { grid-column: 2; grid-row: 1; text-align: right; }
  .plan-scale { grid-column: 1 / 3; grid-row: 2; }
  .price-arrow { grid-column: 3; grid-row: 1 / 3; }
}

/* ---- beta form ---- */
.beta-band { text-align: center; }
.beta-band .chip { display: inline-block; font-family: var(--pixel); font-size: 11px; color: var(--on-accent); background: var(--accent-fill); padding: 5px 12px; margin-bottom: 28px; }
.beta-band h2 { margin-left: auto; margin-right: auto; }
.beta-band > .wrap > p.lede { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 44px; }
.beta-form {
  max-width: 560px; margin: 0 auto; text-align: left;
  border: 1px solid var(--line-bright); background: var(--panel); padding: 36px;
  box-shadow: var(--shadow-panel);
}
.beta-form .field { margin-bottom: 22px; }
.beta-form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.beta-form label .req { color: var(--deny); }
.beta-form input, .beta-form select, .beta-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-bright);
  color: var(--text); font-family: var(--mono); font-size: 14px;
  padding: 12px 14px; border-radius: 0; appearance: none;
  transition: border-color 0.15s;
}
.beta-form input:focus, .beta-form select:focus, .beta-form textarea:focus { outline: none; border-color: var(--accent-ink); }
.beta-form textarea { resize: vertical; min-height: 88px; }
.beta-form .btn { width: 100%; text-align: center; padding: 15px 22px; }
.beta-form .form-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 16px; text-align: center; }
.beta-form .form-note a { color: var(--muted); text-decoration: underline; }
.beta-form .form-error { display: none; font-family: var(--mono); font-size: 12px; color: var(--deny); margin-top: 14px; text-align: center; }
.beta-success { display: none; text-align: center; padding: 24px 0 8px; }
.beta-success .mark { font-family: var(--pixel); font-size: 30px; color: var(--accent-ink); margin-bottom: 16px; }
.beta-success h3 { font-size: 20px; margin-bottom: 10px; }
.beta-success p { color: var(--muted); font-size: 14.5px; max-width: 40ch; margin: 0 auto; }

/* ---- footer ---- */
footer.site { padding: 28px 0 40px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
footer.site a:hover { color: var(--accent-ink); }

/* ============================================================
   Pricing page
   ============================================================ */
.plans { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--bg); padding: 34px 28px; display: flex; flex-direction: column; position: relative; transition: background 0.15s; }
.plan:hover { background: var(--panel-2); }
.plan.featured { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.plan .flag {
  position: absolute; top: -1px; right: -1px;
  font-family: var(--pixel); font-size: 10px; letter-spacing: 0.06em;
  background: var(--accent-fill); color: var(--on-accent); padding: 5px 10px;
}
.plan .name { font-family: var(--pixel); font-size: 14px; color: var(--accent-ink); margin-bottom: 6px; }
.plan .for { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 24px; min-height: 34px; }
.plan .price { font-family: var(--grot); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.plan .price small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; }
.plan .price-note { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 6px; margin-bottom: 26px; letter-spacing: 0.04em; }
.plan ul { list-style: none; margin-bottom: 30px; flex: 1; }
.plan li { font-size: 13.5px; color: var(--muted); padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li:last-child { border-bottom: none; }
.plan li::before { content: "+"; position: absolute; left: 2px; color: var(--accent-ink); font-family: var(--mono); font-weight: 600; }
.plan li b { color: var(--text); font-weight: 600; }
.plan li.inherit { color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.plan li.inherit::before { content: "↑"; color: var(--faint); }
.plan .btn { text-align: center; }

/* comparison table */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 880px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--panel); }
.compare thead th.hl { color: var(--accent-ink); }
.compare tbody th { font-weight: 500; color: var(--text); font-size: 13.5px; width: 26%; }
.compare td { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.compare td.hl { background: var(--panel-2); color: var(--text); }
.compare td .yes { color: var(--allow); }
.compare td .no { color: var(--muted); }
.compare td .part { color: var(--warn); }
.compare thead th a { text-decoration: underline; text-decoration-color: var(--line-bright); text-underline-offset: 3px; }
.compare thead th a:hover { color: var(--accent-ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 14px; letter-spacing: 0.04em; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-bottom: none; background: var(--panel); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-ink); font-size: 18px; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; max-width: 68ch; }
.faq .answer b { color: var(--text); }

/* pricing hero */
.page-hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: 80px; padding-bottom: 64px; position: relative; }
.page-hero h1 { max-width: 20ch; }
.page-hero .sub { color: var(--muted); font-size: 18px; max-width: 56ch; }
.page-hero .ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.fieldguide-card .sketch { max-width: 100%; height: auto; }
.fieldguide-card .guide-ink-stroke { stroke: var(--guide-ink); }
.fieldguide-card .guide-red-stroke { stroke: var(--guide-red); }
.fieldguide-card .guide-red-fill { fill: var(--guide-red); }
.beta-ribbon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  border: 1px dashed var(--accent-dim); color: var(--accent-ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 10px 16px;
}

/* ============================================================
   Light theme: the dossier. White paper, black ink, dark screens.
   ============================================================ */
:root[data-theme="light"] .statusbar {
  background: #14140f;
  border-bottom-color: #14140f;
  --muted: #8f8e82;
  --accent-ink: #b6ff2e;
  --line: #2a291f;
}
:root[data-theme="light"] {
  --guide-paper: #f1ece1;
  --guide-paper-raised: #f7f3ea;
  --guide-ink: #2b2822;
  --guide-pencil: #6f6a5e;
  --guide-faint: #b9b2a2;
  --guide-red: #c53522;
}
:root[data-theme="light"] .btn.solid { box-shadow: 3px 3px 0 rgba(20, 20, 15, 0.9); }
:root[data-theme="light"] .btn.solid:active { box-shadow: 1px 1px 0 rgba(20, 20, 15, 0.9); transform: translate(2px, 2px); }
:root[data-theme="light"] h1, :root[data-theme="light"] h2 { color: #0c0c08; }
:root[data-theme="light"] .sec-label { color: var(--deny); }
:root[data-theme="light"] .sec-label::before, :root[data-theme="light"] .sec-label::after { color: var(--faint); }
:root[data-theme="light"] .eyebrow { color: var(--deny); }
:root[data-theme="light"] .chip { box-shadow: 2px 2px 0 rgba(20, 20, 15, 0.9); }
:root[data-theme="light"] .plan .flag { box-shadow: 2px 2px 0 rgba(20, 20, 15, 0.9); }
:root[data-theme="light"] .tax-screen { box-shadow: 4px 4px 0 rgba(20, 20, 15, 0.9); }
:root[data-theme="light"] .kpi .v { color: #0c0c08; }
:root[data-theme="light"] .cell.hot { box-shadow: inset 0 0 0 2px #14140f; background: var(--panel); }
:root[data-theme="light"] .cell.hot .tag { color: var(--deny); }
:root[data-theme="light"] .stream,
:root[data-theme="light"] .schematic-wrap,
:root[data-theme="light"] .tax-screen,
:root[data-theme="light"] .terminal {
  /* screens stay screens */
  --bg: #060806;
  --panel: #0b0f0b;
  --panel-2: #0e130e;
  --line: #1c241c;
  --line-bright: #2c3a2c;
  --text: #e8f0e4;
  --muted: #7d8a78;
  --faint: #4c584a;
  --accent-ink: #b6ff2e;
  --accent-dim: #5a7f24;
  --allow: #b6ff2e;
  --deny: #ff5c47;
  --warn: #e8b02e;
  --dia-stroke: rgba(182, 255, 46, 0.5);
  --dia-zone: rgba(125, 138, 120, 0.55);
  background: var(--panel);
  border-color: #14140f;
}
:root[data-theme="light"] nav.site { border-bottom-color: #14140f; }

/* ============================================================
   The MCP adoption tax — interactive statement (bill × wall).
   One dark instrument in both themes; state lives on .tax-screen
   (.fixed = "with Amelfi" toggle on).
   ============================================================ */
.tax-foot { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; margin-top: 12px; }
.tax-foot a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.tax-foot a:hover { color: var(--text); }

.tax-screen { border: 1px solid var(--line-bright); background: var(--panel); font-family: var(--mono); box-shadow: var(--shadow-panel); }
.ts-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding: 11px 16px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.ts-head .dots { display: flex; gap: 6px; }
.ts-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-bright); }
.ts-head .right { margin-left: auto; color: var(--faint); }

.ts-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.ts-strip .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ts-stepper { display: flex; align-items: center; gap: 8px; }
.ts-stepper button {
  font-family: var(--mono); font-size: 15px; width: 34px; height: 30px;
  background: transparent; color: var(--accent-ink); border: 1px solid var(--accent-dim);
  cursor: pointer; transition: border-color 0.15s;
}
.ts-stepper button:hover { border-color: var(--accent-ink); }
.ts-stepper .n { color: var(--text); font-size: 13px; min-width: 9ch; text-align: center; font-variant-numeric: tabular-nums; }
.ts-toggle {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 16px; cursor: pointer;
  background: transparent; color: var(--accent-ink); border: 1px solid var(--accent-dim);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ts-toggle b { font-weight: inherit; }
.ts-toggle:hover { border-color: var(--accent-ink); }
.ts-toggle[aria-pressed="true"] { background: var(--accent-fill); color: #060806; border-color: var(--accent-fill); }

.ts-counters { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 680px) { .ts-counters { grid-template-columns: repeat(3, 1fr); } }
.ts-counter { background: var(--bg); padding: 20px 22px; }
.ts-counter .v { font-family: var(--pixel); font-size: 30px; color: var(--deny); line-height: 1; font-variant-numeric: tabular-nums; }
.ts-counter .v.warn { color: var(--warn); }
.ts-counter .l { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.tax-screen.fixed .ts-counter .v, .tax-screen.fixed .ts-counter .v.warn { color: var(--allow); }

.ts-duo { display: grid; grid-template-columns: 1fr; }
@media (min-width: 940px) { .ts-duo { grid-template-columns: 1.05fr 0.95fr; } }
.ts-duo > div { padding: 22px; min-width: 0; }
.ts-wall { border-bottom: 1px solid var(--line); }
@media (min-width: 940px) { .ts-wall { border-bottom: none; border-right: 1px solid var(--line); } }
.ts-pane-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }

.wall-cols { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.wall-col { flex: none; width: 78px; }
.wall-col .wc-name { font-size: 9.5px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-cells { display: grid; gap: 3px; }
.wall-cells i {
  display: block; height: 10px;
  background: color-mix(in srgb, var(--deny) 24%, var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--deny) 45%, var(--line));
  cursor: help; transition: background 0.15s, border-color 0.15s;
}
.wall-cells i:hover { background: color-mix(in srgb, var(--deny) 55%, var(--panel-2)); border-color: var(--deny); }
.wall-col.shared { width: 116px; }
.wall-col.shared .wc-name { color: var(--allow); }
.wall-col.shared .wall-cells i { background: color-mix(in srgb, var(--allow) 28%, var(--panel-2)); border-color: var(--accent-dim); }
.wall-col.shared .wall-cells i:hover { background: color-mix(in srgb, var(--allow) 55%, var(--panel-2)); border-color: var(--allow); }
.wall-col.ghost .wall-cells { display: none; }
.wall-col.ghost .wc-name { color: var(--faint); }
.wall-col.ghost::after { content: "→ attached"; font-size: 9px; color: var(--accent-dim); letter-spacing: 0.08em; }
.wall-note { margin-top: 14px; font-size: 11.5px; color: var(--faint); }
.tax-screen.fixed .wall-note { color: var(--allow); }

.ts-bill .inv { font-size: 12.5px; color: var(--text); }
.inv-line { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.inv-line .no { color: var(--deny); width: 22px; flex: none; }
.tax-screen.fixed .inv-line .no { color: var(--accent-dim); }
.inv-line .rest { color: var(--faint); }
.inv-line .fill { flex: 1; border-bottom: 1px dotted var(--faint); transform: translateY(-3px); min-width: 16px; }
.inv-line .cost { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-rule { border: none; border-top: 1px solid var(--line-bright); margin: 10px 0; }
.inv-mult { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0 2px; }
.inv-total .k { font-family: var(--pixel); font-size: 12px; color: var(--text); }
.inv-total .v { font-family: var(--pixel); font-size: 24px; color: var(--deny); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tax-screen.fixed .inv-total .v { color: var(--allow); }
.inv-reviews { color: var(--warn); font-size: 11.5px; margin-top: 4px; }
.tax-screen.fixed .inv-reviews { color: var(--allow); }

.ts-fix {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--panel-2); color: var(--muted); border-top: 1px solid var(--line);
  padding: 22px 24px; font-family: var(--grot); font-size: 15px;
  transition: background 0.25s, color 0.25s;
}
.ts-fix .fix-label { font-family: var(--pixel); font-size: 12px; white-space: nowrap; }
.ts-fix p { flex: 1; min-width: 260px; max-width: 60ch; font-weight: 500; }
.ts-fix .btn.ts-cta { border-color: currentColor; color: inherit; }
.tax-screen.fixed .ts-fix { background: var(--accent-fill); color: #060806; }
.tax-screen.fixed .ts-fix .btn.ts-cta:hover { background: #060806; color: var(--accent-fill); border-color: #060806; }

/* Tooltip for wall cells — always describes a dark screen, colors hardcoded. */
.tax-tip {
  position: fixed; z-index: 90; pointer-events: none;
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  background: #0e130e; color: #e8f0e4; border: 1px solid #2c3a2c;
  padding: 8px 10px; max-width: 250px;
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.tax-tip.show { opacity: 1; transform: none; }
.tax-tip b { color: #b6ff2e; display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
.tax-tip .sub { color: #7d8a78; }
@media (prefers-reduced-motion: reduce) { .tax-tip { transition: none; } }

/* ============================================================
   Operator console (terminal)
   ============================================================ */
.operate-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .operate-grid { grid-template-columns: 1.15fr 0.85fr; } }
.terminal {
  border: 1px solid var(--line-bright); background: var(--panel);
  font-family: var(--mono); font-size: 13px; box-shadow: var(--shadow-panel);
}
.terminal .t-head {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding: 11px 16px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.terminal .t-head .dots { display: flex; gap: 6px; margin-right: 8px; }
.terminal .t-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-bright); }
.terminal .t-body { padding: 18px 18px 22px; min-height: 320px; line-height: 1.85; overflow-x: auto; }
.terminal .t-line { white-space: pre-wrap; word-break: break-word; }
.terminal .t-line .p { color: var(--accent-ink); }
.terminal .t-line.ok { color: var(--allow); }
.terminal .t-line.err { color: var(--deny); }
.terminal .t-line.warn { color: var(--warn); }
.terminal .t-line.cmd { color: var(--text); }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent-ink); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.op-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.op-card { background: var(--bg); padding: 26px 24px; }
.op-card .tag { font-family: var(--pixel); font-size: 11px; color: var(--accent-ink); margin-bottom: 12px; }
.op-card h3 { font-size: 17px; margin-bottom: 8px; }
.op-card p { color: var(--muted); font-size: 14px; }

/* ============================================================
   Personas page
   ============================================================ */
.persona-band { border-bottom: 1px solid var(--line); }
.persona-band > .wrap { padding-top: 76px; padding-bottom: 76px; }
.p-tag { font-family: var(--pixel); font-size: 11px; color: var(--accent-ink); margin-bottom: 14px; display: block; }
.p-tag .sep { color: var(--faint); }
.persona-band h2 { margin-bottom: 10px; }
.p-quote { font-family: var(--mono); font-size: 13px; color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.p-quote::before { content: "> "; color: var(--accent-ink); }
.p-cols { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px; }
@media (min-width: 900px) { .p-cols { grid-template-columns: repeat(3, 1fr); } }
.p-col { background: var(--bg); padding: 26px 24px; }
.p-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.p-col h4.deny-h { color: var(--deny); }
.p-col ul { list-style: none; }
.p-col li { font-size: 14px; color: var(--muted); padding: 7px 0 7px 20px; position: relative; border-bottom: 1px dashed var(--line); }
.p-col li:last-child { border-bottom: none; }
.p-col li::before { content: "→"; position: absolute; left: 0; color: var(--accent-dim); font-family: var(--mono); }
.p-col li b { color: var(--text); font-weight: 600; }
.p-visual { max-width: 780px; margin-bottom: 26px; }
.terminal.static .t-body { min-height: 0; }
.p-carry { border: 1px dashed var(--accent-dim); padding: 18px 22px; margin-bottom: 16px; font-size: 17.5px; color: var(--text); max-width: 68ch; }
.p-carry b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
:root[data-theme="light"] .p-carry { border-color: rgba(20, 20, 15, 0.4); }
:root[data-theme="light"] .p-carry b { color: var(--deny); }
.p-foot { display: flex; flex-wrap: wrap; gap: 16px; }
.p-keeps, .p-wontdo {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 14px 18px; flex: 1; min-width: 280px;
}
.p-keeps { border: 1px solid var(--line-bright); color: var(--muted); }
.p-keeps b { color: var(--accent-ink); font-weight: 600; }
.p-wontdo { border: 1px dashed var(--deny); color: var(--muted); }
.p-wontdo b { color: var(--deny); font-weight: 600; }
.mini-personas { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .mini-personas { grid-template-columns: 1fr 1fr; } }
.mini-p { background: var(--bg); padding: 30px 28px; }
.mini-p .tag { font-family: var(--pixel); font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.mini-p h3 { font-size: 18px; margin-bottom: 10px; }
.mini-p p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.mini-p ul { list-style: none; }
.mini-p li { font-size: 13.5px; color: var(--muted); padding: 5px 0 5px 20px; position: relative; }
.mini-p li::before { content: "→"; position: absolute; left: 0; color: var(--accent-dim); font-family: var(--mono); }

/* ============================================================
   Ambient motion & micro-interactions
   ============================================================ */
.dither { animation: dither-drift 70s linear infinite alternate; }
@keyframes dither-drift { from { background-position: 0 0; } to { background-position: 44px 66px; } }

.ctrl, .cell, .stk, .op-card, .plan, .kpi { transition: background 0.2s, box-shadow 0.25s; }
.ctrl:hover, .op-card:hover, .stk:hover, .cell:hover {
  box-shadow: inset 0 0 0 1px var(--accent-dim);
}
.plan:hover { box-shadow: inset 0 0 0 1px var(--accent-dim); }
.plan.featured:hover { box-shadow: inset 0 0 0 1px var(--accent-ink); }

.packet { opacity: 0; }
.packet-allow { fill: var(--accent-ink); }
.packet-deny { fill: var(--deny); }
.sc-route { fill: none; stroke: none; }

/* ============================================================
   Console pictograms (.figure) — drawn, not written.
   Always a dark screen, like the route chart; colors hardcoded.
   ============================================================ */
.figure {
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, #0b0f0b 0%, #070c08 100%);
  box-shadow: var(--shadow-panel);
}
:root[data-theme="light"] .figure { border-color: #14140f; }
.figure svg { display: block; width: 100%; height: auto; }
.fig-cap {
  border-top: 1px solid #1c241c; padding: 10px 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7d8a78;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.fig-cap b { color: rgba(182, 255, 46, 0.8); font-weight: 600; }
.figure.fig-mid { max-width: 760px; margin-bottom: 44px; }
.figure.fig-wide { margin-bottom: 44px; }

.fg-node { fill: rgba(232, 240, 228, 0.05); stroke: rgba(232, 240, 228, 0.3); stroke-width: 1; }
.fg-node-hot { stroke: rgba(182, 255, 46, 0.6); }
.fg-node-ghost { fill: none; stroke: rgba(232, 240, 228, 0.22); stroke-dasharray: 4 4; }
.fg-flow { stroke: rgba(182, 255, 46, 0.45); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.fg-flow-hot { stroke: #b6ff2e; stroke-width: 2; }
.fg-dim { stroke: rgba(232, 240, 228, 0.22); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.fg-deny { stroke: rgba(255, 92, 71, 0.75); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.fg-deny-dash { stroke-dasharray: 4 5; }
.fg-arch { stroke: rgba(232, 240, 228, 0.5); stroke-width: 2; fill: none; stroke-linecap: round; }
.fg-arch-hot { stroke: rgba(182, 255, 46, 0.85); }
.fg-boundary { fill: none; stroke: rgba(125, 138, 120, 0.5); stroke-width: 1.2; stroke-dasharray: 7 7; }
.fg-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; fill: #7d8a78; }
.fg-label-bright { fill: #e8f0e4; }
.fg-label-hot { fill: rgba(182, 255, 46, 0.8); }
.fg-label-deny { fill: rgba(255, 92, 71, 0.8); }
.fg-mono { font-family: var(--mono); font-size: 11px; fill: #e8f0e4; }
.fg-num { font-family: var(--pixel); font-size: 26px; fill: #b6ff2e; }
.fg-num-deny { fill: #ff5c47; }
.fg-x-ring { fill: rgba(255, 92, 71, 0.12); stroke: #ff5c47; stroke-width: 1.2; }
.fg-x-mark { stroke: #ff5c47; stroke-width: 1.6; stroke-linecap: round; }
.fg-check { stroke: #b6ff2e; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fg-glow { fill: rgba(182, 255, 46, 0.1); }

/* ============================================================
   Hero route chart (ported from amelfi-fable) — always a screen
   ============================================================ */
.chartpanel { padding: 0; }
.chartpanel .rows { min-height: 0; padding: 2px 0 8px; }
.chart-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.chart-head .c-title { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.chart-head .c-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-head .c-dots { margin-left: auto; display: flex; gap: 5px; }
.chart-head .c-dots i { width: 7px; height: 7px; background: var(--line-bright); }
.chart-head .c-dots i:first-child { background: var(--accent-fill); }

.routechart { display: block; width: 100%; height: auto; background: linear-gradient(180deg, #0b0f0b 0%, #070c08 100%); }

.rc-contour { fill: none; stroke: rgba(232, 240, 228, 0.06); stroke-width: 1.2; }
.rc-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; fill: #7d8a78;
}
.rc-mono { font-family: var(--mono); font-size: 11.5px; text-anchor: middle; fill: #e8f0e4; }

.rc-tributary { stroke: rgba(182, 255, 46, 0.3); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.rc-trunk-glow { stroke: rgba(182, 255, 46, 0.14); stroke-width: 6; fill: none; stroke-linecap: round; }
.rc-trunk-dash {
  stroke: #b6ff2e; stroke-width: 2.4; fill: none; stroke-linecap: round;
  stroke-dasharray: 5 8; animation: dash-march 1.6s linear infinite;
}
.rc-branch { stroke: rgba(182, 255, 46, 0.5); stroke-width: 1.5; fill: none; stroke-linecap: round; }
@keyframes dash-march { to { stroke-dashoffset: -13; } }

.rc-arch { stroke: rgba(232, 240, 228, 0.5); stroke-width: 2; fill: none; stroke-linecap: round; }
.rc-arch-policy { stroke: rgba(182, 255, 46, 0.85); animation: arch-breathe 5s ease-in-out infinite; }
@keyframes arch-breathe {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(182, 255, 46, 0.15)); }
  50% { filter: drop-shadow(0 0 12px rgba(182, 255, 46, 0.4)); }
}
.rc-num { font-family: var(--pixel); font-size: 8.5px; fill: #7d8a78; text-anchor: middle; }
.rc-num-policy { fill: rgba(182, 255, 46, 0.9); }
.rc-wp {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; fill: #7d8a78;
}
.rc-wp-policy { fill: rgba(182, 255, 46, 0.75); }
.rc-wp-deny { fill: rgba(255, 92, 71, 0.6); }

.rc-deny-stub { stroke: rgba(255, 92, 71, 0.65); stroke-width: 1.3; fill: none; stroke-dasharray: 3 5; }
.rc-deny-x-ring { fill: rgba(255, 92, 71, 0.12); stroke: #ff5c47; stroke-width: 1.2; }
.rc-deny-x { animation: deny-pulse 3.2s ease-in-out infinite; }
@keyframes deny-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.rc-vessel { fill: #b6ff2e; filter: drop-shadow(0 0 6px rgba(182, 255, 46, 0.8)); }

.rc-node rect { fill: rgba(232, 240, 228, 0.05); stroke: rgba(232, 240, 228, 0.25); stroke-width: 1; }
.rc-node-tool rect { fill: rgba(14, 19, 14, 0.9); }
.rc-node-allowed rect { stroke: rgba(182, 255, 46, 0.55); }

.chart-stream { border-top: 1px solid var(--line); }
.cs-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 16px 3px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}
.cs-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--allow); }
.cs-head .live i { width: 6px; height: 6px; background: var(--allow); animation: live-blink 2s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: 0.25; } }
.chart-stream .row { padding: 6px 16px; font-size: 11.5px; grid-template-columns: 48px 1fr 76px; }
.chart-stream .row .what small { font-size: 10.5px; }

/* ============================================================
   Mobile menu
   ============================================================ */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line-bright); cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 999px) { .burger { display: flex; } }
@media (max-width: 679px) { .nav-right > .btn { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 32px;
  overflow-y: auto;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; max-width: 480px; margin: 0 auto; width: 100%; }
.mobile-menu a {
  font-family: var(--mono); font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 4px; border-bottom: 1px dashed var(--line); color: var(--text);
}
.mobile-menu a:hover { color: var(--accent-ink); }
.mobile-menu .mm-group { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mobile-menu .mm-label { display: block; margin: 0 0 4px; padding: 8px 14px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.mobile-menu .mm-group a { display: block; padding-left: 28px; font-size: clamp(16px, 4vw, 20px); }
.mobile-menu a.mm-cta { border: 1px solid var(--accent-ink); text-align: center; margin-top: 20px; background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.mobile-menu .mm-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); text-align: center; margin-top: 24px; }
@media (max-height: 920px) {
  .mobile-menu { justify-content: flex-start; padding-top: 24px; padding-bottom: 24px; }
}

/* ============================================================
   Sitemap footer
   ============================================================ */
footer.site { border-top: 1px solid var(--line); padding: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px;
  padding: 56px 0 48px;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.f-brand .logo { margin-bottom: 16px; }
.f-brand p { font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 30ch; line-height: 1.7; }
.f-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 10px; }
.f-col a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.f-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--line); padding: 20px 0 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent-ink); }
.ext::after { content: " ↗"; font-family: var(--mono); font-size: 0.85em; color: var(--faint); }

/* ============================================================
   Use-case & resource cards
   ============================================================ */
.usecases { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .usecases { grid-template-columns: repeat(3, 1fr); } }
.usecase { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; }
.usecase .tag { font-family: var(--pixel); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.usecase h3 { font-size: 19px; margin-bottom: 10px; }
.usecase p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.usecase .uses { list-style: none; margin-bottom: 20px; flex: 1; }
.usecase .uses li { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 5px 0 5px 18px; position: relative; }
.usecase .uses li::before { content: "+"; position: absolute; left: 0; color: var(--accent-ink); }
.usecase .more { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }

.res-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 780px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
a.res-card { display: block; background: var(--bg); padding: 32px 28px; transition: background 0.2s, box-shadow 0.25s; }
a.res-card:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.res-card .rtype { font-family: var(--pixel); font-size: 11px; color: var(--accent-ink); margin-bottom: 14px; display: block; }
:root[data-theme="light"] .res-card .rtype { color: var(--deny); }
.res-card h3 { font-size: 19px; margin-bottom: 8px; }
.res-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.res-card .rmeta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   Product UI mocks (always dark screens)
   ============================================================ */
.mock {
  border: 1px solid var(--line-bright); background: var(--panel);
  font-family: var(--mono); font-size: 12.5px; box-shadow: var(--shadow-panel);
}
:root[data-theme="light"] .mock {
  --bg: #060806; --panel: #0b0f0b; --panel-2: #0e130e;
  --line: #1c241c; --line-bright: #2c3a2c;
  --text: #e8f0e4; --muted: #7d8a78; --faint: #4c584a;
  --accent-ink: #b6ff2e; --accent-dim: #5a7f24;
  --allow: #b6ff2e; --deny: #ff5c47; --warn: #e8b02e;
  background: var(--panel); border-color: #14140f;
}
.mock .m-head {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.mock .m-head b { color: var(--accent-ink); font-weight: 600; }
.mock .m-head .m-note { margin-left: auto; color: var(--faint); }
.mock .m-body { padding: 0; }
.m-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 11px 16px; border-bottom: 1px dashed var(--line); color: var(--text);
}
.m-row:last-child { border-bottom: none; }
.m-row .m-sub { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.m-row .m-dim { color: var(--muted); font-size: 11.5px; }
.m-badge {
  font-family: var(--pixel); font-size: 10px; padding: 3px 8px; white-space: nowrap;
}
.m-badge.ok { color: var(--allow); border: 1px solid var(--accent-dim); }
.m-badge.pend { color: var(--warn); border: 1px solid rgba(232, 176, 46, 0.4); }
.m-badge.deny { color: var(--deny); border: 1px solid rgba(255, 92, 71, 0.4); }
.m-kv { padding: 14px 16px; line-height: 2; }
.m-kv .k { color: var(--muted); }
.m-kv .v { color: var(--text); font-weight: 500; }
.m-kv .allow { color: var(--allow); font-weight: 600; }
.m-kv .deny { color: var(--deny); font-weight: 600; }
.m-kv .redact { display: inline-block; background: #000; color: transparent; user-select: none; border-radius: 1px; }
.mock-caption { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.06em; margin-top: 12px; }
.mock-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .mock-grid { grid-template-columns: 1fr 1fr; } }
.mock-grid .full { grid-column: 1 / -1; }

/* ============================================================
   Founder note + CTA ladder
   ============================================================ */
.founder {
  border: 1px solid var(--line-bright); background: var(--panel); box-shadow: var(--shadow-panel);
  padding: 44px 40px; max-width: 860px; margin: 0 auto;
}
.founder .f-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.founder p { font-size: 20px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.founder p b { font-weight: 600; }
.founder .sig { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: 26px; }
.founder .sig b { color: var(--text); }

.ladder { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.rung { background: var(--bg); padding: 30px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.rung .effort { font-family: var(--pixel); font-size: 10.5px; color: var(--faint); margin-bottom: 14px; }
.rung h3 { font-size: 18px; margin-bottom: 8px; }
.rung p { color: var(--muted); font-size: 14px; margin-bottom: 20px; flex: 1; }

/* ============================================================
   Brand switcher (pre-launch naming tool, injected by site.js)
   ============================================================ */
.brand-switch { position: relative; display: inline-flex; align-items: center; margin-left: 6px; }
.bs-btn {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 10px; color: var(--faint); padding: 4px 5px;
  transition: color 0.15s;
}
.bs-btn:hover { color: var(--accent-ink); }
.bs-menu {
  position: absolute; top: calc(100% + 12px); left: -8px; z-index: 80;
  min-width: 160px; background: var(--panel); border: 1px solid var(--line-bright);
  box-shadow: var(--shadow-panel); display: none; padding: 6px 0;
}
.brand-switch.open .bs-menu { display: block; }
.bs-menu .bs-head { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding: 6px 14px 8px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.bs-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  font-family: var(--pixel); font-size: 12px; color: var(--muted); padding: 9px 14px;
  transition: color 0.12s, background 0.12s;
}
.bs-menu button:hover { color: var(--text); background: var(--panel-2); }
.bs-menu button.on { color: var(--accent-ink); }
.bs-menu button.on::after { content: " ✓"; }

/* ============================================================
   People (company page)
   ============================================================ */
.people { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--bg); padding: 28px; }
.person img {
  display: block; width: 128px; height: 128px; object-fit: cover;
  border: 1px solid var(--line-bright); margin-bottom: 20px;
  filter: saturate(0.88) contrast(1.02);
}
:root[data-theme="dark"] .person img.subbu-photo { filter: saturate(0.88) contrast(1.02) brightness(0.78); }
.person h3 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.person .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
:root[data-theme="light"] .person .role { color: var(--deny); }
.person p { color: var(--muted); font-size: 14px; }
.person-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.person-links a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--accent-dim); padding-bottom: 3px; }
.person-links a[data-person-link] { display: inline-flex; align-items: center; border-bottom: 0; padding-bottom: 0; }
.person-links a[data-person-link] svg { width: 18px; height: 18px; fill: currentColor; }
.person-links a:hover { color: var(--text); border-color: var(--text); }
.person-links a[data-person-link]:hover { transform: translateY(-1px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================================
   Posture at-a-glance (security) & article list (engineering)
   ============================================================ */
.posture { border: 1px solid var(--line); border-bottom: none; background: var(--panel); }
.posture:last-of-type { border-bottom: 1px solid var(--line); }
.posture summary {
  cursor: pointer; list-style: none; display: grid;
  grid-template-columns: 44px minmax(140px, 220px) 1fr 24px; gap: 18px; align-items: baseline;
  padding: 20px 24px;
}
.posture summary::-webkit-details-marker { display: none; }
.posture .pn { font-family: var(--pixel); font-size: 11px; color: var(--faint); }
.posture .pt { font-weight: 600; font-size: 15.5px; }
.posture .pa { color: var(--muted); font-size: 14px; }
.posture .px-toggle { font-family: var(--mono); color: var(--accent-ink); text-align: right; }
.posture[open] .px-toggle::before { content: "–"; }
.posture:not([open]) .px-toggle::before { content: "+"; }
.posture .p-body { padding: 0 24px 24px 62px; }
.posture .p-body ul { list-style: none; max-width: 72ch; }
.posture .p-body li { font-size: 14px; color: var(--muted); padding: 7px 0 7px 20px; position: relative; border-bottom: 1px dashed var(--line); }
.posture .p-body li:last-child { border-bottom: none; }
.posture .p-body li::before { content: "→"; position: absolute; left: 0; color: var(--accent-dim); font-family: var(--mono); }
.posture .p-body li b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .posture summary { grid-template-columns: 32px 1fr 24px; }
  .posture .pa { display: none; }
  .posture .p-body { padding-left: 24px; }
}

.artlist { border: 1px solid var(--line); }
a.art-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: 26px 28px; border-bottom: 1px solid var(--line); background: var(--bg);
  transition: background 0.2s, box-shadow 0.25s;
}
a.art-row:last-child { border-bottom: none; }
a.art-row:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.art-row h3 { font-size: 19px; font-weight: 600; }
.art-row .a-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.art-row p { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; max-width: 72ch; }
.art-row.queued { opacity: 0.55; cursor: default; pointer-events: none; }
.art-row.queued .a-meta { color: var(--warn); }

/* ---- reveal helpers (GSAP sets initial state; CSS keeps no-JS visible) ---- */
.gsap-only { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .statusbar .dot { animation: none; }
  .terminal .cursor { animation: none; }
  .dither { animation: none; }
  .rc-trunk-dash, .rc-arch-policy, .rc-deny-x, .cs-head .live i { animation: none; }
  .rc-vessel { display: none; }
  * { transition-duration: 0.01ms !important; }
}
