:root {
  color-scheme: dark;
  --bg: #0a0f16;
  --bg-soft: #0f1621;
  --surface: #141d29;
  --surface-2: #182332;
  --line: #26364a;
  --line-strong: #3b526d;
  --text: #edf4fb;
  --muted: #a8b8c9;
  --muted-2: #74869a;
  --blue: #5cb9ef;
  --blue-dark: #102c42;
  --amber: #e8ad55;
  --amber-dark: #2e2416;
  --green: #69d4aa;
  --green-dark: #102d26;
  --red: #ef8d8d;
  --content: 1180px;
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --shadow: 0 28px 72px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.58; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, var(--blue), var(--amber), var(--green)); z-index: 200; }
a { color: inherit; }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.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; top: 8px; left: 8px; z-index: 500; transform: translateY(-160%); padding: 10px 14px; color: #061019; background: var(--blue); border-radius: var(--radius-sm); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.section-shell { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; min-height: 72px; padding: 10px max(24px, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid rgba(59, 82, 109, .72); background: rgba(10, 15, 22, .94); backdrop-filter: blur(18px); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #061019; background: var(--blue); border-radius: 6px; font-size: 12px; letter-spacing: .05em; }
.primary-nav { display: flex; gap: 18px; justify-content: center; }
.primary-nav a { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.primary-nav .nav-detail { display: none; }
.primary-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); background: transparent; cursor: pointer; font-size: 13px; font-weight: 760; text-decoration: none; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.button:hover { border-color: var(--blue); background: var(--surface-2); }
.button-primary { border-color: var(--blue); color: #05121c; background: var(--blue); }
.button-primary:hover { color: #05121c; background: #84cdf4; }
.button-secondary { border-color: var(--green); color: var(--green); }
.button-quiet { color: var(--muted); }
.button:disabled { opacity: .38; cursor: not-allowed; }
.sections-toggle { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .55fr); gap: clamp(42px, 7vw, 92px); align-items: center; min-height: min(760px, calc(100vh - 72px)); padding-block: clamp(76px, 10vw, 130px); }
.hero-copy { max-width: 820px; }
.venue-line, .eyebrow, .panel-label, .card-label { margin: 0; color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.method-name { margin: 18px 0 6px; color: var(--amber); font-size: 15px; font-weight: 780; letter-spacing: .12em; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 5.45vw, 74px); line-height: .98; letter-spacing: -.047em; }
.hero-deck { max-width: 730px; margin: 26px 0 20px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.46; }
.authors { max-width: 780px; margin: 0; color: #d9e6f2; font-size: 14px; }
.first-author { margin: 8px 0 0; color: var(--green); font-size: 13px; font-weight: 760; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-panel { padding: 28px; border: 1px solid var(--line-strong); border-top: 3px solid var(--blue); background: var(--surface); box-shadow: var(--shadow); }
.tag-list { display: grid; gap: 1px; margin: 22px 0; padding: 0; list-style: none; background: var(--line); }
.tag-list li { padding: 13px 14px; background: var(--surface-2); font-weight: 700; }
.tag-list li::before { content: "—"; margin-right: 10px; color: var(--green); }
.hero-boundary { margin: 0; color: var(--muted); font-size: 13px; }

.content-section { padding-block: clamp(72px, 8vw, 112px); border-top: 1px solid var(--line); }
.content-section:nth-of-type(even) { background: var(--bg-soft); box-shadow: 0 0 0 100vmax var(--bg-soft); clip-path: inset(0 -100vmax); }
.section-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 34px; }
.section-number { margin: 0; color: var(--line-strong); font-size: 34px; font-weight: 850; line-height: 1; }
.section-heading h2 { max-width: 900px; margin: 6px 0 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.04; letter-spacing: -.035em; }
.section-heading > div > p:last-child:not(.eyebrow) { max-width: 760px; margin: 12px 0 0; color: var(--muted); }

.audit-layout, .trap-layout, .ablation-layout, .checkpoint-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 22px; align-items: stretch; }
.audit-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.audit-flow article { position: relative; min-height: 172px; padding: 20px; background: var(--surface); }
.audit-flow article:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -12px; z-index: 2; display: grid; width: 24px; height: 24px; place-items: center; transform: translateY(-50%); color: var(--blue); background: var(--bg); border: 1px solid var(--line); border-radius: 50%; font-weight: 800; }
.audit-flow article > span { color: var(--muted-2); font-size: 10px; font-weight: 840; letter-spacing: .13em; }
.audit-flow strong { display: block; margin-top: 30px; font-size: 17px; line-height: 1.25; }
.audit-flow p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.boundary-card, .boundary-note, .responsible-use { padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--amber); background: var(--amber-dark); }
.compact-list, .boundary-card ul { margin: 18px 0; padding-left: 20px; color: #f1d7ae; }
.compact-list li, .boundary-card li { margin: 7px 0; }
.boundary-card > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }

