/* MeJn v5 — a working portfolio: field, decision, product, evidence. */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("../fonts/jetbrains-mono-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #F3F5F4;
  --surface: #FFFFFF;
  --surface-2: #E8EEEA;
  --ink: #182122;
  --ink-2: #3F5052;
  --muted: #596769;
  --line: #CCD6D1;
  --signal: #08645E;
  --signal-hover: #064F4A;
  --signal-soft: #E1EBE7;
  --signal-cobalt: #295BD6;
  --cobalt-soft: #E8EDF9;
  --warm: #905138;
  --warm-soft: #F1E8E1;
  --amber: #9B6712;
  --on-dark: #F3F5F4;
  --on-dark-muted: #B3C2C3;
  --dark-line: #435253;
  --dark-panel: #243233;
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-disp: "Space Grotesk", var(--font-cn);
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --gutter: 64px;
  --radius: 20px;
  --radius-control: 12px;
  --radius-surface: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Data-driven panorama and the existing SVG panes share these aliases. */
  --cream: var(--paper);
  --cream-2: var(--surface-2);
  --panel: var(--surface);
  --mute: var(--muted);
  --clay: var(--signal);
  --clay-deep: var(--signal);
  --green: var(--signal);
  --dark: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-cn); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
em, i { font-style: normal; }
mark { background: var(--signal-soft); color: var(--signal); padding: .04em .12em; }
::selection { background: var(--signal); color: var(--on-dark); }
:focus-visible { outline: 3px solid var(--signal-cobalt); outline-offset: 5px; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .05em; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 18px; background: var(--ink); color: var(--on-dark); transform: translateY(-160%); border-radius: var(--radius); }
.skip-link:focus { transform: none; }
[data-track-only] { display: none; }
html[data-track="pm"] [data-track-only="pm"], html[data-track="fde"] [data-track-only="fde"] { display: inline; }
html[data-track="pm"] [data-track-only="fde"], html[data-track="fde"] [data-track-only="pm"] { display: none; }

/* The masthead behaves like a publication, with a quiet reading-mode switch. */
.site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; padding: 18px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-symbol { width: 40px; height: 40px; color: var(--signal); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-name { display: flex; align-items: baseline; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.brand-name small { color: var(--muted); font-family: var(--font-disp); font-size: 12px; font-weight: 500; letter-spacing: .035em; }
.site-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; font-size: 13px; color: var(--ink-2); }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 19px; align-items: center; }
.track-controls { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.track-controls button { min-height: 33px; padding: 5px 10px; font-size: 11px; font-weight: 600; border-radius: var(--radius-control); color: var(--muted); transition: color .2s, background .2s; }
.track-controls button:hover { color: var(--ink); background: var(--surface-2); }
.track-controls button[aria-pressed="true"], .track-controls button.active { color: var(--on-dark); background: var(--ink); }
.resume-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--signal); padding: 7px 0; }
.resume-link .ic { width: 15px; height: 15px; }

/* The first proof is a real product screen, rather than a decorative terminal. */
.hero { padding-top: clamp(56px, 6.1vw, 88px); padding-bottom: 0; }
.hero-layout { display: grid; grid-template-columns: 1.06fr 1fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; padding-bottom: 28px; }
.availability { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 12px; margin-bottom: 28px; }
.availability::before { content: ""; width: 7px; height: 7px; background: var(--signal); border-radius: 50%; }
.availability:has(.status-dot)::before { display: none; }
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex: none; color: var(--signal); }
.hero-role { margin-bottom: 15px; color: var(--signal); font-weight: 600; font-size: 13px; letter-spacing: .075em; }
.hero-role .mono { font-size: 11px; }
.hero-title { font-size: clamp(54px, 5.65vw, 80px); line-height: 1.16; letter-spacing: -.025em; font-weight: 800; }
.hero-title > span { display: block; }
.hero-title em { color: var(--signal); }
.signal-text { color: var(--signal); }
.hero-title .title-small { font-size: .77em; }
.hero-lead { margin-top: 26px; max-width: 34em; color: var(--ink-2); font-size: 17px; line-height: 1.95; }
.hero-lead strong { color: var(--ink); font-weight: 650; }
.hero-actions { display: flex; gap: 12px; margin-top: 31px; flex-wrap: wrap; }
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 21px; font-size: 13px; line-height: 1.4; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius-control); transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.button .ic, .btn .ic { width: 15px; height: 15px; }
.button-primary, .btn-solid { color: var(--on-dark); background: var(--signal); border-color: var(--signal); }
.button-primary:hover, .btn-solid:hover { background: var(--signal-hover); border-color: var(--signal-hover); transform: translateY(-2px); }
.button-secondary, .btn-line { color: var(--ink); border-color: var(--line); background: transparent; }
.button-secondary:hover, .btn-line:hover { border-color: var(--ink); background: var(--surface); }
.button:active, .btn:active { transform: translateY(1px); }
.hero-context { margin-top: 21px; font-size: 11px; color: var(--muted); }
.hero-context a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--signal); }
.proof-console { position: relative; min-width: 0; background: var(--ink); padding: 0 18px 21px; border-radius: 10px; color: var(--on-dark); box-shadow: 18px 20px 0 var(--surface-2); transform: translateY(9px); }
.console-bar { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.console-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--on-dark-muted); }
.console-status { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--on-dark); }
.console-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--on-dark); }
.proof-screen { position: relative; background: var(--surface); overflow: hidden; border: 1px solid var(--dark-line); border-radius: var(--radius-control); }
.proof-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; object-position: center; background: var(--surface); transition: opacity .2s; }
.screen-coordinate { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; background: var(--ink); color: var(--on-dark-muted); border-radius: var(--radius-control); font-family: var(--font-mono); font-size: 7px; line-height: 1.5; letter-spacing: .06em; }
.proof-caption { display: grid; gap: 6px; padding: 18px 4px 16px; }
.proof-caption h2, .proof-caption h3, .proof-caption strong { font-size: 18px; line-height: 1.4; font-weight: 650; }
.proof-caption p { color: var(--on-dark-muted); font-size: 12px; line-height: 1.8; max-width: 38em; }
.proof-caption .mono { font-size: 10px; color: var(--on-dark-muted); }
.proof-caption > span { font-family: var(--font-mono); font-size: 9px; color: var(--on-dark-muted); margin-bottom: 3px; }
.proof-selector { display: flex; align-items: center; gap: 6px; padding: 0 4px; flex-wrap: wrap; }
.proof-selector button { color: var(--on-dark-muted); min-height: 35px; padding: 7px 11px; border: 1px solid var(--dark-line); font-size: 10px; border-radius: var(--radius-control); transition: color .2s, background .2s; }
.proof-selector button:hover { background: var(--dark-panel); color: var(--on-dark); }
.proof-selector button[aria-pressed="true"], .proof-selector button[aria-selected="true"], .proof-selector button.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.proof-links { display: flex; gap: 15px; padding: 16px 4px 0; font-size: 10px; color: var(--on-dark-muted); }
.proof-links a { display: inline-flex; gap: 6px; align-items: center; }
.proof-links a:hover { color: var(--on-dark); }
.pet-sign { position: absolute; right: -20px; bottom: -29px; width: 74px; height: 74px; transform: rotate(7deg); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.pet-sign img { width: 60px; height: 60px; object-fit: contain; }
.hero-foot { display: flex; align-items: start; justify-content: space-between; gap: 32px; margin-top: 69px; padding: 24px 0; border-top: 1px solid var(--line); }
.hero-summary { font-size: 13px; color: var(--ink-2); }
.hero-summary span { display: flex; gap: 8px; align-items: baseline; }
.hero-summary b { color: var(--ink); font-size: 18px; font-family: var(--font-disp); font-weight: 700; }
.hero-summary strong { display: inline-block; margin-top: 5px; font-size: 16px; color: var(--ink); font-weight: 650; }
.track-note { color: var(--muted); font-size: 10px; max-width: 24em; text-align: right; }
.track-note a { display: flex; justify-content: end; align-items: center; gap: 5px; margin-top: 8px; color: var(--signal); }

/* A connected process rail, with each stage pointing to its evidence. */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 39px; }
.section-heading > div { min-width: 0; }
.section-heading .mono, .section-label { display: block; font-size: 10px; color: var(--signal); letter-spacing: .12em; margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(31px, 3.2vw, 46px); line-height: 1.3; font-weight: 750; letter-spacing: -.025em; }
.section-heading p { max-width: 40em; margin-top: 15px; font-size: 14px; color: var(--ink-2); }
.section-link { display: inline-flex; align-items: center; gap: 8px; flex: none; padding-bottom: 4px; border-bottom: 1px solid var(--signal); font-size: 12px; color: var(--signal); }
.spine { padding-top: 82px; padding-bottom: 83px; }
.spine-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spine-step { position: relative; border-top: 2px solid var(--line); padding-top: 24px; padding-right: 30px; min-width: 0; }
.spine-step::before { content: ""; position: absolute; width: 9px; height: 9px; left: 0; top: -5.5px; border-radius: 50%; border: 2px solid var(--signal); background: var(--paper); }
.spine-step:last-child { padding-right: 0; }
.spine-number { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.spine-word { display: block; color: var(--signal); font-family: var(--font-disp); font-size: 25px; letter-spacing: -.015em; font-weight: 700; margin-top: 7px; }
.spine-step h2, .spine-step h3 { font-size: 17px; font-weight: 650; margin-top: 13px; }
.spine-step p { color: var(--ink-2); font-size: 12px; line-height: 1.9; margin-top: 9px; }
.spine-step a { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); font-size: 10px; border-bottom: 1px solid var(--line); margin-top: 16px; }
.spine-step a:hover { border-color: var(--signal); }

