@font-face {
  font-family: "Portsmouth Rapids";
  src: url("/instruments/portsmouth/assets/fonts/PortsmouthRapids.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Portsmouth Rapids";
  src: url("/instruments/portsmouth/assets/fonts/PortsmouthRapids-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #172039;
  --ink-soft: #46516a;
  --paper: #fffefa;
  --paper-cool: #f4f7fb;
  --pearl: #eef1f7;
  --chrome: #c9d4e5;
  --graphite: #3e4859;
  --graphite-deep: #202938;
  --sapphire: #17347f;
  --cobalt: #3a68cb;
  --coral: #d96872;
  --gold: #ffd27a;
  --teal: #78e2c2;
  --teal-dark: #356b62;
  --selection: #dbe6ff;
  --keyline: #36455f;
  --error: #a3424e;
  --shadow: rgba(23, 32, 57, .22);
  --display: "Portsmouth Rapids", "Arial Narrow", Tahoma, sans-serif;
  --body: Tahoma, Calibri, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: #dce2ed;
  background-image:
    linear-gradient(rgba(54, 69, 95, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 69, 95, .09) 1px, transparent 1px),
    linear-gradient(145deg, #e8edf5 0%, #bec8d8 100%);
  background-size: 24px 24px, 24px 24px, auto;
  font: 16px/1.62 var(--body);
}

a { color: var(--sapphire); text-underline-offset: 3px; }
a:hover { color: #274fa9; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
code { font-family: var(--mono); }

.decomposition-page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--keyline);
  box-shadow: 0 18px 42px var(--shadow), 0 3px 0 rgba(255,255,255,.65) inset;
}

.hero {
  position: relative;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 210, 122, .35), transparent 24%),
    radial-gradient(circle at 92% 72%, rgba(217, 104, 114, .52), transparent 31%),
    linear-gradient(122deg, #10275f 0%, #244da7 56%, #6387d7 100%);
  border-bottom: 8px solid var(--graphite-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background-image:
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.25) 43.2% 44%, transparent 44.2% 100%),
    repeating-linear-gradient(92deg, transparent 0 23px, rgba(255,255,255,.08) 24px 25px);
  mix-blend-mode: screen;
}

.hero .hierarchy-nav {
  padding: 15px clamp(22px, 5vw, 60px);
  color: #e7edff;
  background: rgba(15, 27, 57, .54);
  border-bottom: 1px solid rgba(255,255,255,.24);
  font-family: var(--display);
}

.hero .hierarchy-nav a { color: white; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(26px, 6vw, 72px) clamp(48px, 7vw, 84px);
}

h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.025em; }
h1 { max-width: 770px; font-size: clamp(46px, 7.2vw, 86px); line-height: .94; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.04; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.15; }
p { margin: 0; }

.deck {
  max-width: 720px;
  margin-top: 26px;
  color: #f2f5ff;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.48;
}

.hero-actions, .footer-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 30px; }
.hero-actions a, .footer-actions a {
  color: white;
  font: 700 13px/1.1 var(--display);
  letter-spacing: .025em;
}

.primary-action {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  padding: 13px 17px;
  color: white !important;
  background: var(--teal-dark);
  border: 1px solid #214d45;
  border-top-color: #8bc1b6;
  box-shadow: 0 3px 0 #193a34, 0 1px 0 rgba(255,255,255,.25) inset;
  text-decoration: none;
}

