@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #090c0a;
  --panel: #101511;
  --panel-high: #151c17;
  --line: #354037;
  --line-soft: #252e27;
  --paper: #edf1e9;
  --dim: #9aa69d;
  --amber: #f2b84b;
  --amber-deep: #ae7721;
  --safe: #78d06f;
  --fault: #e7755e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --page: min(1460px, calc(100vw - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; min-height: 44px; padding: 12px 16px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 12px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Opening screen */
.landing-page { height: 100%; overflow: hidden; }
.landing { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; background: #090d0a; }
.landing-scene { position: absolute; z-index: -5; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.74) contrast(1.05); }
.landing-shade { position: absolute; z-index: -4; inset: 0; background: linear-gradient(90deg, rgba(5,8,6,.9) 0%, rgba(5,8,6,.62) 45%, rgba(5,8,6,.36) 72%, rgba(5,8,6,.76) 100%), linear-gradient(0deg, rgba(5,8,6,.92) 0%, transparent 40%, rgba(5,8,6,.5) 100%); }
.landing-grid { position: absolute; z-index: -3; inset: 0; background-image: linear-gradient(rgba(237,241,233,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(237,241,233,.065) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.landing-suntrace { position: absolute; z-index: -2; top: -28vh; left: -12vw; width: 68vw; aspect-ratio: 1; border: 1px solid rgba(242,184,75,.52); border-radius: 50%; box-shadow: 0 0 70px rgba(242,184,75,.12), inset 0 0 70px rgba(242,184,75,.08); animation: sun-scan 5s cubic-bezier(.18,.75,.2,1) both; }
.landing-header { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; min-height: 82px; border-bottom: 1px solid rgba(237,241,233,.26); }
.landing-header-block { display: flex; align-items: center; gap: 26px; min-width: 380px; padding: 0 28px; border-right: 1px solid rgba(237,241,233,.26); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.landing-header-block span + span { color: var(--dim); }
.landing-header-right { justify-content: flex-end; border-right: 0; border-left: 1px solid rgba(237,241,233,.26); }
.landing-verified { display: inline-flex; align-items: center; gap: 9px; color: var(--paper) !important; }
.landing-verified i, .verified-tag i, .gate-status i { width: 8px; height: 8px; background: var(--safe); box-shadow: 0 0 0 4px rgba(120,208,111,.12); }
.landing-side-index { position: absolute; left: 0; top: 82px; bottom: 60px; width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 24px 0; border-right: 1px solid rgba(237,241,233,.26); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); }
.landing-side-index span { writing-mode: vertical-rl; }
.landing-entry { position: absolute; left: clamp(92px, 10vw, 180px); top: 50%; width: min(760px, calc(100vw - 180px)); padding: 26px 30px 30px; color: var(--paper); text-decoration: none; transform: translateY(-48%); border: 1px solid rgba(237,241,233,.4); border-left: 4px solid var(--amber); background: rgba(6,10,7,.72); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.landing-entry:hover { transform: translateY(-48%) translateX(8px); border-color: var(--amber); background: rgba(6,10,7,.9); }
.landing-start { display: block; padding-bottom: 14px; border-bottom: 1px solid rgba(237,241,233,.22); color: var(--amber); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.landing-name { display: flex; align-items: baseline; gap: 15px; margin: 14px 0 0; font-family: var(--display); font-size: clamp(78px, 11vw, 154px); font-weight: 600; line-height: .78; letter-spacing: -.035em; }
.landing-name-qa { color: var(--amber); font-size: .45em; letter-spacing: .02em; }
.landing-entry p { max-width: 500px; margin: 22px 0 26px; color: #cbd2ca; font-size: 16px; }
.landing-open { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-top: 18px; border-top: 1px solid rgba(237,241,233,.22); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.landing-open svg { width: 48px; fill: none; stroke: var(--amber); stroke-width: 1.5; }
.landing-threshold { position: absolute; left: 60px; right: 0; bottom: 60px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; min-height: 102px; padding: 0 28px; border-top: 1px solid rgba(237,241,233,.26); background: rgba(6,10,7,.76); }
.threshold-node { display: grid; min-width: 156px; }
.threshold-node span, .threshold-node small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--dim); }
.threshold-node strong { margin: 3px 0; font-family: var(--display); font-size: 25px; letter-spacing: .04em; }
.threshold-node-diesel strong { color: var(--amber); }
.threshold-line { position: relative; height: 1px; margin: 0 24px; background: var(--line); }
.threshold-line i { position: absolute; top: -3px; width: 7px; height: 7px; background: var(--amber); animation: line-pulse 3s linear infinite; }
.landing-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 88px; border-top: 1px solid rgba(237,241,233,.26); background: #080b09; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--dim); }
.is-entering .landing-entry { border-color: var(--amber); }

/* Evidence page */
.evidence-page { background-image: linear-gradient(rgba(237,241,233,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(237,241,233,.025) 1px, transparent 1px); background-size: 80px 80px; }
.masthead { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: 280px 1fr 180px; min-height: 68px; border-bottom: 1px solid var(--line); background: rgba(9,12,10,.97); }
.wordmark { display: flex; align-items: center; gap: 14px; padding: 0 24px; border-right: 1px solid var(--line); color: var(--paper); font-family: var(--display); font-size: 22px; letter-spacing: .035em; text-decoration: none; }
.wordmark b { color: var(--amber); font-weight: 600; }
.wordmark-index { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--amber); color: var(--amber); font-family: var(--mono); font-size: 10px; }
.masthead-run { display: flex; align-items: center; justify-content: flex-end; gap: 30px; padding: 0 24px; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; color: var(--dim); }
.masthead-run span:last-child { color: var(--safe); }
.masthead-action { display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--amber); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-decoration: none; }
.masthead-action:hover { background: var(--amber); color: var(--ink); }
.hero { width: var(--page); min-height: 690px; margin: 0 auto; display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(340px, 440px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.hero-index, .section-number { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.hero-index { padding: 44px 20px; border-right: 1px solid var(--line); writing-mode: vertical-rl; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(52px, 7vw, 110px); }
.eyebrow { margin: 0 0 16px; color: var(--amber); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 600; line-height: .96; letter-spacing: -.018em; text-transform: uppercase; }
h1 { max-width: 870px; font-size: clamp(54px, 6.7vw, 104px); }
h2 { font-size: clamp(40px, 4.2vw, 66px); }
.hero-lede { max-width: 760px; margin: 28px 0 0; color: #c3cbc4; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-decoration: none; cursor: pointer; }
.button-primary { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.button-primary:hover { background: #ffd06e; }
.button-secondary:hover { border-color: var(--paper); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.result-board { align-self: center; margin-right: clamp(24px, 4vw, 62px); border: 1px solid var(--line); border-top: 3px solid var(--amber); background: var(--panel); }
.result-board-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }
.verified-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--safe); }
.result-board > strong { display: block; padding: 24px 18px 0; color: var(--amber); font-family: var(--display); font-size: clamp(72px, 7vw, 116px); line-height: .9; }
.result-board > p { margin: 8px 18px 24px; color: #c5cdc6; }
.result-board dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-board dl div { padding: 16px 12px; border-right: 1px solid var(--line); }
.result-board dl div:last-child { border-right: 0; }
.result-board dt { color: var(--dim); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.result-board dd { margin: 5px 0 0; font-family: var(--display); font-size: 22px; }
.result-board small { display: block; padding: 14px 18px; color: var(--dim); font-size: 11px; }
.run-strip { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); border: 1px solid var(--line); background: var(--panel); }
.run-strip > * { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); }
.run-strip > *:last-child { border-right: 0; }
.strip-title span, .run-strip article > span { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.strip-title h2 { margin-top: 22px; font-size: 38px; }
.run-strip article strong { display: block; margin: 24px 0 8px; color: var(--paper); font-family: var(--display); font-size: clamp(46px, 4vw, 68px); line-height: .9; }
.run-strip article:first-of-type strong { color: var(--amber); }
.run-strip article p { margin: 0; color: var(--dim); font-size: 12px; }
.replay-section, .architecture, .evidence-section, .simulink-gate, .scope { width: var(--page); margin: 0 auto; padding: 100px 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 92px minmax(0, 1.5fr) minmax(280px, .75fr); gap: 0; align-items: end; margin-bottom: 44px; }
.section-number { height: 100%; padding: 5px 20px; border-right: 1px solid var(--line); writing-mode: vertical-rl; }
.section-intro > div:nth-child(2) { padding: 0 clamp(28px, 5vw, 74px); }
.section-intro > p { max-width: 480px; margin: 0; padding: 0 clamp(24px, 4vw, 54px); color: var(--dim); font-size: 14px; }
.evidence-error { margin: 0 6%; padding: 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--fault); background: rgba(231,117,94,.08); }
.evidence-error[hidden] { display: none; }
.evidence-error div { display: grid; gap: 4px; }
.evidence-error span { color: var(--dim); font-size: 12px; }
.replay-shell { margin: 0 clamp(20px, 6vw, 92px); border: 1px solid var(--line); background: var(--panel); }
.plot-head { display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.plot-head > div:first-child { display: grid; gap: 5px; }
.plot-head .mono { color: var(--amber); font-size: 10px; }
.plot-head strong { font-family: var(--display); font-size: 20px; letter-spacing: .035em; }
.legend { display: flex; gap: 20px; font-family: var(--mono); font-size: 9px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 2px; display: inline-block; }
.legend-pv { background: var(--amber); }
.legend-load { background: var(--paper); }
.legend-gen { background: var(--safe); }
.plot-wrap { height: 390px; padding: 28px 20px 12px; border-bottom: 1px solid var(--line); }
#power-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { fill: none; stroke: #2b352d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.plot-pv { stroke: var(--amber); }
.plot-load { stroke: var(--paper); }
.generator-band rect { fill: var(--safe); opacity: .64; }
.chart-cursor { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-labels { fill: var(--dim); font-family: var(--mono); font-size: 10px; }
.timeline-controls { display: grid; grid-template-columns: 160px 1fr 110px; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); }
.play-button { align-self: stretch; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border: 0; border-right: 1px solid var(--line); background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 10px; cursor: pointer; }
.play-button svg { width: 19px; fill: currentColor; }
.timeline-label { padding: 0 26px; }
input[type="range"] { width: 100%; accent-color: var(--amber); cursor: pointer; }
#step-time { padding: 0 20px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 11px; text-align: center; }
.step-readout { display: grid; grid-template-columns: repeat(5, 1fr); }
.step-readout article { min-width: 0; min-height: 126px; padding: 20px; border-right: 1px solid var(--line); }
.step-readout article:last-child { border-right: 0; }
.step-readout span { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.step-readout strong { display: block; margin: 12px 0 5px; overflow-wrap: anywhere; font-family: var(--display); font-size: 27px; line-height: 1; text-transform: uppercase; }
.step-readout small { color: var(--dim); font-size: 10px; }
.sensor-warning { color: var(--fault) !important; }
.case-ledger { margin: 16px clamp(20px, 6vw, 92px) 0; border: 1px solid var(--line); background: var(--panel); }
.case-ledger summary { min-height: 58px; padding: 18px 20px; cursor: pointer; font-family: var(--mono); font-size: 10px; list-style-position: inside; }
.case-ledger summary span { float: right; color: var(--dim); font-family: var(--body); font-size: 11px; }
.case-bars { display: grid; gap: 12px; padding: 22px; border-top: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(200px, 3fr) 82px; gap: 18px; align-items: center; font-family: var(--mono); font-size: 9px; }
.case-track { position: relative; display: block; height: 18px; }
.case-track i { position: absolute; left: 0; height: 6px; }
.case-baseline { top: 1px; background: #636e65; }
.case-advanced { bottom: 1px; background: var(--amber); }
.case-delta { text-align: right; }
.case-delta.positive { color: var(--safe); }
.case-delta.negative { color: var(--fault); }
.signal-chain { margin: 0 clamp(20px, 6vw, 92px); padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border: 1px solid var(--line); background: var(--panel); }
.signal-chain li { min-height: 230px; padding: 22px; border-right: 1px solid var(--line); }
.signal-chain li:last-child { border-right: 0; }
.signal-chain li > span { color: var(--dim); font-family: var(--mono); font-size: 9px; }
.signal-chain strong { display: block; margin-top: 56px; font-family: var(--display); font-size: 28px; letter-spacing: .04em; }
.signal-chain p { color: var(--dim); font-size: 12px; }
.signal-chain .governor-node { border-top: 3px solid var(--amber); background: rgba(242,184,75,.055); }
.signal-chain .governor-node strong { color: var(--amber); }
.boundary-note { margin: 16px clamp(20px, 6vw, 92px) 0; display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); }
.boundary-note span { padding: 22px; border-right: 1px solid var(--line); color: var(--safe); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.boundary-note p { margin: 0; padding: 20px 24px; color: var(--dim); font-size: 13px; }
.receipt-grid { margin: 0 clamp(20px, 6vw, 92px); display: grid; grid-template-columns: .85fr 1.4fr; border: 1px solid var(--line); background: var(--panel); }
.receipt-summary { padding: 30px; border-right: 1px solid var(--line); }
.receipt-mark { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 42px; border: 1px solid var(--safe); color: var(--safe); font-family: var(--mono); font-size: 12px; }
.receipt-summary .mono { color: var(--amber); font-size: 10px; }
.receipt-summary strong { font-family: var(--display); font-size: 32px; }
.receipt-summary > p:last-child { color: var(--dim); font-size: 12px; }
.hash-ledger { margin: 0; }
.hash-ledger div { display: grid; grid-template-columns: 190px 1fr; min-height: 70px; border-bottom: 1px solid var(--line); }
.hash-ledger div:last-child { border-bottom: 0; }
.hash-ledger dt, .hash-ledger dd { display: flex; align-items: center; margin: 0; padding: 0 20px; font-family: var(--mono); font-size: 9px; }
.hash-ledger dt { border-right: 1px solid var(--line); color: var(--dim); }
.hash-ledger dd { overflow-wrap: anywhere; color: #d9dfd9; }
.simulink-gate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 42px; padding-left: clamp(28px, 7vw, 106px); padding-right: clamp(28px, 7vw, 106px); background: #0d140e; }
.gate-status { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid #315334; background: rgba(120,208,111,.05); color: var(--safe); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }
.gate-copy { padding-top: 32px; }
.gate-copy .section-number { height: auto; margin-bottom: 45px; padding: 0; border: 0; writing-mode: initial; }
.gate-copy > p:last-child { max-width: 690px; color: var(--dim); }
.gate-facts { grid-column: 1; display: grid; grid-template-columns: 1.4fr 1.2fr .7fr .7fr; border: 1px solid var(--line); }
.gate-facts div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.gate-facts div:last-child { border-right: 0; }
.gate-facts span { color: var(--dim); font-family: var(--mono); font-size: 8px; }
.gate-facts strong { display: block; margin-top: 8px; font-family: var(--display); font-size: 18px; white-space: nowrap; }
.simulink-console { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; margin-top: 32px; border: 1px solid #315334; background: var(--panel); }
.console-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 9px; }
.console-state { color: var(--safe); font-family: var(--mono); text-transform: uppercase; }
.simulink-console > strong { display: block; padding: 24px 22px 0; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.simulink-console > p { margin: 10px 22px 20px; color: var(--dim); font-size: 12px; }
.simulink-console > code { display: block; margin: 0 22px 20px; padding: 12px; overflow-x: auto; background: #080b09; color: var(--amber); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.console-actions { display: flex; gap: 8px; padding: 0 22px 22px; }
.proof-readout { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.proof-readout div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-readout div:nth-child(2n) { border-right: 0; }
.proof-readout div:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
.proof-readout dt { color: var(--dim); font-family: var(--mono); font-size: 8px; }
.proof-readout dd { margin: 6px 0 0; overflow-wrap: anywhere; font-family: var(--display); font-size: 20px; }
.simulink-console[data-state="failed"], .simulink-console[data-state="runtime-missing"] { border-color: var(--fault); }
.scope { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 0; align-items: start; }
.scope > div:nth-child(2) { padding: 0 clamp(28px, 5vw, 74px); }
.scope > p { margin: 26px clamp(28px, 5vw, 74px) 0 0; color: var(--dim); font-size: 14px; }
footer:not(.landing-foot) { width: var(--page); min-height: 130px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.wordmark-small { min-height: 44px; padding-left: 24px; border: 0; }
footer:not(.landing-foot) .mono { padding-right: 24px; font-size: 9px; }

/* System page */
.system-page { background-image: linear-gradient(rgba(237,241,233,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(237,241,233,.025) 1px, transparent 1px); background-size: 80px 80px; }
.system-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--dim); text-decoration: none; }
.system-nav a:hover { color: var(--paper); }
.system-nav span[aria-current="page"] { color: var(--amber); }
.system-hero { width: var(--page); min-height: 620px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 96px clamp(30px, 7vw, 108px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-hero h1 { max-width: 880px; font-size: clamp(66px, 7vw, 112px); }
.system-lede { max-width: 720px; margin: 26px 0 30px; color: #c5cdc6; font-size: 18px; line-height: 1.65; }
.system-boundary { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-top: 3px solid var(--amber); background: var(--panel); }
.system-boundary > span { color: var(--amber); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.system-boundary strong { margin: 40px 0 16px; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; text-transform: uppercase; }
.system-boundary p { margin: 0; color: var(--dim); font-size: 13px; }
.system-section { width: var(--page); margin: 0 auto; padding: 96px clamp(24px, 6vw, 92px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.simple-heading { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 42px; }
.simple-heading > span { min-height: 54px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--amber); font-family: var(--mono); font-size: 10px; }
.simple-heading h2 { max-width: 900px; font-size: clamp(48px, 5vw, 76px); }
.simple-heading .eyebrow { margin-bottom: 10px; }
.section-lede { max-width: 760px; margin: -14px 0 42px 78px; color: var(--dim); font-size: 15px; line-height: 1.7; }
.system-loop { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border: 1px solid var(--line); background: var(--panel); }
.system-loop li { min-width: 0; min-height: 220px; padding: 22px; border-right: 1px solid var(--line); }
.system-loop li:last-child { border-right: 0; }
.system-loop li > span { color: var(--dim); font-family: var(--mono); font-size: 9px; }
.system-loop strong { display: block; margin-top: 48px; font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1; text-transform: uppercase; }
.system-loop p { color: var(--dim); font-size: 12px; }
.system-loop-safety { border-top: 3px solid var(--amber); background: rgba(242,184,75,.05); }
.system-loop-safety strong { color: var(--amber); }
.site-layout { margin-top: 18px; border: 1px solid var(--line); background: #0c110d; }
.site-assets { display: grid; grid-template-columns: repeat(4, 1fr); }
.site-assets article { min-height: 140px; padding: 20px; border-right: 1px solid var(--line); }
.site-assets article:last-child { border-right: 0; }
.site-assets span { color: var(--amber); font-family: var(--mono); font-size: 9px; }
.site-assets strong { display: block; margin: 24px 0 5px; font-family: var(--display); font-size: 22px; font-weight: 600; text-transform: uppercase; }
.site-assets small { color: var(--dim); }
.site-data-line { min-height: 66px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 18px; align-items: center; padding: 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; }
.site-data-line i { height: 1px; background: var(--line); }
.site-data-line strong { color: var(--amber); font-size: 10px; }
.site-control { min-height: 100px; display: grid; grid-template-columns: minmax(240px, .7fr) 1fr; align-items: center; }
.site-control strong { height: 100%; display: flex; align-items: center; padding: 20px 24px; border-right: 1px solid var(--line); font-family: var(--display); font-size: 24px; font-weight: 600; text-transform: uppercase; }
.site-control p { margin: 0; padding: 20px 24px; color: var(--dim); font-size: 13px; }
.source-note { margin: 18px 0 0; color: var(--dim); font-size: 11px; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.source-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); color: var(--paper); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-decoration: none; }
.source-links a:hover { border-color: var(--amber); color: var(--amber); }
.memory-section { background: #0b100c; }
.memory-origin { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); margin-bottom: 18px; border: 1px solid var(--line); background: #0c100d; }
.memory-origin > div { padding: 28px; border-right: 1px solid var(--line); }
.memory-origin > div > span { color: var(--amber); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.memory-origin h3 { max-width: 620px; margin: 20px 0 0; font-family: var(--display); font-size: clamp(31px, 3vw, 44px); font-weight: 600; line-height: 1; text-transform: uppercase; }
.memory-origin p { max-width: 650px; margin: 14px 0 0; color: var(--paper); font-size: 13px; line-height: 1.6; }
.memory-origin small { display: block; max-width: 650px; margin-top: 26px; color: var(--dim); font-family: var(--mono); font-size: 8px; line-height: 1.6; text-transform: uppercase; }
.memory-origin dl { margin: 0; }
.memory-origin dl div { display: grid; grid-template-columns: 100px 1fr; gap: 22px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.memory-origin dl div:last-child { border-bottom: 0; }
.memory-origin dt { color: var(--safe); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.memory-origin dd { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.6; }
.memory-current { display: grid; grid-template-columns: 1.15fr .85fr; margin-bottom: 18px; border: 1px solid #315334; background: rgba(120,208,111,.035); }
.memory-current > div { padding: 26px; border-right: 1px solid #315334; }
.memory-current span { color: var(--safe); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.memory-current strong { display: block; margin-top: 28px; font-family: var(--display); font-size: 31px; font-weight: 600; text-transform: uppercase; }
.memory-current p { max-width: 720px; margin: 9px 0 0; color: var(--dim); font-size: 12px; }
.memory-current dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.memory-current dl div { min-width: 0; padding: 22px 16px; border-right: 1px solid #315334; }
.memory-current dl div:last-child { border-right: 0; }
.memory-current dt { color: var(--dim); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.memory-current dd { margin: 10px 0 0; font-family: var(--display); font-size: 21px; text-transform: uppercase; }
.memory-roundtrip { margin-bottom: 18px; border: 1px solid var(--line); background: #0c100d; }
.memory-roundtrip > div { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.memory-roundtrip > div span { color: var(--amber); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.memory-roundtrip h3 { margin: 14px 0 0; font-family: var(--display); font-size: 28px; font-weight: 600; text-transform: uppercase; }
.memory-roundtrip > div p { max-width: 760px; margin: 8px 0 0; color: var(--dim); font-size: 12px; }
.memory-roundtrip ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.memory-roundtrip li { min-width: 0; padding: 20px 24px; border-right: 1px solid var(--line); }
.memory-roundtrip li:last-child { border-right: 0; }
.memory-roundtrip li span, .memory-roundtrip li small { display: block; color: var(--dim); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.memory-roundtrip li strong { display: block; margin: 12px 0 6px; color: var(--safe); font-family: var(--display); font-size: 22px; font-weight: 600; text-transform: uppercase; }
.memory-roundtrip .memory-effect { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.memory-error { margin-bottom: 18px; padding: 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--fault); background: rgba(231,117,94,.08); }
.memory-error[hidden] { display: none; }
.memory-error div { display: grid; gap: 4px; }
.memory-error span { color: var(--dim); font-size: 12px; }
.memory-browser { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr); border: 1px solid var(--line); background: var(--panel); }
.memory-list { border-right: 1px solid var(--line); }
.memory-list-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.memory-list-head span { font-family: var(--mono); font-size: 9px; color: var(--dim); }
.memory-list-head small { color: var(--dim); }
#memory-records { display: grid; }
#memory-records > [role="listitem"] { border-bottom: 1px solid var(--line); }
#memory-records > [role="listitem"]:last-child { border-bottom: 0; }
#memory-records button { width: 100%; min-height: 98px; display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; align-items: center; padding: 16px 18px; border: 0; background: transparent; color: var(--paper); text-align: left; cursor: pointer; }
#memory-records button:hover, #memory-records button[aria-pressed="true"] { background: rgba(242,184,75,.06); }
#memory-records button[aria-pressed="true"] { box-shadow: inset 3px 0 var(--amber); }
#memory-records button span { grid-row: 1 / span 2; color: var(--amber); font-family: var(--mono); font-size: 9px; }
#memory-records button strong { font-size: 13px; font-weight: 400; }
#memory-records button small { color: var(--dim); text-transform: capitalize; }
.memory-detail { padding: clamp(28px, 5vw, 64px); }
.memory-detail time { color: var(--amber); font-family: var(--mono); font-size: 10px; }
.memory-place { margin: 9px 0 42px; color: var(--dim); font-size: 11px; text-transform: uppercase; }
.memory-detail h3 { max-width: 780px; margin: 0 0 46px; font-family: var(--display); font-size: clamp(36px, 4vw, 58px); font-weight: 600; line-height: 1.04; text-transform: uppercase; }
.memory-detail dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.memory-detail dl div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.memory-detail dl div:nth-child(2n) { border-right: 0; }
.memory-detail dl div:nth-last-child(-n+2) { border-bottom: 0; }
.memory-detail dt { color: var(--dim); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.memory-detail dd { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 12px; text-transform: capitalize; }
.memory-rules { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--line); }
.memory-rules article { padding: 24px; }
.memory-rules article + article { border-left: 1px solid var(--line); }
.memory-rules span { color: var(--safe); font-family: var(--mono); font-size: 9px; }
.memory-rules ul { margin: 22px 0 0; padding-left: 18px; color: var(--dim); }
.memory-rules li { margin: 8px 0; }
.memory-rules .memory-cannot span { color: var(--fault); }
.memory-value { margin-top: 18px; border: 1px solid var(--line); background: #0c100d; }
.memory-value > header { padding: 28px; border-bottom: 1px solid var(--line); }
.memory-value > header span, .memory-value-grid span, .memory-portability span { color: var(--amber); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.memory-value > header h3 { max-width: 760px; margin: 18px 0 0; font-family: var(--display); font-size: clamp(34px, 4vw, 54px); font-weight: 600; line-height: 1; text-transform: uppercase; }
.memory-value > header p { max-width: 760px; margin: 12px 0 0; color: var(--dim); font-size: 13px; line-height: 1.6; }
.memory-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.memory-value-grid article { min-width: 0; min-height: 250px; padding: 24px; border-right: 1px solid var(--line); }
.memory-value-grid article:last-child { border-right: 0; }
.memory-value-grid strong { display: block; margin-top: 42px; font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1; text-transform: uppercase; }
.memory-value-grid p { color: var(--dim); font-size: 12px; line-height: 1.6; }
.memory-value-grid small { display: block; margin-top: 22px; color: var(--paper); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.memory-portability { display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; border-top: 1px solid var(--amber); }
.memory-portability > div, .memory-portability > p { padding: 24px; }
.memory-portability > div { border-right: 1px solid var(--line); }
.memory-portability strong { display: block; margin-top: 18px; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; text-transform: uppercase; }
.memory-portability p { margin: 0; align-self: center; color: var(--dim); font-size: 13px; line-height: 1.6; }
.memory-future-note { margin: 0; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }
.after-day ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border: 1px solid var(--line); }
.after-day li { min-height: 150px; padding: 22px; border-right: 1px solid var(--line); }
.after-day li:last-child { border-right: 0; }
.after-day li span { color: var(--amber); font-family: var(--mono); font-size: 9px; }
.after-day li p { margin-top: 38px; color: var(--dim); font-size: 12px; }
.system-result-link { min-height: 110px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid var(--amber); color: var(--paper); text-decoration: none; }
.system-result-link span { color: var(--amber); font-family: var(--mono); font-size: 9px; }
.system-result-link strong { font-family: var(--display); font-size: 28px; font-weight: 600; text-align: right; text-transform: uppercase; }

@keyframes sun-scan { from { transform: translate(-30%, -20%) scale(.6); opacity: 0; } to { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes line-pulse { from { left: 0; opacity: 0; } 10%, 90% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }

@media (max-width: 1050px) {
  :root { --page: calc(100vw - 32px); }
  .hero { grid-template-columns: 60px 1fr; }
  .result-board { grid-column: 2; margin: 0 32px 60px; }
  .hero-copy { padding: 70px 46px; }
  .run-strip { grid-template-columns: repeat(3, 1fr); }
  .strip-title { grid-column: 1 / -1; min-height: auto; border-bottom: 1px solid var(--line); }
  .run-strip > * { min-height: 170px; }
  .section-intro { grid-template-columns: 60px 1fr; }
  .section-intro > p { grid-column: 2; margin-top: 24px; }
  .signal-chain { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .simulink-gate { grid-template-columns: 1fr; }
  .gate-facts { grid-column: 1; }
  .simulink-console { grid-column: 1; grid-row: auto; margin-top: 0; }
  .scope { grid-template-columns: 60px 1fr; }
  .scope > p { grid-column: 2; margin-left: clamp(28px, 5vw, 74px); }
  footer:not(.landing-foot) { grid-template-columns: 220px 1fr; }
  footer:not(.landing-foot) .mono { grid-column: 2; }
  .system-hero { grid-template-columns: 1fr; }
  .system-boundary { min-height: 280px; }
  .system-loop { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; }
  .memory-current { grid-template-columns: 1fr; }
  .memory-origin { grid-template-columns: 1fr; }
  .memory-origin > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-current > div { border-right: 0; border-bottom: 1px solid #315334; }
  .memory-roundtrip ol { grid-template-columns: 1fr; }
  .memory-roundtrip li { border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-roundtrip li:last-child { border-bottom: 0; }
  .memory-value-grid { grid-template-columns: 1fr; }
  .memory-value-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-value-grid article:last-child { border-bottom: 0; }
  .memory-value-grid strong { margin-top: 24px; }
  .after-day ol { grid-template-columns: 1fr 1fr; }
  .after-day li:nth-child(2) { border-right: 0; }
  .after-day li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --page: 100%; }
  .landing-header { min-height: 68px; }
  .landing-header-block { min-width: 0; padding: 0 16px; gap: 0; }
  .landing-header-block span + span { display: none; }
  .landing-side-index { display: none; }
  .landing-entry { left: 16px; right: 16px; top: 47%; width: auto; padding: 20px; }
  .landing-name { font-size: clamp(66px, 22vw, 96px); }
  .landing-entry p { font-size: 14px; }
  .landing-threshold { left: 0; bottom: 48px; grid-template-columns: repeat(3, 1fr); min-height: 94px; padding: 0 16px; }
  .threshold-line { display: none; }
  .threshold-node { min-width: 0; }
  .threshold-node:nth-of-type(3) { text-align: center; }
  .threshold-node:last-child { text-align: right; }
  .threshold-node span { display: none; }
  .threshold-node strong { font-size: 19px; }
  .threshold-node small { font-size: 7px; }
  .landing-foot { height: 48px; padding: 0 16px; }
  .landing-foot p:last-child { display: none; }
  .masthead { grid-template-columns: 1fr auto; min-height: 60px; }
  .wordmark { padding: 0 14px; border-right: 0; font-size: 19px; }
  .wordmark-index { width: 32px; height: 32px; }
  .masthead-run { display: none; }
  .masthead-action { min-width: 112px; padding: 0 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-index { height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); writing-mode: initial; }
  .hero-copy { padding: 56px 20px 40px; }
  h1 { font-size: clamp(52px, 15vw, 72px); }
  h2 { font-size: clamp(39px, 12vw, 56px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { display: grid; }
  .result-board { grid-column: 1; margin: 0 16px 32px; }
  .result-board dl { grid-template-columns: 1fr; }
  .result-board dl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-board dl div:last-child { border-bottom: 0; }
  .run-strip { grid-template-columns: 1fr; }
  .run-strip > * { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .run-strip > *:last-child { border-bottom: 0; }
  .strip-title h2 { font-size: 38px; }
  .replay-section, .architecture, .evidence-section, .simulink-gate, .scope { padding-top: 72px; padding-bottom: 72px; }
  .section-intro { grid-template-columns: 1fr; }
  .section-number { height: auto; padding: 0 20px 18px; border: 0; writing-mode: initial; }
  .section-intro > div:nth-child(2) { padding: 0 20px; }
  .section-intro > p { grid-column: 1; padding: 0 20px; }
  .replay-shell, .case-ledger, .signal-chain, .boundary-note, .receipt-grid { margin-left: 12px; margin-right: 12px; }
  .plot-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .legend { gap: 12px; }
  .plot-wrap { height: 270px; padding-left: 4px; padding-right: 4px; }
  .timeline-controls { grid-template-columns: 128px 1fr; }
  #step-time { grid-column: 1 / -1; min-height: 48px; display: grid; place-items: center; border-top: 1px solid var(--line); border-left: 0; }
  .timeline-label { padding: 0 14px; }
  .step-readout { grid-template-columns: 1fr 1fr; }
  .step-readout article { min-height: 110px; border-bottom: 1px solid var(--line); }
  .step-readout article:nth-child(2n) { border-right: 0; }
  .step-readout article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .case-ledger summary span { display: block; float: none; margin: 8px 0 0 18px; }
  .case-row { grid-template-columns: 1fr 62px; gap: 8px; }
  .case-track { grid-column: 1 / -1; grid-row: 2; }
  .case-delta { grid-column: 2; grid-row: 1; }
  .signal-chain { grid-template-columns: 1fr; overflow: visible; }
  .signal-chain li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-chain strong { margin-top: 22px; }
  .boundary-note { grid-template-columns: 1fr; }
  .boundary-note span { border-right: 0; border-bottom: 1px solid var(--line); }
  .hash-ledger div { grid-template-columns: 1fr; }
  .hash-ledger dt { min-height: 40px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hash-ledger dd { min-height: 52px; }
  .simulink-gate { padding-left: 12px; padding-right: 12px; }
  .gate-copy { padding-top: 30px; }
  .gate-copy .section-number { padding-left: 0; }
  .gate-facts { grid-template-columns: 1fr 1fr; }
  .gate-facts strong { overflow-wrap: anywhere; white-space: normal; }
  .gate-facts div:nth-child(2) { border-right: 0; }
  .gate-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .console-actions { flex-direction: column; }
  .scope { grid-template-columns: 1fr; }
  .scope > div:nth-child(2), .scope > p { grid-column: 1; padding: 0 20px; margin-left: 0; margin-right: 0; }
  footer:not(.landing-foot) { grid-template-columns: 1fr; gap: 12px; padding: 28px 20px; }
  footer:not(.landing-foot) .wordmark, footer:not(.landing-foot) .mono { grid-column: 1; padding: 0; }
  .system-nav { display: none; }
  .system-page .masthead { grid-template-columns: 1fr auto; }
  .system-page .system-nav { display: flex; gap: 0; padding: 0 16px; border-left: 1px solid var(--line); }
  .system-page .system-nav span { display: none; }
  .system-page .masthead-action { display: none; }
  .system-hero { min-height: 0; padding: 70px 20px 36px; }
  .system-hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .system-lede { font-size: 15px; }
  .system-boundary { min-height: 250px; }
  .system-section { padding: 72px 12px; }
  .simple-heading { grid-template-columns: 44px 1fr; gap: 14px; margin: 0 8px 34px; }
  .simple-heading > span { min-height: 44px; }
  .simple-heading h2 { font-size: clamp(39px, 12vw, 56px); }
  .section-lede { margin: -10px 8px 32px 66px; font-size: 13px; }
  .system-loop { grid-template-columns: 1fr; overflow: visible; }
  .system-loop li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .system-loop li:last-child { border-bottom: 0; }
  .system-loop strong { margin-top: 22px; }
  .site-assets { grid-template-columns: 1fr 1fr; }
  .site-assets article:nth-child(2n) { border-right: 0; }
  .site-assets article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-data-line { grid-template-columns: 1fr; gap: 6px; padding: 18px; text-align: center; }
  .site-data-line i { width: 1px; height: 18px; margin: 0 auto; }
  .site-control { grid-template-columns: 1fr; }
  .site-control strong { min-height: 80px; border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-current dl { grid-template-columns: 1fr; }
  .memory-origin > div { padding: 24px 18px; }
  .memory-origin dl div { grid-template-columns: 76px 1fr; gap: 14px; padding: 20px 18px; }
  .memory-current dl div { border-right: 0; border-bottom: 1px solid #315334; }
  .memory-current dl div:last-child { border-bottom: 0; }
  .memory-browser { grid-template-columns: 1fr; }
  .memory-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-detail { padding: 30px 18px; }
  .memory-detail dl { grid-template-columns: 1fr; }
  .memory-detail dl div { border-right: 0; }
  .memory-detail dl div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .memory-detail dl div:last-child { border-bottom: 0; }
  .memory-rules { grid-template-columns: 1fr; }
  .memory-rules article + article { border-left: 0; border-top: 1px solid var(--line); }
  .memory-value > header { padding: 24px 18px; }
  .memory-value-grid article { padding: 22px 18px; }
  .memory-portability { grid-template-columns: 1fr; }
  .memory-portability > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-portability > div, .memory-portability > p { padding: 22px 18px; }
  .after-day ol { grid-template-columns: 1fr; }
  .after-day li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .after-day li:last-child { border-bottom: 0; }
  .after-day li p { margin-top: 20px; }
  .system-result-link { align-items: flex-start; flex-direction: column; }
  .system-result-link strong { text-align: left; }
}

@media (max-width: 370px) {
  .landing-entry { top: 44%; }
  .landing-name { font-size: 64px; }
  .landing-entry p { margin: 14px 0; }
  .landing-threshold { min-height: 82px; }
  .threshold-node strong { font-size: 16px; }
  .hero-copy { padding-top: 46px; }
  .result-board > strong { font-size: 74px; }
}

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