/* Cases stay open and readable; full-width product images set the rhythm. */
.work { padding-top: 77px; padding-bottom: 80px; background: var(--surface); border-top: 1px solid var(--line); }
.work-intro { margin-bottom: 0; }
.case-index { display: flex; flex-wrap: wrap; gap: 9px 25px; margin-top: -12px; padding-bottom: 32px; font-size: 11px; color: var(--muted); }
.case-index a { padding: 6px 0; border-bottom: 1px solid transparent; }
.case-index a:hover { color: var(--signal); border-color: var(--signal); }
.cases { display: flex; flex-direction: column; }
.case { padding-top: 48px; padding-bottom: 55px; border-top: 1px solid var(--line); scroll-margin-top: 108px; }
.case-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.case-number { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.case-status { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); background: var(--signal-soft); font-size: 10px; padding: 3px 8px; border-radius: var(--radius-control); }
.case-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.case-title { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.3; font-weight: 750; letter-spacing: -.035em; }
.case-line { margin-top: 11px; max-width: 60em; font-size: 14px; color: var(--ink-2); }
.case-role { margin-top: 10px; font-size: 11px; color: var(--muted); }
.case-role b, .case-role strong { color: var(--signal); }
.case-layout { display: grid; grid-template-columns: 1.14fr 1fr; gap: 43px; margin-top: 30px; align-items: start; }
.case-evidence { min-width: 0; }
.evidence-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-surface); background: var(--paper); }
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; border-bottom: 1px solid var(--line); padding: 7px 12px; background: var(--paper); }
.window-label { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: .045em; }
.window-bar .mono, .window-bar > span { font-size: 9px; color: var(--muted); }
.evidence-window img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--surface); }
.evidence-window figcaption { border-top: 1px solid var(--line); padding: 12px 14px; font-size: 10px; line-height: 1.85; color: var(--muted); }
.evidence-window figcaption b { color: var(--signal); }
.case-reading { min-width: 0; }
.decision-title { font-size: 22px; line-height: 1.6; font-family: var(--font-cn); color: var(--ink); letter-spacing: -.025em; font-weight: 650; margin-bottom: 12px; }
.decision-summary { font-size: 13px; line-height: 1.95; color: var(--ink-2); margin-bottom: 20px; }
.proof-fields { display: grid; }
.proof-fields dl { display: grid; }
.proof-field { display: grid; grid-template-columns: 69px 1fr; gap: 17px; border-top: 1px solid var(--line); padding: 13px 0; }
.proof-field dt { font-family: var(--font-mono); font-size: 9px; color: var(--signal); letter-spacing: .055em; padding-top: 3px; }
.proof-field dd { color: var(--ink-2); font-size: 12px; line-height: 1.9; }
.proof-field dd strong, .proof-field dd b { color: var(--ink); font-weight: 650; }
.proof-field.limit { border-bottom: 1px solid var(--line); }
.proof-field.limit dt { color: var(--warm); }
.proof-field.limit dd { color: var(--muted); }
.case-detail-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 11px; color: var(--signal); border-bottom: 1px solid var(--line); }
.case-detail-link:hover { border-color: var(--signal); }
.case-details { margin-top: 25px; }
.case-details:is(details) { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-details > details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; padding: 16px 0; font-size: 12px; color: var(--ink-2); }
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary::after { content: "+"; font-size: 22px; color: var(--signal); line-height: 1; }
.case-details details[open] summary::after { content: "−"; }
.case-details:is(details)[open] summary::after { content: "−"; }
.case-details summary > .ic { display: none; }
.detail-title { font-weight: 600; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 0 15px; }
.case-tabs button { min-height: 40px; padding: 10px 14px; border-bottom: 2px solid transparent; font-size: 11px; color: var(--muted); transition: color .2s, border-color .2s; }
.case-tabs button:hover { color: var(--signal); }
.case-tabs button[aria-selected="true"] { color: var(--signal); border-color: var(--signal); }
.case-panes { padding: 7px 0 27px; }
.pane { min-width: 0; }
.pane-lead { max-width: 64em; font-size: 15px; line-height: 1.95; }
.pane-lead strong { color: var(--signal); }
.pane-note { font-size: 12px; line-height: 1.9; color: var(--muted); max-width: 65em; margin-top: 12px; }
.pane-note a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.strict-list { display: grid; gap: 10px; margin-top: 18px; }
.strict-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 15px 18px; background: var(--paper); border-left: 1px solid var(--signal); }
.strict-item b { font-size: 12px; color: var(--signal); }
.strict-item span { color: var(--ink-2); font-size: 12px; }
.qa-try { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.qt-label { font-size: 11px; color: var(--muted); }
.qt-btn { min-height: 38px; padding: 8px 13px; font-size: 11px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.qt-btn:hover { border-color: var(--signal); color: var(--signal); }
.qt-btn.on, .qt-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.qa-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 17px; }
.qa-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); }
.qa-card.focus { border-color: var(--signal); }
.qa-refuse { border-style: dashed; }
.qa-q { display: flex; gap: 8px; align-items: baseline; font-size: 12px; font-weight: 650; }
.qa-who { flex: none; font-size: 9px; background: var(--ink); color: var(--on-dark); padding: 3px 6px; border-radius: var(--radius-control); }
.qa-steps { display: flex; flex-direction: column; gap: 6px; }
.qa-step { width: fit-content; font-size: 10px; border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--radius-control); color: var(--muted); }
.s-route, .s-pass { color: var(--signal); background: var(--signal-soft); border-color: var(--line); }
.s-hit { color: var(--ink-2); }
.s-miss, .s-fail { color: var(--warm); background: var(--warm-soft); }
.qa-a { padding: 12px; margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 11px; line-height: 1.9; color: var(--ink-2); }
.qa-no { color: var(--warm); }
.qa-cite { display: flex; align-items: center; gap: 6px; color: var(--signal); font-size: 9px; margin-top: 9px; }
.qa-cite-no { color: var(--warm); }
.qa-card.replay .qa-step { animation: proof-step .3s var(--ease) both; }
.qa-card.replay .qa-step:nth-child(2) { animation-delay: .2s; }
.qa-card.replay .qa-step:nth-child(3) { animation-delay: .4s; }
.qa-card.replay .qa-a { animation: proof-step .3s var(--ease) .6s both; }
@keyframes proof-step { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.pipe { width: 100%; height: auto; max-width: 860px; margin: 20px 0; }
.pipe-line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 7; }
.pipe-line.drawn { stroke: var(--signal); }
.pn-c { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.pn-c-end { fill: var(--signal); stroke: var(--signal); }
.pipe-nodes text { font-family: var(--font-cn); font-size: 15px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.pn-c-end + text { fill: var(--on-dark); }
.pipe-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 11px; color: var(--ink-2); }
.pipe-legend li { display: flex; gap: 8px; align-items: center; }
.pipe-legend .ic { color: var(--signal); width: 13px; height: 13px; }
.debug-flow { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 15px; }
.df-title { color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.df-steps { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; counter-reset: debug; }
.df-steps li { font-size: 10px; padding: 5px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); }
.df-steps li::before { counter-increment: debug; content: counter(debug) ". "; color: var(--signal); }
.df-steps li:last-child { background: var(--signal-soft); color: var(--signal); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.mt { border-top: 1px solid var(--line); padding-top: 14px; }
.mt b { display: block; font-family: var(--font-disp); font-size: clamp(29px, 3.1vw, 44px); line-height: 1.2; color: var(--signal); }
.mt b i { font-size: .45em; margin-left: 3px; }
.mt > span { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.mt-hero { grid-column: 1 / -1; border: 0; background: var(--signal-soft); padding: 20px 24px; }
.mt-hero b { font-size: clamp(42px, 4.2vw, 62px); }
.mt-note { margin-top: 18px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.iters { display: flex; overflow-x: auto; padding-top: 9px; padding-bottom: 8px; margin-top: 18px; }
.it { position: relative; flex: 1 0 126px; padding: 15px 16px 0 0; border-top: 1px solid var(--line); }
.it::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.it-v { font-family: var(--font-mono); font-size: 11px; color: var(--signal); }
.it span { display: block; font-size: 11px; color: var(--ink-2); line-height: 1.7; margin-top: 7px; }
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 19px; }
.impact > span { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px; background: var(--paper); border-left: 1px solid var(--signal); }
.impact small { color: var(--muted); font-size: 9px; }
.impact b { color: var(--signal); font-size: 22px; }
.impact i { font-size: 10px; line-height: 1.7; color: var(--ink-2); }
.limits { list-style: none; display: grid; gap: 12px; margin-top: 15px; }
.limits li { display: flex; gap: 10px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.limits .ic { flex: none; color: var(--warm); width: 15px; height: 15px; margin-top: 4px; }
.flows3 { display: grid; gap: 11px; max-width: 850px; margin-top: 18px; }
.f3 { display: flex; align-items: center; gap: 15px; background: var(--paper); padding: 16px 18px; border-left: 1px solid var(--signal); }
.f3 .ic { color: var(--signal); width: 20px; height: 20px; }
.f3 b { display: block; font-size: 13px; }
.f3 span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.f3-beam { display: none; }
.archive-entry { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.archive-copy h3 { font-size: 19px; line-height: 1.45; font-weight: 650; }
.archive-copy p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.archive-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin-top: 13px; }
.archive-stats b { color: var(--ink); font-family: var(--font-disp); font-size: 16px; margin-right: 4px; }
.archive-stats strong { color: var(--signal); font-family: var(--font-disp); font-size: 43px; line-height: 1; letter-spacing: -.025em; }
.archive-stats > .ic { width: 24px; height: 24px; align-self: center; color: var(--signal); }

/* The darker middle chapter shows the working system behind the projects. */
.workbench { background: var(--ink); color: var(--on-dark); padding: 78px 0 46px; }
.workbench-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 43px; }
.workbench-heading .mono { color: var(--on-dark-muted); font-size: 10px; letter-spacing: .12em; margin-bottom: 15px; display: block; }
.workbench-heading h2 { font-size: clamp(32px, 3.3vw, 47px); line-height: 1.32; letter-spacing: -.025em; }
.workbench-heading p { max-width: 33em; font-size: 13px; color: var(--on-dark-muted); margin-top: 16px; }
.workbench-layout { display: grid; grid-template-columns: 1.34fr 1fr; gap: 90px; align-items: start; }
.system-route { display: grid; position: relative; }
.system-node { display: grid; grid-template-columns: 40px 1fr; gap: 21px; position: relative; padding-bottom: 31px; }
.system-node:not(:last-child)::before { content: ""; position: absolute; width: 1px; left: 19px; top: 42px; bottom: 4px; background: var(--dark-line); }
.node-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--on-dark); background: var(--dark-panel); border: 1px solid var(--dark-line); border-radius: var(--radius-control); font-family: var(--font-mono); font-size: 11px; }
.node-icon .ic { width: 17px; height: 17px; }
.node-body { min-width: 0; padding-top: 3px; }
.node-body h3 { font-size: 18px; font-weight: 650; line-height: 1.45; }
.node-body p { color: var(--on-dark-muted); font-size: 12px; line-height: 1.9; margin-top: 7px; }
.node-links { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 12px; }
.node-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--on-dark); padding-bottom: 3px; border-bottom: 1px solid var(--dark-line); }
.node-links a:hover { border-color: var(--on-dark); }
.workbench-aside { padding-top: 6px; }
.workbench-aside > a { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; font-size: 10px; color: var(--on-dark-muted); }
.workbench-aside > a:hover { color: var(--on-dark); }
.pet-portrait { position: relative; border-radius: 8px; overflow: hidden; background: var(--signal-soft); }
.pet-portrait img { width: 100%; max-height: 330px; aspect-ratio: 5 / 4; object-fit: contain; }
.pet-portrait figcaption { color: var(--ink-2); padding: 11px 17px; font-size: 10px; border-top: 1px solid var(--line); }
.workbench-quote { border-left: 1px solid var(--on-dark-muted); padding-left: 19px; margin-top: 24px; font-size: 17px; line-height: 1.8; letter-spacing: -.025em; }
.workbench-quote p { font-size: inherit; color: var(--on-dark); }
.workbench-quote cite, .workbench-quote small { display: block; font-style: normal; font-size: 10px; color: var(--on-dark-muted); margin-top: 14px; }
.workbench-footer { margin-top: 20px; padding-top: 23px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 25px; align-items: baseline; color: var(--on-dark-muted); font-size: 10px; }
.workbench-footer a { color: var(--on-dark); display: inline-flex; align-items: center; gap: 7px; }

