@font-face {
  font-family: DM;
  src: url('assets/fonts/DMSans.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fff;
  --surface: #f7f8fa;
  --ink: #222933;
  --muted: #586271;
  --line: #dce1e7;
  --accent: #285d8e;
  --accent-soft: #edf3f8;
  /* Scientific category colors retain their existing meanings. */
  --gold: #cfaa61;
  --blue: #32718c;
  --mauve: #aa708e;
  font-synthesis: none;
  scroll-padding-top: 88px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 DM, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; background: none; border: 0; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
button, summary { touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); }
button:focus:not(:focus-visible) { outline: none; }
video, img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
strong { font-weight: 650; }
em { font-family: inherit; }
h1, h2, h3 { font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 3.4vw, 43px); }
h2 { font-size: 29px; }
h3 { font-size: 22px; }
.section-shell { max-width: 1160px; padding-inline: 40px; margin-inline: auto; }
.chapter { padding-block: 60px; }
.chapter + .chapter, .results-section, .policy-section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.section-heading > p:last-child { max-width: 880px; margin-top: 14px; color: var(--muted); }
.eyebrow, .mini-label { font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--muted); }
.eyebrow { margin-bottom: 12px; }
.small-note { font-size: 13px; line-height: 1.65; color: var(--muted); }
.micro-note { font-size: 12px; line-height: 1.65; color: var(--muted); }
.soft { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 18px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }
.tiny-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--gold); }
.amber { background: var(--gold); }
.blue { background: var(--blue); }
.mauve { background: var(--mauve); }