.primary-action:active { transform: translateY(2px); box-shadow: 0 1px 0 #193a34; }

.hero-object {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 310px;
  padding: 24px;
  background: rgba(15, 25, 44, .78);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 18px 36px rgba(5,13,30,.35), 0 1px 0 rgba(255,255,255,.25) inset;
}

.hero-sum, .hero-plane {
  display: grid;
  place-items: center;
  aspect-ratio: .86;
  min-width: 0;
  color: var(--ink);
  background: #f5f2e8;
  border: 1px solid white;
  box-shadow: 8px 10px 0 rgba(8, 15, 28, .28);
}

.hero-cartoon { background: linear-gradient(135deg, #fffdf6 0 54%, #d4d9de 54% 100%); }
.hero-texture {
  color: white;
  background-color: #263248;
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(120,226,194,.55) 8px 9px, transparent 10px 15px);
}
.hero-object span { font: 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.hero-object strong { font: 700 clamp(25px, 4vw, 43px)/1 var(--display); }
.hero-object sup { font-size: .55em; }
.hero-equals, .hero-plus { font: 30px/1 var(--display); color: var(--gold); }
.hero-object > p { grid-column: 1 / -1; color: #cfd9f3; font: 11px/1.3 var(--display); letter-spacing: .06em; text-align: center; text-transform: uppercase; }

.state-object {
  padding: 24px;
  background: rgba(15, 25, 44, .82);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 18px 36px rgba(5,13,30,.35), 0 1px 0 rgba(255,255,255,.25) inset;
}
.state-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.state-grid span {
  display: grid;
  min-height: 96px;
  padding: 12px;
  align-content: space-between;
  color: var(--ink);
  background: linear-gradient(145deg, #fffdf6, #dbe1eb);
  border: 1px solid white;
  box-shadow: 4px 5px 0 rgba(8,15,28,.28);
}
.state-grid span:nth-child(n+3) { color: white; background: #2c3950; }
.state-grid small { font: 9px/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.state-grid strong { font: 700 clamp(25px, 4vw, 39px)/1 var(--display); }
.state-grid sub { font-size: .48em; }
.state-object > code { display: block; margin-top: 22px; color: var(--gold); font-size: 12px; text-align: center; }
.state-object > p { margin-top: 8px; color: #cfd9f3; font: 10px/1.3 var(--display); letter-spacing: .06em; text-align: center; text-transform: uppercase; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  background: rgba(15, 27, 57, .68);
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-facts div { padding: 16px clamp(16px, 3vw, 30px); border-right: 1px solid rgba(255,255,255,.17); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { color: #c4d0ed; font: 10px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.hero-facts dd { margin: 7px 0 0; color: white; font: 700 19px/1.1 var(--display); }

.paper-section, .method-section, .evidence-section, .figure-section, .implementation-section, .live-section, .lineage-section, .take {
  padding: clamp(54px, 8vw, 96px) clamp(24px, 7vw, 84px);
  border-bottom: 1px solid var(--chrome);
}

.paper-section p, .method-intro p, .evidence-heading p, .figure-heading p, .implementation-copy p, .live-heading p, .lineage-section > div > p, .take > div > p {
  color: var(--ink-soft);
  font-size: 18px;
}

.paper-section h2 + p, .method-intro h2 + p, .evidence-heading h2 + p, .figure-heading h2 + p, .implementation-copy h2 + p, .live-heading h2 + p, .lineage-section h2 + p, .take h2 + p { margin-top: 18px; }

.theorem { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(36px, 7vw, 88px); align-items: start; }
.section-copy { max-width: 760px; }
.section-copy > p + p { margin-top: 22px; }
.equation-stack {
  display: grid;
  gap: 8px;
  margin: 30px 0;
  padding: 20px 24px;
  overflow-x: auto;
  color: #f3f7ff;
  background: var(--graphite-deep);
  border: 1px solid #111824;
  border-left: 5px solid var(--teal);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.25);
}
.equation-stack code { white-space: nowrap; font-size: clamp(14px, 2vw, 19px); }
.margin-note {
  padding: 20px 0 20px 20px;
  border-left: 3px solid var(--coral);
}
.margin-note strong { font: 700 13px/1 var(--display); color: var(--error); letter-spacing: .06em; text-transform: uppercase; }
.margin-note p { margin-top: 11px; font-size: 15px; }

.frequency { background: var(--paper-cool); }
.fused-state { background: var(--paper-cool); }
.finite-flow { background: #fffdf7; }
.two-column-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); margin-top: 24px; }
.two-column-copy code, .section-copy code { color: var(--sapphire); font-size: .92em; }

.method-section {
  color: white;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--graphite-deep);
  background-size: 22px 22px;
}
.method-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.method-intro p { color: #cbd3df; }
.trace-instrument { margin-top: 40px; border: 1px solid #0d131d; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 30px rgba(0,0,0,.22); }
.trace-map { display: grid; grid-template-columns: repeat(6, 1fr); background: #4a5668; border-bottom: 1px solid #101722; }
.trace-map button {
  position: relative;
  min-height: 76px;
  padding: 14px 10px;
  color: #e8edf4;
  background: transparent;
  border: 0;
  border-right: 1px solid #202a39;
  font: 700 12px/1.2 var(--display);
  cursor: pointer;
}
.trace-map button:last-child { border-right: 0; }
.trace-map button span { display: block; width: 21px; height: 21px; margin: 0 auto 7px; padding-top: 4px; color: #182132; background: var(--chrome); border: 1px solid white; }
.trace-map button[aria-selected="true"] { color: white; background: var(--sapphire); box-shadow: inset 0 -4px 0 var(--gold); }
.trace-map button[aria-selected="true"] span { background: var(--gold); }
.trace-panel { display: grid; grid-template-columns: minmax(260px, .75fr) 1fr; gap: clamp(28px, 6vw, 74px); align-items: center; min-height: 320px; padding: clamp(26px, 5vw, 54px); background: #151d2a; }
.trace-panel > div:last-child { max-width: 560px; }
.trace-state, .benchmark-contract { color: var(--teal) !important; font: 700 11px/1 var(--display) !important; letter-spacing: .1em; text-transform: uppercase; }
.trace-panel h3 { margin-top: 12px; font-size: clamp(28px, 4vw, 42px); }
.trace-panel h3 + p { margin-top: 16px; color: #cbd3df; font-size: 17px; }
.trace-panel code { display: block; margin-top: 20px; color: var(--gold); font-size: 14px; }
.trace-glyph { position: relative; display: flex; align-items: center; justify-content: space-between; height: 180px; }
.trace-glyph::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #718098; }
.trace-glyph span { position: relative; z-index: 1; width: 22px; height: 22px; background: #2a3546; border: 2px solid #7f8da2; transform: rotate(45deg); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.trace-glyph span.is-active { background: var(--teal); border-color: #c5ffed; transform: rotate(45deg) scale(1.6); box-shadow: 0 0 24px rgba(120,226,194,.38); }
.noscript-note { margin-top: 15px; color: #cbd3df; }

.deep-jump { background: #fffdf7; }
.display-equation { margin: 28px 0; padding: 18px 22px; color: var(--sapphire); background: var(--selection); border: 1px solid #9eb3dc; font-size: clamp(15px, 2.2vw, 21px); overflow-x: auto; }
.display-equation code { white-space: nowrap; }
.process-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 44px; border: 1px solid var(--keyline); background: var(--pearl); }
.process-strip div { min-width: 0; padding: 18px; border-right: 1px solid var(--chrome); }
.process-strip div:last-child { border-right: 0; }
.process-strip span { color: var(--sapphire); font: 700 25px/1 var(--display); }
.process-strip p { margin-top: 12px; font-size: 13px; line-height: 1.45; }
.state-strip span { font-size: 29px; }

.figure-section { background: #f8f5ec; }
.figure-section.surgical { background: var(--paper); }
.figure-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 7vw, 90px); align-items: end; }
.proof-atlas { margin-top: 38px; }

.evidence-section { background: #f8f5ec; }
.evidence-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 7vw, 90px); align-items: end; }
.research-figure, .pareto-figure, .capture, .lineage-section figure { margin-top: 42px; background: white; border: 1px solid var(--keyline); box-shadow: 0 10px 24px rgba(23,32,57,.12); }
.research-figure img, .pareto-figure img, .capture img, .lineage-section img { width: 100%; }
figcaption { padding: 13px 16px 15px; color: #596377; background: var(--paper); border-top: 1px solid var(--chrome); font-size: 13px; line-height: 1.45; }

.benchmark-instrument { margin-top: 42px; color: #f3f6fa; background: var(--graphite-deep); border: 1px solid #111824; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px rgba(23,32,57,.18); }
.scene-selector { display: grid; grid-template-columns: repeat(4, 1fr); background: #4a5668; border-bottom: 1px solid #111824; }
.scene-selector button {
  min-height: 54px;
  padding: 12px;
  color: white;
  background: transparent;
  border: 0;
  border-right: 1px solid #242e3d;
  font: 700 12px/1.25 var(--display);
  cursor: pointer;
}
.scene-selector button:last-child { border-right: 0; }
.scene-selector button.is-selected { color: var(--ink); background: var(--gold); box-shadow: inset 0 -4px 0 var(--coral); }
.size-selector { grid-template-columns: repeat(3, 1fr); }
.benchmark-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
.benchmark-plot { display: grid; place-items: center; padding: 24px; background: #141c29; border-right: 1px solid #0c121b; }
.benchmark-plot svg { width: 100%; height: auto; overflow: visible; }
.plot-grid path { fill: none; stroke: #56637a; stroke-width: 1; }
.plot-grid text, .plot-axis-title, .plot-direct text, .plot-baseline text { fill: #aeb9ca; font: 12px var(--mono); }
.plot-axis-title { fill: #e4eaf2; }
.plot-direct circle { fill: var(--teal); stroke: #c9ffef; stroke-width: 2; }
.plot-direct text { fill: var(--teal); }
.plot-baseline rect { fill: var(--coral); stroke: #ffc3c9; stroke-width: 2; }
.plot-baseline text { fill: #f1a5ad; }
.plot-direct, .plot-baseline { transition: transform .25s ease; }
.benchmark-readout { padding: clamp(26px, 5vw, 46px); background: #283345; }
.benchmark-readout h3 { margin-top: 11px; font-size: clamp(26px, 3vw, 35px); }
.metric-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 28px; background: #526076; border: 1px solid #526076; }
.metric-comparison div { padding: 15px; background: #1a2331; }
.metric-comparison span, .metric-list dt { display: block; color: #aeb9ca; font: 10px/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.metric-comparison strong { display: block; margin-top: 7px; color: white; font: 700 20px/1 var(--display); }
.metric-comparison div:last-child strong { color: var(--teal); }
.metric-list { margin: 18px 0 0; }
.metric-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #465267; }
.metric-list dd { margin: 0; color: white; font: 13px/1.2 var(--mono); text-align: right; }
.instrument-note { padding: 13px 18px; color: #aeb9ca; background: #141c29; border-top: 1px solid #0c121b; font-size: 12px; }

.schedule-bars { display: grid; gap: 24px; align-content: center; min-height: 360px; padding: clamp(28px, 5vw, 52px); background: #141c29; border-right: 1px solid #0c121b; }
.schedule-row { display: grid; grid-template-columns: 140px minmax(120px, 1fr) 90px; gap: 14px; align-items: center; }
.schedule-row > span { color: #dbe2ed; font: 700 11px/1.2 var(--display); }
.schedule-row > div { height: 22px; background: #303c50; border: 1px solid #526076; box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.schedule-row i { display: block; width: 0; height: 100%; background: var(--teal); border-right: 2px solid #c9ffef; transition: width .28s ease; }
.schedule-row:nth-child(2) i { background: var(--gold); border-right-color: #fff0be; }
.schedule-row:nth-child(3) i { background: var(--coral); border-right-color: #ffc3c9; }
.schedule-row strong { color: white; font: 12px/1 var(--mono); text-align: right; }

.evidence-table-wrap { margin-top: 42px; overflow-x: auto; border: 1px solid var(--keyline); box-shadow: 0 10px 24px rgba(23,32,57,.1); }
.evidence-table { width: 100%; min-width: 780px; border-collapse: collapse; color: var(--ink); background: var(--paper); font-size: 13px; }
.evidence-table caption { padding: 16px 18px; color: white; background: var(--graphite); font: 700 13px/1.2 var(--display); text-align: left; }
.evidence-table th, .evidence-table td { padding: 13px 15px; border-right: 1px solid var(--chrome); border-bottom: 1px solid var(--chrome); text-align: left; }
.evidence-table th:last-child, .evidence-table td:last-child { border-right: 0; }
.evidence-table thead th { color: var(--sapphire); background: var(--pearl); font-family: var(--display); }
.evidence-table tbody th { font-family: var(--display); }
.evidence-table .flow-row { background: #edf8f4; }
.natural-figure { width: min(900px, 100%); margin-left: auto; margin-right: auto; }

.scope { background: var(--paper-cool); }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid var(--chrome); border-bottom: 1px solid var(--chrome); }
.scope-grid p { padding: 22px; border-right: 1px solid var(--chrome); font-size: 15px; }
.scope-grid p:last-child { border-right: 0; }
.scope-grid strong { color: var(--sapphire); font-family: var(--display); }

.live-section { background: var(--paper); }
.live-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 90px); align-items: end; }
.live-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; border: 1px solid var(--keyline); }
.live-facts div { padding: 16px; border-right: 1px solid var(--chrome); }
.live-facts div:last-child { border-right: 0; }
.live-facts dt { color: var(--sapphire); font: 700 10px/1.1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.live-facts dd { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.looks-capture { width: min(880px, 100%); margin-left: auto; margin-right: auto; }

.implementation-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(34px, 7vw, 86px); align-items: center; background: var(--pearl); }
.implementation-copy code { color: var(--sapphire); font-size: .9em; }
.scaling-figure { background: white; border: 1px solid var(--keyline); box-shadow: 0 10px 24px rgba(23,32,57,.12); }

.lineage-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 6vw, 76px); align-items: center; background: var(--pearl); }
.lineage-section figure { margin-top: 0; }

.take { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 90px); align-items: end; color: white; background: var(--graphite-deep); border-bottom: 8px solid var(--sapphire); }
.take > div > p { color: #cbd3df; }
.footer-actions { align-items: flex-start; margin-top: 0; }

@media (max-width: 900px) {
  .hero-grid, .theorem, .evidence-heading, .figure-heading, .live-heading, .lineage-section, .implementation-section, .take { grid-template-columns: 1fr; }
  .hero-object, .state-object { width: min(520px, 100%); }
  .hero-facts, .live-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div:nth-child(2), .live-facts div:nth-child(2) { border-right: 0; }
  .hero-facts div:nth-child(-n+2), .live-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.17); }
  .method-intro, .benchmark-body { grid-template-columns: 1fr; }
  .benchmark-plot { border-right: 0; border-bottom: 1px solid #0c121b; }
  .schedule-bars { border-right: 0; border-bottom: 1px solid #0c121b; }
  .process-strip { grid-template-columns: repeat(3, 1fr); }
  .process-strip div:nth-child(3) { border-right: 0; }
  .process-strip div:nth-child(-n+3) { border-bottom: 1px solid var(--chrome); }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-grid p { border-right: 0; border-bottom: 1px solid var(--chrome); }
  .scope-grid p:last-child { border-bottom: 0; }
  .lineage-section figure { order: -1; }
  .scaling-figure { order: -1; }
}

@media (max-width: 680px) {
  body { background: var(--paper); }
  .decomposition-page { width: 100%; margin: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .hero-grid { padding-top: 48px; }
  .hero-object { grid-template-columns: 1fr auto 1fr auto 1fr; min-height: 230px; padding: 16px; }
  .hero-object span { font-size: 8px; }
  .hero-equals, .hero-plus { font-size: 20px; }
  .two-column-copy { grid-template-columns: 1fr; }
  .trace-map { grid-template-columns: 1fr; }
  .trace-map button { display: flex; align-items: center; gap: 12px; min-height: 45px; text-align: left; border-right: 0; border-bottom: 1px solid #202a39; }
  .trace-map button span { flex: 0 0 21px; margin: 0; text-align: center; }
  .trace-panel { grid-template-columns: 1fr; }
  .trace-glyph { height: 90px; }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip div, .process-strip div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--chrome); }
  .process-strip div:last-child { border-bottom: 0; }
  .scene-selector { grid-template-columns: 1fr 1fr; }
  .size-selector { grid-template-columns: repeat(3, 1fr); }
  .scene-selector button:nth-child(2) { border-right: 0; }
  .scene-selector button:nth-child(-n+2) { border-bottom: 1px solid #242e3d; }
  .benchmark-plot { padding: 10px; }
  .schedule-bars { min-height: 300px; padding: 24px 18px; }
  .schedule-row { grid-template-columns: 110px minmax(80px, 1fr) 78px; gap: 9px; }
  .metric-comparison { grid-template-columns: 1fr; }
  .paper-section p, .method-intro p, .evidence-heading p, .figure-heading p, .implementation-copy p, .live-heading p, .lineage-section > div > p, .take > div > p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .hero, .method-section, .benchmark-instrument, .take { border: 2px solid CanvasText; }
  .primary-action, .trace-map button, .scene-selector button { border: 1px solid ButtonText; }
}