/* Decisions and limitations have more weight than ornamental skill badges. */
.notes { padding-top: 84px; padding-bottom: 82px; }
.notes-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: start; }
.decision-record { padding: 33px; background: var(--signal-soft); border-top: 3px solid var(--signal); }
.record-label { color: var(--signal); font-family: var(--font-mono); font-size: 10px; letter-spacing: .065em; margin-bottom: 18px; display: block; }
.decision-record h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.5; letter-spacing: -.025em; font-weight: 700; }
.decision-record p { font-size: 13px; line-height: 1.95; color: var(--ink-2); margin-top: 19px; }
.decision-record p strong { color: var(--ink); }
.record-footer { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: baseline; font-size: 11px; line-height: 1.8; color: var(--signal); }
.decision-picker { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; margin-bottom: 24px; }
.decision-picker button { min-height: 39px; padding: 8px 12px; font-size: 10px; line-height: 1.5; color: var(--signal); border: 1px solid var(--line); border-radius: var(--radius-control); transition: background .2s, color .2s, border-color .2s; }
.decision-picker button:hover { border-color: var(--signal); background: var(--paper); }
.decision-picker button[aria-pressed="true"] { background: var(--signal); color: var(--on-dark); border-color: var(--signal); }
.decision-detail h3 { font-size: 23px; }
.decision-flow { display: grid; margin-top: 24px; counter-reset: decision; }
.decision-flow-item { display: grid; grid-template-columns: 79px 1fr; gap: 19px; border-top: 1px solid var(--line); padding: 14px 0; }
.decision-flow-item > span { color: var(--signal); font-size: 10px; font-weight: 600; padding-top: 3px; }
.decision-flow-item > span::before { counter-increment: decision; content: "0" counter(decision) " / "; font-family: var(--font-mono); font-size: 8px; font-weight: 400; }
.decision-flow-item p { margin-top: 0; font-size: 12px; line-height: 1.95; }
.evidence-source { display: block; padding-top: 15px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.9; color: var(--muted); }
.evidence-source a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.debug-record { border-top: 1px solid var(--line); }
.debug-record > h3 { font-size: 19px; font-weight: 650; padding: 20px 0; }
.debug-record details { border-bottom: 1px solid var(--line); }
.debug-record summary { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.65; }
.debug-record summary::-webkit-details-marker { display: none; }
.debug-record summary .mono { flex: none; color: var(--muted); font-size: 9px; font-weight: 400; }
.debug-record summary::after { content: "+"; margin-left: auto; font-size: 20px; flex: none; color: var(--signal); }
.debug-record details[open] summary::after { content: "−"; }
.debug-steps { list-style: none; counter-reset: debug-record; padding-bottom: 21px; }
.debug-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 11px; font-size: 11px; line-height: 1.85; padding: 7px 0; color: var(--ink-2); }
.debug-steps li::before { counter-increment: debug-record; content: counter(debug-record, decimal-leading-zero); font-family: var(--font-mono); font-size: 9px; color: var(--muted); padding-top: 2px; }
.debug-steps b { color: var(--signal); }
.debug-steps span { color: var(--ink-2); }
.debug-record > p { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 17px; }

