:root {
  --paper: #f3efe4;
  --paper-deep: #e8e0d1;
  --ink: #0b1f33;
  --ink-2: #294053;
  --muted: #66727b;
  --orange: #e55b23;
  --cyan: #00a9b7;
  --line: rgba(11, 31, 51, .21);
  --hairline: rgba(11, 31, 51, .11);
  --white: #fffdf7;
  --serif: "Noto Serif KR", "Batang", "Iowan Old Style", Georgia, serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", "D2Coding", "Cascadia Mono", monospace;
  --rail: 230px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(11,31,51,.026) 1px, transparent 1px),
    radial-gradient(circle at 82% 11%, rgba(0,169,183,.06), transparent 25rem),
    var(--paper);
  background-size: 100% 28px, auto, auto;
  font-family: var(--sans);
  line-height: 1.72;
  word-break: keep-all;
}

a { color: inherit; }
button, summary { font: inherit; }
code, .mono { font-family: var(--mono); }
::selection { background: var(--orange); color: var(--white); }

.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .65rem 1rem; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { background: var(--ink); color: var(--white); }
.masthead__rule { height: 5px; background: linear-gradient(90deg, var(--orange) 0 22%, var(--cyan) 22% 38%, transparent 38%); }
.masthead__inner { max-width: calc(var(--rail) + var(--content) + 5rem); margin: auto; padding: 1.15rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: 1.2rem; }
.wordmark__issue { color: var(--cyan); font: 600 .67rem/1 var(--mono); letter-spacing: .13em; }
.wordmark__title { font: 700 .82rem/1 var(--sans); letter-spacing: .09em; }
.release-note { margin: 0; text-align: right; font: 700 .6rem/1.4 var(--mono); letter-spacing: .12em; }
.release-note span { color: #a9bac5; font-weight: 400; }

.shell { max-width: calc(var(--rail) + var(--content) + 5rem); margin: auto; display: grid; grid-template-columns: var(--rail) minmax(0, var(--content)); gap: 4rem; padding: 0 2rem; }
.chapter-rail { align-self: start; position: sticky; top: 0; height: 100vh; padding: 4.5rem 0 2rem; border-right: 1px solid var(--line); }
.rail-label { margin: 0 0 1.3rem; color: var(--muted); font: 600 .65rem/1 var(--mono); letter-spacing: .16em; }
.chapter-rail ol { margin: 0; padding: 0 2.2rem 0 0; list-style: none; }
.chapter-rail li { border-top: 1px solid var(--hairline); }
.chapter-rail li:last-child { border-bottom: 1px solid var(--hairline); }
.chapter-rail a { display: flex; gap: .8rem; padding: .8rem .2rem; color: var(--muted); text-decoration: none; font-size: .79rem; transition: color .2s, padding-left .2s; }
.chapter-rail a span { font-family: var(--mono); font-size: .68rem; }
.chapter-rail a:hover, .chapter-rail a[aria-current="true"] { color: var(--orange); padding-left: .35rem; }
.chapter-rail a[aria-current="true"] { font-weight: 800; }
.rail-status { margin-top: 2rem; color: var(--muted); font: .63rem/1.65 var(--mono); letter-spacing: .04em; }
.rail-status i { display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,169,183,.1); }
.mobile-nav { display: none; }
main { min-width: 0; }

