/* ECG-RSI: compact research narrative, legible mechanism and original evidence. */
:root {
  --ink: #192d45;
  --muted: #455d72;
  --blue: #27658f;
  --teal: #126e70;
  --violet: #51406d;
  --maroon: #942b3b;
  --warn: #942b3b;
  --line: #d6e2eb;
  --paper: #fff;
  --ivory: #f7fbff;
  --content: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
img, svg { max-width: 100%; height: auto; }
sup { font-size: .68em; line-height: 0; vertical-align: super; }
.container, .nav-wrap { width: min(var(--content), calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -70px; padding: 8px 15px; background: white; z-index: 30; }
.skip-link:focus { top: 10px; }
.site-header { height: 62px; border-bottom: 1px solid var(--line); background: white; }
.nav-wrap { display: flex; align-items: center; height: 100%; gap: 26px; }
.project-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--violet); font-size: 16px; font-weight: 720; text-decoration: none; }
.project-brand img { width: 39px; height: auto; }
.nav-links { display: flex; gap: 27px; margin-left: auto; }
.nav-links a, .nav-paper { font-size: 14px; font-weight: 550; text-decoration: none; }
.nav-links a { color: var(--muted); }
.nav-paper { margin-left: 3px; }
.hero { text-align: center; padding: 33px 0 28px; }
.hero h1 { color: var(--ink); }
.project-name { display: inline-flex; align-items: center; justify-content: center; gap: 17px; color: var(--violet); font-size: 48px; font-weight: 760; letter-spacing: -.045em; }
.project-name img { width: 77px; height: auto; }
.title-detail { display: block; font-size: 23px; font-weight: 570; letter-spacing: -.025em; line-height: 1.35; margin: 12px auto 0; max-width: 970px; }
.hero-idea { font-size: 16px; color: var(--muted); margin: 17px 0 13px; }
.hero-links { display: flex; align-items: center; justify-content: center; gap: 27px; }
.hero-links a { font-size: 14px; font-weight: 650; text-decoration: none; }
.evolution-section { margin-top: 5px; }
.evolution-demo { --ecg-red: #942b3b; --ecg-purple: #51406d; --ink: #2f2838; --muted: #665c70; --line: #e5dfe9; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 27px 20px; }
.eyebrow { font-size: 12px; letter-spacing: .095em; text-transform: uppercase; font-weight: 680; color: var(--violet); margin-bottom: 10px; }
.demo-heading h2 { font-size: 30px; min-height: 37px; font-weight: 680; }
.phase-count { font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); align-self: flex-start; padding-top: 5px; white-space: nowrap; }
.demo-phase { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.scene-kind { font-size: 12px; color: var(--muted); }
.demo-network { display: grid; grid-template-columns: minmax(0, 1fr) 346px; gap: 24px; padding: 0 27px 17px; }
.signal-workbench { min-width: 0; align-self: stretch; padding: 14px; border: 1px solid #eddfe4; border-radius: 8px; background: #fffafb; }
.zone-heading { font-size: 10px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; line-height: 1.4; min-height: 14px; margin-bottom: 13px; color: var(--ecg-red); }
.agent-column > .zone-heading { color: var(--ecg-purple); }
.evolution-demo[data-focus="signal"] .signal-workbench { border-color: #cfa4b0; }
.evolution-demo[data-focus="development"] .agent-column { border-color: #b5a1c9; }
.signal-workbench > svg { width: 100%; display: block; overflow: visible; }
.scene-label { font-size: 18px; font-weight: 600; fill: var(--muted); }
.edited-label { fill: var(--ecg-red); }
.signal-landmarks { font-size: 16px; font-weight: 600; fill: #776783; text-anchor: middle; }
.source-measurement { opacity: 0; }
.source-measurement path { fill: none; stroke: var(--ecg-red); stroke-width: 1.5; }
.source-measurement circle { fill: var(--ecg-red); }
.evolution-demo[data-step="0"] .signal-landmarks { fill: var(--ecg-red); }
.alignment-guides path { fill: none; stroke: #cbbfd4; stroke-width: 1.1; stroke-dasharray: 3 7; }
.reference-trace { fill: none; stroke: #7c6e8a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ghost-trace { fill: none; stroke: #d6cbdc; stroke-width: 1.6; stroke-dasharray: 3 4; }
.edited-trace { fill: none; stroke: var(--ecg-red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pr-region { fill: #f7e5e9; }
.qrs-evidence rect { fill: #eee8f4; }
.qrs-evidence path { fill: none; stroke: #ac9cbd; stroke-width: 1.2; }
.qrs-evidence text { font-size: 17px; fill: var(--ecg-purple); }
.pr-bracket, .rr-bracket { fill: none; stroke: var(--ecg-red); stroke-width: 1.7; }
.rr-bracket { stroke: var(--ecg-purple); }
.interval-label { font-size: 18px; fill: var(--ecg-red); font-weight: 650; text-anchor: middle; }
.rr-label { font-size: 17px; fill: var(--ecg-purple); text-anchor: middle; }
.scan-line { stroke: var(--ecg-purple); stroke-width: 2; opacity: 0; }
.construction-checks { display: flex; align-items: center; justify-content: flex-start; gap: 12px 17px; border-top: 1px solid var(--line); padding: 15px 0 12px; color: var(--muted); flex-wrap: wrap; font-size: 14px; min-height: 59px; }
.construction-checks > span { white-space: nowrap; }
.construction-checks i { font-style: normal; display: inline-flex; justify-content: center; align-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; margin-right: 4px; }
.construction-checks .pass { color: var(--ecg-purple); }
.construction-checks .fail { color: var(--ecg-red); }
.feedback-tag { font-size: 14px; width: 100%; color: var(--violet); font-weight: 550; }
.feedback-tag.active { color: var(--maroon); font-weight: 680; }
.ecg-question { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 105px; padding: 13px 14px; margin: 2px 0 10px; border: 1px solid #e7dfe9; border-left: 3px solid var(--ecg-purple); border-radius: 5px; background: #fff; }
.question-label { display: block; font-size: 10px; line-height: 1.3; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--ecg-purple); margin-bottom: 4px; }
.ecg-question strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; }
.ecg-question p { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.question-state { flex-shrink: 0; min-width: 116px; text-align: center; font-size: 11px; line-height: 1.3; white-space: nowrap; color: var(--ecg-purple); border: 1px solid #d9cee4; border-radius: 4px; padding: 5px 7px; }
.ecg-question[data-state="repair"] { border-left-color: var(--ecg-red); background: #fffafb; }
.ecg-question[data-state="repair"] .question-state { color: var(--ecg-red); border-color: #e5c6ce; }
.ecg-question[data-state="verified"] .question-state { background: #f0eaf6; }
.learning-route { display: flex; gap: 13px; align-items: center; min-height: 41px; font-size: 14px; color: var(--ink); }
.learning-route > svg { flex: 1; min-width: 15px; height: 22px; overflow: visible; }
.learning-route path { fill: none; stroke: #a192b2; stroke-width: 1.5; }
.learning-route circle { fill: var(--ecg-purple); opacity: 0; }
.learning-route > span { white-space: nowrap; }
.agent-column { position: relative; padding: 14px 53px 14px 14px; min-width: 0; border: 1px solid #e5ddec; border-radius: 8px; background: #faf8fd; }
.agent-state { border: 1px solid #d7ccdf; background: white; border-radius: 6px; padding: 16px 15px 9px; min-height: 249px; position: relative; }
.agent-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.agent-icon { color: var(--ecg-red); width: 26px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e6d4dc; border-radius: 5px; }
.agent-icon svg { width: 24px; height: 24px; }
.agent-icon path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.agent-heading h3 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.agent-heading > span:last-child { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); width: 100%; padding-left: 34px; }
.agent-rules { margin: 0; }
.agent-rules > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); grid-template-rows: minmax(19px, auto) auto; column-gap: 8px; row-gap: 0; min-height: 56px; align-items: start; align-content: center; border-top: 1px solid #eee8f2; }
.agent-rules dt { grid-column: 1; grid-row: 2; font-size: 13px; line-height: 1.5; color: var(--muted); }
.agent-rules dd { display: contents; margin: 0; font-size: 13px; line-height: 1.5; min-width: 0; }
.agent-rules s { grid-column: 2; grid-row: 1; color: #776783; display: block; min-height: 19px; text-decoration-color: #a99bb4; visibility: hidden; }
.agent-rules strong { grid-column: 2; grid-row: 2; color: var(--ink); font-weight: 560; display: block; }
.agent-rules .changed s { visibility: visible; }
.agent-rules .changed strong { color: var(--violet); }
.agent-rules #operator-rule.changed strong { color: var(--ecg-red); }
.agent-rules .focused { background: #f4eff9; }
.agent-rules #operator-rule.focused { background: #fff2f5; }
.agent-state.updated { border-color: #a99abe; }
.feedback-diagnosis { padding: 10px; margin-top: 12px; border: 1px solid #e1d6eb; border-radius: 5px; background: #fff; }
.feedback-diagnosis > span { display: block; font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--muted); margin-bottom: 5px; }
.diagnosis-body { display: grid; align-items: center; font-size: 12px; line-height: 1.45; }
.diagnosis-content, .diagnosis-placeholder { grid-area: 1 / 1; }
.diagnosis-content { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.diagnosis-placeholder { color: var(--muted); opacity: 0; }
.feedback-diagnosis strong { font-weight: 550; }
.diagnosis-content > span { color: var(--ecg-purple); }
.feedback-diagnosis svg { width: 24px; height: 16px; flex-shrink: 0; }
.feedback-diagnosis path { fill: none; stroke: #a18cb5; stroke-width: 1.5; }
.feedback-diagnosis circle { fill: var(--ecg-purple); opacity: 0; }
.feedback-diagnosis.active { border-color: #a68bbb; background: #f5f0fa; }
.student-state { position: static; display: flex; align-items: center; justify-content: center; min-height: 163px; padding: 17px 0 0; }
.student-state > div:first-child { width: 100%; }
.student-label { text-align: center; font-size: 14px; color: var(--ink); font-weight: 550; min-height: 24px; }
.branch-scene { width: 100%; max-width: 280px; height: 154px; display: block; margin: auto; }
.branch-scene path { fill: none; stroke: #a394b4; stroke-width: 1.6; }
.parent-dot { fill: var(--ecg-purple); stroke: white; stroke-width: 2; }
.branch-node { fill: white; stroke: #a394b4; stroke-width: 1.4; }
.branch-scene text { font: 15px ui-monospace, SFMono-Regular, Consolas, monospace; fill: var(--ink); text-anchor: middle; }
.branch-scene .branch-label { font: 500 16px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; fill: var(--muted); text-anchor: start; }
.branch-scene .learner-label { font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; fill: var(--muted); }
.learner-placeholder { opacity: 0; }
.branch-route.selected { stroke: var(--ecg-purple); stroke-width: 2.2; }
.branch-packet { fill: var(--ecg-purple); opacity: 0; }
.branch-node.active { fill: #efe9f5; stroke: var(--violet); stroke-width: 2; }
.branch-b.selected { fill: #ded2ea; stroke: var(--ecg-purple); stroke-width: 2.4; }
.student-state #student-status { text-align: center; font-size: 13px; color: var(--muted); min-height: 39px; line-height: 1.5; }
.learner-return { position: absolute; top: 65px; right: 0; height: calc(100% - 110px); width: 50px; }
.learner-return svg { position: absolute; left: 0; top: 0; width: 25px; height: 100%; overflow: visible; }
.learner-return path { fill: none; stroke: #a99ab8; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.learner-return circle { fill: var(--violet); opacity: 0; }
.learner-return > span { position: absolute; left: 28px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); white-space: nowrap; font-size: 14px; line-height: 1; color: var(--violet); font-weight: 550; }
.learner-return.active path { stroke: var(--violet); stroke-width: 1.5; }
.next-batch { opacity: 1; }
.wave-comparison { opacity: 0; }
.candidate-frame { fill: #fff; stroke: #dacede; stroke-width: 1.2; }
.candidate-label { font-size: 18px; font-weight: 650; fill: var(--ink); }
.trace-label { font-size: 16px; fill: var(--muted); }
.contrast-trace { fill: none; stroke: var(--ecg-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.candidate-pair .reference-trace { stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pair-caption { font-size: 17px; fill: var(--violet); font-weight: 550; text-anchor: middle; }
.evaluation-exit { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; min-height: 58px; margin: 0 27px 17px; padding: 13px 16px; border: 1px solid #dce3e9; border-radius: 7px; background: #f5f8fb; color: #536577; }
.evaluation-exit.active { border-color: #94a9bb; background: #edf3f8; }
.evaluation-route { display: flex; align-items: center; gap: 11px; font-size: 12px; }
.evaluation-route strong { color: #455f75; font-size: 13px; font-weight: 600; }
.evaluation-route svg { width: 36px; height: 18px; flex-shrink: 0; }
.evaluation-route path { fill: none; stroke: #7b90a1; stroke-width: 1.6; }
.evaluation-route circle { fill: #526f87; opacity: 0; }
.evaluation-exit > p { font-size: 12px; }
.evaluation-boundary { font-size: 11px; margin-left: auto; }
.demo-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 17px; padding: 17px 27px; min-height: 89px; background: #fff; }
.demo-footer > p { font-size: 14px; color: var(--muted); max-width: 610px; min-height: 45px; line-height: 1.6; flex: 1 1 430px; }
.demo-controls { display: flex; gap: 6px; align-items: center; flex-shrink: 0; margin-left: auto; }
.demo-controls button { border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; border-radius: 4px; min-width: 30px; height: 36px; padding: 4px; }
.demo-controls #play-toggle { border: 1px solid #d2c5df; font-size: 14px; min-width: 68px; margin-right: 4px; }
.demo-controls button:hover { background: #f1ebf7; color: var(--violet); }
.step-buttons { display: flex; gap: 2px; }
.control-phase { display: none; font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); text-align: center; min-width: 50px; }
.step-buttons button { width: 30px; min-width: 30px; border-bottom: 2px solid transparent; border-radius: 0; }
.step-buttons button[aria-current="step"] { color: var(--violet); border-color: var(--violet); font-weight: 700; }
.animation-progress { height: 2px; background: #eee8f3; }
.animation-progress > span { display: block; width: 100%; height: 100%; background: var(--violet); }
.demo-note { font-size: 13px; color: var(--muted); margin: 13px 0 0; text-align: center; }
.authors-section { text-align: center; padding: 31px 0 28px; border-bottom: 1px solid var(--line); }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 17px; font-size: 14px; line-height: 1.8; max-width: 1080px; margin: auto; }
.authors > span { white-space: nowrap; }
.authors a { color: var(--ink); text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.authors sup { color: var(--violet); margin-left: 2px; }
.affiliations { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 22px; justify-content: center; font-size: 12px; color: var(--muted); margin: 23px auto 0; max-width: 1040px; line-height: 1.5; }
.affiliations li { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.affiliation-mark { display: flex; justify-content: center; align-items: center; height: 30px; }
.affiliation-mark img { height: 30px; width: auto; }
.affiliations li:nth-child(3) .affiliation-mark img { width: 64px; height: auto; }
.author-note { font-size: 12px; color: var(--muted); margin-top: 15px; }
.findings-section { padding-top: 41px; }
.findings-section > h2 { font-size: 27px; font-weight: 630; margin-bottom: 30px; }
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.insights h3 { font-size: 18px; font-weight: 650; margin-bottom: 19px; }
.insights p { font-size: 14px; color: var(--muted); margin-top: 18px; }
.teaching-path { display: flex; align-items: center; gap: 16px; min-height: 77px; }
.teaching-path > div { min-width: 85px; }
.teaching-path span { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.teaching-path strong { font-size: 22px; font-weight: 550; color: var(--violet); letter-spacing: -.025em; }
.teaching-path > div:first-child strong { color: var(--blue); }
.teaching-path i { font-style: normal; color: #6c8397; font-size: 22px; align-self: flex-end; margin-bottom: 4px; }
.gain-bars { display: grid; gap: 12px; }
.gain-bars > div { display: grid; grid-template-columns: 27px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.gain-bars i { display: block; background: var(--blue); width: var(--gain); height: 11px; min-width: 3px; }
.gain-bars strong { font-family: inherit; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--blue); }
.headline-results { display: flex; align-items: center; gap: 54px; padding: 28px 0; margin: 29px 0 14px; border-block: 1px solid var(--line); }
.headline-results > div > strong { font-size: 35px; font-weight: 620; letter-spacing: -.04em; color: var(--ink); line-height: 1.2; display: block; }
.headline-results strong > span { font-size: 14px; font-weight: 400; letter-spacing: 0; margin-left: 7px; color: var(--muted); }
.headline-results > div > span { font-size: 14px; display: block; color: var(--muted); margin-top: 8px; }
.headline-results > p { font-size: 13px; color: var(--muted); margin-left: auto; }
.paper-comparison { margin: 30px 0 14px; }
.comparison-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 22px; margin-bottom: 20px; }
.comparison-heading h3 { font-size: 20px; font-weight: 600; }
.comparison-heading a { font-size: 14px; white-space: nowrap; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: white; padding: 15px; }
.comparison-scroll a { display: block; min-width: 870px; }
.comparison-scroll img { display: block; width: 100%; max-width: none; height: auto; }
.paper-comparison figcaption { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 13px; }
.scroll-hint { display: none; }
.detail-block { border-bottom: 1px solid var(--line); }
.detail-block summary { font-size: 14px; font-weight: 550; color: var(--muted); padding: 16px 0; cursor: pointer; list-style-position: inside; }
.detail-block summary::marker { color: var(--blue); font-size: 10px; }
.detail-content { font-size: 14px; color: var(--muted); padding: 7px 0 25px; line-height: 1.75; }
.detail-content > p { margin-bottom: 16px; }
.detail-content > p:last-child { margin: 16px 0 0; }
.detail-content figure { margin: 23px 0; }
.detail-content figure img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 5px; }
.detail-content figcaption { font-size: 13px; margin-top: 10px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 630px; border-collapse: collapse; font-family: inherit; font-size: 14px; line-height: 1.6; color: var(--ink); font-variant-numeric: tabular-nums; }
caption { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; margin-bottom: 12px; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
th:first-child, td:nth-child(2), th:nth-child(2) { text-align: left; }
thead { background: var(--ivory); color: var(--muted); }
thead th { font-weight: 600; }
.aggregate { background: #edf4fb; color: var(--blue); }
.aggregate > * { font-weight: 600; }
.resources-section { padding-top: 28px; }
.resource-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; }
.resource-links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.availability { font-size: 13px; color: var(--muted); margin: 15px 0; max-width: 850px; }
.citation .detail-content { position: relative; }
.copy-button { font-size: 13px; border: 1px solid var(--line); background: white; color: var(--blue); border-radius: 4px; padding: 6px 12px; cursor: pointer; }
pre { white-space: pre; overflow-x: auto; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; border: 1px solid var(--line); background: var(--ivory); padding: 19px; margin: 15px 0 0; }
code { font-family: inherit; }
#copy-status { font-size: 13px; margin-top: 8px; min-height: 20px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; font-size: 12px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 1000px) {
  .demo-network { grid-template-columns: minmax(0, 1fr) 315px; gap: 18px; padding-inline: 22px; }
  .demo-heading, .demo-footer { padding-inline: 22px; }
  .agent-state { padding-inline: 12px; }
  .agent-rules > div { grid-template-columns: 61px 1fr; gap: 7px; }
  .agent-heading h3 { font-size: 15px; }
  .agent-rules dd { font-size: 13px; }
  .demo-heading h2 { font-size: 28px; }
  .insights { gap: 36px; }
}
@media (max-width: 900px) {
  .demo-network { grid-template-columns: 1fr; gap: 22px; }
  .agent-column { width: 100%; max-width: 565px; margin-inline: auto; }
  .agent-state { padding-inline: 16px; min-height: 0; }
  .agent-heading > span:last-child { width: auto; padding: 0; margin-left: auto; }
  .agent-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .agent-rules > div { display: block; min-height: 89px; padding-top: 12px; }
  .agent-rules dt { font-size: 13px; margin-bottom: 5px; }
  .agent-rules dd { font-size: 13px; }
  .student-state { min-height: 151px; }
  .comparison-scroll a { min-width: 870px; }
  .scroll-hint { display: inline; }
}
@media (max-width: 650px) {
  .container, .nav-wrap { width: calc(100% - 34px); }
  .site-header { height: 56px; }
  .project-brand { font-size: 15px; gap: 9px; }
  .project-brand img { width: 36px; }
  .nav-wrap { gap: 15px; }
  .nav-links { display: none; }
  .nav-paper { margin-left: auto; font-size: 13px; }
  .hero { padding: 25px 0 24px; }
  .project-name { font-size: 39px; gap: 13px; }
  .project-name img { width: 65px; }
  .title-detail { font-size: 19px; max-width: 550px; line-height: 1.38; margin-top: 12px; }
  .hero-idea { font-size: 14px; max-width: 430px; margin: 15px auto 13px; line-height: 1.6; }
  .hero-links { gap: 26px; }
  .hero-links a { font-size: 13px; }
  .evolution-demo { border-radius: 7px; }
  .demo-heading { padding: 20px 16px 15px; align-items: flex-start; min-height: 112px; }
  .eyebrow { font-size: 11px; margin-bottom: 9px; letter-spacing: .065em; }
  .demo-heading h2 { font-size: 24px; min-height: 58px; max-width: 310px; }
  .phase-count { font-size: 12px; padding-top: 2px; }
  .scene-kind { font-size: 11px; }
  .demo-network { padding: 0 16px 15px; gap: 19px; }
  .signal-workbench { padding: 11px; }
  .zone-heading { font-size: 10px; letter-spacing: .025em; margin-bottom: 11px; }
  .scene-label { font-size: 29px; }
  .signal-landmarks { font-size: 25px; }
  .qrs-evidence text { font-size: 25px; }
  .rr-label { font-size: 27px; }
  .interval-label { font-size: 29px; }
  .candidate-label { font-size: 29px; }
  .trace-label { font-size: 27px; }
  .pair-caption { font-size: 27px; }
  .construction-checks { font-size: 12px; gap: 10px 12px; padding: 12px 0 9px; }
  .construction-checks .feedback-tag { font-size: 13px; white-space: normal; min-height: 43px; }
  .construction-checks i { width: 16px; height: 16px; font-size: 11px; margin-right: 3px; }
  .ecg-question { display: block; padding: 11px 12px; min-height: 132px; }
  .ecg-question strong { font-size: 13px; }
  .ecg-question p { font-size: 12px; }
  .question-state { display: inline-block; margin-top: 7px; }
  .learning-route { font-size: 13px; min-height: 37px; gap: 10px; }
  .agent-column { padding-right: 52px; }
  .agent-state { padding: 13px 12px 10px; }
  .agent-heading { gap: 7px; margin-bottom: 8px; }
  .agent-heading h3 { font-size: 14px; white-space: nowrap; }
  .agent-heading > span:last-child { font-size: 12px; margin-left: 0; width: 100%; padding-left: 31px; }
  .agent-icon { font-size: 21px; width: 24px; height: 27px; }
  .agent-rules { display: block; }
  .agent-rules > div { display: grid; grid-template-columns: 61px minmax(0, 1fr); column-gap: 8px; row-gap: 0; min-height: 54px; padding-block: 6px; }
  .agent-rules dt { font-size: 12px; margin-bottom: 0; }
  .agent-rules dd { font-size: 12px; line-height: 1.5; }
  .agent-rules s { min-height: 18px; }
  .student-state { padding-top: 17px; min-height: 158px; }
  .student-label { font-size: 14px; }
  .branch-scene { width: 100%; height: 154px; }
  .student-state #student-status { font-size: 12px; max-width: 280px; margin: auto; }
  .learner-return { top: 62px; width: 47px; height: calc(100% - 109px); }
  .learner-return svg { width: 24px; }
  .learner-return > span { left: 27px; font-size: 13px; }
  .evaluation-exit { margin-inline: 16px; gap: 5px 12px; padding-block: 12px; }
  .evaluation-route { font-size: 11px; gap: 8px; }
  .evaluation-route strong { font-size: 12px; }
  .evaluation-route svg { width: 24px; }
  .evaluation-boundary { margin-left: 0; }
  .demo-footer { padding: 15px 16px; min-height: 117px; gap: 13px; }
  .demo-footer > p { font-size: 13px; min-height: 42px; max-width: none; flex-basis: 100%; }
  .demo-controls { gap: 6px; }
  .demo-controls button { height: 38px; min-width: 38px; font-size: 13px; }
  .demo-controls #play-toggle { font-size: 13px; min-width: 64px; margin-right: 1px; }
  .step-buttons { display: none; }
  .control-phase { display: inline-block; }
  .step-buttons button { width: 26px; min-width: 26px; }
  .demo-note { font-size: 12px; line-height: 1.6; margin-top: 11px; }
  .authors-section { padding: 27px 0; }
  .authors { font-size: 13px; gap: 4px 14px; line-height: 1.8; }
  .affiliations { grid-template-columns: repeat(2, 1fr); font-size: 12px; gap: 20px 17px; margin-top: 22px; }
  .affiliation-mark { height: 30px; }
  .author-note { font-size: 12px; margin-top: 19px; }
  .findings-section { padding-top: 31px; }
  .findings-section > h2 { font-size: 24px; margin-bottom: 26px; }
  .insights { grid-template-columns: 1fr; gap: 29px; }
  .insights h3 { font-size: 17px; margin-bottom: 15px; }
  .teaching-path { min-height: 58px; gap: 15px; }
  .teaching-path > div { min-width: 73px; }
  .teaching-path strong { font-size: 21px; }
  .teaching-path span { font-size: 12px; }
  .insights p { font-size: 13px; margin-top: 14px; }
  .gain-bars { gap: 11px; max-width: 450px; }
  .gain-bars > div { font-size: 13px; grid-template-columns: 27px 1fr 66px; }
  .gain-bars i { height: 10px; }
  .gain-bars strong { font-size: 13px; }
  .headline-results { gap: 24px; flex-wrap: wrap; padding: 24px 0; margin: 27px 0 12px; }
  .headline-results > div > strong { font-size: 32px; }
  .headline-results strong > span { font-size: 12px; margin-left: 5px; }
  .headline-results > div > span { font-size: 13px; margin-top: 7px; }
  .headline-results > p { width: 100%; margin: 0; font-size: 12px; line-height: 1.6; }
  .headline-results > p br { display: none; }
  .comparison-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .comparison-heading h3 { font-size: 19px; }
  .comparison-heading a { font-size: 13px; }
  .comparison-scroll { padding: 10px; }
  .paper-comparison figcaption { font-size: 13px; }
  .detail-block summary { font-size: 13px; padding: 15px 0; }
  .detail-content { font-size: 13px; }
  .detail-content figcaption { font-size: 12px; }
  .resources-section { padding-top: 25px; }
  .resource-links { gap: 11px 24px; }
  .resource-links a { font-size: 13px; }
  .availability { font-size: 12px; margin-top: 14px; }
  .site-footer { padding-block: 22px; font-size: 12px; }
}
@media (max-width: 380px) {
  .container, .nav-wrap { width: calc(100% - 28px); }
  .demo-network, .demo-heading, .demo-footer { padding-inline: 13px; }
  .demo-heading h2 { font-size: 23px; max-width: 235px; min-height: 85px; }
  .agent-column { padding-right: 47px; }
  .agent-state { padding-inline: 10px; }
  .agent-rules { gap: 7px; }
  .agent-rules > div { min-height: 85px; }
  .student-label { min-height: 47px; }
  .learner-return { width: 43px; }
  .learner-return > span { left: 26px; font-size: 12px; }
  .construction-checks { gap: 10px; }
  .insights > article { min-width: 0; }
  .teaching-path { gap: 8px; }
  .teaching-path > div { min-width: 0; flex: 1; }
  .teaching-path strong, .teaching-path i { font-size: 18px; }
  .demo-controls { gap: 4px; }
  .step-buttons button { width: 25px; min-width: 25px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
@media print {
  .site-header, .hero-links, .demo-controls, .animation-progress, .copy-button { display: none; }
  .container { width: 100%; }
  .evolution-demo { break-inside: avoid; }
  .hero { padding-top: 0; }
  .authors-section, .findings-section { padding-top: 18px; }
  .detail-block { display: none; }
  .comparison-scroll { overflow: visible; }
  .comparison-scroll a { min-width: 0; }
  .site-footer { padding-bottom: 0; }
}

/* Reference-aligned publication header; animation and scientific content remain unchanged. */
@font-face {
  font-family: "Google Sans Flex";
  src: url("fonts/google-sans-flex-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
.hero { font-family: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 30px 0 28px; }
.hero .institution-banner { display: grid; grid-template-columns: 1fr .75fr 1.35fr 1.3fr; align-items: center; gap: 0; max-width: 1080px; margin: 0 auto 28px; padding: 0; list-style: none; }
.hero .institution-identity { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 78px; padding: 0 16px; border-left: 1px solid var(--line); }
.hero .institution-identity:first-child { border-left: 0; padding-left: 0; }
.hero .institution-identity:last-child { padding-right: 0; }
.hero .institution-symbol { width: 66px; height: 66px; flex: 0 0 66px; object-fit: contain; }
.hero .institution-shlab .institution-symbol { width: 88px; flex-basis: 88px; }
.hero .institution-name { font-size: 16px; font-weight: 500; line-height: 1.3; text-align: left; }
.hero h1 { max-width: 1040px; margin: 0 auto; font-family: inherit; font-size: 36px; font-weight: 700; line-height: 1.14; letter-spacing: -.024em; }
.hero h1 .project-name { display: inline; font: inherit; letter-spacing: inherit; white-space: nowrap; }
.hero h1 .hero-mark { display: inline-block; width: auto; height: 42px; margin-right: 5px; vertical-align: -7px; object-fit: contain; }
.hero .authors-section { width: auto; max-width: none; margin: 0; padding: 0; border: 0; }
.hero .authors { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 5px 18px; max-width: 1040px; margin: 23px auto 0; padding: 0; list-style: none; font-size: 15px; font-weight: 400; line-height: 1.65; }
.hero .authors > * { white-space: nowrap; }
.hero .authors a { font-family: inherit; font-size: inherit; font-weight: inherit; }
.hero .affiliations { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 18px; max-width: 1060px; margin: 14px auto 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
.hero .affiliations li { display: block; max-width: none; text-align: center; white-space: nowrap; }
.hero .affiliations li > a { display: inline; width: auto; }
.hero .author-note { display: flex; flex-wrap: nowrap; justify-content: center; align-items: baseline; gap: 11px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.hero .author-note .note-entry { display: inline-flex; align-items: baseline; gap: 5px; padding: 0; }
.hero .author-note .note-symbol { font-size: 16px; font-weight: 700; line-height: 1; }
.hero .author-note .note-divider { padding: 0; }
.hero .thesis, .hero .hero-idea { max-width: 1020px; margin: 21px auto 0; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.hero .hero-links { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 34px; margin: 18px auto 0; font-size: 14px; line-height: 1.4; }
.hero .hero-links a { font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; }
@media (max-width: 900px) {
  .hero .institution-identity { flex-direction: column; gap: 9px; padding-inline: 12px; }
  .hero .institution-name { font-size: 14px; text-align: center; }
}
@media (max-width: 640px) {
  .hero { padding: 23px 0; }
  .hero .institution-banner { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 0; margin-bottom: 23px; }
  .hero .institution-identity { gap: 8px; min-height: 0; padding-inline: 6px; }
  .hero .institution-symbol { width: 52px; height: 52px; flex-basis: auto; }
  .hero .institution-shlab .institution-symbol { width: 68px; height: 52px; flex-basis: auto; }
  .hero .institution-name { font-size: 12px; line-height: 1.3; }
  .hero h1 { font-size: 27px; font-weight: 700; line-height: 1.18; letter-spacing: -.022em; }
  .hero h1 .title-break { display: none; }
  .hero h1 .hero-mark { height: 34px; width: auto; margin-right: 4px; vertical-align: -6px; }
  .hero .authors { max-width: 100%; gap: 4px 14px; margin-top: 18px; font-size: 13px; line-height: 1.65; }
  .hero .affiliations { gap: 5px 12px; max-width: 100%; margin-top: 12px; font-size: 12px; line-height: 1.5; }
  .hero .affiliations li { max-width: 100%; white-space: normal; }
  .hero .author-note { gap: 7px; margin-top: 11px; font-size: 12px; }
  .hero .author-note .note-entry { gap: 4px; }
  .hero .author-note .note-symbol { font-size: 15px; }
  .hero .thesis, .hero .hero-idea { margin-top: 18px; font-size: 15px; line-height: 1.5; }
  .hero .hero-links { gap: 14px; min-height: 32px; margin-top: 15px; font-size: 13px; }
  .hero .hero-links a { font-size: 13px; }
}

main > section:not(.evolution-section) :is(p, h2, h3, h4, summary) { font-family: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif; }

.hero.container { width: min(1076px, calc(100% - 64px)); }
@media (max-width: 900px) { .hero.container { width: calc(100% - 48px); } }
@media (max-width: 640px) { .hero.container { width: calc(100% - 34px); } }