/* Work history connects the earlier enterprise work to the current products. */
.trace { padding-top: 78px; padding-bottom: 78px; background: var(--surface); border-top: 1px solid var(--line); }
.trace-layout { display: grid; grid-template-columns: .71fr 1.4fr; gap: 80px; align-items: start; }
.trace-intro { position: sticky; top: 120px; }
.trace-intro .mono { display: block; font-size: 10px; color: var(--signal); letter-spacing: .12em; margin-bottom: 16px; }
.trace-intro h2 { font-size: clamp(31px, 3vw, 42px); line-height: 1.37; letter-spacing: -.025em; font-weight: 750; }
.trace-intro p { color: var(--ink-2); font-size: 13px; line-height: 1.9; margin-top: 20px; max-width: 27em; }
.timeline { list-style: none; }
.timeline-entry { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 32px; padding-bottom: 29px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.timeline-entry:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.timeline-entry time { grid-column: 1; grid-row: 1 / 3; font-size: 11px; font-family: var(--font-mono); color: var(--muted); font-weight: 400; line-height: 1.8; padding-top: 3px; }
.timeline-entry time::after { content: ""; width: 6px; height: 6px; position: absolute; left: 87px; top: 12px; border-radius: 50%; background: var(--line); }
.timeline-entry h3 { grid-column: 2; font-size: 17px; font-weight: 650; line-height: 1.5; }
.timeline-entry p { grid-column: 2; font-size: 12px; color: var(--ink-2); line-height: 1.95; margin-top: 9px; }
.timeline-entry:last-child time, .timeline-entry:last-child h3 { color: var(--signal); }
.timeline-entry:last-child time::after { background: var(--signal); }
.resume-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 45px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); }
.resume-strip h3, .resume-strip strong { display: block; font-size: 15px; font-weight: 650; }
.resume-strip p, .resume-strip small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.resume-strip > a { display: inline-flex; align-items: center; gap: 10px; color: var(--signal); font-size: 12px; flex: none; }
.trace-intro > a.resume-strip { display: flex; padding: 17px 18px; margin-top: 25px; color: var(--signal); font-size: 11px; line-height: 1.7; }