.hero { padding: 6rem 0 5.5rem; border-bottom: 2px solid var(--ink); }
.hero__kicker { display: flex; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid var(--ink); color: var(--muted); font: 600 .65rem/1 var(--mono); letter-spacing: .1em; }
.hero h1 { margin: 3.8rem 0 2rem; max-width: 850px; font: 900 clamp(4.4rem, 8.6vw, 8.7rem)/.86 var(--serif); letter-spacing: -.07em; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero__deck { max-width: 850px; margin: 0; font: 500 clamp(1.25rem, 2.2vw, 1.8rem)/1.55 var(--serif); }
.hero__deck em { color: var(--orange); font-style: normal; }
.audit-stamp { display: grid; grid-template-columns: repeat(3, 1fr); margin: 3.5rem 0 2rem; border: 1px solid var(--ink); background: rgba(255,255,255,.2); }
.audit-stamp div { padding: 1rem 1.2rem; border-right: 1px solid var(--ink); }
.audit-stamp div:last-child { border: 0; }
.audit-stamp span { display: block; margin-bottom: .25rem; color: var(--muted); font: 600 .58rem/1 var(--mono); letter-spacing: .12em; }
.audit-stamp strong { font-size: .78rem; }
.hero__thesis { margin: 0; padding: 1.5rem 1.6rem; border-left: 5px solid var(--orange); background: var(--ink); color: #dce4e8; font-size: 1rem; }
.hero__thesis > span { display: block; margin-bottom: .4rem; color: var(--orange); font: 700 .62rem/1 var(--mono); letter-spacing: .13em; }
.hero__thesis strong { color: white; }

.report-section { padding: 6rem 0; border-bottom: 1px solid var(--ink); }
.section-head { margin-bottom: 3rem; }
.section-head > p { margin: 0 0 1rem; color: var(--orange); font: 700 .66rem/1 var(--mono); letter-spacing: .13em; }
.section-head > p span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .8rem; border: 1px solid var(--orange); border-radius: 50%; }
.section-head h2 { max-width: 800px; margin: 0; font: 700 clamp(2rem, 4.1vw, 3.9rem)/1.13 var(--serif); letter-spacing: -.04em; }
.section-head h2 em { color: var(--cyan); font-style: normal; }
.eyebrow { color: var(--orange); font: 700 .62rem/1.3 var(--mono); letter-spacing: .13em; }

.metric-ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.metric-ledger article { min-height: 150px; padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-ledger article:nth-child(3n) { border-right: 0; }
.metric-ledger article:nth-child(n+4) { border-bottom: 0; }
.metric-ledger p { margin: 0; color: var(--muted); font: 700 .62rem/1 var(--mono); letter-spacing: .12em; }
.metric-ledger strong { display: block; margin: .65rem 0 .3rem; font: 700 clamp(2rem, 4vw, 3.35rem)/1 var(--mono); letter-spacing: -.07em; }
.metric-ledger span { color: var(--muted); font: .67rem/1.4 var(--mono); }
.metric-ledger__warning { background: var(--orange); color: var(--white); }
.metric-ledger__warning p, .metric-ledger__warning span { color: #ffe2d4; }

.verdict-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid var(--ink); }
.finding { padding: 2rem 1.6rem 1.5rem 0; border-right: 1px solid var(--line); }
.finding + .finding { padding-left: 1.6rem; }
.finding:last-child { border-right: 0; }
.finding h3 { margin: .6rem 0 1rem; font: 700 1.42rem/1.35 var(--serif); }
.finding > p:not(.eyebrow,.margin-note) { color: var(--ink-2); font-size: .87rem; }
.finding--cyan { border-top: 5px solid var(--cyan); }
.finding--navy { border-top: 5px solid var(--ink); }
.finding--orange { border-top: 5px solid var(--orange); }
.signal-list { margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: .75rem; }
.signal-list li { padding: .6rem 0; border-top: 1px solid var(--hairline); }
.signal-list span { display: inline-block; min-width: 3.3rem; color: var(--orange); font: 700 .59rem/1 var(--mono); }
.margin-note { color: var(--muted); font: .62rem/1.4 var(--mono); }
.risk-strip { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; align-items: start; margin-top: 3rem; padding: 1.7rem 2rem; border: 1px solid var(--orange); background: rgba(229,91,35,.06); }
.risk-strip strong { color: var(--orange); font: 700 1.05rem/1.4 var(--serif); }
.risk-strip p { margin: 0; font-size: .84rem; }

.pipeline-comparison { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; }
.pipeline { border: 1px solid var(--ink); background: rgba(255,255,255,.2); }
.pipeline > header { display: flex; justify-content: space-between; align-items: end; padding: 1.3rem 1.5rem; background: var(--ink); color: white; }
.pipeline > header span { color: var(--cyan); font: 700 .58rem/1 var(--mono); letter-spacing: .12em; }
.pipeline > header h3 { margin: .35rem 0 0; font: 700 1.7rem/1 var(--serif); }
.pipeline > header p { margin: 0; color: #aebdc7; font: .58rem/1.4 var(--mono); }
.pipeline ol { margin: 0; padding: 0; list-style: none; }
.pipeline li { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.pipeline li:last-child { border-bottom: 0; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; left: 2.15rem; bottom: -.34rem; z-index: 2; width: .55rem; height: .55rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); transform: rotate(45deg); }
.pipeline li > span { color: var(--muted); font: 700 .66rem/2.3 var(--mono); }
.pipeline li strong, .pipeline li small { display: block; }
.pipeline li strong { font: 700 .85rem/1.4 var(--mono); letter-spacing: .04em; }
.pipeline li small { color: var(--muted); font: .64rem/1.5 var(--mono); }
.pipeline li.done strong::after { content: " VERIFIED"; margin-left: .7rem; color: var(--cyan); font-size: .52rem; }
.pipeline li.planned { background: repeating-linear-gradient(-45deg, rgba(229,91,35,.08), rgba(229,91,35,.08) 8px, transparent 8px, transparent 16px); }
.pipeline li.planned strong::after { content: " PLANNED"; margin-left: .7rem; color: var(--orange); font-size: .52rem; }
.pipeline li.prototype strong::after { content: " PROTOTYPE"; margin-left: .7rem; color: var(--orange); font-size: .52rem; }
.pipeline-note { margin: 0; padding: 1rem 1.4rem; color: var(--muted); background: var(--paper-deep); font-size: .71rem; }
.fact-band { display: grid; grid-template-columns: 1fr 1.5fr; margin-top: 3rem; color: white; background: var(--ink); }
.fact-band__lead { padding: 2rem; border-right: 1px solid #405267; }
.fact-band__lead span { display: block; margin-bottom: .8rem; color: var(--cyan); font: 700 .6rem/1.3 var(--mono); letter-spacing: .12em; }
.fact-band__lead strong { font: 700 1.5rem/1.45 var(--serif); }
.fact-band__items { padding: 1rem 2rem; }
.fact-band__items p { display: grid; grid-template-columns: 8rem 1fr; margin: 0; padding: .8rem 0; border-bottom: 1px solid #405267; color: #cdd8de; font-size: .75rem; }
.fact-band__items p:last-child { border-bottom: 0; }
.fact-band__items b { color: var(--orange); font: 700 .85rem/1.4 var(--mono); }
.agent-audit { margin-top: 3rem; padding: 2.2rem; border: 1px solid var(--line); }
.agent-audit h3 { max-width: 760px; margin: .6rem 0; font: 700 1.55rem/1.4 var(--serif); }
.agent-audit > div:first-child > p:last-child { max-width: 880px; color: var(--ink-2); font-size: .88rem; }
.scoreline { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.scoreline div { padding: 1rem; border-right: 1px solid var(--line); }
.scoreline div:last-child { border: 0; }
.scoreline span { display: block; color: var(--muted); font: .62rem/1.4 var(--mono); }
.scoreline strong { font: 700 2.3rem/1.3 var(--mono); }
.scoreline small { font-size: .8rem; }
.caution { margin: 0; padding: 1rem 1.2rem; background: rgba(0,169,183,.08); border-left: 3px solid var(--cyan); font-size: .78rem; }

.principle-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.principle-list li { display: grid; grid-template-columns: 4rem 1fr; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.principle-list li > span { color: var(--orange); font: 700 1.15rem/1.3 var(--mono); }
.principle-list h3 { margin: 0 0 .5rem; font: 700 1.45rem/1.3 var(--serif); }
.principle-list p { max-width: 800px; margin: 0; color: var(--ink-2); font-size: .86rem; }
.walkthrough { margin-top: 4rem; border: 2px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--paper-deep); }
.walkthrough > header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--ink); }
.walkthrough > header p { margin: 0; color: var(--orange); font: 700 .6rem/1 var(--mono); letter-spacing: .12em; }
.walkthrough > header h3 { margin: .6rem 0 0; font: 700 1.5rem/1.3 var(--serif); }
.walkthrough__flow { display: flex; align-items: stretch; padding: 2rem; }
.walkthrough__flow > div { flex: 1; padding: 1.2rem; border: 1px solid var(--ink); text-align: center; }
.walkthrough__flow > div span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin: 0 auto .7rem; border-radius: 50%; background: var(--ink); color: white; font: 700 .8rem/1 var(--mono); }
.walkthrough__flow small, .walkthrough__flow strong { display: block; }
.walkthrough__flow small { color: var(--muted); font-size: .68rem; }
.walkthrough__flow strong { font-size: .82rem; }
.walkthrough__flow i { align-self: center; padding: .7rem; color: var(--orange); font: normal 1.2rem/1 var(--mono); }
.walkthrough__explain { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; padding: 0 2rem 2rem; }
.walkthrough__explain > p { margin: 0; font: 600 1rem/1.7 var(--serif); }
.walkthrough__explain dl { margin: 0; }
.walkthrough__explain dl div { display: grid; grid-template-columns: 9rem 1fr; padding: .55rem 0; border-top: 1px solid var(--line); }
.walkthrough__explain dt { color: var(--cyan); font: 700 .7rem/1.5 var(--mono); }
.walkthrough__explain dd { margin: 0; font-size: .75rem; }
.redaction-note { margin: 0; padding: .6rem 2rem; color: var(--muted); background: var(--paper-deep); font: .6rem/1.5 var(--mono); }

.matrix-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.comparison-matrix { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .76rem; }
.comparison-matrix th, .comparison-matrix td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-matrix thead th { color: white; background: var(--ink); font: 700 .64rem/1.3 var(--mono); letter-spacing: .07em; }
.comparison-matrix tbody th { width: 13%; font: 700 .72rem/1.5 var(--mono); }
.grade { display: inline-block; margin-right: .4rem; padding: .08rem .35rem; font: 700 .55rem/1.5 var(--mono); }
.grade.good { color: #006874; background: rgba(0,169,183,.13); }
.grade.mid { color: #9b3a15; background: rgba(229,91,35,.12); }
.grade.weak { color: white; background: var(--ink-2); }
.known-gaps { display: grid; grid-template-columns: 1fr 1fr; margin-top: 3rem; border: 1px solid var(--ink); }
.known-gaps > p { grid-column: 1/-1; margin: 0; padding: .8rem 1rem; color: white; background: var(--ink); }
.known-gaps div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.known-gaps div:nth-of-type(even) { border-right: 0; }
.known-gaps div:nth-last-child(-n+2) { border-bottom: 0; }
.known-gaps strong { color: var(--orange); font: 700 .7rem/1.5 var(--mono); }
.known-gaps span { font-size: .75rem; }

.recommendation-banner { margin: -1rem 0 3rem; padding: 1rem 1.3rem; border: 1px solid var(--orange); color: #713219; background: rgba(229,91,35,.08); font-size: .78rem; }
.target-architecture { padding: 2rem; color: white; background: var(--ink); }
.target-layer { display: grid; grid-template-columns: 20rem 1fr; border: 1px solid #587083; }
.target-layer header { display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; padding: 1.1rem; border-right: 1px solid #587083; }
.target-layer header span { grid-row: 1/3; display: grid; place-items: center; border: 1px solid currentColor; color: var(--orange); font: 700 .65rem/1 var(--mono); }
.target-layer header strong { font: 700 .75rem/1.4 var(--mono); letter-spacing: .05em; }
.target-layer header small { color: #9fb0bb; font: .56rem/1.3 var(--mono); }
.target-layer > div { display: grid; grid-template-columns: repeat(4, 1fr); }
.target-layer b { display: grid; place-items: center; min-height: 4.2rem; padding: .7rem; border-right: 1px solid #40576b; text-align: center; font-size: .66rem; }
.target-layer b:last-child { border: 0; }
.target-layer--core { border-color: var(--cyan); }
.target-layer--assertion { border-color: var(--orange); }
.target-connector { position: relative; height: 3rem; display: grid; place-items: center; }
.target-connector::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: #758895; }
.target-connector::after { content: ""; position: absolute; bottom: .2rem; width: .45rem; height: .45rem; border-right: 1px solid #758895; border-bottom: 1px solid #758895; transform: rotate(45deg); }
.target-connector span { position: relative; z-index: 2; padding: .15rem .5rem; color: #9fb0bb; background: var(--ink); font: .54rem/1.4 var(--mono); }
.edge-legend { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.edge-legend article { padding: 1.3rem; border-right: 1px solid var(--line); }
.edge-legend article:last-child { border: 0; }
.edge { display: block; width: 3rem; height: .6rem; border-top: 2px solid var(--ink); }
.edge--double { border-top: 4px double var(--orange); }
.edge--dotted { border-top: 2px dotted var(--cyan); }
.edge-legend h3 { margin: .4rem 0 .3rem; font: 700 .8rem/1.4 var(--mono); }
.edge-legend p { margin: 0; color: var(--muted); font-size: .68rem; }
.schema-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 1.5rem; margin-top: 3rem; }
.schema-grid > article { border: 1px solid var(--ink); }
.schema-grid > article > header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; color: white; background: var(--ink); }
.schema-grid header p { margin: 0; color: var(--cyan); font: 700 .55rem/1 var(--mono); letter-spacing: .1em; }
.schema-grid header h3 { margin: .25rem 0 0; font: 700 .85rem/1.3 var(--mono); }
.copy-button { padding: .45rem .75rem; border: 1px solid #718593; color: white; background: transparent; cursor: pointer; font: 700 .6rem/1 var(--mono); letter-spacing: .08em; }
.copy-button:hover, .copy-button:focus-visible { border-color: var(--orange); color: var(--orange); outline: none; }
.copy-button[data-state="copied"] { color: var(--cyan); border-color: var(--cyan); }
pre { margin: 0; padding: 1.4rem; overflow: auto; color: #dce8ec; background: #10283c; font: .72rem/1.65 var(--mono); }
.schema-notes { padding: 1.3rem; }
.schema-notes dl { margin: 0; }
.schema-notes dl div { padding: .7rem 0; border-top: 1px solid var(--line); }
.schema-notes dt { font: 700 .7rem/1.4 var(--mono); }
.schema-notes dd { margin: .15rem 0 0; color: var(--muted); font-size: .7rem; }
.schema-notes > p:last-child { padding-top: .8rem; border-top: 1px solid var(--line); font-size: .7rem; }
.module-recommendations { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-top: 2px solid var(--ink); }
.module-recommendations > p { grid-column: 1/-1; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--ink); }
.module-recommendations article { min-height: 180px; padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-recommendations article:nth-of-type(3n) { border-right: 0; }
.module-recommendations h3 { margin: 0 0 .7rem; font: 700 .85rem/1.3 var(--mono); }
.module-recommendations article p { margin: 0; color: var(--ink-2); font-size: .73rem; }
.module-recommendations a { display: inline-block; margin-top: .8rem; color: var(--orange); font: .6rem/1.4 var(--mono); }

.roadmap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.roadmap article { display: flex; flex-direction: column; min-height: 350px; padding: 1.4rem; border-right: 1px solid var(--line); }
.roadmap article:last-child { border: 0; }
.roadmap header span { display: block; color: var(--orange); font: 700 .62rem/1 var(--mono); letter-spacing: .1em; }
.roadmap header strong { display: block; margin: 1rem 0; font: 700 1.25rem/1.2 var(--serif); }
.roadmap article > p { color: var(--ink-2); font-size: .76rem; }
.roadmap footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ink); font-size: .65rem; }
.roadmap footer b { display: block; margin-bottom: .3rem; color: var(--cyan); font: 700 .57rem/1 var(--mono); }
.target-disclaimer { margin: 1.4rem 0 0; color: var(--muted); font-size: .72rem; }

.source-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; }
.source-register { border-top: 2px solid var(--ink); }
.source-register article { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.source-register article > span { color: var(--orange); font: 700 .65rem/1.4 var(--mono); }
.source-register h3 { margin: 0; font: 700 .78rem/1.4 var(--mono); overflow-wrap: anywhere; }
.source-register p { margin: .3rem 0; color: var(--ink-2); font-size: .72rem; }
.source-register small, .source-register a { color: var(--muted); font: .58rem/1.4 var(--mono); }
.source-register a { color: var(--orange); }
.limitations { align-self: start; padding: 1.6rem; color: white; background: var(--ink); }
.limitations ul { margin: 1.2rem 0 0; padding-left: 1.2rem; }
.limitations li { margin-bottom: 1rem; color: #ccd7de; font-size: .72rem; }
.report-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; padding: 2rem 0 4rem; color: var(--muted); font: .58rem/1.4 var(--mono); letter-spacing: .08em; }
.report-footer p { margin: 0; }
.report-footer a { color: var(--orange); font-weight: 700; }

@media (max-width: 1080px) {
  :root { --rail: 175px; }
  .shell { gap: 2rem; }
  .target-layer { grid-template-columns: 15rem 1fr; }
  .target-layer > div { grid-template-columns: repeat(2, 1fr); }
  .target-layer b:nth-child(2) { border-right: 0; }
  .target-layer b:nth-child(-n+2) { border-bottom: 1px solid #40576b; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 5rem; }
  body { line-height: 1.65; }
  .masthead__inner { padding: .9rem 1rem; }
  .wordmark__issue, .release-note { display: none; }
  .shell { display: block; padding: 0 1rem; }
  main { overflow: clip; }
  .chapter-rail { display: none; }
  .mobile-nav { display: block; position: sticky; top: 0; z-index: 20; margin: 0 -1rem; color: white; background: var(--ink); }
  .mobile-nav summary { display: flex; justify-content: space-between; padding: .75rem 1rem; cursor: pointer; font-size: .72rem; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { color: var(--cyan); font: 700 .6rem/1.6 var(--mono); }
  .mobile-nav nav { display: grid; grid-template-columns: 1fr 1fr; padding: 0 .5rem .7rem; border-top: 1px solid #405267; }
  .mobile-nav nav a { padding: .55rem; color: #c9d6dc; text-decoration: none; font-size: .68rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero__kicker span:last-child { display: none; }
  .hero h1 { margin: 3rem 0 1.5rem; font-size: clamp(3.6rem, 19vw, 5rem); }
  .hero__deck { font-size: 1.15rem; }
  .audit-stamp { grid-template-columns: 1fr; }
  .audit-stamp div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .hero__thesis { padding: 1.2rem; font-size: .86rem; }
  .report-section { padding: 4.5rem 0; }
  .section-head { margin-bottom: 2.2rem; }
  .section-head h2 { font-size: 2.2rem; }
  .metric-ledger { grid-template-columns: 1fr 1fr; }
  .metric-ledger article, .metric-ledger article:nth-child(3n), .metric-ledger article:nth-child(n+4) { min-height: 125px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric-ledger article:nth-child(even) { border-right: 0; }
  .metric-ledger article:nth-last-child(-n+2) { border-bottom: 0; }
  .metric-ledger strong { font-size: 1.85rem; }
  .verdict-grid, .pipeline-comparison, .fact-band, .walkthrough__explain, .schema-grid, .source-layout { grid-template-columns: 1fr; }
  .finding, .finding + .finding { padding: 1.5rem .3rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .risk-strip { grid-template-columns: 1fr; gap: .6rem; padding: 1.3rem; }
  .pipeline-comparison { gap: 2rem; }
  .fact-band, .fact-band > *, .scoreline, .matrix-wrap, .walkthrough, .schema-grid, .target-architecture { min-width: 0; max-width: 100%; }
  .fact-band__lead { border-right: 0; border-bottom: 1px solid #405267; }
  .fact-band__lead span { overflow-wrap: anywhere; word-break: normal; }
  .fact-band__items { padding: 1rem 1.3rem; }
  .fact-band__items p { grid-template-columns: 7.2rem 1fr; }
  .agent-audit { padding: 1.3rem; }
  .scoreline { grid-template-columns: 1fr; }
  .scoreline div { display: flex; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .scoreline div:last-child { border: 0; }
  .scoreline strong { font-size: 1.8rem; }
  .principle-list li { grid-template-columns: 2.3rem 1fr; gap: 1rem; }
  .walkthrough { box-shadow: 6px 6px 0 var(--paper-deep); }
  .walkthrough > header, .walkthrough__flow, .walkthrough__explain { padding: 1.2rem; }
  .walkthrough__flow { align-items: stretch; overflow-x: auto; }
  .walkthrough__flow > div { min-width: 125px; }
  .walkthrough__flow i { padding: .35rem; }
  .walkthrough__explain dl div { grid-template-columns: 7rem 1fr; }
  .redaction-note { padding: .6rem 1.2rem; }
  .known-gaps { grid-template-columns: 1fr; }
  .known-gaps div, .known-gaps div:nth-of-type(even), .known-gaps div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 6.3rem 1fr; }
  .known-gaps div:last-child { border-bottom: 0; }
  .target-architecture { padding: 1rem; }
  .target-layer { grid-template-columns: 1fr; }
  .target-layer header { border-right: 0; border-bottom: 1px solid #587083; }
  .edge-legend { grid-template-columns: 1fr; }
  .edge-legend article { border-right: 0; border-bottom: 1px solid var(--line); }
  .module-recommendations { grid-template-columns: 1fr; }
  .module-recommendations article, .module-recommendations article:nth-of-type(3n) { min-height: 0; border-right: 0; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .roadmap article:last-child { border-bottom: 0; }
  .roadmap footer { margin-top: 1.5rem; }
  .limitations { margin-top: 1rem; }
  .report-footer { grid-template-columns: 1fr; }
}

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

@media print {
  :root { --paper: white; }
  @page { margin: 15mm; }
  body { background: white; color: black; font-size: 10pt; }
  .masthead, .chapter-rail, .mobile-nav, .copy-button, .report-footer a { display: none !important; }
  .shell { display: block; max-width: none; padding: 0; }
  .hero, .report-section { padding: 14mm 0; break-inside: auto; }
  .hero h1 { font-size: 52pt; }
  .hero h1 span { color: black; -webkit-text-stroke: 0; }
  .report-section, .finding, .pipeline, .walkthrough, .target-layer, .schema-grid > article, .roadmap article { break-inside: avoid; }
  .target-architecture, .fact-band, .hero__thesis, .limitations, pre { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}