.three-column-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.three-column-cards article, .token-card, .insight-notes article, .ablation-findings article, .negative-grid article, .support-grid article, .agent-boundaries article { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.three-column-cards ul, .support-grid ul, .agent-boundaries ul { margin: 20px 0 0; padding-left: 20px; color: var(--muted); }
.three-column-cards li, .support-grid li, .agent-boundaries li { margin: 9px 0; }
.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-amber { color: var(--amber); }

.trap-results { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: 10px; align-items: stretch; }
.trap-results article { display: grid; min-height: 178px; align-content: center; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.trap-results article > span { color: var(--muted); font-size: 13px; }
.trap-results article strong { margin: 10px 0; color: var(--amber); font-size: 45px; line-height: 1; }
.trap-results article small { color: var(--muted-2); }
.trap-results article.controlled { border-color: #356955; background: var(--green-dark); }
.trap-results article.controlled strong { color: var(--green); }
.trap-arrow { align-self: center; color: var(--blue); font-size: 28px; }
.trap-copy { display: grid; gap: 14px; }
.cause-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cause-list li { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-2); }
.cause-list strong { color: var(--blue); }
.cause-list span { color: var(--muted); font-size: 13px; }
blockquote { margin: 0; padding: 17px 20px; border-left: 3px solid var(--amber); color: #f1ddbc; background: var(--amber-dark); font-size: 17px; }

.token-layout, .insight-notes, .negative-grid, .support-grid, .agent-boundaries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.token-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.token { padding: 8px 11px; border: 1px solid var(--line-strong); background: var(--bg-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.token.structural { border-color: var(--blue); color: #bfe7fb; background: var(--blue-dark); }
.token.note { color: var(--muted); }
.token.muted { color: var(--muted-2); text-decoration: line-through; }
.token-card > p:last-child, .insight-notes article > p:last-child { margin: 0; color: var(--muted); }
.insight-notes { margin-top: 14px; }

.figure-panel { margin: 0; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.stage-tabs, .focus-view-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stage-tabs button, .focus-view-tabs button { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 760; }
.stage-tabs button[aria-selected="true"], .focus-view-tabs button[aria-selected="true"] { border-color: var(--blue); color: #061019; background: var(--blue); }
.image-button { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; cursor: zoom-in; }
.image-button img { display: block; width: 100%; height: auto; }
.pipeline-image-button { overflow-x: auto; padding: 12px; background: #fff; }
.pipeline-image-wrap { position: relative; display: block; min-width: 920px; }
.figure-highlight { position: absolute; top: 2%; height: 96%; border: 3px solid rgba(1, 115, 178, .96); background: rgba(1, 115, 178, .08); pointer-events: none; transition: left .18s ease, width .18s ease, border-color .18s ease; }
.figure-highlight.stage-mask { left: 13%; width: 22%; }
.figure-highlight.stage-nll { left: 37%; width: 25%; }
.figure-highlight.stage-debias { left: 62%; width: 11.5%; border-color: rgba(96, 77, 150, .96); }
.figure-highlight.stage-tail { left: 74%; width: 12%; border-color: rgba(204, 47, 112, .96); }
.figure-highlight.stage-fusion { left: 86.2%; width: 13.2%; border-color: rgba(222, 143, 5, .96); }
.stage-description { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px 0 4px; }
.stage-description strong { color: var(--blue); }
.stage-description p { margin: 0; color: var(--muted); }
.figure-panel figcaption { display: grid; gap: 6px; margin-top: 12px; color: var(--muted-2); font-size: 12px; }
.technical-details { margin-top: 14px; border: 1px solid var(--line); background: var(--surface); }
.technical-details summary { padding: 18px 20px; color: var(--blue); cursor: pointer; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.detail-grid article { padding: 20px; background: var(--surface-2); }
.detail-grid article p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.explorer { padding: 24px; border: 1px solid var(--line-strong); border-top: 3px solid var(--blue); background: var(--surface); }
.explorer-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.explorer-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-soft); }
.explorer-output { display: grid; grid-template-columns: minmax(170px, .35fr) minmax(0, 1fr) minmax(260px, .55fr); gap: 1px; margin-top: 20px; border: 1px solid var(--line); background: var(--line); }
.primary-result, .metric-strip, .evidence-interpretation { padding: 20px; background: var(--surface-2); }
.primary-result { display: grid; align-content: center; }
.primary-result span { color: var(--muted); font-size: 12px; }
.primary-result strong { margin: 8px 0; color: var(--green); font-size: 44px; line-height: 1; }
.primary-result small { color: var(--muted-2); }
.metric-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric-strip p { display: grid; gap: 5px; margin: 0; padding: 10px; border: 1px solid var(--line); background: var(--surface); }
.metric-strip span { color: var(--muted); font-size: 11px; }
.evidence-interpretation { display: grid; align-content: center; }
.evidence-interpretation p { margin: 0; }
.verification-note { margin-top: 10px !important; color: var(--amber); font-size: 12px; }
.error-message { color: var(--red); }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; min-width: 790px; border-collapse: collapse; }
caption { padding: 16px; color: var(--muted); text-align: left; font-size: 13px; }
th, td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
thead th { color: var(--muted); background: var(--surface-2); font-size: 12px; }
tbody th { font-weight: 700; }
tbody td { color: var(--muted); font-variant-numeric: tabular-nums; }
.highlight-row > * { color: var(--green); background: var(--green-dark); }
.paper-figure { margin-top: 18px; }
.paper-figure .image-button { padding: 12px; background: white; }

.lowfpr-layout { display: grid; grid-template-columns: minmax(260px, .45fr) minmax(0, 1fr); gap: 22px; }
.scenario { padding: 26px; border: 1px solid var(--line-strong); background: var(--surface); }
.scenario-number { margin: 0; color: var(--blue); font-size: 68px; font-weight: 850; line-height: 1; }
.scenario > p:nth-child(2) { color: var(--muted); }
.scenario-rule { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.scenario-rule strong { grid-row: span 2; color: var(--amber); font-size: 44px; line-height: 1; }
.scenario-rule span { color: var(--muted); }
.lowfpr-copy { display: grid; gap: 1px; background: var(--line); }
.lowfpr-copy p { margin: 0; padding: 22px; background: var(--surface); }

.ablation-layout { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .6fr); }
.ablation-layout .table-wrap { margin-top: 0; }
.ablation-findings { display: grid; gap: 10px; }
.ablation-findings article { padding: 18px; }
.ablation-findings p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.negative-grid { margin-top: 14px; }
.negative-grid article { border-left: 3px solid var(--amber); }
.negative-grid strong { display: block; margin: 14px 0 8px; color: var(--amber); font-size: 30px; }
.negative-grid p:last-child { margin: 0; color: var(--muted); }

.transfer-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.representation-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.representation-flow article { position: relative; display: grid; align-content: center; min-height: 168px; padding: 20px; background: var(--surface); }
.representation-flow article:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -13px; z-index: 2; color: var(--blue); font-size: 24px; transform: translateY(-50%); }
.representation-flow span, .representation-flow small { color: var(--muted); font-size: 12px; }
.representation-flow strong { margin: 12px 0; font-size: 16px; }
.transfer-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.transfer-results article { display: grid; align-content: center; min-width: 0; padding: 16px; background: var(--surface-2); }
.transfer-results span, .transfer-results small { color: var(--muted); font-size: 11px; }
.transfer-results strong { margin: 10px 0; color: var(--green); font-size: 29px; }
.boundary-note { margin-top: 16px; }
.boundary-note strong { color: var(--amber); }
.boundary-note p { margin: 8px 0 0; color: #f1d7ae; }

.checkpoint-layout { grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr); }
.checkpoint-figure { max-width: 470px; }
.checkpoint-figure .image-button { padding: 12px; background: white; }
.checkpoint-copy { display: grid; gap: 1px; background: var(--line); }
.checkpoint-copy p { margin: 0; padding: 28px; background: var(--surface); font-size: 18px; }
.support-grid article:first-child { border-top: 3px solid var(--green); }
.support-grid article:last-child { border-top: 3px solid var(--amber); }
.responsible-use { margin-top: 14px; }

.mapping-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mapping-grid article { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--surface); }
.mapping-grid p { display: grid; gap: 8px; margin: 0; padding: 20px; }
.mapping-grid p:first-child { border-right: 1px solid var(--line); }
.mapping-grid strong { color: var(--blue); font-size: 13px; }
.mapping-grid span { color: var(--muted); }
.agent-boundaries { margin-top: 14px; }
.agent-boundaries article:first-child { border-left: 3px solid var(--green); }
.agent-boundaries article:last-child { border-left: 3px solid var(--amber); }
.future-direction { margin-top: 14px; padding: 20px 22px; border: 1px solid #356955; border-left: 3px solid var(--green); background: var(--green-dark); }
.future-direction strong { color: var(--green); }
.future-direction p { margin: 6px 0 0; color: #c8eee0; }

.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.resource-grid a { display: grid; min-height: 140px; align-content: space-between; padding: 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.resource-grid a:hover { border-color: var(--blue); }
.resource-grid span { color: var(--muted); font-size: 12px; }
.resource-grid strong { color: var(--blue); }
.citation-card { margin-top: 16px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.citation-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.citation-card pre { margin: 18px 0 0; overflow-x: auto; color: #d9e5ef; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; white-space: pre; }
.site-footer { display: flex; gap: 24px; justify-content: space-between; padding-block: 34px 50px; color: var(--muted-2); }
.site-footer p { margin: 0; }

.focus-controls { z-index: 140; display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px max(22px, calc((100vw - var(--content)) / 2)); border-top: 1px solid var(--line-strong); background: #0c131d; }
.focus-controls[hidden] { display: none; }
.focus-controls p { margin: 0; color: var(--muted); text-align: center; }
body.focus-mode { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }
body.focus-mode::before { display: none; }
body.focus-mode .site-header { position: static; min-height: 62px; }
body.focus-mode .primary-nav, body.focus-mode .sections-toggle, body.focus-mode main > section:not(.focus-stage), body.focus-mode .site-footer { display: none; }
body.focus-mode main { min-height: 0; overflow: hidden; }
.focus-stage[hidden] { display: none; }
body.focus-mode .focus-stage { display: block; height: 100%; overflow: hidden; }
.focus-slide { display: none; width: min(calc(100% - 44px), var(--content)); height: 100%; margin-inline: auto; padding-block: clamp(12px, 1.7vh, 19px); overflow-y: auto; overscroll-behavior: contain; }
.focus-slide.is-active { display: block; }
.focus-slide h2[tabindex="-1"]:focus { outline: none; }
.focus-slide-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: clamp(10px, 1.5vh, 16px); }
.focus-slide-number { margin: 0; color: var(--line-strong); font-size: 38px; font-weight: 850; line-height: 1; }
.focus-slide-head h2 { margin: 3px 0 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.01; letter-spacing: -.035em; }

.focus-question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.focus-question-grid article { display: grid; min-height: 210px; align-content: center; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.focus-question-grid article > span { color: var(--blue); font-weight: 840; }
.focus-question-grid strong { margin: 14px 0; font-size: 26px; }
.focus-question-grid p { margin: 0; color: var(--muted); }
.focus-question-grid .focus-usecase { border-color: #356955; background: var(--green-dark); }
.focus-boundary { margin-top: 10px; padding: 13px 16px; border-left: 3px solid var(--amber); background: var(--amber-dark); }
.focus-boundary strong { color: var(--amber); }
.focus-boundary p { display: inline; margin: 0 0 0 8px; color: #f1d7ae; }

.focus-threat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.focus-threat-grid article { min-height: 260px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.focus-threat-grid article:nth-child(1) { border-top: 3px solid var(--blue); }
.focus-threat-grid article:nth-child(2) { border-top: 3px solid var(--green); }
.focus-threat-grid article:nth-child(3) { border-top: 3px solid var(--amber); }
.focus-threat-grid span { color: var(--muted-2); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.focus-threat-grid strong { display: block; margin-top: 40px; font-size: 21px; line-height: 1.25; }
.focus-threat-grid p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.focus-trap-grid { display: grid; grid-template-columns: 1fr .45fr 1fr; gap: 10px; align-items: stretch; }
.focus-trap-grid article { display: grid; min-height: 180px; align-content: center; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.focus-trap-grid article > span { color: var(--muted); }
.focus-trap-grid article > strong:not(:last-child) { margin: 10px 0; color: var(--amber); font-size: 54px; line-height: 1; }
.focus-trap-grid small { color: var(--muted-2); }
.focus-trap-grid .controlled { border-color: #356955; background: var(--green-dark); }
.focus-trap-grid .controlled > strong { color: var(--green) !important; }
.focus-trap-grid .focus-arrow { place-content: center; text-align: center; }
.focus-trap-grid .focus-arrow span { color: var(--blue); font-size: 38px; }
.focus-trap-grid .focus-arrow strong { font-size: 14px !important; color: var(--muted) !important; }
.focus-confounders { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.focus-confounders span, .focus-evidence-meta span { padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); font-size: 12px; }
.focus-slide blockquote { margin-top: 10px; }

.focus-token-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.focus-token-grid article { min-height: 150px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.focus-token-grid .token-row { margin: 20px 0 0; }
.focus-insight-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; border: 1px solid var(--line); background: var(--line); }
.focus-insight-strip p { display: grid; gap: 5px; margin: 0; padding: 15px; background: var(--surface-2); }
.focus-insight-strip strong { color: var(--blue); font-size: 12px; }
.focus-insight-strip span { color: var(--muted); font-size: 13px; }

.focus-method-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .5fr); gap: 14px; align-items: center; }
.focus-method-grid figure { margin: 0; padding: 10px; border: 1px solid var(--line); background: #fff; }
.focus-method-grid figure img { display: block; width: 100%; max-height: 50vh; height: auto; object-fit: contain; }
.focus-method-grid figcaption { margin-top: 8px; color: #4d5a67; font-size: 10px; }
.focus-method-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.focus-method-grid li { padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface); color: var(--muted); }

.focus-view-tabs { margin-bottom: 10px; }
.focus-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.focus-evidence-grid article { display: grid; min-height: 160px; align-content: center; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.focus-evidence-grid article > span { color: var(--muted); }
.focus-evidence-grid article > strong { margin: 9px 0 2px; color: var(--blue); font-size: 43px; line-height: 1; }
.focus-evidence-grid article > small { color: var(--muted-2); }
.focus-evidence-grid article p { margin: 14px 0 0; color: var(--muted); }
.focus-evidence-grid article p span { color: var(--text); font-weight: 800; }
.focus-evidence-grid .focus-best { border-color: #356955; background: var(--green-dark); }
.focus-evidence-grid .focus-best > strong { color: var(--green); }
.focus-evidence-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

.focus-falsification-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.focus-falsification-grid article { min-height: 150px; padding: 17px; border: 1px solid var(--line); background: var(--surface); }
.focus-falsification-grid article > strong { color: var(--blue); }
.focus-falsification-grid ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.focus-falsification-grid li { margin: 4px 0; }
.focus-falsification-grid p { margin: 12px 0 0; color: var(--muted); }
.focus-falsification-grid p span { color: var(--green); font-size: 26px; font-weight: 850; }
.focus-falsification-grid small { color: var(--muted-2); }
.focus-falsification-grid .focus-limit { border-left: 3px solid var(--amber); background: var(--amber-dark); }

.focus-agent-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.focus-agent-map article { display: grid; grid-template-columns: 1fr 1fr; min-height: 130px; border: 1px solid var(--line); background: var(--surface); }
.focus-agent-map p { display: grid; align-content: start; gap: 5px; margin: 0; padding: 14px; }
.focus-agent-map p:first-child { border-right: 1px solid var(--line); }
.focus-agent-map strong { color: var(--blue); font-size: 12px; }
.focus-agent-map span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.focus-agent-boundaries { display: grid; grid-template-columns: .85fr 1.25fr; gap: 9px; margin-top: 9px; }
.focus-agent-boundaries article { padding: 13px 15px; border: 1px solid var(--line); background: var(--surface-2); }
.focus-agent-boundaries p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.focus-agent-boundaries .card-label { margin-bottom: 6px; color: var(--amber); }
.focus-future { margin-top: 9px; padding: 10px 14px; border-left: 3px solid var(--green); background: var(--green-dark); }
.focus-future strong { color: var(--green); font-size: 11px; }
.focus-future p { display: inline; margin: 0 0 0 8px; color: #c8eee0; font-size: 12px; }

.image-dialog { width: min(96vw, 1440px); max-height: 94vh; padding: 56px 16px 16px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.image-dialog::backdrop { background: rgba(2, 5, 9, .88); backdrop-filter: blur(6px); }
.image-dialog img { display: block; width: 100%; max-height: calc(94vh - 78px); height: auto; object-fit: contain; background: #fff; }
.dialog-close { position: absolute; top: 9px; right: 9px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; }
  .primary-nav { display: none; position: absolute; top: calc(100% + 1px); left: 16px; right: 16px; z-index: 120; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; border: 1px solid var(--line-strong); background: var(--line); box-shadow: var(--shadow); }
  .site-header.nav-open .primary-nav { display: grid; }
  .site-header.nav-open .primary-nav .nav-detail { display: block; }
  .primary-nav a { padding: 13px 14px; color: var(--text); background: var(--surface); }
  .header-actions { justify-self: end; }
  .sections-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { max-width: 700px; }
  .audit-layout, .trap-layout, .ablation-layout { grid-template-columns: 1fr; }
  .transfer-layout { grid-template-columns: 1fr; }
  .explorer-output { grid-template-columns: 210px 1fr; }
  .evidence-interpretation { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section-shell { width: calc(100% - 30px); }
  .site-header { grid-template-areas: "brand actions" "nav nav"; min-height: 64px; gap: 8px; padding: 9px 15px; }
  .brand { grid-area: brand; }
  .brand > span:last-child { display: none; }
  .header-actions { grid-area: actions; gap: 5px; }
  .button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .primary-nav { grid-template-columns: 1fr; }
  .site-header.nav-open .primary-nav { position: static; grid-area: nav; width: 100%; margin-top: 1px; box-shadow: none; }
  .hero { padding-block: 56px 70px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-panel { padding: 22px; }
  .content-section { padding-block: 64px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-number { font-size: 14px; letter-spacing: .12em; }
  .section-heading h2 { font-size: 32px; }
  .audit-flow, .three-column-cards, .token-layout, .insight-notes, .negative-grid, .support-grid, .agent-boundaries, .mapping-grid, .resource-grid { grid-template-columns: 1fr; }
  .audit-flow article { min-height: 120px; }
  .audit-flow article:not(:last-child)::after { top: auto; right: 50%; bottom: -13px; transform: translateX(50%) rotate(90deg); }
  .trap-results { grid-template-columns: 1fr; }
  .trap-arrow { justify-self: center; transform: rotate(90deg); }
  .detail-grid { grid-template-columns: 1fr; }
  .explorer-controls, .explorer-output { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .evidence-interpretation { grid-column: auto; }
  .lowfpr-layout, .checkpoint-layout { grid-template-columns: 1fr; }
  .representation-flow, .transfer-results { grid-template-columns: 1fr; }
  .representation-flow article { min-height: 116px; }
  .representation-flow article:not(:last-child)::after { top: auto; right: 50%; bottom: -14px; transform: translateX(50%) rotate(90deg); }
  .mapping-grid article { grid-template-columns: 1fr; }
  .mapping-grid p:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { flex-direction: column; }
  .stage-description { grid-template-columns: 1fr; gap: 5px; }
  .pipeline-image-button { padding: 8px; }
  .pipeline-image-wrap { min-width: 820px; }

  .focus-slide { width: calc(100% - 24px); padding-block: 10px; }
  .focus-slide-head { grid-template-columns: 1fr; gap: 2px; margin-bottom: 9px; }
  .focus-slide-number { font-size: 12px; letter-spacing: .12em; }
  .focus-slide-head h2 { font-size: 26px; }
  .focus-question-grid, .focus-threat-grid, .focus-token-grid, .focus-evidence-grid, .focus-agent-map { grid-template-columns: 1fr; }
  .focus-question-grid article, .focus-threat-grid article { min-height: auto; }
  .focus-threat-grid strong { margin-top: 14px; }
  .focus-trap-grid { grid-template-columns: 1fr; }
  .focus-trap-grid article { min-height: 120px; }
  .focus-trap-grid .focus-arrow { min-height: 64px; }
  .focus-confounders, .focus-evidence-meta { justify-content: flex-start; }
  .focus-insight-strip { grid-template-columns: 1fr; }
  .focus-method-grid { grid-template-columns: 1fr; }
  .focus-method-grid figure img { max-height: none; }
  .focus-method-grid ul { grid-template-columns: 1fr; }
  .focus-falsification-grid { grid-template-columns: 1fr; }
  .focus-agent-map article { grid-template-columns: 1fr; }
  .focus-agent-map p:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-agent-boundaries { grid-template-columns: 1fr; }
  .focus-controls { min-width: 0; padding: 7px 9px; }
  .focus-controls p { max-width: 150px; font-size: 11px; line-height: 1.25; }
}

@media (max-height: 760px) and (min-width: 761px) {
  body.focus-mode .site-header { min-height: 56px; padding-block: 6px; }
  .focus-controls { min-height: 50px; padding-block: 5px; }
  .focus-slide { padding-block: 8px; }
  .focus-slide-head { margin-bottom: 8px; }
  .focus-slide-head h2 { font-size: clamp(26px, 3vw, 36px); }
  .focus-question-grid article { min-height: 174px; padding: 18px; }
  .focus-threat-grid article { min-height: 218px; padding: 18px; }
  .focus-threat-grid strong { margin-top: 26px; font-size: 18px; }
  .focus-trap-grid article { min-height: 150px; padding: 17px; }
  .focus-trap-grid article > strong:not(:last-child) { font-size: 44px; }
  .focus-token-grid article { min-height: 128px; padding: 15px; }
  .focus-insight-strip p { padding: 11px 13px; }
  .focus-method-grid figure img { max-height: 43vh; }
  .focus-method-grid li { padding: 12px; font-size: 13px; }
  .focus-evidence-grid article { min-height: 130px; padding: 15px; }
  .focus-evidence-grid article > strong { font-size: 36px; }
  .focus-falsification-grid article { min-height: 125px; padding: 13px; }
  .focus-agent-map article { min-height: 108px; }
  .focus-agent-map p { padding: 10px; }
  .focus-agent-boundaries article { padding: 10px 12px; }
  .focus-future { padding: 8px 12px; }
}

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

@media print {
  .site-header, .focus-controls, .focus-stage, .image-dialog { display: none !important; }
  body { color: #111; background: #fff; }
  .content-section { break-inside: avoid; }
}