/* The final action is deliberately simple and visible. */
.connect { padding-top: 74px; padding-bottom: 29px; background: var(--signal); color: var(--on-dark); }
.connect-layout { display: grid; grid-template-columns: 1.18fr 1fr; gap: 90px; align-items: start; }
.connect-heading .mono { color: var(--on-dark); font-size: 10px; letter-spacing: .12em; display: block; margin-bottom: 23px; }
.connect-heading h2 { font-size: clamp(38px, 4.2vw, 61px); line-height: 1.29; letter-spacing: -.025em; font-weight: 750; }
.connect-heading h2 > .motion-line { display: block; }
.connect-heading h2 .motion-glyph { display: inline-block; }
.connect-heading p { font-size: 13px; line-height: 1.9; margin-top: 21px; max-width: 32em; color: var(--on-dark); }
.connect-heading .availability { margin-top: 0; margin-bottom: 22px; font-size: 11px; color: var(--on-dark); }
.connect .status-dot { color: var(--on-dark); }
.contact-list { display: grid; }
.contact-item { display: flex; justify-content: space-between; align-items: baseline; gap: 22px; padding: 17px 0; border-bottom: 1px solid rgba(243, 245, 244, .3); }
.contact-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em; }
.contact-value { font-family: var(--font-disp); font-size: 20px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.contact-item:hover .contact-value { text-decoration: underline; text-underline-offset: 5px; }
.connect-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.connect-actions .button-primary { background: var(--paper); border-color: var(--paper); color: var(--signal); }
.connect-actions .button-primary:hover { background: var(--surface); border-color: var(--surface); }
.connect-actions .button-secondary { color: var(--on-dark); border-color: rgba(243, 245, 244, .5); }
.connect-actions .button-secondary:hover { background: var(--signal-hover); border-color: var(--on-dark); }
.site-footer { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; border-top: 1px solid rgba(243, 245, 244, .3); margin-top: 68px; padding-top: 22px; font-size: 9px; line-height: 1.8; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-nav { display: none; }

/* Existing panorama: its routes, search, category filters, and detail contract. */
.pr-root { position: fixed; inset: 0; z-index: 300; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pr-root[hidden] { display: none !important; }
html.pr-open { overflow: hidden; }
.pr-page { max-width: 1360px; margin: 0 auto; padding: 20px var(--gutter) 85px; }
.pr-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; margin-bottom: 26px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pr-back { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 12px; font-weight: 600; color: var(--signal); }
.pr-back .ic { width: 14px; height: 14px; transform: rotate(180deg); }
.pr-crumb { font-size: 10px; color: var(--muted); }
.pr-page .sec-no { display: block; color: var(--signal); font-family: var(--font-mono); font-size: 10px; margin-bottom: 13px; }
.pr-page .sec-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.25; letter-spacing: -.035em; }
.pr-page .sec-title em { display: inline; font-size: .37em; color: var(--muted); font-weight: 500; letter-spacing: .02em; margin-left: 8px; }
.pr-page .sec-sub { font-size: 13px; color: var(--ink-2); margin-top: 17px; max-width: 64em; }
.pr-stats { display: flex; gap: 25px; flex-wrap: wrap; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pr-stat { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 2px solid transparent; min-height: 44px; }
.pr-stat b { font-family: var(--font-disp); font-size: 25px; color: var(--signal); }
.pr-stat span { font-size: 10px; color: var(--muted); }
.pr-stat.on, .pr-stat:hover { border-color: var(--signal); }
.pr-ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 25px 0 34px; }
.pr-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-control); padding: 10px 13px; min-width: min(280px, 100%); min-height: 43px; }
.pr-search:focus-within { outline: 2px solid var(--signal-cobalt); outline-offset: 2px; }
.pr-search .ic { width: 14px; height: 14px; color: var(--muted); }
.pr-search input { width: 100%; min-width: 0; font-size: 12px; background: transparent; border: 0; outline: 0; }
.pr-search input::placeholder { color: var(--muted); }
.pr-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-fbtn { min-height: 39px; padding: 8px 12px; font-size: 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); transition: color .2s, background .2s, border-color .2s; }
.pr-fbtn:hover { color: var(--signal); border-color: var(--signal); }
.pr-fbtn.on { color: var(--on-dark); background: var(--ink); border-color: var(--ink); }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pr-group { margin-bottom: 39px; }
.pr-group-head { display: flex; align-items: baseline; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 16px; }
.pr-group-head h3 { font-size: 12px; color: var(--signal); letter-spacing: .06em; }
.pr-group-n { font-size: 9px; color: var(--muted); }
.pr-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); transition: transform .25s var(--ease), border-color .2s; }
.pr-card:hover { transform: translateY(-3px); border-color: var(--signal); }
.pr-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-card-id { color: var(--signal); font-size: 10px; }
.pr-card h3 { font-size: 17px; line-height: 1.5; font-weight: 650; }
.pr-card-tag { font-size: 12px; line-height: 1.85; color: var(--ink-2); }
.pr-card-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 13px; margin-top: auto; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.mi-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; line-height: 1.5; padding: 4px 7px; border-radius: var(--radius-control); color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); }
.s-live, .s-done, .mi-live, .mi-done { color: var(--signal); background: var(--signal-soft); }
.s-wip, .mi-wip { color: var(--signal-cobalt); background: var(--cobalt-soft); }
.s-stop, .mi-stop { color: var(--warm); background: var(--warm-soft); }
.pr-empty { padding: 65px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.pr-empty .mono { display: block; margin-top: 12px; font-size: 10px; }
.pr-head { padding: 8px 0 29px; border-bottom: 1px solid var(--line); }
.pr-head-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-head h1 { font-size: clamp(31px, 4.1vw, 56px); line-height: 1.3; font-weight: 750; letter-spacing: -.035em; margin-top: 17px; }
.pr-tagline { font-size: 15px; color: var(--ink-2); margin-top: 13px; }
.pr-head-meta { display: flex; gap: 25px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin-top: 20px; }
.pr-head-meta b { color: var(--ink); }
.pr-sec { margin-top: 39px; }
.pr-sec > h3 { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--ink); margin-bottom: 19px; }
.pr-sec > h3 .ic { color: var(--signal); width: 15px; height: 15px; }
.pr-intro { max-width: 65em; color: var(--ink-2); font-size: 14px; line-height: 2; }
.pr-pains { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-pain { display: grid; gap: 13px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); }
.pr-pain-q, .pr-pain-a { display: flex; align-items: start; gap: 10px; font-size: 12px; line-height: 1.85; }
.pr-pain-q { font-weight: 650; }
.pr-pain-a { color: var(--ink-2); }
.pr-pain-q .ic, .pr-pain-a .ic { color: var(--signal); width: 14px; height: 14px; margin-top: 5px; }
.pr-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 30px; }
.pr-feats li, .pr-highs li, .pr-road li { display: flex; align-items: start; gap: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.9; }
.pr-feats .ic, .pr-highs .ic, .pr-road .ic { color: var(--signal); width: 14px; height: 14px; margin-top: 5px; }
.pr-highs, .pr-road { display: grid; gap: 11px; list-style: none; }
.pr-techs { display: flex; flex-wrap: wrap; gap: 7px; }
.pr-tech { display: inline-flex; align-items: center; min-height: 31px; border: 1px solid var(--line); background: var(--surface); padding: 6px 10px; font-size: 10px; color: var(--ink-2); border-radius: var(--radius-control); }
.pr-limbox { padding: 20px 24px; background: var(--warm-soft); border-left: 1px solid var(--warm); border-radius: 0 5px 5px 0; }
.pr-limbox .limits { margin-top: 0; }
.pr-chlog-li { display: grid; grid-template-columns: 102px 1fr; gap: 22px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pr-chlog-d { font-family: var(--font-mono); font-size: 10px; color: var(--muted); padding-top: 3px; }
.pr-chlog-n { font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.pr-snaps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pr-snap { min-width: 0; }
.pr-snap img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-control); }
.pr-snap-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 10; background: var(--surface); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-control); font-size: 11px; }
.pr-snap-ph .ic { width: 24px; height: 24px; }
.pr-snap-cap { display: flex; align-items: baseline; gap: 9px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.pr-snap-cap .mono { color: var(--signal); font-size: 9px; flex: none; }
.pr-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 48px; }
.pr-archive { display: inline-flex; align-items: center; gap: 9px; min-height: 43px; padding: 11px 17px; font-size: 12px; font-weight: 600; background: var(--signal); color: var(--on-dark); border-radius: var(--radius-control); }
.pr-archive:hover { background: var(--signal-hover); }
.pr-archive .ic { width: 14px; height: 14px; }
.pr-caliber { font-size: 9px; color: var(--muted); }
.pr-404 { padding: 75px 0; text-align: center; }
.pr-404 > .mono { display: block; font-size: 100px; line-height: 1.2; font-weight: 600; color: var(--signal); }
.pr-404 h2 { font-size: 25px; margin-top: 17px; }
.pr-404 p { color: var(--muted); font-size: 13px; margin-top: 12px; }
.pr-404 .btn { margin-top: 25px; }