/* Conventional navigation and paper title; no ornamental animation. */
.site-header { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: max(28px, calc((100vw - 1080px) / 2)); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 40; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; line-height: 1; }
.brand svg { width: 28px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.site-header nav { display: flex; gap: 22px; font-size: 13px; }
.site-header nav a { padding: 9px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header nav a.active, .site-header nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.header-actions { display: flex; gap: 18px; align-items: center; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 550; }
.button-dark { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-dark:hover { background: #214c74; }
.button-outline { border-color: #b7c2ce; background: #fff; }
.button-outline:hover { background: var(--surface); border-color: var(--accent); }
.button small { font-size: 12px; opacity: .9; }
.play-icon { font-size: 11px; }
.text-button, .link-arrow { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; font-weight: 550; text-align: left; color: var(--accent); }
.text-button:hover, .link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button span, .link-arrow span { font-size: 16px; }
.round-button { width: 40px; height: 40px; min-width: 40px; display: inline-grid; place-items: center; border: 1px solid #b8c2cd; border-radius: 4px; font-size: 14px; background: #fff; }
.round-button:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.hero { padding-top: 52px; padding-bottom: 32px; }
.hero-grid { display: grid; gap: 36px; }
.hero-copy { max-width: 980px; margin-inline: auto; text-align: center; }
.hero h1 { text-wrap: balance; }
.project-name { color: var(--accent); }
.hero-description { max-width: 710px; margin: 19px auto 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; }
.hero-visual { width: 100%; max-width: 880px; margin-inline: auto; }
.hero-film-frame { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.hero-film-frame video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #e9ebee; }
.hero-film-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; gap: 18px; background: var(--surface); border-top: 1px solid var(--line); }
.live-tag { font-size: 13px; color: var(--muted); }
.hero-caption { margin-top: 12px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.hero-caption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.abstract { padding-block: 30px 56px; border-bottom: 1px solid var(--line); }
.abstract-content { max-width: 880px; margin-inline: auto; }
.abstract h2 { text-align: center; margin-bottom: 20px; }
.abstract p { margin-top: 16px; line-height: 1.85; }

/* Method diagrams: preserved geometry and editable labels, neutral backgrounds. */
.representation-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 34px; align-items: center; }
.roll-lab, .bond-lab, .replay-lab { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 20px; min-width: 0; }
.panel-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 550; padding-bottom: 14px; color: var(--muted); }
#roll-svg > rect { fill: #fff; }
.roll-lab .small-note { margin-top: 10px; }
.diagram-labels { fill: var(--ink); font: 15px DM, Arial, sans-serif; letter-spacing: .25px; }
.diagram-labels path { stroke: #7b8693; fill: none; stroke-width: 1; }
.diagram-labels text { stroke: none; }
.region { display: grid; grid-template-columns: 20px 1fr 9px; gap: 10px; width: 100%; padding: 17px 0; border-bottom: 1px solid var(--line); text-align: left; }
.region:first-child { border-top: 1px solid var(--line); }
.region-index { font-size: 11px; line-height: 27px; color: var(--muted); font-variant-numeric: tabular-nums; }
.region strong { display: block; margin-bottom: 5px; font-size: 17px; font-weight: 600; }
.region > span:nth-child(2) > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.65; }
.region-swatch { width: 8px; height: 8px; border-radius: 50%; margin-top: 10px; }
.region.is-active strong { color: var(--accent); }
.region-list .link-arrow { margin-top: 10px; }
.scrub-row { display: flex; align-items: center; gap: 14px; }
.scrub-row input { flex: 1; min-width: 0; }
.scrub-row output { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type=range] { appearance: none; -webkit-appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; accent-color: var(--accent); }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: #c8d0d9; }
input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; margin-top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
input[type=range]::-moz-range-track { height: 3px; background: #c8d0d9; }
input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.bond-section { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bond-copy > p { margin-top: 18px; font-size: 15px; color: var(--muted); }
.bond-rule strong { color: var(--ink); font-weight: 600; }
.bond-copy .text-button { margin-top: 10px; }
.bond-lab .panel-meta { padding-bottom: 4px; }
.state-pill { padding: 4px 8px; border: 1px solid #c5d5c9; border-radius: 3px; background: #eff5f0; color: #325b40; font-size: 11px; white-space: nowrap; }
.state-pill.released { border-color: #ddc9a7; background: #faf3e7; color: #745218; }
.bond-surface { fill: #edf0f4; stroke: #83909f; stroke-width: 1.5; }
.bond-lab svg circle { fill: #536272; }
.bond-lab svg text { fill: var(--muted); font: 14px DM, Arial, sans-serif; }
.bond-lab .force-arrow { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.bond-slider-labels { position: relative; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.bond-slider-labels span:nth-child(2) { position: absolute; left: 37.5%; transform: translateX(-50%); }
.bond-lab .small-note { min-height: 42px; margin-top: 8px; }
.bond-lab .micro-note { margin-top: 8px; }
.variant-strip { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.variant-strip > div > .small-note { margin-top: 12px; max-width: 340px; }
.variant-grid { display: grid; grid-template-columns: .6fr 1fr 1fr; gap: 9px; align-items: center; }
.variant-grid > span { font-size: 12px; color: var(--muted); text-align: center; }
.variant-grid > span:nth-child(4), .variant-grid > span:nth-child(7) { text-align: left; }
.variant-button { padding: 11px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; font-weight: 550; }
.variant-button.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.variant-button:hover:not(.is-active) { background: var(--surface); }
.variant-button span { display: none; }
.variant-grid p { grid-column: 1/-1; font-size: 13px; color: var(--muted); margin-top: 7px; min-height: 43px; }

/* Results share white backgrounds, direct labels, and legible numeric scales. */
.motion-lab { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.motion-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.motion-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 17px 20px 8px; font-size: 12px; color: var(--muted); }
.motion-labels strong { margin-right: 8px; font-size: 15px; color: var(--ink); }
.motion-lab video { width: 100%; height: auto; }
.motion-chart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; gap: 12px; font-size: 12px; }
.motion-chart-head span:last-child { font-variant-numeric: tabular-nums; }
#motion-chart { width: calc(100% - 24px); margin: 8px auto 0; }
.motion-lab .scrub-row { padding: 8px 20px; }
.motion-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px 17px; color: var(--muted); font-size: 12px; }
.line-key { display: inline-block; vertical-align: middle; width: 20px; border-top: 2px solid #7b837b; margin: 0 6px 0 15px; }
.line-key:first-child { margin-left: 0; }
.line-key.dashed { border-top-color: var(--blue); border-top-style: dashed; }
.rate-button { border: 1px solid #b8c2cd; border-radius: 3px; padding: 6px 10px; font-size: 12px; white-space: nowrap; min-width: 48px; min-height: 36px; }
.tolerance-note { display: grid; grid-template-columns: .7fr 1.5fr .9fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tolerance-note > .eyebrow { margin: 0; font-size: 11px; }
.tolerance-note > p { display: flex; align-items: center; gap: 20px; }
.tolerance-note strong { font-size: 24px; line-height: 1.4; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.tolerance-note strong > span { font-weight: 400; color: var(--muted); }
.tolerance-note > p > span { font-size: 13px; color: var(--muted); }
.cost-grid { display: grid; grid-template-columns: .85fr 1.25fr; gap: 62px; align-items: start; margin-top: 40px; }
.cost-copy > p { font-size: 14px; color: var(--muted); margin-top: 14px; }
.turn-picker { display: flex; gap: 7px; align-items: center; margin-top: 20px; }
.turn-picker button { min-width: 42px; height: 40px; border: 1px solid #b8c2cd; border-radius: 3px; font-size: 13px; }
.turn-picker button.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.turn-picker button:hover { border-color: var(--accent); }
.turn-picker > span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.cost-highlight { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.cost-highlight > strong { font-size: 36px; line-height: 1.3; color: var(--ink); letter-spacing: -.03em; min-width: 94px; }
.cost-highlight > strong span { font-size: inherit; }
.cost-highlight > span { font-size: 12px; color: var(--muted); line-height: 1.7; }
.cost-copy .micro-note { font-size: 12px; }
.cost-chart-panel { min-width: 0; }
.cost-chart-panel .panel-meta { border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.cost-row { display: grid; grid-template-columns: 65px 1fr 62px; gap: 12px; align-items: center; margin: 17px 0; }
.cost-row-label { font-size: 13px; }
.cost-bar-track { height: 26px; background: linear-gradient(90deg, #dce1e7 1px, transparent 1px) 0 0/30.303% 100%; }
.cost-bar { width: 0; height: 100%; background: var(--bar-color); transition: width .15s ease; }
.cost-row:not(.highlight) .cost-bar { opacity: .55; }
.cost-value { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.cost-ticks { position: relative; height: 27px; margin-left: 77px; margin-right: 74px; border-top: 1px solid #b9c3cd; font-size: 11px; color: var(--muted); }
.cost-ticks span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.cost-ticks span:nth-child(1) { left: 0; transform: none; }
.cost-ticks span:nth-child(2) { left: 30.303%; }
.cost-ticks span:nth-child(3) { left: 60.606%; }
.cost-ticks span:nth-child(4) { left: 90.909%; }
.cost-family { display: flex; gap: 8px; margin: 18px 0 12px; }
.cost-family button { padding: 7px 14px; border: 1px solid #b8c2cd; border-radius: 3px; font-size: 12px; }
.cost-family button.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.data-details { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.data-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; font-size: 13px; cursor: pointer; }
.data-details summary::-webkit-details-marker { display: none; }
.data-details summary span { font-size: 21px; font-weight: 400; }
.data-details[open] summary span { transform: rotate(45deg); }
.data-details p { font-size: 13px; line-height: 1.75; margin-top: 12px; color: var(--muted); }
.data-details a { display: inline-block; color: var(--accent); font-size: 13px; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* Real/simulation comparisons preserve full frames and semantic outcome labels. */
.replay-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; }
.model-picker { display: flex; gap: 4px; }
.model-picker button { padding: 8px 14px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; min-height: 40px; }
.model-picker .is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.model-picker button:hover:not(.is-active) { background: var(--surface); }
.replay-stage { aspect-ratio: 360/220; position: relative; overflow: hidden; --wipe: 50%; background: #e9ebee; }
.replay-layer { position: absolute; inset: 0; }
.replay-layer video { width: 100%; height: 100%; object-fit: contain; }
.real-layer { clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
.video-tag { position: absolute; left: 14px; top: 14px; background: #fffffff0; color: var(--ink); padding: 5px 9px; font-size: 11px; font-weight: 600; border-radius: 2px; z-index: 2; }
.sim-tag { left: auto; right: 14px; background: #26313de8; color: #fff; }
.wipe-line { position: absolute; left: var(--wipe); inset-block: 0; width: 2px; background: #fff; z-index: 3; pointer-events: none; }
.wipe-line > span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; }
.wipe-range { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; z-index: 4; touch-action: pan-y; }
.replay-stage:has(.wipe-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.replay-case { position: absolute; bottom: 12px; left: 14px; z-index: 2; font-size: 10px; background: #26313de8; color: #fff; padding: 4px 8px; }
.replay-stage.split { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 720/220; gap: 4px; }
.replay-stage.split .replay-layer { position: relative; grid-row: 1; min-width: 0; }
.replay-stage.split .real-layer { grid-column: 1; clip-path: none; }
.replay-stage.split .sim-layer { grid-column: 2; }
.replay-stage.split .wipe-line, .replay-stage.split .wipe-range, .replay-stage.split .replay-case { display: none; }
.replay-stage.split .video-tag { font-size: 10px; left: 10px; right: auto; top: 10px; padding: 4px 7px; }
.replay-lab > .scrub-row { padding-top: 16px; }
.rate-static { font-size: 12px; color: var(--muted); }
.replay-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 12px; }
.replay-results { display: grid; grid-template-columns: .85fr 1.25fr; gap: 64px; align-items: center; margin-top: 40px; }
.big-stat { font-size: 36px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; margin: 10px 0; }
.big-stat span { font-size: inherit; }
.replay-results h3 { font-size: 21px; }
.replay-results .small-note { margin-top: 12px; }
.replay-chart-panel { min-width: 0; }
.replay-chart-panel svg { width: 100%; }
.replay-chart-panel output { display: block; min-height: 24px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.plot-point { cursor: pointer; }
.plot-point:hover, .plot-point:focus { r: 7; outline: none; stroke: var(--ink); stroke-width: 2; }
.calibration-note { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; padding-block: 22px 0; border-top: 1px solid var(--line); }
.calibration-note strong { font-size: 24px; white-space: nowrap; }
.calibration-note p { font-size: 13px; color: var(--muted); max-width: 290px; }
.calibration-note .text-button { font-size: 12px; }
.task-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.task-tabs button { padding: 14px 12px; border-bottom: 2px solid transparent; text-align: left; font-size: 19px; color: var(--muted); }
.task-tabs button > span { font-size: 11px; margin-right: 6px; }
.task-tabs button > small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.task-tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.policy-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.policy-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.policy-video { border: 1px solid var(--line); border-radius: 3px; padding: 8px; min-width: 0; background: #fff; }
.policy-video .model-title { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 3px 2px 9px; font-size: 13px; font-weight: 600; }
.policy-video .model-title small { font-size: 10px; font-weight: 400; color: var(--muted); }
.policy-media { position: relative; }
.policy-video video { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #edf0f3; }
.policy-expand { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 3px; background: #fffffff0; color: var(--ink); font-size: 19px; }
.policy-expand:hover { color: #fff; background: var(--accent); }
.outcome { display: flex; align-items: center; min-height: 36px; margin-top: 8px; padding: 7px 9px; border-radius: 2px; font-size: 12px; background: #edf0f3; color: #46515e; }
.outcome.success { background: #e8f1e9; color: #285b39; }
.outcome.error { background: #f7e9e7; color: #8b392d; }
.outcome.partial { background: #f8efdd; color: #77531c; }
.outcome:not(.visible) { background: transparent; color: var(--muted); }
.policy-video .end-note { height: 20px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.policy-section .scrub-row { padding-top: 18px; }
.policy-takeaway { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 30px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.policy-takeaway strong { font-size: 18px; line-height: 1.5; }
.policy-takeaway p { grid-column: 2; grid-row: 1/3; font-size: 14px; color: var(--muted); }
.policy-takeaway > span { font-size: 12px; color: var(--muted); }
.policy-data table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.policy-data th, .policy-data td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.policy-data th { font-size: 12px; font-weight: 600; }
.policy-data th:first-child, .policy-data td:first-child { text-align: left; }
#policy-table { overflow: auto; max-width: 100%; overscroll-behavior-x: contain; }
.table-scroll-hint { display: none; }

/* Plain resources, accessible dialogs, and non-floating display preferences. */
.resources { padding-top: 50px; }
.resource-heading > p:last-child { margin-top: 12px; color: var(--muted); font-size: 15px; }
.resource-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.resource-item { display: grid; position: relative; gap: 6px; width: 100%; padding: 16px 30px 16px 0; text-align: left; border-block: 1px solid var(--line); }
.resource-item > span { font-size: 10px; color: var(--muted); }
.resource-item strong { font-size: 17px; font-weight: 600; color: var(--accent); }
.resource-item small { font-size: 12px; color: var(--muted); }
.resource-item b { position: absolute; right: 2px; top: 50%; font-size: 19px; font-weight: 400; color: var(--accent); }
.resource-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.about-evidence { padding-top: 24px; font-size: 13px; color: var(--muted); }
.about-evidence summary { cursor: pointer; color: var(--ink); }
.about-evidence p { max-width: 900px; margin-top: 13px; }
.about-evidence a { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer .brand { font-size: 18px; color: var(--ink); }
.footer-controls { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.motion-setting { padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; color: var(--muted); }
.motion-setting[aria-pressed=true] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(90vw, 480px); padding: 12px 18px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; }
#toast.visible { opacity: 1; }
dialog { border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); max-width: 1080px; width: calc(100vw - 48px); max-height: 94dvh; padding: 22px; }
dialog::backdrop { background: #101923cc; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.dialog-header .eyebrow { margin-bottom: 5px; font-size: 10px; }
.dialog-header h2 { font-size: 23px; }
.dialog-header .round-button { font-size: 26px; }
#dialog-video { width: 100%; max-height: 68dvh; object-fit: contain; background: #20262d; }
#dialog-description { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 850px; }
.noscript-note { text-align: center; padding: 16px; background: var(--surface); }
.noscript-note a { color: var(--accent); text-decoration: underline; }

@media (max-width: 1000px) {
  .site-header { padding-inline: 26px; }
  .site-header nav { gap: 15px; font-size: 12px; }
  .section-shell { padding-inline: 30px; }
  .representation-grid { gap: 24px; }
  .bond-section, .variant-strip, .cost-grid, .replay-results { gap: 34px; }
  .tolerance-note { grid-template-columns: .7fr 1.7fr; gap: 12px 22px; }
  .tolerance-note .micro-note { grid-column: 2; }
  .diagram-labels { font-size: 19px; }
  .bond-lab svg text { font-size: 17px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 30px; min-height: 44px; padding: 5px; }
  .menu-toggle span { height: 1px; width: 22px; background: var(--ink); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-header nav { display: none; position: absolute; inset-inline: 0; top: 64px; padding: 14px 26px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 2px; font-size: 15px; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 8px 0; }
  .policy-video .model-title { align-items: start; flex-direction: column; gap: 0; }
  .policy-video .end-note { height: 33px; }
}
@media (max-width: 680px) {
  :root { scroll-padding-top: 80px; }
  .section-shell { padding-inline: 20px; }
  .site-header { padding-inline: 20px; gap: 12px; }
  .brand { font-size: 19px; }
  .chapter { padding-block: 38px; }
  h1 { font-size: clamp(27px, 6.6vw, 35px); line-height: 1.35; }
  h2 { font-size: 25px; }
  h3 { font-size: 21px; }
  .hero { padding-top: 34px; padding-bottom: 24px; }
  .hero-grid { gap: 26px; }
  .hero-description { font-size: 15px; margin-top: 16px; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .button { padding: 9px 12px; font-size: 12px; }
  .hero-actions .button small { font-size: 11px; }
  .hero-film-top { padding: 7px 10px; gap: 8px; }
  .live-tag { font-size: 11px; }
  .hero-caption { font-size: 12px; }
  .abstract { padding-block: 20px 34px; }
  .abstract p { font-size: 15px; line-height: 1.8; }
  .section-heading { margin-bottom: 23px; }
  .section-heading > p:last-child { margin-top: 12px; font-size: 15px; }
  .representation-grid, .bond-section, .variant-strip, .cost-grid, .replay-results { grid-template-columns: 1fr; gap: 24px; }
  .roll-lab, .bond-lab { padding: 16px 12px; }
  .panel-meta { font-size: 10px; gap: 8px; }
  .diagram-labels { font-size: 23px; }
  .bond-lab svg text { font-size: 19px; }
  .scrub-row { gap: 11px; }
  .scrub-row output { font-size: 11px; }
  .round-button { width: 36px; height: 36px; min-width: 36px; font-size: 12px; }
  .region { padding-block: 15px; }
  .region strong { font-size: 17px; }
  .region > span:nth-child(2) > span { font-size: 13px; }
  .bond-section { margin-top: 30px; padding-top: 28px; }
  .bond-copy > p { font-size: 14px; margin-top: 14px; }
  .bond-lab .small-note { min-height: 42px; }
  .variant-strip { margin-top: 28px; padding-top: 26px; }
  .variant-grid > span { font-size: 11px; }
  .variant-button { font-size: 13px; padding: 10px; }
  .variant-grid p { font-size: 12px; }
  .motion-head { padding: 10px 12px; font-size: 10px; gap: 8px; }
  .motion-labels { padding: 12px 12px 6px; gap: 12px; font-size: 10px; }
  .motion-labels strong { display: block; font-size: 13px; }
  .motion-chart-head { padding: 12px 12px 0; font-size: 10px; gap: 8px; }
  #motion-chart { width: calc(100% - 10px); }
  .motion-lab .scrub-row { padding: 8px 12px; }
  .motion-caption { padding: 8px 12px 12px; font-size: 10px; flex-direction: column; align-items: start; gap: 5px; }
  .tolerance-note { grid-template-columns: 1fr; gap: 12px; padding-block: 18px; }
  .tolerance-note > p { gap: 18px; }
  .tolerance-note strong { font-size: 23px; }
  .tolerance-note > p > span { font-size: 12px; }
  .tolerance-note .micro-note { grid-column: 1; }
  .cost-grid, .replay-results { margin-top: 28px; }
  .cost-highlight > strong, .big-stat { font-size: 32px; }
  .cost-row { grid-template-columns: 57px 1fr 49px; gap: 9px; }
  .cost-row-label { font-size: 12px; }
  .cost-value { font-size: 13px; }
  .cost-ticks { margin-left: 66px; margin-right: 58px; font-size: 10px; }
  .replay-lab { padding: 10px; }
  .replay-toolbar { flex-wrap: wrap; gap: 5px 10px; padding-bottom: 10px; }
  .model-picker { gap: 2px; }
  .model-picker button { padding: 7px 10px; font-size: 11px; min-height: 36px; }
  .replay-toolbar > .text-button { font-size: 11px; padding-block: 6px; }
  .replay-stage.split { aspect-ratio: 720/330; }
  .video-tag, .replay-stage.split .video-tag { left: 6px; top: 6px; padding: 3px 5px; font-size: 8px; }
  .sim-tag { left: auto; right: 6px; }
  .replay-case { font-size: 8px; bottom: 7px; left: 6px; padding: 3px 5px; }
  .wipe-line > span { width: 34px; height: 34px; font-size: 18px; }
  .replay-foot { flex-direction: column; gap: 3px; font-size: 11px; }
  .calibration-note { margin-top: 24px; gap: 10px 18px; }
  .calibration-note p { flex-basis: 100%; max-width: none; }
  .task-tabs { gap: 5px; margin-bottom: 18px; }
  .task-tabs button { padding: 12px 5px; font-size: 17px; }
  .task-tabs button > span { display: none; }
  .task-tabs button > small { font-size: 10px; }
  .policy-meta { flex-direction: column; gap: 2px; font-size: 11px; }
  .policy-videos { gap: 6px; }
  .policy-video { padding: 4px; }
  .policy-video .model-title { font-size: 12px; }
  .policy-video .model-title small { font-size: 8px; }
  .policy-expand { right: 3px; bottom: 3px; width: 26px; height: 26px; font-size: 16px; }
  .outcome { font-size: 9px; line-height: 1.5; padding: 6px 4px; min-height: 42px; }
  .policy-video .end-note { font-size: 8px; height: 32px; }
  .policy-takeaway { grid-template-columns: 1fr; gap: 9px; padding-top: 16px; margin-top: 16px; }
  .policy-takeaway p { grid-column: 1; grid-row: auto; font-size: 13px; }
  .policy-takeaway strong { font-size: 17px; }
  .policy-data table { min-width: 570px; font-size: 12px; }
  .policy-data th { font-size: 11px; }
  .policy-data .table-scroll-hint { display: block; font-size: 11px; }
  .resource-links { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .resource-item { border-bottom: 0; padding-block: 16px; }
  .resource-item:last-child { border-bottom: 1px solid var(--line); }
  .resource-item small { font-size: 12px; }
  footer { gap: 14px; padding-block: 22px; font-size: 11px; }
  footer > span { flex-basis: calc(100% - 110px); }
  .footer-controls { width: 100%; justify-content: space-between; gap: 14px; }
  dialog { width: calc(100vw - 24px); padding: 14px; }
  .dialog-header { gap: 14px; margin-bottom: 12px; }
  .dialog-header h2 { font-size: 19px; }
  #dialog-description { font-size: 12px; }
}
html.reduced *, html.reduced *::before, html.reduced *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Publication metadata and restored research page, October 2026. */
figure { margin: 0; }
.hero { padding-top: 58px; padding-bottom: 42px; }
.hero-copy { max-width: 1040px; }
.hero h1 { max-width: 1000px; margin-inline: auto; font-size: clamp(29px, 3.2vw, 42px); line-height: 1.24; }
.hero .eyebrow { margin-bottom: 20px; font-size: 13px; font-weight: 450; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 23px; max-width: 1020px; margin: 26px auto 14px; padding: 0; list-style: none; font-size: 16px; line-height: 1.85; }
.authors li { white-space: nowrap; }
.authors sup, .affiliations sup { color: var(--accent); font-size: 10px; padding-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 26px; font-size: 15px; color: var(--muted); }
.hero-description { margin: 26px auto 28px; font-size: 16px; }
.hero-visual { max-width: 980px; }
#research-video { width: 100%; aspect-ratio: 16/9; background: #eef0f2; border-radius: 6px; }
.hero-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; }
.hero-caption a { text-decoration: none; }
.code-pending:disabled { cursor: not-allowed; opacity: 1; color: #667181; border-color: #d7dce2; background: #f5f6f8; }
.code-pending small { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: #e7ebf0; color: #596573; }
.abstract-content { max-width: 940px; }
.abstract h2 { text-align: left; }
.abstract p { line-height: 1.8; }
.results-section { background: #f8f9fb; }
.motion-lab { max-width: 960px; margin-inline: auto; }
#replay-stage.split { aspect-ratio: 720/220; }
.cost-highlight > strong { font-size: 37px; }
.diagram-labels { font-size: 19px; letter-spacing: .3px; }
.success-figure { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.success-figure > h3 { margin-bottom: 16px; }
.rate-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.rate-legend > span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.rate-legend svg { width: 18px; height: 18px; fill: currentColor; }
.rate-legend small { font-size: 11px; color: var(--muted); }
.rate-panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rate-panels figcaption { font-size: 14px; font-weight: 600; text-align: center; }
.rate-panels img { width: 100%; height: auto; }
.media-caption { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.citation { max-width: 1060px; }
.citation-heading, .citation-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.citation-note { color: var(--muted); margin-top: 14px; font-size: 14px; }
.citation-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.citation pre { padding: 24px; border: 1px solid var(--line); background: #f7f8fa; border-radius: 5px; font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
#copy-status { min-height: 24px; color: var(--muted); font-size: 13px; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
html:not(.js) .roll-lab, html:not(.js) .bond-lab, html:not(.js) .motion-chart-head, html:not(.js) #motion-chart, html:not(.js) .scrub-row,
html:not(.js) .task-tabs, html:not(.js) .policy-data, html:not(.js) .replay-chart-panel,
html:not(.js) .cost-family, html:not(.js) .turn-picker, html:not(.js) .replay-toolbar,
html:not(.js) .media-open, html:not(.js) .motion-setting, html:not(.js) .menu-toggle { display: none; }
html:not(.js) .representation-grid, html:not(.js) .bond-section, html:not(.js) .replay-results { grid-template-columns: 1fr; }
html:not(.js) #nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; font-size: 12px; }
html:not(.js) .site-header { height: auto; flex-wrap: wrap; padding-block: 12px; }
@media (max-width: 1000px) {
  .rate-panels { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 680px; margin-inline: auto; }
  .diagram-labels { font-size: 20px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 32px; }
  .hero .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .hero h1 { font-size: 29px; line-height: 1.27; }
  .authors { font-size: 14px; gap: 5px 15px; margin-top: 22px; }
  .affiliations { gap: 4px 16px; font-size: 12px; }
  .hero-description { font-size: 14px; margin: 22px auto; }
  .hero-caption { flex-wrap: wrap; font-size: 11px; gap: 2px 15px; }
  .citation-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .citation-actions .button { min-height: 38px; padding: 6px 12px; font-size: 12px; }
  .citation pre { font-size: 11px; padding: 16px; }
  .rate-panels { grid-template-columns: 1fr; max-width: 350px; gap: 22px; }
  .rate-legend { gap: 7px 16px; }
  .rate-legend > span { font-size: 11px; }
  #replay-stage.split { grid-template-columns: 1fr; aspect-ratio: auto; gap: 8px; }
  #replay-stage.split .replay-layer { aspect-ratio: 720/440; grid-column: 1; }
  #replay-stage.split .real-layer { grid-row: 1; }
  #replay-stage.split .sim-layer { grid-row: 2; }
  .diagram-labels { font-size: 23px; }
}
html[data-ready=error] .motion-lab .scrub-row,
html[data-ready=error] .replay-lab .scrub-row,
html[data-ready=error] #task-panel > .scrub-row,
html[data-ready=error] .model-picker,
html[data-ready=error] .task-tabs { display: none; }
@media (max-width: 680px) {
  .policy-videos { grid-template-columns: 1fr; gap: 16px; }
  .policy-video { padding: 10px; }
  .policy-video .model-title { flex-direction: row; font-size: 14px; }
  .policy-video .model-title small { font-size: 10px; }
  .policy-video .end-note { height: auto; min-height: 18px; font-size: 11px; }
  .outcome { font-size: 13px; min-height: 38px; padding: 8px; }
}

/* The complete film is the single box-sealing presentation. */
.video-chapters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; padding: 0 2px; }
.video-chapters button { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 68px; padding: 10px 9px 14px; text-align: left; color: var(--muted); border-bottom: 2px solid var(--line); font-size: 13px; line-height: 1.5; }
.video-chapters small { font-size: 11px; font-variant-numeric: tabular-nums; }
.video-chapters button:hover { background: var(--surface); color: var(--accent); }
.video-chapters button.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; border-bottom-color: #b5c9da; }
.video-chapters button::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: var(--chapter-progress, 0%); background: var(--accent); }
@media (max-width: 680px) {
  .video-chapters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .video-chapters button { min-height: 61px; padding: 8px 5px 10px; font-size: 11px; }
  .video-chapters small { font-size: 10px; }
}