/* Breakpoints retain a legible evidence-first order at every viewport. */
@media (min-width: 1600px) {
  .hero-title { font-size: 84px; }
  .hero { padding-top: 84px; }
}
@media (max-width: 1190px) {
  :root { --gutter: 40px; }
  .site-header { gap: 22px; }
  .site-nav { gap: 18px; }
  .brand-name small { display: none; }
  .header-actions { gap: 14px; }
  .hero-layout { gap: 34px; grid-template-columns: 1.1fr 1fr; }
  .hero-title { font-size: clamp(49px, 5.75vw, 68px); }
  .hero-lead { font-size: 15px; }
  .proof-console { padding-left: 14px; padding-right: 14px; box-shadow: 12px 15px 0 var(--surface-2); }
  .console-title { font-size: 9px; }
  .console-status { font-size: 9px; }
  .hero-summary { gap: 19px; }
  .spine-step { padding-right: 25px; }
  .case-layout { gap: 29px; }
  .workbench-layout { gap: 45px; }
  .trace-layout { gap: 50px; }
  .connect-layout { gap: 50px; }
  .contact-value { font-size: 17px; }
  .pr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .site-header { min-height: 78px; padding-top: 14px; padding-bottom: 14px; }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 53px; }
  .hero-layout { gap: 33px; grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(43px, 5.5vw, 58px); }
  .availability { font-size: 10px; margin-bottom: 21px; }
  .hero-role { font-size: 11px; }
  .hero-lead { font-size: 13px; margin-top: 21px; }
  .hero-actions { margin-top: 24px; gap: 9px; }
  .button { padding: 12px 16px; font-size: 11px; min-height: 44px; }
  .proof-caption h2, .proof-caption h3, .proof-caption strong { font-size: 16px; }
  .proof-caption p { font-size: 11px; }
  .console-status { display: none; }
  .proof-selector button { font-size: 9px; padding-left: 8px; padding-right: 8px; }
  .hero-foot { margin-top: 55px; flex-direction: column; gap: 12px; }
  .track-note { max-width: none; text-align: left; }
  .track-note a { justify-content: start; }
  .spine { padding-top: 67px; padding-bottom: 63px; }
  .section-heading { margin-bottom: 34px; gap: 25px; }
  .section-heading h2 { font-size: 33px; }
  .section-heading p { font-size: 13px; }
  .spine-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .spine-step { padding-right: 33px; }
  .spine-step:nth-child(2) { padding-right: 0; }
  .case-layout { grid-template-columns: 1fr; gap: 26px; }
  .case-evidence { max-width: 100%; }
  .case-reading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 30px; }
  .decision-title { grid-column: 1; }
  .decision-summary { grid-column: 1; font-size: 12px; }
  .proof-fields { grid-column: 2; grid-row: 1 / 4; }
  .case-detail-link { grid-column: 1; align-self: end; justify-self: start; margin-top: 5px; }
  .work { padding-top: 63px; padding-bottom: 60px; }
  .qa-demo { grid-template-columns: 1fr; }
  .qa-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px 20px; }
  .qa-q { grid-column: 1; }
  .qa-steps { grid-column: 1; }
  .qa-a { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .workbench { padding-top: 61px; padding-bottom: 38px; }
  .workbench-layout { grid-template-columns: 1.2fr 1fr; gap: 35px; }
  .workbench-quote { font-size: 15px; }
  .node-body h3 { font-size: 16px; }
  .notes { padding-top: 66px; padding-bottom: 65px; }
  .notes-layout { grid-template-columns: 1fr; gap: 31px; }
  .decision-record { padding: 28px; }
  .trace { padding-top: 65px; padding-bottom: 63px; }
  .trace-layout { grid-template-columns: .75fr 1.4fr; gap: 38px; }
  .trace-intro h2 { font-size: 31px; }
  .timeline-entry { gap: 25px; grid-template-columns: 62px 1fr; }
  .timeline-entry time::after { left: 71px; }
  .connect { padding-top: 62px; }
  .connect-layout { gap: 32px; }
  .connect-heading h2 { font-size: 42px; }
  .contact-item { gap: 14px; }
  .contact-value { font-size: 15px; }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 88px; }
  body { padding-bottom: 65px; }
  .site-header { min-height: 72px; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .brand { gap: 8px; }
  .brand-symbol { width: 32px; height: 32px; }
  .brand-name { font-size: 16px; }
  .header-actions { gap: 0; }
  .resume-link { display: none; }
  .track-controls { padding: 2px; }
  .track-controls button { min-height: 30px; font-size: 9px; padding: 5px 9px; }
  .hero { padding-top: 39px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding-bottom: 0; }
  .availability { font-size: 11px; margin-bottom: 22px; }
  .hero-role { margin-bottom: 12px; font-size: 11px; }
  .hero-title { font-size: clamp(47px, 9.2vw, 66px); letter-spacing: -.025em; }
  .hero-lead { max-width: 38em; font-size: 14px; margin-top: 21px; }
  .hero-actions { margin-top: 26px; }
  .button { padding: 13px 18px; font-size: 12px; }
  .hero-context { font-size: 10px; margin-top: 17px; }
  .proof-console { transform: none; margin-right: 10px; box-shadow: 10px 11px 0 var(--surface-2); border-radius: var(--radius-surface); padding: 0 14px 18px; }
  .console-bar { min-height: 49px; }
  .console-title { font-size: 9px; }
  .console-status { display: flex; font-size: 9px; }
  .proof-caption { padding-top: 16px; padding-bottom: 15px; }
  .proof-caption h2, .proof-caption h3, .proof-caption strong { font-size: 17px; }
  .proof-caption p { font-size: 11px; }
  .proof-selector { gap: 6px; }
  .proof-selector button { min-height: 35px; font-size: 9px; padding: 7px 11px; }
  .proof-links { gap: 18px; padding-top: 14px; font-size: 10px; }
  .pet-sign { width: 59px; height: 59px; right: -16px; bottom: -22px; }
  .pet-sign img { width: 48px; height: 48px; }
  .hero-foot { margin-top: 44px; padding-top: 23px; padding-bottom: 24px; }
  .hero-summary { gap: 11px 21px; font-size: 11px; }
  .hero-summary b { font-size: 17px; }
  .track-note { font-size: 9px; line-height: 1.9; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: clamp(29px, 6.3vw, 39px); }
  .section-heading .mono, .section-label { font-size: 9px; margin-bottom: 13px; }
  .section-heading p { font-size: 12px; margin-top: 14px; }
  .section-link { margin-top: 20px; font-size: 11px; }
  .spine { padding-top: 54px; padding-bottom: 54px; }
  .spine-grid { row-gap: 32px; }
  .spine-step { padding-top: 20px; padding-right: 21px; }
  .spine-number { font-size: 9px; }
  .spine-word { font-size: 23px; margin-top: 5px; }
  .spine-step h2, .spine-step h3 { font-size: 15px; margin-top: 9px; }
  .spine-step p { font-size: 11px; line-height: 1.9; }
  .spine-step a { font-size: 9px; margin-top: 13px; }
  .work { padding-top: 53px; padding-bottom: 49px; }
  .case-index { margin-top: -12px; padding-bottom: 25px; gap: 5px 17px; font-size: 10px; }
  .case { padding-top: 34px; padding-bottom: 35px; scroll-margin-top: 88px; }
  .case-top { margin-bottom: 12px; gap: 10px; }
  .case-number { font-size: 9px; }
  .case-status { font-size: 9px; }
  .case-title { font-size: 28px; line-height: 1.4; }
  .case-line { font-size: 12px; line-height: 1.9; }
  .case-role { font-size: 10px; line-height: 1.9; margin-top: 8px; }
  .case-layout { margin-top: 24px; gap: 22px; }
  .window-bar { padding: 7px 10px; }
  .window-label, .window-bar .mono, .window-bar > span { font-size: 8px; }
  .evidence-window figcaption { font-size: 9px; padding: 10px 12px; }
  .case-reading { display: block; }
  .decision-title { font-size: 20px; margin-bottom: 11px; }
  .decision-summary { font-size: 12px; line-height: 1.95; margin-bottom: 19px; }
  .proof-field { grid-template-columns: 63px 1fr; gap: 13px; padding: 12px 0; }
  .proof-field dt { font-size: 8px; }
  .proof-field dd { font-size: 11px; line-height: 1.95; }
  .case-detail-link { margin-top: 16px; font-size: 10px; }
  .case-details { margin-top: 21px; }
  .case-details summary { font-size: 11px; }
  .case-tabs { gap: 1px; }
  .case-tabs button { font-size: 10px; padding: 9px 11px; }
  .pane-lead { font-size: 13px; }
  .pane-note { font-size: 11px; }
  .strict-item { grid-template-columns: 1fr; gap: 7px; padding: 14px 16px; }
  .strict-item b, .strict-item span { font-size: 11px; }
  .qa-card { display: flex; padding: 15px; gap: 12px; }
  .qa-q { font-size: 12px; }
  .qt-btn { min-height: 38px; font-size: 10px; }
  .pipe-legend { grid-template-columns: 1fr; gap: 9px; font-size: 10px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .mt-hero { padding: 17px 20px; }
  .mt b { font-size: 30px; }
  .mt-hero b { font-size: 42px; }
  .mt > span { font-size: 10px; }
  .impact { grid-template-columns: 1fr; gap: 9px; }
  .impact > span { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 9px; padding: 12px 14px; }
  .impact b { font-size: 18px; }
  .archive-entry { align-items: start; flex-direction: column; gap: 22px; padding-top: 24px; }
  .archive-copy h3 { font-size: 17px; }
  .archive-copy p { font-size: 11px; }
  .archive-stats { gap: 15px; font-size: 9px; }
  .archive-stats b { font-size: 15px; }
  .workbench { padding-top: 52px; padding-bottom: 33px; }
  .workbench-heading { display: block; margin-bottom: 31px; }
  .workbench-heading h2 { font-size: 31px; }
  .workbench-heading p { font-size: 12px; }
  .workbench-layout { grid-template-columns: 1fr; gap: 20px; }
  .system-node { gap: 17px; padding-bottom: 28px; }
  .node-body h3 { font-size: 17px; }
  .node-body p { font-size: 11px; }
  .node-links a { font-size: 9px; }
  .workbench-aside { display: grid; grid-template-columns: .9fr 1fr; gap: 22px; align-items: center; }
  .pet-portrait img { max-height: 250px; }
  .pet-portrait figcaption { font-size: 9px; padding: 9px 12px; }
  .workbench-quote { margin-top: 0; font-size: 14px; padding-left: 14px; }
  .workbench-quote cite, .workbench-quote small { font-size: 9px; }
  .workbench-footer { flex-direction: column; gap: 11px; margin-top: 29px; font-size: 9px; }
  .notes { padding-top: 54px; padding-bottom: 52px; }
  .decision-record { padding: 25px; }
  .decision-record h3 { font-size: 22px; }
  .decision-record p { font-size: 12px; }
  .record-label { font-size: 9px; margin-bottom: 15px; }
  .record-footer { font-size: 10px; margin-top: 21px; padding-top: 17px; }
  .decision-picker { gap: 6px; margin-top: 17px; margin-bottom: 21px; }
  .decision-picker button { font-size: 9px; padding: 8px 10px; }
  .decision-detail h3 { font-size: 21px; }
  .decision-flow { margin-top: 20px; }
  .decision-flow-item { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .decision-flow-item > span { font-size: 9px; }
  .decision-flow-item p { font-size: 11px; }
  .evidence-source { font-size: 9px; }
  .debug-record > h3 { font-size: 17px; }
  .debug-record summary { font-size: 12px; gap: 10px; }
  .debug-record summary .mono { font-size: 8px; }
  .debug-steps li { grid-template-columns: 21px 1fr; gap: 8px; font-size: 10px; }
  .trace { padding-top: 52px; padding-bottom: 50px; }
  .trace-layout { grid-template-columns: 1fr; gap: 32px; }
  .trace-intro { position: static; }
  .trace-intro h2 { font-size: 31px; }
  .trace-intro p { max-width: 36em; font-size: 12px; margin-top: 17px; }
  .timeline-entry { grid-template-columns: 58px 1fr; gap: 27px; padding-bottom: 23px; margin-bottom: 23px; }
  .timeline-entry time { font-size: 10px; }
  .timeline-entry time::after { left: 68px; top: 11px; }
  .timeline-entry h3 { font-size: 16px; }
  .timeline-entry p { font-size: 11px; }
  .resume-strip { gap: 20px; padding: 20px; margin-top: 34px; }
  .resume-strip h3, .resume-strip strong { font-size: 13px; }
  .resume-strip p, .resume-strip small { font-size: 9px; line-height: 1.9; }
  .resume-strip > a { font-size: 11px; }
  .connect { padding-top: 52px; padding-bottom: 26px; }
  .connect-layout { grid-template-columns: 1fr; gap: 29px; }
  .connect-heading h2 { font-size: clamp(39px, 8.1vw, 53px); }
  .connect-heading .mono { margin-bottom: 20px; font-size: 9px; }
  .connect-heading p { font-size: 12px; margin-top: 19px; }
  .contact-item { padding: 16px 0; }
  .contact-value { font-size: 18px; }
  .connect-actions { gap: 12px; margin-top: 25px; }
  .site-footer { margin-top: 45px; padding-top: 19px; flex-direction: column; gap: 8px; font-size: 8px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--paper); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; font-size: 9px; line-height: 1.4; color: var(--ink-2); }
  .mobile-nav .ic { width: 18px; height: 18px; }
  .mobile-nav a:hover, .mobile-nav a.active { color: var(--signal); }
  html.pr-open .mobile-nav { display: none; }
  .pr-page { padding-top: 10px; padding-bottom: 58px; }
  .pr-topbar { padding: 13px 0; gap: 15px; margin-bottom: 22px; }
  .pr-crumb { font-size: 8px; max-width: 23em; text-align: right; }
  .pr-back { font-size: 11px; flex: none; }
  .pr-page .sec-title { font-size: 33px; }
  .pr-page .sec-sub { font-size: 12px; }
  .pr-stats { gap: 12px 24px; padding: 20px 0; }
  .pr-stat b { font-size: 23px; }
  .pr-stat span { font-size: 9px; }
  .pr-ctrl { margin-top: 21px; margin-bottom: 27px; }
  .pr-search { width: 100%; }
  .pr-grid, .pr-pains, .pr-feats, .pr-snaps { grid-template-columns: 1fr; }
  .pr-card { padding: 20px; }
  .pr-head h1 { font-size: 32px; }
  .pr-tagline { font-size: 13px; }
  .pr-sec { margin-top: 31px; }
  .pr-sec > h3 { font-size: 11px; }
  .pr-intro { font-size: 12px; }
  .pr-limbox { padding: 18px; }
  .pr-chlog-li { grid-template-columns: 1fr; gap: 4px; }
  .pr-snap-cap { font-size: 10px; }
  .pr-foot { align-items: start; flex-direction: column; gap: 16px; }
}
@media (max-width: 400px) {
  :root { --gutter: 20px; }
  .site-header { gap: 12px; }
  .brand-name { font-size: 15px; }
  .track-controls button { padding-left: 8px; padding-right: 8px; }
  .hero-title { font-size: 45px; }
  .hero-title .title-small { font-size: .76em; }
  .hero-summary { gap: 9px 14px; }
  .hero-summary span { gap: 6px; }
  .proof-selector button { padding-left: 9px; padding-right: 9px; }
  .case-title { font-size: 26px; }
  .case-tabs button { padding-left: 9px; padding-right: 9px; }
  .workbench-aside { grid-template-columns: 1fr; gap: 20px; }
  .pet-portrait { max-width: 250px; }
  .workbench-quote { font-size: 16px; }
  .decision-record { padding: 21px; }
  .decision-record h3 { font-size: 20px; }
  .resume-strip { align-items: start; flex-direction: column; gap: 16px; }
  .contact-value { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.noanim { scroll-behavior: auto; }
html.noanim *, html.noanim *::before, html.noanim *::after { animation: none !important; transition: none !important; }

@media print {
  .site-header, .mobile-nav, .proof-selector, .case-tabs, .pr-root { display: none !important; }
  body { padding-bottom: 0; background: var(--surface); }
  .wrap { padding: 0; }
  .hero, .work, .notes, .trace, .connect, .workbench { padding: 28px 0; }
  .hero-layout, .case-layout, .workbench-layout, .notes-layout, .trace-layout, .connect-layout { display: block; }
  .proof-console { transform: none; box-shadow: none; margin-top: 25px; }
  .case { break-inside: avoid; }
  .workbench, .connect { background: var(--surface); color: var(--ink); }
  .workbench p, .connect p, .workbench .mono, .connect .mono { color: var(--ink-2); }
  .trace-intro { position: static; }
}
