@import url("./comparison.css");
@import url("./experience.css");
@font-face { font-family: "Terminal Mono"; src: url("fonts/terminal-mono-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Terminal Mono"; src: url("fonts/terminal-mono-bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Article Sans"; src: url("fonts/article-sans.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff") format("woff"); font-weight: 200 800; font-style: italic; font-display: swap; }
:root {
  /* Neutral chrome shared with PrismWAM: text, rules and surfaces carry no hue. */
  --ink: #1d1d1f; --ink-soft: #36363c; --muted: #5f5f68; --ink-3: #74747e;
  --paper: #fff; --mist: #f6f5fa; --mist-2: #efedf6; --line: #e7e5ef; --line-2: #d7d4e2; --line-3: #c4c3ce; --grid: #e6e5ec; --wire: #a3a8b3; --base: #d9d9e0;
  /* RoboDoctor lavender, PrismWAM's accent family: our results, the Doctor and its treatment. */
  --accent: #ac9fe3; --accent-light: #cbc1f1; --accent-soft: #f3f0fc; --accent-strong: #8577d4; --accent-ink: #6a5cc0; --accent-night: #cdc4f5; --focus: #8577d4;
  /* Clinical triad: observe (cool), diagnose (warm), treat (accent). Lines are for strokes on paper, inks for text. */
  --cool: #35a7ff; --cool-line: #1a8ae6; --cool-ink: #0062c4; --cool-soft: #e7f3ff;
  --warm: #ff9500; --warm-line: #e07800; --warm-ink: #a85400; --warm-soft: #fff1de;
  /* Night panels for recorded media and the agent monitor. */
  --night: #090b12; --night-2: #12141d; --night-3: #1b1e2a; --night-ink: #f2f1f7; --night-ink-2: #a9a8b8; --night-line: rgb(255 255 255 / 10%);
  --section: clamp(64px, 7vw, 100px);
  /* Earlier names, kept as aliases. */
  --purple: var(--accent-ink); --blue: var(--accent-ink); --blue-dark: var(--accent-ink); --teal: var(--accent-ink); --coral: var(--warm-line); --orange: var(--warm-ink);
  --font: "Manrope", "Article Sans", "PingFang SC", "Microsoft YaHei", sans-serif; --sans: var(--font); --mono: ui-monospace, Consolas, "PingFang SC", "Microsoft YaHei", monospace, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 17px/1.7 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; width: 100%; object-fit: cover; }
::selection { background: rgb(154 134 236 / 28%); color: var(--ink); }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 20px; background: #fff; padding: 10px; z-index: 100; }
.skip:focus { top: 20px; }
.floating-nav { position: fixed; z-index: 30; top: 16px; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 64px; padding: 0 20px; border: 1px solid rgb(20 16 40 / 8%); border-radius: 14px; background: rgb(255 255 255 / 82%); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 1px 2px rgb(20 16 40 / 4%), 0 10px 30px rgb(20 16 40 / 9%); transition: background 250ms, color 250ms; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -.7px; }
.brand-logo { width: 27px; height: 27px; flex: none; object-fit: contain; }
.floating-nav nav { display: flex; gap: 5px; font-size: 13px; }
.floating-nav nav a { padding: 8px 14px; border-radius: 7px; color: var(--muted); transition: background 200ms, color 200ms; }
.floating-nav nav a[aria-current], .floating-nav nav a:hover { color: var(--ink); background: rgb(29 29 31 / 6%); }
.language { justify-self: end; font-size: 12px; border: 0; background: none; min-height: 44px; padding: 8px; }
.nav-progress { position: absolute; height: 2px; bottom: -1px; left: 14px; right: 14px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero { padding-top: 142px; padding-bottom: 88px; }
.preview-note { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 42px; }
.preview-note > span { padding: 4px 11px; border: 1px solid var(--line); border-radius: 5px; }
.preview-note a { border-bottom: 1px solid var(--line); }
.hero h1 { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: clamp(62px, 9.2vw, 132px); line-height: 1.08; font-weight: 700; letter-spacing: -.075em; }
.brand-mark { color: var(--accent); font-size: .66em; font-weight: 400; transform: rotate(-12deg); }
.hero-title { text-align: center; font-size: clamp(25px, 3.25vw, 46px); font-weight: 500; line-height: 1.25; letter-spacing: -.045em; max-width: 1100px; margin: 27px auto 60px; }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; border-top: 1px solid var(--line); padding-top: 36px; }
.tagline { font: italic 400 40px/1.12 "Newsreader", "Article Sans", Georgia, serif; color: var(--muted); }
.hero-summary p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 520px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 13px 20px; border-radius: 8px; font-size: 13px; font-weight: 650; margin-top: 24px; }
.ink { background: var(--ink); color: white; }
.ink:hover { background: #34343a; }
.results { padding-bottom: 100px; }
.section-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 25px; gap: 20px; }
.section-label { display: flex; align-items: center; gap: 12px; font: italic 500 clamp(26px, 2.2vw, 30px)/1.3 "Newsreader", "Article Sans", Georgia, serif; color: var(--purple); }
.section-label::before { content: ""; width: 26px; height: 12px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 7h8l2-5 3 9 2-4h11' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 7h8l2-5 3 9 2-4h11' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.subtle-link { font-size: 13px; border-bottom: 1px solid var(--line); }
/* One size for every section title; the label above it carries the section name. */
h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.method-section { position: relative; background: var(--mist); border-block: 1px solid var(--line); color: var(--ink); padding: var(--section) 0 70px; }
.method-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.method-heading .section-label { grid-column: 1 / -1; }
.method-heading .section-label { margin-bottom: 14px; }
.method-heading h2 { max-width: 720px; }
.method-heading > p:last-child { color: var(--muted); max-width: 500px; font-size: 16px; line-height: 1.85; padding-top: 10px; }
.method-layout { --gap: 80px; --split: .38; position: relative; display: grid; grid-template-columns: .76fr 1.24fr; gap: var(--gap); margin-top: 66px; align-items: stretch; }
/* Hairline between the step list and the figure, centred in the gap and faded at both ends. */
.method-layout::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc((100% - var(--gap)) * var(--split) + var(--gap) / 2); width: 1px; background: linear-gradient(transparent, var(--line-2) 12%, var(--line-2) 88%, transparent); pointer-events: none; }
.story-step { min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 70px; opacity: .4; transition: opacity 350ms; }
.story-step.is-active { opacity: 1; }
.step-index { color: var(--purple); font-size: 12px; margin-bottom: 25px; font-variant-numeric: tabular-nums; }
.story-step h3 { font-size: 32px; line-height: 1.2; letter-spacing: -.8px; max-width: 340px; }
.story-step p { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.text-button { background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 0 0 5px; color: var(--purple); font-size: 13px; margin-top: 26px; }
.stage-column { min-width: 0; }
.method-stage { position: sticky; top: 112px; margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 28px 70px -40px rgb(17 11 39 / 30%); }
.stage-toolbar { display: flex; gap: 9px; align-items: center; padding: 18px 22px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stage-counter { margin-left: auto; font-variant-numeric: tabular-nums; }
.stage-visual { position: relative; }
.robot-scene { display: block; width: 100%; height: auto; }
/* Figure 2: Harness RSI, Hybrid intervention experience, then Direct operation experience. */
.system-figure text { font-family: var(--font); }
.sys-node rect { fill: #fff; stroke: var(--line-3); stroke-width: 1.2; }
.sys-title { fill: var(--ink); font-size: 16px; font-weight: 650; }
.sys-sub, .sys-label, .sys-note { fill: var(--muted); font-size: 11.5px; }
.sys-tag { fill: var(--purple); font: italic 15px "Newsreader", Georgia, serif; }
.sys-lock { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.sys-wire { fill: none; stroke: var(--wire); stroke-width: 1.5; stroke-linejoin: round; }
.sys-frame { fill: none; stroke: var(--line-3); stroke-width: 1.2; stroke-dasharray: 4 6; }
.sys-switch > rect:first-child { fill: var(--mist); stroke: var(--line-3); }
.sys-knob { fill: var(--accent-ink); animation: sys-switch 6s ease-in-out infinite; }
.sys-opt { fill: var(--muted); font-size: 11px; font-weight: 600; }
.sys-opt-hybrid { animation: sys-opt-a 6s ease-in-out infinite; }
.sys-opt-direct { animation: sys-opt-b 6s ease-in-out infinite; }
.sys-chunk rect { fill: var(--mist-2); stroke: var(--wire); }
.sys-record { fill: #fff; stroke-width: 1.4; }
.sys-record-d { stroke: var(--accent); }
.sys-record-i { stroke: var(--warm-line); }
.sys-rec-label { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.sys-link { stroke: var(--wire); stroke-width: 1.4; stroke-dasharray: 3 3; }
.sys-layer, .sys-node, .sys-chunk, .sys-chunk rect, .sys-wire, .sys-chunk-label, .sys-review, .sys-harness-loop, .sys-memory-hybrid, .sys-memory-direct { transition: opacity 450ms, stroke 450ms, fill 450ms; }
.method-stage .sys-layer { opacity: .3; }
.method-stage .s0, .method-stage:not([data-stage="0"]) :is(.s1, .s2) { opacity: 1; }
.method-stage[data-stage="0"] .sys-frame { stroke: var(--purple); stroke-width: 1.8; }
.method-stage:not([data-stage="0"]) .sys-harness-loop { opacity: 0; }
.method-stage[data-stage="0"] .sys-switch > rect:first-child { fill: var(--accent-soft); stroke: var(--purple); stroke-dasharray: none; }
.method-stage[data-stage="0"] .sys-harness-loop .sys-wire,
.method-stage:not([data-stage="0"]) :is(.s1, .s2) .sys-wire { stroke: var(--purple); stroke-dasharray: 5 5; animation: dash-flow .9s linear infinite; }
/* In the loop, review is diagnosis (warm) and fresh observation is sensing (cool); corrections stay lavender. */
.method-stage:not([data-stage="0"]) :is(.s1, .s2) .sys-review .sys-wire { stroke: var(--warm-line); }
.method-stage:not([data-stage="0"]) :is(.s1, .s2) .sys-wire.sys-observe { stroke: var(--cool-line); }
.method-stage:not([data-stage="0"]) .sys-experience-return { stroke-width: 2.6; }
.method-stage[data-stage="1"] .sys-chunk rect:nth-child(-n+3) { fill: var(--accent); stroke: var(--accent); }
.method-stage:not([data-stage="0"]) :is(.sys-agent, .sys-memory) > rect:first-child { fill: var(--accent-soft); stroke: var(--accent-ink); }
.method-stage[data-stage="1"] .sys-record-i { fill: var(--warm); stroke: var(--warm); }
.method-stage[data-stage="2"] .sys-record-d { fill: var(--accent); stroke: var(--accent); }
.method-stage[data-stage="1"] .sys-memory-direct, .method-stage[data-stage="2"] .sys-memory-hybrid { opacity: .35; }
.method-stage[data-stage="2"] :is(.sys-policy, .sys-base, .sys-chunk, .sys-chunk-label, .sys-review) { opacity: .12; }
.method-stage[data-stage="2"] .sys-review .sys-wire { animation: none; stroke-dasharray: none; }
.sys-direct-label, .method-stage[data-stage="2"] .sys-correction-label { display: none; }
.method-stage[data-stage="2"] .sys-direct-label { display: block; }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
@keyframes sys-switch { 0%, 42% { transform: translateX(0); } 50%, 92% { transform: translateX(76px); } 100% { transform: translateX(0); } }
@keyframes sys-opt-a { 0%, 42%, 100% { fill: var(--ink); } 50%, 92% { fill: var(--muted); } }
@keyframes sys-opt-b { 0%, 42%, 100% { fill: var(--muted); } 50%, 92% { fill: var(--ink); } }
.figure-caption { max-width: 900px; margin-top: 16px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.stage-caption { margin: 0; padding: 14px 24px 18px; max-width: none; color: var(--muted); font-size: 11.5px; background: var(--mist); border-top: 1px solid var(--line); }
.stage-copy { padding: 0 24px 24px; min-height: 120px; }
.stage-copy h4 { font-size: 20px; font-weight: 600; }
.stage-copy p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.stage-controls { display: flex; align-items: center; gap: 8px; padding: 16px 24px; background: var(--mist); border-top: 1px solid var(--line); }
.stage-controls button { width: 40px; height: 36px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; }
.stage-controls button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.stage-controls > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.cases { padding-block: var(--section); }
.case-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 90px; margin-bottom: 48px; }
.case-heading .section-label { margin-bottom: 14px; }
.case-heading > p { font-size: 17px; color: var(--muted); }
.case-viewer { display: grid; grid-template-columns: 1.5fr 1fr; border-radius: 16px; overflow: hidden; background: var(--mist); }
.case-media { position: relative; background: var(--night); display: flex; align-items: center; }
.case-media img { aspect-ratio: 16/9; object-fit: contain; }
.frame-stamp { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px 18px; background: rgb(9 11 18 / 90%); color: var(--night-ink); font-size: 10px; }
.case-description { padding: 36px; }
.case-kicker { font-size: 11px; color: var(--purple); }
.frame-count { margin-top: 25px; font-size: 12px; color: var(--muted); }
.case-description h3 { font-size: 25px; letter-spacing: -.6px; line-height: 1.3; margin-top: 12px; }
.case-description > p:not(.case-kicker) { font-size: 15px; line-height: 1.75; margin-top: 15px; color: var(--muted); min-height: 105px; }
.frame-controls { display: flex; gap: 8px; margin-top: 20px; }
.frame-controls button { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; }
.frame-controls button:disabled { opacity: .3; cursor: default; }
.case-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.case-timeline button { display: flex; gap: 14px; align-items: baseline; text-align: left; background: none; border: 0; border-top: 2px solid var(--line); padding: 15px 0; font-size: 13px; color: var(--muted); }
.case-timeline button span { font-size: 11px; }
.case-timeline button[aria-pressed="true"] { border-color: var(--accent-ink); color: var(--ink); }
.case-caveat { max-width: 900px; font-size: 13px; color: var(--muted); margin-top: 24px; }
.continuation { background: var(--mist); padding: 80px 0; }
.continuation h2 { max-width: 800px; margin-top: 22px; font-size: 40px; }
.continuation p:not(.section-label) { max-width: 670px; color: var(--muted); margin-top: 22px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .method-layout { --gap: 35px; --split: .4; grid-template-columns: .8fr 1.2fr; }
  .hero-bottom { gap: 50px; }
  .case-heading { gap: 40px; }
  .case-description { padding: 24px; }
  .story-step h3 { font-size: 27px; }
  .stage-controls { padding-inline: 16px; }
  .stage-controls > span { font-size: 10px; }
  .stage-copy { min-height: 150px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .floating-nav { gap: 8px; padding-inline: 12px; }
  .floating-nav nav a { padding: 8px; }
  .floating-nav .brand { font-size: 16px; }
  .hero { padding-top: 125px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(48px, 11vw, 80px); gap: 12px; }
  .hero-title { margin-bottom: 36px; font-size: 30px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; }
  .tagline { font-size: 32px; }
  .tagline br { display: none; }
  .hero-summary p { font-size: 16px; }
  .results { padding-bottom: 60px; }
  .method-section { padding-block: 65px; }
  .method-heading > p:last-child { font-size: 16px; }
  .method-layout { grid-template-columns: 1fr; --gap: 20px; margin-top: 32px; }
  .method-layout::before { display: none; }
  .stage-column { order: -1; position: sticky; top: 95px; z-index: 2; }
  .method-stage { position: static; margin-top: 0; }
  .stage-copy { padding: 0 18px 16px; min-height: 105px; }
  .stage-copy h4 { font-size: 17px; }
  .stage-copy p { font-size: 12px; }
  .stage-toolbar { padding: 12px 18px; }
  .stage-controls { padding-block: 10px; }
  .story-step { min-height: 490px; padding-block: 50px; }
  .story-step p { max-width: 540px; font-size: 16px; }
  .case-heading { grid-template-columns: 1fr; gap: 25px; }
  .case-viewer { grid-template-columns: 1fr; }
  .case-media { min-height: 0; }
  .case-description > p:not(.case-kicker) { min-height: 80px; }
  .frame-count { margin-top: 12px; }
  .cases { padding-block: 65px; }
  .case-timeline { gap: 12px; }
  .case-timeline button { font-size: 11px; flex-direction: column; gap: 4px; }
  .continuation h2 { font-size: 32px; }
}
@media (max-width: 480px) {
  .floating-nav { height: 58px; grid-template-columns: 1fr auto; top: 10px; }
  .floating-nav nav { grid-row: auto; grid-column: auto; justify-content: center; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); padding: 3px 8px; white-space: nowrap; background: #f6f5faf2; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 11px; }
  .hero { padding-top: 144px; }
  .preview-note { font-size: 10px; gap: 12px; margin-bottom: 32px; }
  .preview-note > span { white-space: nowrap; padding-inline: 7px; }
  .preview-note > a { text-align: right; }
  .hero-title { font-size: 25px; }
  .desktop-break { display: none; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-label { font-size: 24px; }
  .subtle-link { font-size: 12px; }
  .stage-column { top: 120px; }
  .stage-copy { min-height: 112px; }
  .story-step { min-height: 460px; }
  .story-step h3 { font-size: 27px; }
  footer { flex-wrap: wrap; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 760px) and (max-height: 780px) {
  .stage-column { position: static; }
  .story-step { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Complete research presentation: distinct interfaces for structure, execution and memory. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-keywords { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 32px; }
.hero { padding-top: 145px; padding-bottom: 64px; }
.hero-title { margin-bottom: 42px; }
.results { padding-bottom: 72px; }
/* Hairline on the content column so the hero does not run straight into the results. */
.results { border-top: 1px solid var(--line); padding-top: var(--section); }
.fine-print { font-size: 13px; line-height: 1.8; color: var(--muted); }
.research-disclosure { margin-top: 28px; border-block: 1px solid var(--line); }
.research-disclosure > summary { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 21px 0; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.research-disclosure > summary::-webkit-details-marker { display: none; }
.research-disclosure > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--purple); }
.research-disclosure[open] > summary::after { content: "−"; }
.research-disclosure > .fine-print { padding-bottom: 22px; }
#benchmark-details .benchmark-card { border-radius: 12px; margin-bottom: 24px; }
.research-disclosure > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.lab-section { padding-block: var(--section); }
.lab-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 64px; align-items: start; margin-bottom: 48px; }
.lab-heading > :not(h2) { grid-column: 1 / -1; }
.lab-heading > h2 { grid-column: 1; }
.lab-heading > h2 + p { grid-column: 2; }
.lab-heading .section-label { margin-bottom: 14px; }
.lab-heading > p:last-child:not(.section-label) { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 520px; padding-top: 8px; }
.harness-lab { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.harness-sidebar { padding: 36px; }
.segmented { display: inline-flex; background: var(--mist-2); border-radius: 8px; padding: 4px; gap: 4px; margin-bottom: 30px; }
.segmented button { background: none; border: 0; padding: 9px 22px; font-size: 13px; border-radius: 6px; min-height: 42px; }
.segmented button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgb(20 16 40 / 14%); color: var(--ink); }
.harness-sidebar h3 { font-size: 27px; line-height: 1.25; letter-spacing: -.6px; margin-bottom: 20px; }
.harness-sidebar > p { color: var(--muted); font-size: 16px; line-height: 1.8; min-height: 145px; }
.mode-facts { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.mode-facts b { color: var(--ink); font-size: 14px; font-weight: 500; }
.harness-map { background: var(--mist); padding: 28px 28px 22px; display: flex; flex-direction: column; justify-content: center; }
/* Figure 3: Hybrid keeps policy flow; Direct routes grounded actions from the agent. */
.harness-figure { display: block; width: 100%; height: auto; }
.harness-figure text { font-family: var(--font); }
.h-node rect { fill: #fff; stroke: var(--line-3); stroke-width: 1.2; transition: opacity 400ms, fill 400ms, stroke 400ms; }
.h-agent rect { fill: var(--accent-soft); stroke: var(--accent); }
.h-title { fill: var(--ink); font-size: 16px; font-weight: 650; }
.h-sub { fill: var(--muted); font-size: 11.5px; }
.h-wire { fill: none; stroke: var(--wire); stroke-width: 1.6; transition: opacity 400ms, stroke 400ms; }
.h-window { fill: #fff; stroke: var(--accent); stroke-dasharray: 3 3; }
.h-obs { stroke: var(--cool-line); stroke-dasharray: 2 4; }
.h-hybrid, .h-direct, .h-standby, .h-node { transition: opacity 400ms; }
.harness-map[data-mode="hybrid"] .h-policy-wire { stroke: var(--purple); stroke-width: 2.4; stroke-dasharray: 7 5; animation: dash-flow 1s linear infinite; }
.harness-map[data-mode="hybrid"] .h-agent-wire { stroke: var(--accent); stroke-dasharray: 4 4; }
.harness-map[data-mode="hybrid"] .h-direct, .harness-map[data-mode="hybrid"] .h-standby { opacity: 0; }
.harness-map[data-mode="direct"] .h-hybrid { opacity: 0; }
.harness-map[data-mode="direct"] .h-policy, .harness-map[data-mode="direct"] .h-policy-wire { opacity: .35; }
.harness-map[data-mode="direct"] .h-standby { opacity: 1; }
.harness-map[data-mode="direct"] .h-direct .h-agent-wire { stroke: var(--purple); stroke-width: 2.4; stroke-dasharray: 7 5; animation: dash-flow 1s linear infinite; }
.harness-map[data-mode="direct"] .h-agent rect { fill: var(--accent-soft); stroke: var(--accent-ink); stroke-width: 1.6; }
.map-agent-route { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--ink); }
.route-swatch { width: 26px; height: 0; border-top: 2.4px dashed var(--purple); flex-shrink: 0; }
.map-feedback { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.method-boundary { max-width: 950px; margin-top: 25px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.method-prose { padding: 15px 0 35px; max-width: 900px; color: var(--muted); font-size: 16px; }
.method-prose h4 { margin: 28px 0 15px; color: var(--ink); font-size: 21px; font-weight: 650; }
.method-prose p + p { margin-top: 16px; }
.regime-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.regime-table { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.regime-table th, .regime-table td { padding: 18px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.regime-table th { background: var(--mist); color: var(--ink); }
.regime-label { display: block; font-weight: 650; color: var(--purple); margin-bottom: 7px; }
.regime-scroll-hint { font-size: 12px; margin-top: 12px; }
.grounding-section { padding-block: var(--section); background: var(--mist); border-block: 1px solid var(--line); }
.protocol-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-bottom: 1px solid var(--line); }
.protocol-tabs button { display: flex; gap: 13px; align-items: center; text-align: left; border: 0; border-bottom: 2px solid transparent; background: none; padding: 20px 10px; color: var(--muted); font-size: 14px; }
.protocol-tabs button span { font-size: 11px; font-weight: 400; }
.protocol-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent-ink); }
.protocol-tabs b { font-weight: 600; }
.protocol-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; padding-top: 32px; }
.protocol-diagram { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.protocol-label { display: flex; justify-content: space-between; padding: 18px 22px; color: var(--muted); font-size: 10px; }
.protocol-diagram svg { display: block; width: 100%; }
.protocol-diagram svg text { fill: var(--muted); font: 12px var(--font); }
/* Figure 4: inspect → ground → execute a bounded prefix → observe again. */
.p-table { fill: var(--mist); stroke: var(--line); }
.p-camera path, .p-camera circle { fill: #fff; stroke: var(--muted); stroke-width: 1.3; }
.p-rays path { fill: none; stroke: var(--cool-line); stroke-width: 1; stroke-dasharray: 3 4; }
.p-pulse { fill: none; stroke: var(--cool-line); stroke-width: 1.5; opacity: 0; transform-origin: 62px 44px; }
.p-object circle { fill: #fff; stroke: var(--wire); stroke-width: 1.4; }
.p-object circle + circle { fill: var(--mist-2); }
.p-target path { fill: none; stroke: var(--cool-line); stroke-width: 2; }
.p-target circle { fill: var(--cool-line); }
.protocol-diagram .p-mono { font: 11px var(--mono); fill: var(--cool-ink); }
.p-path { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 6 6; }
.p-ghost { fill: none; stroke: var(--wire); stroke-width: 1.3; }
.p-miss { stroke: var(--coral); stroke-width: 2; }
.protocol-diagram .p-muted { fill: var(--ink-3); font-size: 11px; }
.p-offset path { fill: none; stroke: var(--coral); stroke-width: 1.5; }
.protocol-diagram .p-coral { fill: var(--warm-ink); }
.p-bound { fill: rgb(106 92 192 / 7%); stroke: var(--accent-ink); stroke-dasharray: 4 4; }
.p-step { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; }
.protocol-diagram .p-teal { fill: var(--accent-ink); font-weight: 600; }
.p-gripper path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.p-chunk rect { fill: #fff; stroke: var(--line-3); stroke-width: 1.2; transition: fill 300ms, stroke 300ms, opacity 300ms; }
.protocol-diagram .p-chunk-label { font-size: 11px; }
.protocol-diagram svg g, .p-chunk-label { transition: opacity 350ms; }
.protocol-diagram .p-offset, .protocol-diagram .p-rays, .protocol-diagram .p-execute, .protocol-diagram .p-release, .protocol-diagram .p-prefix, .protocol-diagram .p-replan, .protocol-diagram .p-withheld { opacity: 0; }
.p-release-path { fill: none; stroke: var(--accent-ink); stroke-width: 3.5; stroke-linecap: round; }
[data-protocol-state="0"] .p-target, [data-protocol-state="1"] .p-target { opacity: .3; }
[data-protocol-state="0"] .p-path { animation: dash-flow 1.2s linear infinite; }
[data-protocol-state="1"] .p-release, [data-protocol-state="1"] .p-prefix { opacity: 1; }
[data-protocol-state="1"] .p-miss { opacity: 0; }
[data-protocol-state="1"] .p-chunk rect:nth-child(-n+4) { fill: var(--accent); stroke: var(--accent); }
[data-protocol-state="2"] .p-rays, [data-protocol-state="2"] .p-offset, [data-protocol-state="2"] .p-execute, [data-protocol-state="2"] .p-withheld { opacity: 1; }
[data-protocol-state="2"] .p-proposed { opacity: .35; }
[data-protocol-state="2"] .p-chunk rect { stroke: var(--coral); stroke-dasharray: 3 3; }
[data-protocol-state="3"] .p-proposed, [data-protocol-state="3"] .p-chunk rect { opacity: .25; }
[data-protocol-state="3"] .p-replan, [data-protocol-state="3"] .p-rays { opacity: 1; }
[data-protocol-state="3"] .p-pulse { animation: p-pulse 1.4s ease-out infinite; }
@keyframes p-pulse { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.6); } }
.protocol-copy { padding: 15px 0; }
#protocol-tool { display: inline-block; max-width: 100%; color: var(--purple); font: 12px/1.6 var(--mono); overflow-wrap: anywhere; margin-bottom: 22px; }
.protocol-copy h3 { font-size: 30px; line-height: 1.25; letter-spacing: -.8px; margin-bottom: 22px; }
.protocol-copy > p { font-size: 17px; line-height: 1.85; color: var(--muted); min-height: 180px; }
.protocol-rule { margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--accent); font-size: 13px; color: var(--muted); line-height: 1.8; }
.strip-caption { font-size: 11px; color: var(--muted); padding: 0 25px 22px; }
/* Direct control: selectable stages, feedback and conditional routes. */
.control-subheading { font-size: 22px; font-weight: 650; margin: 0 0 12px; }
.operation-section { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
.operation-heading { max-width: 820px; margin-bottom: 28px; }
.operation-heading h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; letter-spacing: -.6px; margin-bottom: 16px; }
.operation-heading p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.operation-figure { margin: 0; }
.operation-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.operation-flow li { position: relative; min-width: 0; }
.operation-flow li + li::before { content: "→"; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: var(--purple); font-size: 18px; }
.operation-flow button { display: flex; flex-direction: column; gap: 7px; width: 100%; height: 100%; min-height: 152px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
.operation-flow button:hover { border-color: var(--purple); }
.operation-flow button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); color: var(--ink); }
.operation-number { font: 11px var(--mono); color: var(--purple); }
.operation-flow strong { font-size: 18px; font-weight: 650; }
.operation-summary { color: var(--muted); font-size: 12px; line-height: 1.6; }
.operation-flow button[aria-pressed="true"] .operation-summary { color: var(--ink-soft); }
.operation-feedback { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 16px 28px; padding: 14px 16px; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 12px 12px; color: var(--purple); }
.operation-feedback > span { font-size: 25px; }
.operation-feedback p { font-size: 12px; line-height: 1.7; }
.operation-inspector { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.operation-diagram { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.operation-diagram .protocol-label { font-size: 12px; color: var(--purple); padding: 22px 26px 10px; }
.operation-scene { display: block; width: 100%; height: auto; }
.operation-scene [hidden] { display: none; }
.operation-scene text { fill: var(--muted); font: 18px var(--font); }
.operation-scene .op-secondary { font-size: 16px; }
.operation-scene .op-coral { fill: var(--warm-ink); font-size: 16px; }
.op-table { fill: var(--mist); stroke: var(--line); }
.op-destination { fill: var(--mist-2); stroke: var(--wire); stroke-width: 1.5; stroke-dasharray: 5 5; }
.op-object { fill: var(--mist-2); stroke: var(--wire); stroke-width: 2; }
.op-arm { fill: none; stroke: #b8b8c1; stroke-width: 11; stroke-linejoin: round; stroke-linecap: round; }
.op-joints { fill: #fff; stroke: var(--muted); stroke-width: 2; }
.op-gripper { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.op-camera { fill: #fff; stroke: var(--muted); stroke-width: 1.8; }
.op-rays { fill: none; stroke: var(--cool-line); stroke-width: 1.5; stroke-dasharray: 4 5; }
.op-focus { fill: none; stroke: var(--cool-line); stroke-width: 1.8; stroke-dasharray: 4 4; }
.op-camera-point, .op-surface { fill: var(--cool-line); stroke: #fff; stroke-width: 1.5; }
.op-leader { fill: none; stroke: var(--wire); stroke-width: 1.4; }
.op-node { fill: var(--mist); stroke: var(--line-3); stroke-width: 1.5; }
.op-link { fill: none; stroke: var(--muted); stroke-width: 1.8; }
.op-ready rect { fill: var(--accent-soft); stroke: var(--accent-ink); stroke-width: 1.8; }
.op-ready text { fill: var(--accent-ink); }
.op-wait-node { fill: var(--warm-soft); stroke: var(--warm-line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.op-wait-link { fill: none; stroke: var(--warm-line); stroke-width: 1.6; stroke-dasharray: 5 5; }
.op-action { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; }
.op-target, .op-axis { fill: none; stroke: var(--accent-ink); stroke-width: 1.8; }
.op-offset { fill: none; stroke: var(--warm-line); stroke-width: 2; }
.op-muted { opacity: .4; }
.op-separator { stroke: var(--line-3); stroke-width: 1.2; stroke-dasharray: 4 6; }
.op-ghost-gripper { fill: none; stroke: var(--accent-ink); stroke-width: 2; }
.operation-diagram .strip-caption { font-size: 12px; padding: 16px 26px 24px; margin: 0; line-height: 1.75; }
.operation-branches { padding: 28px; background: var(--mist); border-left: 1px solid var(--line); }
.operation-branches > .operation-branches-label { margin: 0 0 20px; font-size: 13px; font-weight: 650; color: var(--muted); }
.operation-branch { position: relative; padding: 0 0 0 12px; border-left: 2px solid transparent; }
.operation-branch + .operation-branch { margin-top: 22px; }
.operation-branch.is-active { border-left-color: var(--purple); }
.operation-branch-index { display: block; margin-bottom: 6px; color: var(--purple); font: 10px var(--mono); }
.operation-branch h6 { margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.operation-branch p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
@media (max-width: 1000px) {
  .operation-flow { gap: 20px; }
  .operation-flow button { padding: 16px 12px; }
  .operation-flow li + li::before { left: -17px; }
  .operation-branches { padding: 24px; }
}
@media (max-width: 760px) {
  .operation-section { margin-top: 44px; padding-top: 32px; }
  .operation-flow { grid-template-columns: 1fr; gap: 18px; }
  .operation-flow button { display: grid; grid-template-columns: 25px 1fr; gap: 2px 12px; min-height: 0; padding: 13px 18px; }
  .operation-number { grid-row: 1 / 3; align-self: center; }
  .operation-flow strong { font-size: 17px; }
  .operation-summary { grid-column: 2; }
  .operation-flow li + li::before { content: "↓"; left: 28px; top: -18px; transform: none; font-size: 15px; line-height: 18px; }
  .operation-feedback { margin-bottom: 22px; }
  .operation-inspector { grid-template-columns: 1fr; }
  .operation-branches { border-left: 0; border-top: 1px solid var(--line); }
  .operation-scene text { font-size: 21px; }
  .operation-scene .op-secondary, .operation-scene .op-coral { font-size: 18px; }
}

.control-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--line); }
.note-symbol { display: block; width: 46px; height: 46px; padding: 9px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--purple); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.control-notes h3 { font-size: 19px; margin-bottom: 15px; font-weight: 650; }
.control-notes p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.memory-book { border: 1px solid var(--line-2); border-radius: 14px; background: #fff; box-shadow: 0 20px 65px #0e0a1f0a; overflow: hidden; }
.memory-heading { display: flex; justify-content: space-between; gap: 15px; padding: 18px 30px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--mist); }
.memory-pages { display: grid; grid-template-columns: 1fr 1fr; }
.memory-pages article { padding: 40px; }
.memory-pages article + article { border-left: 1px solid var(--line); background: var(--mist); }
.record-kind { display: inline-block; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; margin-bottom: 26px; }
.memory-pages article:first-child .record-kind { color: var(--warm-ink); background: var(--warm-soft); }
.memory-pages article { position: relative; }
.memory-pages article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.memory-pages article:first-child::before { background: var(--warm); }
.memory-pages h3 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; margin-bottom: 20px; }
.memory-pages article > p:not(.record-kind):not(.fine-print) { color: var(--muted); font-size: 16px; line-height: 1.8; }
.memory-measure { display: flex; gap: 40px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 38px; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.memory-measure small { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.memory-pages .fine-print { margin-top: 12px; font-size: 11px; }
.memory-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 30px; border-top: 1px solid var(--line); }
.memory-footer > p { color: var(--muted); font-size: 13px; }
.memory-footer .button { margin: 0; border: 0; white-space: nowrap; }
.reuse-loop { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 26px; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); font-size: 14px; font-weight: 600; }
.reuse-loop span { padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-align: center; }
.reuse-loop span:last-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.reuse-loop i { flex: 1; height: 1px; min-width: 12px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); font-size: 0; }
/* Sections alternate paper / mist from the case studies on; the shadow + clip extend .wrap sections to full width. */
.cases, #per-task, .references-section { background: var(--mist); box-shadow: 0 0 0 100vmax var(--mist); clip-path: inset(0 -100vmax); }
#rsi { padding-bottom: 56px; }
.case-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 36px; }
.case-tabs button { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); padding: 19px 20px; border-radius: 9px; font-size: 13px; }
.case-tabs button span { color: var(--ink-3); font-size: 11px; }
.case-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-tabs button[aria-pressed="true"] span { color: var(--night-ink-2); }
.case-context { display: grid; grid-template-columns: 1fr auto; gap: 60px; margin-bottom: 32px; align-items: center; }
.case-context .section-label { font-size: 20px; margin-bottom: 20px; }
#case-study-title { font-size: 30px; line-height: 1.25; letter-spacing: -.7px; max-width: 800px; }
#case-study-lead { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 810px; margin-top: 20px; }
#case-score { min-width: 180px; }
#case-score > p { color: var(--muted); font-size: 11px; }
#case-score > div { display: flex; gap: 20px; align-items: center; }
#case-score b { font-size: 38px; font-weight: 550; letter-spacing: -1px; }
#case-score small { display: block; color: var(--muted); font-size: 11px; }
#case-score i { font-style: normal; color: var(--ink-3); }
.case-media button { display: block; width: 100%; padding: 0; border: 0; background: none; }
.case-media button:focus-visible { outline-offset: -5px; }
.frame-controls .watch-rollout { width: auto; border-radius: 8px; padding: 0 15px; margin-left: auto; font-size: 12px; }
.case-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.case-frame { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case-frame-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--night); cursor: zoom-in; overflow: hidden; }
.case-frame-media img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.case-frame-media:hover img { transform: scale(1.035); }
.case-frame-media:focus-visible { outline-offset: -4px; }
.case-frame-stamp { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 5px; background: rgb(9 11 18 / 72%); color: var(--night-ink); backdrop-filter: blur(8px); font-size: 11px; font-variant-numeric: tabular-nums; }
.case-frame figcaption { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 20px 20px; border-top: 3px solid var(--accent); }
.case-frame:nth-child(1) figcaption { border-top-color: var(--line-3); }
.case-frame h4 { font-size: 17px; line-height: 1.35; letter-spacing: -.3px; }
.case-frame figcaption > p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.case-frame .watch-rollout { margin-top: auto; padding: 14px 0 0; border: 0; background: none; color: var(--purple); font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
/* Frame rail (research.js): a ring traces the lit step for 6 s, then the next frame lights; hover or a click holds it. */
.case-rail { display: grid; grid-template-columns: repeat(var(--frames, 3), minmax(0, 1fr)); gap: 20px; margin: 0 0 14px; padding: 4px 0; }
.case-step { display: flex; align-items: center; min-width: 0; cursor: pointer; }
.case-step-node { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--mist-2); color: var(--muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; transition: background-color 250ms, color 250ms, box-shadow 250ms; }
.case-step.is-done .case-step-node { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px rgb(150 138 201 / 30%); }
.case-step.is-active .case-step-node { background: var(--accent-ink); color: #fff; box-shadow: none; }
.case-step-ring { position: absolute; left: -4px; top: -4px; width: 34px; height: 34px; overflow: visible; opacity: 0; pointer-events: none; transition: opacity 250ms; }
.case-step-ring rect { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.case-rail.is-auto .case-step.is-run .case-step-ring { opacity: 1; }
.case-rail.is-auto .case-step.is-run .case-step-ring rect { animation: case-step-ring 6s linear forwards; }
.case-rail.is-auto.is-paused .case-step.is-run .case-step-ring rect { animation-play-state: paused; }
@keyframes case-step-ring { to { stroke-dashoffset: 0; } }
.case-step-link { position: relative; flex: 1 1 auto; height: 2px; margin: 0 -8px 0 12px; border-radius: 1px; background: var(--line); overflow: hidden; }
.case-step-link i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms cubic-bezier(.16, 1, .3, 1); }
.case-step.is-done .case-step-link i { transform: scaleX(1); }
.case-step:last-child .case-step-link { visibility: hidden; }
.case-step:not(.is-active):hover .case-step-node { box-shadow: inset 0 0 0 1px var(--accent); }
.case-frame { transition: border-color 250ms, box-shadow 250ms; }
.case-frame-media img { transition: transform 500ms cubic-bezier(.2, .7, .2, 1), opacity 250ms; }
@media (min-width: 761px) {
  .case-strip.has-active .case-frame.is-active { border-color: var(--accent-light); box-shadow: 0 0 0 1px var(--accent-light), 0 10px 28px rgb(95 82 166 / 10%); }
  .case-strip.has-active .case-frame:not(.is-active) .case-frame-media img { opacity: .82; }
}
/* Phone carousel dots (ring-carousel.js): the current dot grows, a ring fills around it. */
.rc-dots { display: none; }
.rc-dot { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.rc-dot::after { content: ""; position: absolute; inset: -5px; }
.rc-dot i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color 200ms, transform 350ms cubic-bezier(.16, 1, .3, 1); }
.rc-dot[aria-current="true"] i { background: var(--accent); transform: scale(1.35); }
.rc-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rc-ring { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; overflow: visible; opacity: 0; pointer-events: none; transform: rotate(-90deg); transition: opacity 300ms; }
.rc-ring circle { fill: none; stroke-width: 1.5; }
.rc-ring-bg { stroke: var(--line); }
.rc-ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 50.27; stroke-dashoffset: 50.27; }
.rc-dots.is-auto .rc-dot[aria-current="true"] .rc-ring { opacity: 1; }
.rc-dots.is-auto .rc-dot.is-run .rc-ring-fg { animation: rc-ring var(--rc-ms, 6s) linear forwards; }
.rc-dots.is-auto.is-paused .rc-dot.is-run .rc-ring-fg { animation-play-state: paused; }
@keyframes rc-ring { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .case-rail { display: none; }
  .rc-dots { display: flex; justify-content: center; margin: 8px 0 -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-step-ring, .rc-ring { display: none; }
}
@media print {
  .case-rail, .rc-dots { display: none; }
}
.case-analysis { display: grid; grid-template-columns: 180px 1fr; gap: 35px; background: #fff; padding: 28px; border-radius: 10px; margin-top: 25px; }
.case-analysis h4 { font-size: 15px; font-weight: 600; }
.case-analysis p { font-size: 15px; line-height: 1.9; color: var(--muted); }
#case-record-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 15px 0 24px; }
#case-record-list a { color: var(--purple); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
#case-record-list p { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.8; }
.archive-section { padding: var(--section) 0; }
.archive-heading { margin-bottom: 32px; }
.archive-heading h2 { margin-top: 14px; }
.archive-heading > p { color: var(--muted); font-size: 15px; }
.task-picker { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; font-size: 13px; }
.task-picker select { width: 280px; max-width: 100%; font: inherit; padding: 12px 42px 12px 15px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235f5f68' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px; border: 1px solid var(--line); border-radius: 8px; }
.episode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.episode-card { min-width: 0; background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow 250ms, border-color 250ms; }
.episode-card:hover { border-color: var(--line-2); box-shadow: 0 16px 40px -24px rgb(17 11 39 / 35%); }
.episode-poster { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--night); }
.episode-poster { aspect-ratio: 16 / 9; overflow: hidden; }
.episode-poster img { width: 300%; max-width: none; height: auto; aspect-ratio: auto; object-fit: fill; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); transform-origin: 16.6% 9%; }
.episode-poster:hover img { transform: scale(1.04); }
.episode-poster > span { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; display: grid; place-items: center; background: rgb(9 11 18 / 72%); color: #fff; border: 1px solid rgb(255 255 255 / 38%); border-radius: 50%; font-size: 22px; }
.episode-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 18px 18px 10px; font-size: 12px; color: var(--muted); }
.episode-meta b { font-size: 22px; color: var(--ink); font-weight: 550; }
.episode-meta small { font-size: 10px; color: var(--muted); }
.episode-experience { border: 0; border-top: 1px solid var(--line); background: none; width: calc(100% - 36px); text-align: left; margin: 4px 18px 0; padding: 12px 0; font-size: 12px; color: var(--purple); }
.compact-section { padding-block: 65px; }
.compact-section .lab-heading { margin-bottom: 25px; }
.compact-section .lab-heading > p:last-child { font-size: 16px; }
.discussion-section { padding: var(--section) 0; }
.discussion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.discussion-grid > section { padding-top: 24px; border-top: 2px solid var(--accent); }
.discussion-grid h3 { font-size: 21px; line-height: 1.4; margin-bottom: 20px; font-weight: 650; }
.discussion-grid p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.references-section { padding-block: 65px; }
.reference-list { padding: 0; list-style: none; margin: 25px 0 0; }
.reference-list li { display: grid; grid-template-columns: 35px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reference-index { color: var(--purple); font-size: 12px; }
.reference-project { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.prism-link { color: var(--purple); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent-light); text-underline-offset: 3px; }
.prism-link:hover { text-decoration-color: currentColor; }
.cite-link { color: var(--purple); font-variant-numeric: tabular-nums; }
.cite-link:hover { text-decoration: underline; }
.reference-title { font-size: 16px; font-weight: 550; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.reference-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
dialog { border: 1px solid var(--line); border-radius: 14px; width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 26px; color: var(--ink); background: white; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(6 6 12 / 88%); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 22px; letter-spacing: -.4px; }
.dialog-heading button { border: 1px solid var(--line); background: var(--mist); padding: 10px 14px; border-radius: 8px; font-size: 12px; flex-shrink: 0; }
#dialog-body video { display: block; width: 100%; max-height: 65vh; background: var(--night); }
.dialog-outcome { font-size: 14px; margin-block: 18px 12px; color: var(--muted); }
#figure-image { max-height: 65vh; object-fit: contain; background: var(--night); }
#figure-description { font-size: 15px; color: var(--muted); margin-top: 20px; }
.benchmark-card button, .benchmark-card select, .benchmark-card input { font-family: var(--font); }
.benchmark-card .benchmark-heading h3 { font-size: 24px; }
.benchmark-card .benchmark-intro { font-size: 14px; }
.benchmark-source { color: var(--purple); }
@media (max-width: 1000px) {
  .floating-nav { grid-template-columns: auto 1fr auto; gap: 10px; }
  .floating-nav nav { justify-content: center; font-size: 11px; }
  .floating-nav nav a { padding-inline: 8px; }
  .harness-lab { grid-template-columns: 1fr 1fr; }
  .harness-sidebar, .harness-map { padding: 28px; }
  .protocol-panel { gap: 30px; }
  .memory-pages article { padding: 30px; }
  .case-context { gap: 30px; }
  .case-tabs button { padding: 15px; gap: 8px; font-size: 12px; }
}
@media (max-width: 760px) {
  .floating-nav { grid-template-columns: 1fr auto; }
  .floating-nav nav { position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: #f6f5faf5; color: var(--ink); max-width: calc(100vw - 32px); overflow-x: auto; white-space: nowrap; justify-content: flex-start; }
  .floating-nav nav a { flex-shrink: 0; }
  .hero { padding-top: 155px; }
  .hero-keywords { font-size: 10px; }
  .harness-lab, .protocol-panel, .case-context { grid-template-columns: 1fr; }
  .lab-heading, .method-heading { grid-template-columns: 1fr; row-gap: 16px; }
  .lab-heading .section-label, .method-heading .section-label { margin-bottom: 0; }
  .stage-caption { display: none; }
  .case-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; }
  .case-frame { flex: 0 0 84%; scroll-snap-align: start; }
  .case-frame figcaption > p { font-size: 13px; }
  .system-figure .sys-label, .system-figure .sys-sub, .system-figure .sys-note { font-size: 17px; }
  .system-figure .sys-title { font-size: 21px; }
  .system-figure .sys-rec-label { font-size: 18px; }
  .system-figure .sys-opt { font-size: 15px; }
  .lab-heading > h2 + p { grid-column: 1; }
  .section-label::before { width: 22px; }
  .harness-sidebar > p { min-height: 0; }
  .harness-map { padding-block: 32px; }
  .lab-section, .grounding-section { padding-block: 60px; }
  .lab-heading > p:last-child:not(.section-label) { font-size: 16px; }
  .protocol-tabs { grid-template-columns: repeat(2, 1fr); }
  .protocol-tabs button { padding: 15px 8px; }
  .protocol-copy > p { min-height: 0; font-size: 16px; }
  .protocol-copy h3 { font-size: 27px; }
  .control-notes { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
  .control-notes article { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .control-notes article:last-child { border-bottom: 0; }
  .note-symbol { float: right; margin: 0 0 8px 12px; }
  .memory-pages { grid-template-columns: 1fr; }
  .memory-pages article + article { border-left: 0; border-top: 1px solid var(--line); }
  .memory-heading { flex-wrap: wrap; padding: 18px 24px; }
  .memory-pages article { padding: 28px; }
  .memory-measure { font-size: 34px; gap: 28px; }
  .memory-footer { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .reuse-loop { gap: 6px; padding: 14px 10px; font-size: 11px; }
  .reuse-loop span { padding: 7px 8px; }
  .case-tabs { grid-template-columns: repeat(2, 1fr); }
  #case-study-title { font-size: 27px; }
  #case-score > div { gap: 28px; }
  #case-score b { font-size: 32px; }
  .case-analysis { grid-template-columns: 1fr; gap: 15px; padding: 22px; }
  #case-record-list { grid-template-columns: 1fr; }
  .archive-heading { grid-template-columns: 1fr; gap: 20px; }
  .episode-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .episode-meta { padding: 12px 12px 6px; flex-wrap: wrap; }
  .episode-meta b { font-size: 19px; }
  .episode-experience { margin-inline: 12px; width: calc(100% - 24px); font-size: 11px; }
  .discussion-grid { grid-template-columns: 1fr; gap: 32px; }
  .reference-title { font-size: 14px; }
  .reference-list li { grid-template-columns: 24px 1fr; gap: 10px; }
  dialog { padding: 18px; }
  .dialog-heading h2 { font-size: 18px; }
  .case-timeline button { font-size: 12px; }
}
@media (max-width: 480px) {
  .reuse-loop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .reuse-loop i { display: none; }
  .protocol-tabs button { font-size: 12px; gap: 8px; }
  .case-description { padding: 24px; }
  .case-description > p:not(.case-kicker) { min-height: 0; }
  .case-description h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .floating-nav, .stage-controls, .frame-controls, .episode-poster > span { display: none; }
  .method-stage, .stage-column { position: static; }
  .story-step { min-height: 0; opacity: 1; padding-block: 20px; }
  .wrap { width: 100%; }
  .hero, .lab-section, .cases { padding-block: 25px; }
}
#case-group-intro { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--line); }

/* Clinical opening: name and claim on the left, a live monitor strip tied to Observe/Diagnose/Treat. */
.hero { position: relative; padding-top: 148px; padding-bottom: 64px; }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw) 34%; z-index: -1; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 30% 20%, #000 20%, transparent 75%); }
/* Single column, paper order: name, title, authors, links; the one-line summary sits under the demo. */
.hero-head { margin-bottom: 48px; }
.hero h1 { display: block; font-size: clamp(56px, 7.4vw, 108px); line-height: .95; font-weight: 750; letter-spacing: -.06em; }
.hero-title .desktop-break { display: none; }
.hero-title { text-align: left; max-width: none; margin: 22px 0 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.22; letter-spacing: -.035em; color: var(--ink); }
.hero-intro { max-width: 860px; margin: 28px auto 0; text-align: center; font-size: 19px; line-height: 1.65; color: var(--ink-soft); text-wrap: balance; }
.hero-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "monitor monitor" "image story"; overflow: hidden; border-radius: 18px; background: var(--night-2); color: var(--night-ink); border: 1px solid var(--night-2); box-shadow: 0 30px 80px -40px rgb(9 11 18 / 60%), 0 1px 3px rgb(9 11 18 / 10%); }
.hero-monitor { grid-area: monitor; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; height: 76px; padding: 0 18px 8px; background: var(--night); color: #8a899b; border-bottom: 1px solid var(--night-line); overflow: hidden; }
.hero-monitor svg { position: absolute; inset: 6px 0 14px; width: 100%; height: calc(100% - 20px); }
.monitor-trace, .monitor-progress { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.monitor-trace { stroke: rgb(255 255 255 / 15%); }
.monitor-progress { stroke: var(--cool); stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgb(53 167 255 / 70%)); }
.monitor-progress1 { stroke: var(--warm); filter: drop-shadow(0 0 4px rgb(255 149 0 / 70%)); }
.monitor-progress2 { stroke: var(--accent); filter: drop-shadow(0 0 4px rgb(172 159 227 / 75%)); }
.monitor-label { position: relative; font: italic 400 14px/1 "Newsreader", "Article Sans", Georgia, serif; transition: color 300ms; }
.hero-monitor[data-step="0"] .monitor-label:nth-of-type(1) { color: #7cc4ff; }
.hero-monitor[data-step="1"] .monitor-label:nth-of-type(2) { color: #ffb44d; }
.hero-monitor[data-step="2"] .monitor-label:nth-of-type(3) { color: var(--accent-night); }
.hero-demo-image { grid-area: image; position: relative; min-width: 0; background: var(--night); align-self: center; margin: 24px 0 24px 24px; border-radius: 12px; overflow: hidden; }
.hero-demo-image video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.hero-frame-source { position: absolute; left: 16px; bottom: 12px; background: rgb(9 11 18 / 72%); padding: 4px 9px; border-radius: 5px; font-size: 10px; color: var(--night-ink); backdrop-filter: blur(8px); }
.hero-demo-story { grid-area: story; min-width: 0; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-demo-label { color: var(--night-ink-2); font-size: 13px; }
.hero-demo-controls { display: flex; gap: 4px; margin: 16px 0 24px; width: 100%; padding: 4px; background: rgb(255 255 255 / 6%); border: 1px solid var(--night-line); border-radius: 10px; }
.hero-demo-controls button { background: transparent; border: 0; border-radius: 7px; padding: 9px 5px; flex: 1; font-size: 13px; color: var(--night-ink-2); transition: background 200ms, color 200ms; }
.hero-demo-controls button::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--stage-color); }
.hero-demo-controls [data-hero-step="0"] { --stage-color: var(--cool); }
.hero-demo-controls [data-hero-step="1"] { --stage-color: var(--warm); }
.hero-demo-controls [data-hero-step="2"] { --stage-color: var(--accent); }
.hero-demo-controls button[aria-pressed="true"] { color: var(--ink); background: rgb(255 255 255 / 92%); }
.hero-demo-copy { width: 100%; overflow: hidden; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night); color: var(--night-ink); font-family: "Terminal Mono", Consolas, monospace; font-variant-ligatures: none; }
.hero-terminal-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--night-line); background: rgb(255 255 255 / 4%); color: var(--night-ink-2); font-size: 13px; }
.hero-terminal-bar > span:first-child { color: var(--accent-night); }
.hero-terminal-light { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #8ce0bc; }
.hero-terminal-content { padding: 18px 16px; min-height: 244px; }
.hero-demo-copy h2 { font: 600 18px / 1.5 "Terminal Mono", Consolas, monospace; letter-spacing: 0; color: var(--night-ink); }
.hero-agent-prompt { color: var(--accent-night); transition: color 300ms; }
.hero-demo:has(.hero-monitor[data-step="0"]) .hero-agent-prompt { color: #7cc4ff; }
.hero-demo:has(.hero-monitor[data-step="1"]) .hero-agent-prompt { color: #ffb44d; }
.hero-agent-output { display: grid; margin-top: 15px; }
.hero-agent-output p { grid-area: 1 / 1; margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: #b9b8c8; font-size: 15px; line-height: 1.85; }
#hero-body-reserve { visibility: hidden; }
.hero-demo-copy .hero-measure, .hero-demo-copy .hero-agent-result { margin: 12px 0 0; min-height: 1.75em; color: var(--accent-night); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.hero-demo-copy .hero-agent-result { margin-top: 6px; color: #8ce0bc; }
.hero-agent-dots span { animation: hero-agent-dot 1.2s infinite; }
.hero-agent-dots span:nth-child(2) { animation-delay: .2s; }
.hero-agent-dots span:nth-child(3) { animation-delay: .4s; }
.hero-demo-copy[data-streaming="true"] #hero-demo-body::after { content: "▍"; color: var(--warm); animation: hero-agent-dot .8s steps(2, end) infinite; }
.hero-demo-copy[data-working="false"] .hero-agent-dots span, .hero-demo-copy[data-working="false"] #hero-demo-body::after { animation-play-state: paused; }
@keyframes hero-agent-dot { 0%, 75%, 100% { opacity: .25; } 35% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-agent-dots span, .hero-demo-copy[data-streaming="true"] #hero-demo-body::after { animation: none; }
}
.hero-demo-caption { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 12px 4px 0; max-width: 960px; }
.hero-summary-note { font-size: 13px; max-width: none; }
.hero-case-link { margin-top: auto; padding-top: 24px; font-size: 13px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
/* Replay controls (hero-teaser.js): hover a zone of the trace to preview it, click to seek; the playhead rides the trace. */
.hero-demo.is-interactive .hero-monitor { cursor: pointer; -webkit-user-select: none; user-select: none; }
.monitor-zone, .monitor-cursor, .monitor-head { position: absolute; pointer-events: none; opacity: 0; }
.monitor-zone { top: 4px; bottom: 4px; left: 0; width: 33.333%; border-radius: 8px; background: rgb(255 255 255 / 5.5%); transform: translate3d(calc(var(--zone, 0) * 100%), 0, 0); transition: opacity 200ms, transform 300ms cubic-bezier(.16, 1, .3, 1); }
.monitor-cursor { top: 6px; bottom: 6px; left: 0; width: 1px; background: rgb(255 255 255 / 42%); transform: translate3d(var(--cursor-x, 0), 0, 0); transition: opacity 150ms; }
.monitor-cursor span { position: absolute; top: 0; left: 6px; padding: 2px 6px; border-radius: 4px; background: rgb(9 11 18 / 82%); color: var(--night-ink); font: 12.5px/1.3 "Terminal Mono", Consolas, monospace; white-space: nowrap; }
.hero-monitor.is-cursor-flipped .monitor-cursor span { left: auto; right: 6px; }
.hero-monitor[data-preview] :is(.monitor-zone, .monitor-cursor) { opacity: 1; }
.hero-monitor[data-preview="0"] .monitor-label:nth-of-type(1), .hero-monitor[data-preview="1"] .monitor-label:nth-of-type(2), .hero-monitor[data-preview="2"] .monitor-label:nth-of-type(3) { color: #fff; }
.hero-monitor[data-preview="0"] .monitor-seg0, .hero-monitor[data-preview="1"] .monitor-seg1, .hero-monitor[data-preview="2"] .monitor-seg2 { stroke: rgb(255 255 255 / 40%); }
.monitor-head { top: 0; left: 0; z-index: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--head-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--head-color) 24%, transparent), 0 0 10px var(--head-color); transition: opacity 300ms, background-color 300ms; }
.hero-monitor[data-step="0"] { --head-color: var(--cool); }
.hero-monitor[data-step="1"] { --head-color: var(--warm); }
.hero-monitor[data-step="2"] { --head-color: var(--accent); }
.hero-demo.is-interactive:not([data-finished="true"]) .monitor-head { opacity: 1; }
.hero-demo.is-interactive .hero-demo-image { cursor: pointer; }
.hero-demo-image video:focus-visible { outline: none; }
.hero-demo-image:has(video:focus-visible) { box-shadow: 0 0 0 2px var(--night-2), 0 0 0 4px var(--focus); }
/* Play / pause / replay: shown while idle, flashed on resume; the whole video is the hit target. */
.hero-glyph { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; background: rgb(10 10 20 / 60%); color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / 30%); backdrop-filter: blur(14px); pointer-events: none; opacity: 0; transform: scale(.9); transition: opacity 250ms, transform 400ms cubic-bezier(.16, 1, .3, 1); }
.hero-glyph svg { grid-area: 1 / 1; width: 17px; height: 17px; opacity: 0; }
.hero-demo[data-glyph="play"] .hero-icon-play, .hero-demo[data-glyph="pause"] .hero-icon-pause, .hero-demo[data-glyph="replay"] .hero-icon-replay { opacity: 1; }
.hero-demo.is-interactive:is([data-glyph="play"], [data-glyph="replay"]) .hero-glyph { opacity: 1; transform: none; }
.hero-demo.is-flash .hero-glyph { animation: hero-glyph-flash 700ms cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes hero-glyph-flash { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.14); } }
@media (hover: hover) and (pointer: fine) {
  .hero-demo.is-interactive[data-glyph="pause"] .hero-demo-image:hover .hero-glyph { opacity: .92; transform: none; }
}
@media (max-width: 900px) {
  .hero-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-demo-story { padding: 20px; }
  .hero-demo-controls { margin-block: 12px 18px; }
}
@media (max-width: 650px) {
  .hero { padding-top: 132px; padding-bottom: 40px; }
  .hero h1 { font-size: 52px; }
  .hero-title { font-size: 24px; margin-top: 14px; }
  .hero-intro { font-size: 16px; margin-top: 20px; text-align: left; }
  .hero-head { margin-bottom: 30px; }
  .hero-demo { grid-template-columns: 1fr; grid-template-areas: "monitor" "image" "story"; border-radius: 12px; }
  .hero-monitor { height: 60px; padding-inline: 12px; }
  .monitor-label { font-size: 12px; }
  .hero-demo-story { padding: 20px; }
  .hero-demo-image { margin: 16px 16px 0; }
  .hero-demo-copy h2 { font-size: 18px; }
  .hero-case-link { padding-top: 16px; }
  .hero-frame-source { left: 8px; bottom: 8px; font-size: 9px; }
  .hero-glyph { right: 8px; bottom: 8px; width: 36px; height: 36px; }
  .hero-glyph svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .monitor-trace { stroke-dashoffset: 0; }
  .hero-monitor::after { display: none; }
}
@media print {
  .hero { padding-top: 25px; }
}

/* Method details: a prominent entry card, then paper-style prose with numbered sections, tables and algorithms. */
.md-details { margin-top: 36px; border: 0; }
.md-details > summary { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kicker toggle" "title toggle" "outline toggle"; column-gap: 28px; row-gap: 6px; align-items: center; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); box-shadow: 0 1px 2px rgb(20 16 40 / 5%), 0 6px 20px rgb(20 16 40 / 6%); transition: border-color 200ms, box-shadow 200ms; }
.md-details > summary::after, .md-details[open] > summary::after { content: none; }
.md-details > summary:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgb(20 16 40 / 6%), 0 14px 34px rgb(20 16 40 / 9%); }
.md-details[open] > summary { border-radius: 14px 14px 0 0; border-bottom-color: var(--line); box-shadow: none; }
.md-kicker { grid-area: kicker; display: flex; align-items: center; gap: 10px; margin-bottom: 2px; color: var(--purple); font-size: 24px; line-height: 1.4; font-weight: 700; }
.md-kicker::before { content: ""; width: 20px; height: 24px; flex-shrink: 0; border: 1.6px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) 5px 8px / 8px 1.4px no-repeat, linear-gradient(currentColor, currentColor) 5px 14px / 8px 1.4px no-repeat; }
.md-title { grid-area: title; font-size: 20px; line-height: 1.35; font-weight: 650; letter-spacing: -.3px; color: var(--ink); }
.md-outline { grid-area: outline; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.md-outline span { padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; }
.md-toggle { grid-area: toggle; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; }
.md-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms; }
.md-details[open] .md-toggle::after { transform: translateY(2px) rotate(225deg); }
.md-details .md-close, .md-details[open] .md-open { display: none; }
.md-details[open] .md-close { display: inline; }
.method-prose.md-paper { max-width: none; padding: 12px 48px 44px; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.md-paper > * { max-width: 780px; }
.md-paper > figure { max-width: 980px; }
.md-paper h4 { margin: 40px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.2px; scroll-margin-top: 110px; }
.md-paper h4:first-child { margin-top: 18px; padding-top: 0; border-top: 0; }
.md-paper p + p { margin-top: 14px; }
.md-paper strong { color: var(--ink); font-weight: 700; }
.md-paper em { font-family: "Newsreader", Georgia, serif; font-size: 1.08em; }
.md-paper sub, .md-paper sup { font-size: .72em; line-height: 0; }
.md-paper code { padding: 1px 6px; border-radius: 4px; background: var(--mist-2); color: var(--ink); font: .86em var(--mono); white-space: nowrap; }
.md-table, .md-algo { margin: 26px 0 30px; }
.md-table figcaption, .md-algo figcaption { margin-bottom: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.md-table-scroll { overflow-x: auto; }
.md-table table { width: 100%; min-width: 620px; border-collapse: collapse; border-block: 2px solid var(--ink); font-size: 14px; line-height: 1.6; }
.md-table thead th { padding: 10px 14px; border-bottom: 1px solid var(--ink); text-align: left; font-weight: 700; color: var(--ink); }
.md-table tbody th, .md-table tbody td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.md-table tbody tr:last-child > * { border-bottom: 0; }
.md-table tbody th { font-weight: 650; color: var(--ink); white-space: nowrap; }
.md-table code { white-space: nowrap; }
.md-table td code { white-space: normal; }
.md-algo { padding: 16px 20px 14px; border-block: 2px solid var(--ink); background: var(--mist); }
.md-algo figcaption { color: var(--ink); font-weight: 600; }
.md-algo ol { margin: 0; padding: 0; list-style: none; counter-reset: algo; }
.md-algo li { counter-increment: algo; display: grid; grid-template-columns: 28px 1fr; padding: 5px 0; font-size: 14.5px; line-height: 1.65; }
.md-algo li::before { content: counter(algo) ":"; color: var(--muted); font: 12.5px/2 var(--mono); }
@media (max-width: 760px) {
  .md-details > summary { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "outline" "toggle"; padding: 20px; }
  .md-toggle { justify-self: start; margin-top: 8px; }
  .md-kicker { font-size: 22px; }
  .md-title { font-size: 18px; }
  .method-prose.md-paper { padding: 4px 18px 28px; font-size: 15px; }
  .md-algo { padding: 12px 12px 10px; }
  .md-algo li { font-size: 13.5px; grid-template-columns: 24px 1fr; }
}

/* Method main text v3: headline breaks, a static controller selector, concrete harness facts, evidence strip, and the experience lifecycle. */
.method-heading h2 { white-space: pre-line; }
.sys-knob { display: none; }
.sys-knob-direct { display: none; fill: var(--purple); }
.sys-switch > rect:first-child { fill: none; stroke: var(--line-3); stroke-dasharray: 3 4; }
.method-stage .sys-opt { fill: var(--muted); animation: none; }
.method-stage:not([data-stage="0"]) .sys-knob { display: block; animation: none; }
.method-stage[data-stage="2"] .sys-knob-direct { display: block; }
.method-stage[data-stage="1"] .sys-opt-hybrid, .method-stage[data-stage="2"] .sys-opt { fill: #fff; }
.mode-facts { display: grid; gap: 14px; margin: 24px 0 0; }
.mode-facts > div { display: grid; gap: 2px; }
.mode-facts dt { font-size: 12px; color: var(--muted); }
.mode-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.evidence-strip { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.evidence-strip h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.evidence-strip ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.evidence-strip li { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 22px; }
.evidence-strip li + li { border-left: 1px solid var(--line); }
.evidence-strip li + li::before { content: "≠"; position: absolute; left: -11px; top: 18px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--warm-ink); font-weight: 700; font-size: 13px; }
.evidence-strip li:last-child { background: var(--accent-soft); }
.evidence-strip li:last-child::before { content: "→"; color: var(--purple); }
.evidence-strip b { font-size: 15px; color: var(--ink); }
.evidence-strip span { font-size: 13px; line-height: 1.6; color: var(--muted); }
.memory-life { margin: 0; }
.memory-grid { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.memory-row { display: grid; grid-template-columns: 150px 1.15fr 1fr 1.15fr; }
.memory-row > * { margin: 0; padding: 18px 20px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.memory-row + .memory-row > * { border-top: 1px solid var(--line); }
.memory-row > * + * { border-left: 1px solid var(--line); }
.memory-head > * { padding-block: 12px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--mist); }
.memory-lane { display: grid; align-content: start; gap: 2px; font-size: 17px; color: var(--ink); }
.memory-lane small { font-size: 12px; font-weight: 500; color: var(--muted); }
.memory-hybrid .memory-lane { box-shadow: inset 4px 0 var(--purple); }
.memory-direct .memory-lane { box-shadow: inset 4px 0 var(--accent); }
.memory-doc { display: grid; gap: 6px; align-content: start; }
.memory-doc span { padding: 8px 12px; border-radius: 8px; background: var(--mist); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.memory-doc .doc-d { border-left: 3px solid var(--warm); }
.memory-doc .doc-i { border-left: 3px solid var(--accent); }
.memory-doc .doc-t { border-left: 3px solid var(--accent); }
.memory-cell-label { display: none; }
.memory-row p { margin: 0; }
.memory-doc i { justify-self: center; font-style: normal; color: var(--muted); font-size: 12px; line-height: 1; }
.memory-steps { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 10px; padding: 0; list-style: none; }
.memory-steps li { padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.memory-steps li + li { margin-left: 18px; position: relative; }
.memory-steps li + li::before { content: "→"; position: absolute; left: -15px; color: var(--muted); font-weight: 400; }
.memory-excerpt { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.memory-excerpt > header { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; background: var(--mist); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.memory-excerpt > header span:last-child { font: 12px var(--mono); }
.excerpt-pair { display: grid; grid-template-columns: 1fr 1fr; }
.excerpt-pair section { padding: 20px 24px; }
.excerpt-pair section + section { border-left: 1px solid var(--line); }
.excerpt-pair .record-kind { margin-bottom: 12px; }
.excerpt-d .record-kind { color: var(--warm-ink); background: var(--warm-soft); }
.excerpt-pair h3 { font-size: 18px; line-height: 1.35; margin-bottom: 12px; }
.excerpt-pair dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; line-height: 1.6; }
.excerpt-pair dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.excerpt-pair dd { margin: 0; color: var(--ink); }
.memory-excerpt > footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 22px; border-top: 1px solid var(--line); }
.memory-excerpt > footer p { font-size: 13px; color: var(--muted); }
.memory-excerpt > footer .button { margin: 0; border: 0; white-space: nowrap; }
@media (max-width: 900px) {
  .evidence-strip ol { grid-template-columns: 1fr 1fr; }
  .evidence-strip li:nth-child(3) { border-left: 0; }
  .evidence-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .evidence-strip li:nth-child(3)::before { display: none; }
  .memory-row { grid-template-columns: 1fr; }
  .memory-head { display: none; }
  .memory-row > * + * { border-left: 0; }
  .memory-row > * { padding: 12px 18px; }
  .memory-cell-label, .memory-doc .memory-cell-label { display: block; margin-bottom: 4px; padding: 0; border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--muted); }
}
@media (max-width: 760px) {
  .excerpt-pair { grid-template-columns: 1fr; }
  .excerpt-pair section + section { border-left: 0; border-top: 1px solid var(--line); }
  .excerpt-pair dl { grid-template-columns: 1fr; gap: 2px; }
  .excerpt-pair dd { margin-bottom: 8px; }
  .memory-excerpt > footer { flex-direction: column; align-items: flex-start; }
  .evidence-strip ol { grid-template-columns: 1fr; }
  .evidence-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
  .evidence-strip li + li::before { left: 18px; top: -11px; }
  .evidence-strip li:nth-child(3)::before { display: grid; }
}

/* Authors and citation. */
.hero-authors { margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--ink); }
.hero-authors span { display: inline-block; }
.hero-affiliations { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.hero-affiliations span { display: inline-block; }
.hero-author-notes { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.hero-author-notes span { display: inline-block; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-link { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color 200ms, color 200ms; }
.hero-link svg { width: 16px; height: 16px; flex: none; }
.hero-link small { font-size: 11px; font-weight: 500; color: var(--muted); }
.hero-link.is-soon { color: var(--muted); background: transparent; border-style: dashed; cursor: default; }
a.hero-link:hover { border-color: var(--accent); color: var(--purple); }
.citation-section { padding-block: 56px 24px; }
.citation-note { margin: 14px 0 18px; max-width: 640px; font-size: 14px; color: var(--muted); }
.citation-box { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.citation-box pre { margin: 0; padding: 22px 24px; overflow-x: auto; font: 13px/1.7 var(--mono); color: var(--ink); }
.citation-copy { position: absolute; top: 12px; right: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); }
.citation-copy:hover { border-color: var(--ink); }
@media (max-width: 650px) {
  .hero-authors { font-size: 14px; }
  .hero-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin-top: 18px; }
  .hero-link { justify-content: center; height: 38px; padding: 0 12px; font-size: 13px; }
  .citation-box pre { padding-top: 54px; font-size: 12px; }
}

/* Method typography and balance: one scale for body (17px), secondary text (15.5px), captions (14px) and labels (12.5px). */
.method-heading > p:last-child { font-size: 17.5px; line-height: 1.8; }
.step-index { font-size: 13px; }
.stage-toolbar { font-size: 12px; }
.stage-copy { padding: 4px 28px 26px; }
.stage-copy h4 { font-size: 22px; letter-spacing: -.3px; }
.stage-copy p { margin-top: 10px; font-size: 16px; line-height: 1.7; }
.stage-controls button { font-size: 12.5px; }
.stage-controls > span { font-size: 12.5px; }
.figure-caption.stage-caption { margin: 0; max-width: none; padding: 16px 28px 20px; font-size: 13.5px; line-height: 1.7; }
.method-layout + .stage-caption { margin-top: 24px; max-width: 1000px; padding: 0; border: 0; background: transparent; }
@media (min-width: 761px) {
  .method-layout { margin-top: 44px; }
  .method-story { padding-bottom: 200px; }
  .story-step { min-height: 320px; padding-block: 48px; }
  .method-stage { top: 96px; margin-top: 0; }
  .stage-toolbar { padding: 10px 22px; }
  .stage-visual .system-figure { max-height: clamp(240px, calc(100dvh - 360px), 430px); }
  .stage-copy { min-height: 0; padding: 4px 24px 16px; }
  .stage-copy h4 { font-size: 20px; }
  .stage-copy p { margin-top: 8px; }
  .stage-controls { padding: 10px 24px; }
}
@media (min-width: 761px) and (max-height: 650px) {
  .method-stage { position: static; }
  .method-story { padding-bottom: 0; }
}
#hierarchical .lab-heading, #agent-control .lab-heading, #rsi .lab-heading { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 72px; margin-bottom: 52px; }
.lab-heading > p:last-child:not(.section-label) { font-size: 18px; max-width: 540px; }
.figure-caption { max-width: 960px; margin-top: 18px; font-size: 14px; line-height: 1.75; }
.method-boundary { font-size: 14.5px; }
.segmented button { font-size: 14px; }
.harness-sidebar > p { font-size: 17px; }
.mode-facts dt { font-size: 13px; }
.mode-facts dd { font-size: 16px; }
.map-agent-route { font-size: 14.5px; }
.map-feedback { font-size: 14px; }
.control-subheading, .operation-heading h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.5px; font-weight: 650; margin: 0 0 14px; }
.protocol-tabs button { font-size: 15.5px; }
.protocol-tabs button span { font-size: 12.5px; }
.protocol-label { font-size: 12px; }
#protocol-tool { font-size: 13px; }
.protocol-copy > p { min-height: 150px; }
.protocol-rule { font-size: 14.5px; }
.strip-caption { font-size: 13px; line-height: 1.6; }
.operation-heading p { font-size: 17px; max-width: 760px; }
.operation-number { font-size: 12px; }
.operation-summary { font-size: 13.5px; }
.operation-feedback p { font-size: 14px; }
.operation-diagram .protocol-label { font-size: 13px; }
.operation-diagram .strip-caption { font-size: 14px; }
.operation-branches > .operation-branches-label { font-size: 14.5px; }
.operation-branch-index { font-size: 11px; }
.operation-branch h6 { font-size: 16px; }
.operation-branch p { font-size: 14px; line-height: 1.75; }
.evidence-strip h3 { font-size: 17px; }
.evidence-strip b { font-size: 16.5px; }
.evidence-strip span { font-size: 14.5px; }
.memory-row > * { font-size: 15.5px; padding: 20px 22px; }
.memory-head > * { font-size: 13px; }
.memory-lane { font-size: 18px; }
.memory-lane small { font-size: 13px; }
.memory-doc span { font-size: 14.5px; }
.memory-steps li { font-size: 13px; }
.memory-excerpt > header { font-size: 13px; }
.excerpt-pair h3 { font-size: 20px; }
.excerpt-pair dl { grid-template-columns: 100px 1fr; font-size: 15.5px; }
.excerpt-pair dt { font-size: 13.5px; }
.memory-excerpt > footer p { font-size: 14px; }
.md-outline span { font-size: 12.5px; }
@media (max-width: 760px) {
  #hierarchical .lab-heading, #agent-control .lab-heading, #rsi .lab-heading { grid-template-columns: 1fr; margin-bottom: 36px; }
  .lab-heading > p:last-child:not(.section-label) { font-size: 16.5px; }
  .stage-copy { padding: 2px 18px 16px; }
  .stage-copy h4 { font-size: 18px; }
  .stage-copy p { font-size: 14px; }
  .protocol-copy > p { min-height: 0; font-size: 16.5px; }
  .protocol-tabs button { font-size: 14px; }
  .memory-row > * { font-size: 15px; padding: 14px 18px; }
  .excerpt-pair dl { grid-template-columns: 1fr; font-size: 15px; }
  .operation-branch p, .operation-summary { font-size: 14px; }
}
.memory-row { grid-template-columns: 140px 1fr 1.1fr 1.3fr; }
@media (max-width: 900px) { .memory-row { grid-template-columns: 1fr; } }

/* Site-wide readability: no label below 12.5px; data, scores and key labels at 13.5px or more. */
.floating-nav nav { font-size: 14px; }
.language { font-size: 13.5px; }
.hero-frame-source { max-width: calc(100% - 72px); font-size: 11px; overflow-wrap: anywhere; }
.benchmark-heading .label { font-size: 12.5px; }
.benchmark-source { font-size: 13.5px; }
.benchmark-intro { font-size: 15px; }
.benchmark-key { font-size: 13px; }
.benchmark-note { font-size: 13.5px; }
.benchmark-note > span { font-size: 12.5px; }
.benchmark-controls label { font-size: 13px; }
.benchmark-controls select, .benchmark-controls input { font-size: 14px; }
.benchmark-metric button { font-size: 13.5px; }
#benchmark-task-count, .matrix-counts { font-size: 12.5px; }
.matrix-scroll-note { font-size: 13px; }
.benchmark-matrix td { font-size: 13.5px; }
.benchmark-matrix thead th { font-size: 13px; }
.benchmark-matrix thead .matrix-ours b { font-size: 14px; }
.benchmark-matrix .benchmark-task-name { font-size: 14px; }
.benchmark-matrix code { font-size: 12px; }
.matrix-sample-count { font-size: 12px; }
.figure-caption, .fine-print { font-size: 14px; }
.case-tabs button span { font-size: 12.5px; }
#case-score > p, #case-score small { font-size: 13px; }
.case-frame-stamp { font-size: 12.5px; }
.episode-meta { font-size: 14px; }
.episode-meta small { font-size: 12.5px; }
.episode-experience { font-size: 14px; }
.reference-index { font-size: 14px; }
.reference-project { font-size: 13px; }
.reference-title { font-size: 17px; }
.reference-meta { font-size: 14px; }
.citation-copy { font-size: 13.5px; }
footer { font-size: 14px; }
.dialog-heading button { font-size: 13.5px; }
.record-kind { font-size: 13px; }
.memory-excerpt > header span:last-child { font-size: 12.5px; }
.operation-branch-index { font-size: 12px; }
.memory-cell-label, .memory-doc .memory-cell-label { font-size: 12.5px; }
.stage-toolbar, .protocol-label { font-size: 12.5px; }
.md-paper sub, .md-paper sup { font-size: .8em; }
.md-paper code { font-size: .9em; }
/* SVG figure labels, in figure units. */
.sys-opt { font-size: 12.5px; }
.protocol-diagram svg text { font-size: 13px; }
.protocol-diagram .p-chunk-label, .protocol-diagram .p-muted { font-size: 12.5px; }
.protocol-diagram .p-mono { font-size: 12.5px; }
.h-sub { font-size: 12.5px; }
@media (max-width: 760px) {
  .floating-nav nav { font-size: 13px; }
  .benchmark-matrix td { font-size: 13px; }
  .benchmark-matrix .benchmark-task-name { font-size: 13.5px; }
  .benchmark-matrix code { font-size: 11.5px; }
  .case-tabs button { font-size: 13.5px; }
  .citation-box pre { font-size: 12.5px; }
  /* Figures keep a legible size and scroll sideways instead of shrinking. */
  .stage-visual, .harness-map, .protocol-diagram { overflow-x: auto; }
  .stage-visual .system-figure { min-width: 560px; height: auto; }
  .system-figure .sys-label, .system-figure .sys-sub, .system-figure .sys-note { font-size: 15px; }
  .system-figure .sys-title { font-size: 19px; }
  .system-figure .sys-rec-label { font-size: 15px; }
  .system-figure .sys-tag { font-size: 16px; }
  .system-figure .sys-opt { font-size: 14px; }
  .harness-figure { min-width: 520px; }
  .harness-figure .h-sub { font-size: 13.5px; }
  .protocol-diagram svg { min-width: 540px; }
  .protocol-diagram svg text, .protocol-diagram .p-chunk-label, .protocol-diagram .p-muted, .protocol-diagram .p-mono { font-size: 14px; }
  /* Figure 2 reads as figure + three short texts instead of a sticky scroll scene. */
  .stage-column { position: static; }
  .story-step { min-height: 0; padding-block: 26px; opacity: 1; }
  .stage-copy p { font-size: 15px; }
}
/* Phones: all five section links fit on the second nav row without sideways scrolling. */
@media (max-width: 480px) {
  .floating-nav nav { width: calc(100vw - 32px); justify-content: space-between; gap: 0; padding-inline: 4px; font-size: 12px; }
  .floating-nav nav a { padding-inline: 5px; }
}
@media (max-width: 760px) {
  .monitor-label { font-size: 13px; }
}

/* Section headings prioritize the research outline over promotional subtitles. */
.research-site :is(.lab-heading, .method-heading, .case-heading, .archive-heading) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.research-site :is(.lab-heading, .method-heading, .case-heading, .archive-heading) h2,
.research-site .section-title {
  margin: 0;
  max-width: 900px;
  font: 650 clamp(26px, 2.5vw, 34px)/1.25 var(--font);
  letter-spacing: -.025em;
  color: var(--ink);
  white-space: normal;
  text-wrap: balance;
}
.research-site :is(.lab-heading, .method-heading, .case-heading) > p,
.research-site .lab-heading > p:last-child:not(.section-label),
.research-site .section-subtitle {
  max-width: 76ch;
  padding-top: 0;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--muted);
  white-space: normal;
}
.research-site :is(.lab-heading, .method-heading) > .section-subtitle,
.research-site .section-subtitle {
  margin-top: 10px;
  max-width: 70ch;
  font: italic 400 26px/1.45 "Newsreader", Georgia, serif;
  color: var(--muted);
}
.research-site :is(.lab-heading, .method-heading) > .section-subtitle { margin-top: -2px; }
.research-site :is(.lab-heading, .method-heading) > .section-subtitle + p { margin-top: 4px; }
.research-site .case-heading { row-gap: 16px; }
@media (max-width: 650px) {
  .research-site :is(.lab-heading, .method-heading, .case-heading) > p,
  .research-site .lab-heading > p:last-child:not(.section-label) { font-size: 16px; }
  .research-site :is(.lab-heading, .method-heading) > .section-subtitle,
  .research-site .section-subtitle { font-size: 22px; }
}

/* Keep the method overview and its expanded explanation on the same reading path. */
.research-site .method-heading > p:not(.section-subtitle),
.research-site .method-heading > .method-roadmap {
  max-width: 76ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.method-roadmap { margin: 0; padding-left: 1.3em; list-style: disc; }
.method-roadmap li + li { margin-top: 10px; }
.method-roadmap li::marker { color: var(--ink); }
.method-heading strong { color: var(--ink); font-weight: 700; }
.robodoctor-name { font-style: italic; font-weight: 700; margin-inline-end: .2em; }
.control-intro { max-width: 76ch; margin-bottom: 24px; color: var(--muted); font-size: 17px; }
.memory-reuse-example { max-width: 76ch; margin-top: 24px; font-size: 17px; line-height: 1.75; }
.md-paper h5 { margin: 24px 0 12px; font-size: 17px; font-weight: 650; }
@media (max-width: 650px) {
  .research-site .method-heading > p:not(.section-subtitle),
  .research-site .method-heading > .method-roadmap,
  .control-intro, .memory-reuse-example { font-size: 16px; }
}

/* Make the recursive update visible before describing its memory representation. */
.correction-learning { margin: 28px 0 40px; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); max-width: 82ch; }
.correction-learning h3, .diagnosis-lessons h3, .method-learning-loop h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.5; font-weight: 650; }
.correction-learning p, .diagnosis-lessons p, .method-learning-loop p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.diagnosis-lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 32px 0 36px; }
.diagnosis-lessons h3, .method-learning-loop h3 { color: var(--purple); }
.method-learning-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 24px 0; margin: 0 0 36px; border-block: 1px solid var(--line); }
.method-learning-loop li { position: relative; }
.method-learning-loop li + li::before { content: "→"; position: absolute; left: -28px; top: 2px; color: var(--purple); }
.md-paper .operation-section { max-width: 980px; margin-block: 28px; }
.md-paper .operation-heading { margin-bottom: 24px; }
.md-paper .operation-heading h5 { margin: 0 0 12px; font-size: 18px; }
.md-paper .operation-flow strong { color: inherit; font-weight: 650; }
.rsi-cycle { margin: 0 0 36px; padding: 24px 0; border-block: 1px solid var(--line); }
.rsi-cycle figcaption { margin-bottom: 20px; font-size: 18px; font-weight: 650; }
.rsi-cycle ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.rsi-cycle li { position: relative; }
.rsi-cycle li + li::before { content: "→"; position: absolute; left: -24px; top: 0; color: var(--purple); }
.rsi-cycle strong { display: block; color: var(--purple); font-size: 17px; }
.rsi-cycle li p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.rsi-cycle-return { display: flex; gap: 12px; margin-top: 22px; max-width: 85ch; font-size: 15px; color: var(--muted); }
.rsi-cycle-return > span:first-child { font-size: 24px; line-height: 1.2; color: var(--purple); }
@media (max-width: 760px) {
  .diagnosis-lessons, .method-learning-loop { grid-template-columns: 1fr; gap: 24px; }
  .method-learning-loop li { padding-left: 24px; }
  .method-learning-loop li + li::before { content: "↓"; left: 0; top: -20px; }
  .correction-learning { padding-left: 18px; }
  .correction-learning p, .diagnosis-lessons p, .method-learning-loop p { font-size: 16px; }
  .rsi-cycle ol { grid-template-columns: 1fr; gap: 26px; }
  .rsi-cycle li { padding-left: 24px; }
  .rsi-cycle li + li::before { content: "↓"; left: 0; top: -22px; }
  .rsi-cycle li p { margin-top: 4px; }
}

/* ───────── Top nav and title block, synced with the PrismWAM-style reference design ───────── */
@font-face { font-family: "Google Sans Flex"; src: url("fonts/google-sans-flex-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --accent-deep: #9a86ec; --head-font: "Google Sans Flex", "Manrope", "Article Sans", "PingFang SC", "Microsoft YaHei", sans-serif; --brand-font: "Montserrat", "Google Sans Flex", sans-serif; --nav-top: 14px; --nav-h: 56px; }
/* The bar: no plate over the top of the hero (only type), a frosted plate once the page scrolls (research.js sets data-state). */
header.floating-nav { --tab: var(--muted); --tab-on: var(--ink); --tab-tint: rgb(29 29 31 / 6%); top: var(--nav-top); left: 0; right: 0; margin: 0 auto; transform: none; width: calc(100% - 32px); max-width: 1200px; height: var(--nav-h); display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); gap: 12px; padding: 0 14px; border: 1px solid rgb(20 16 40 / 8%); border-radius: 14px; background: rgb(255 255 255 / 72%); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 2px rgb(20 16 40 / 4%), 0 10px 30px rgb(20 16 40 / 9%); color: var(--ink); font-family: var(--head-font); transition: background-color 350ms, border-color 400ms, box-shadow 400ms, color 400ms; }
header.floating-nav[data-state="hero"] { border-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
header.floating-nav[data-tone="dark"] { --tab: var(--night-ink-2); --tab-on: #fff; --tab-tint: rgb(255 255 255 / 12%); color: var(--night-ink); border-color: rgb(255 255 255 / 10%); background: rgb(18 20 29 / 62%); box-shadow: 0 8px 26px rgb(0 0 0 / 20%); }
header.floating-nav .nav-brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 40px; color: inherit; font: 700 18px/1 var(--brand-font); letter-spacing: -.01em; white-space: nowrap; }
header.floating-nav .nav-logo { width: 30px; height: 30px; flex: none; color: var(--accent-deep); transition: color 400ms; }
header.floating-nav[data-tone="dark"] .nav-logo { color: var(--accent-night); }
header.floating-nav .nav-tabs { position: static; justify-self: center; display: flex; gap: 2px; min-width: 0; margin: 0; padding: 0; transform: none; width: auto; max-width: none; border: 0; border-radius: 0; background: none; overflow: visible; white-space: nowrap; color: inherit; font-size: inherit; }
header.floating-nav .nav-tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; background: none; color: var(--tab); font: 550 14.5px/1 var(--head-font); letter-spacing: -.004em; transition: color 300ms, background-color 300ms; }
header.floating-nav .nav-tabs a:hover { color: var(--tab-on); background: none; }
header.floating-nav .nav-tabs a[aria-current] { color: var(--tab-on); background: var(--tab-tint); }
header.floating-nav .nav-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
header.floating-nav .nav-soon { display: inline-flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px; color: var(--tab); font: 550 14px/1 var(--head-font); white-space: nowrap; opacity: .5; cursor: default; }
header.floating-nav .nav-soon small { margin-left: -7px; font-size: 11px; font-weight: 500; opacity: .85; }
header.floating-nav .nav-code { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--tab); font: 550 14px/1 var(--head-font); transition: color 300ms; }
header.floating-nav .nav-code:hover { color: var(--tab-on); }
header.floating-nav .nav-cta { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-left: 4px; padding: 0 15px 0 13px; border-radius: 8px; background: var(--ink); color: #fff; font: 550 14px/1 var(--head-font); white-space: nowrap; transition: background-color 300ms, transform 250ms cubic-bezier(.16, 1, .3, 1); }
header.floating-nav .nav-cta svg { width: 15px; height: 15px; flex: none; }
header.floating-nav .nav-cta:hover { background: #3a3a42; }
header.floating-nav .nav-cta:active { transform: scale(.96); }
header.floating-nav[data-tone="dark"] .nav-cta { background: #fff; color: var(--ink); }
header.floating-nav .nav-progress { left: 16px; right: 16px; height: 1.5px; border-radius: 2px; opacity: .75; transition: opacity 400ms; }
header.floating-nav[data-state="hero"] .nav-progress { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { header.floating-nav { animation: nav-in .9s cubic-bezier(.16, 1, .3, 1) .2s backwards; } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 1239.98px) { header.floating-nav .nav-soon, header.floating-nav .nav-code { display: none; } }
@media (max-width: 1099.98px) { header.floating-nav .nav-tabs a { padding: 0 12px; } }
@media (min-width: 900px) and (max-width: 1059.98px) { header.floating-nav .nav-brand-word { display: none; } }
@media (min-width: 900px) and (max-width: 999.98px) { header.floating-nav .nav-tabs a { padding: 0 10px; font-size: 14px; } }
/* Phones and tablets: a full-width bar with a scrolling tab strip and an icon-only BibTeX button. */
@media (max-width: 899.98px) {
  header.floating-nav { top: 0; width: 100%; max-width: none; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 0 10px 0 14px; border-width: 0 0 1px; border-radius: 0; }
  header.floating-nav[data-state="solid"] { border-color: var(--line); background: rgb(255 255 255 / 86%); box-shadow: 0 6px 20px rgb(20 16 40 / 6%); }
  header.floating-nav[data-tone="dark"] { border-color: rgb(255 255 255 / 8%); background: rgb(12 14 21 / 84%); box-shadow: none; }
  header.floating-nav .nav-brand { gap: 9px; font-size: 16.5px; }
  header.floating-nav .nav-logo { width: 28px; height: 28px; }
  header.floating-nav .nav-tabs { justify-self: stretch; justify-content: safe center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  header.floating-nav .nav-tabs::-webkit-scrollbar { display: none; }
  header.floating-nav .nav-tabs a { flex: none; height: 44px; padding: 0 11px; font-size: 14px; background: none; }
  header.floating-nav .nav-tabs a[aria-current] { background: none; box-shadow: inset 0 -2px 0 var(--accent); }
  header.floating-nav .nav-cta { position: relative; justify-content: center; width: 36px; padding: 0; }
  header.floating-nav .nav-cta span { display: none; }
  header.floating-nav .nav-cta::after { content: ""; position: absolute; inset: -4px; }
  header.floating-nav .nav-progress { left: 0; right: 0; height: 2px; border-radius: 0; }
}
@media (max-width: 519.98px) {
  header.floating-nav { gap: 4px; padding: 0 8px 0 4px; }
  header.floating-nav .nav-brand { width: 42px; justify-content: center; }
  header.floating-nav .nav-brand-word { display: none; }
}
@media print { header.floating-nav { display: none; } }

/* Title block: logo + "RoboDoctor: title" on one display line, authors, affiliations, notes, then square link buttons. */
.research-site .hero { padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(40px, 4.2vw, 60px)); padding-bottom: clamp(52px, 5.4vw, 76px); }
.research-site .hero-head { margin-bottom: clamp(30px, 3.2vw, 44px); font-family: var(--head-font); }
.hero .hero-titlebar { display: flex; align-items: flex-start; gap: .28em; line-height: 1.08; }
.hero .hero-logo { flex: none; width: 1.04em; height: 1.04em; margin-top: .02em; color: var(--accent-deep); }
.hero .hero-titletext { min-width: 0; color: var(--ink); font-weight: 650; letter-spacing: -.03em; text-wrap: balance; }
.hero .hero-titletext #hero-title { display: inline; margin: 0; color: inherit; font: inherit; font-family: var(--brand-font); font-weight: 700; letter-spacing: -.025em; line-height: inherit; }
.hero .hero-titletext #hero-title::after { content: ": "; }
.hero .hero-titletext .hero-title { display: inline; max-width: none; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; }
.hero .hero-titletext .desktop-break { display: none; }
.hero .hero-authors { margin-top: 16px; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.6; text-wrap: balance; }
.hero .hero-authors span { display: inline; white-space: nowrap; }
.hero .hero-authors sup, .hero .hero-affiliations sup { margin-left: 1px; color: var(--muted); font-size: .62em; font-weight: 500; }
.hero .hero-affiliations sup { margin: 0 1px 0 0; }
.hero .hero-affiliations, .hero .hero-author-notes { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hero .hero-author-notes { margin-top: 2px; }
.hero .hero-affiliations span, .hero .hero-author-notes span { white-space: nowrap; }
.hero .hero-links { display: flex; flex-wrap: wrap; gap: 10px; max-width: none; margin-top: 24px; }
.hero .hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 550 15px/1 var(--head-font); white-space: nowrap; transition: border-color 200ms, color 200ms, background-color 200ms, transform 200ms cubic-bezier(.16, 1, .3, 1); }
.hero .hero-link svg { width: 17px; height: 17px; flex: none; }
.hero .hero-link small { color: inherit; font-size: 11.5px; font-weight: 500; opacity: .7; }
.hero .hero-link.is-soon { border-style: solid; background: #fff; color: var(--ink); opacity: .5; cursor: default; }
.hero a.hero-link:hover { border-color: var(--ink); color: var(--ink); }
.hero a.hero-link:active { transform: scale(.98); }
/* The intro video: the one solid button in the row. */
@media (max-width: 899.98px) {
  .research-site .hero { padding-top: calc(var(--nav-h) + 34px); }
}
@media (max-width: 719.98px) {
  .research-site .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 48px; }
  .research-site .hero-head { margin-bottom: 26px; }
  .hero .hero-titlebar { line-height: 1.12; }
  .hero .hero-authors { margin-top: 12px; font-size: 15.5px; }
  .hero .hero-affiliations, .hero .hero-author-notes { gap: 2px 12px; font-size: 13px; }
  .hero .hero-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; gap: 8px; margin-top: 20px; }
  .hero .hero-link { height: 40px; padding: 0 12px; font-size: 14.5px; }
}
@media (max-width: 379.98px) {
  .hero .hero-link { gap: 6px; padding: 0 10px; font-size: 14px; }
  .hero .hero-link small { font-size: 11px; }
}

/* Hero layout: the byline, links and film card hang from the title text (indent = logo 1.04em + gap .28em), not from
   the logo. Desktop: two columns, the film card spans from the title's first line to the bottom of the link row.
   The card is a designed cover (media/intro/robodoctor-intro.jpg, source in the film workspace) on an ink bar, so it reads
   as an object on the page and not as the replay below. */
.hero .hero-name { --t: clamp(30px, 3.4vw, 50px); --indent: calc(var(--t) * 1.32); display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 370px); grid-template-rows: auto auto 1fr; grid-template-areas: "title film" "byline film" "links film"; column-gap: clamp(36px, 3.8vw, 56px); }
.hero .hero-titlebar { grid-area: title; font-size: var(--t); }
.hero .hero-title .nobr { white-space: nowrap; }
.hero .hero-meta { display: contents; }
.hero .hero-byline { grid-area: byline; min-width: 0; padding-left: var(--indent); }
.hero .hero-meta .hero-links { grid-area: links; align-self: end; padding-left: var(--indent); }
.hero-film { grid-area: film; display: flex; flex-direction: column; align-self: stretch; min-height: 0; overflow: hidden; padding: 0; border: 1px solid #2b2a3a; border-radius: 14px; background: var(--ink); color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 26px 60px -34px rgb(23 21 33 / 60%); transition: box-shadow 240ms, transform 240ms cubic-bezier(.16, 1, .3, 1); }
.hero-film-thumb { position: relative; display: block; flex: 1 1 auto; min-height: 170px; overflow: hidden; background: #fbfbfc; }
/* Cover = the film's closing frame (media/intro/robodoctor-intro.jpg, also the dialog poster). Shown whole on the
   frame's own paper colour, so the ECG labels at its edges are never cropped when the card is not 16:9. */
.hero-film-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; transition: transform 520ms cubic-bezier(.16, 1, .3, 1); }
.hero-film-bar { display: flex; align-items: center; gap: 14px; flex: none; padding: 14px 16px; }
.hero-film-play { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 999px; background: var(--accent-deep); color: #fff; transition: transform 240ms, background 240ms; }
.hero-film-play svg { width: 17px; height: 17px; margin-left: 3px; }
.hero-film-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.hero-film-title { font: 650 17px/1.2 var(--head-font); letter-spacing: -.01em; }
.hero-film-chapters { color: #a9a6bb; font-size: 13px; line-height: 1.35; text-wrap: balance; }
.hero-film-duration { flex: none; padding: 5px 8px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 6px; color: #d9d8e8; font: 600 12.5px/1 var(--head-font); font-variant-numeric: tabular-nums; }
.hero-film:hover { transform: translateY(-2px); box-shadow: 0 32px 70px -34px rgb(23 21 33 / 70%); }
.hero-film:hover .hero-film-thumb img { transform: scale(1.03); }
.hero-film:hover .hero-film-play { transform: scale(1.07); background: #6c5ad0; }
.hero-film:active { transform: translateY(0) scale(.995); }
.hero-film:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-film, .hero-film-thumb img, .hero-film-play { transition: none; } .hero-film:hover { transform: none; } .hero-film:hover .hero-film-thumb img { transform: none; } }
@media (max-width: 1179.98px) {
  .hero .hero-name { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "title" "byline" "film" "links"; }
  .hero .hero-meta .hero-links { align-self: start; margin-top: 18px; }
  .hero-film { width: calc(100% - var(--indent)); max-width: 520px; margin: 22px 0 0 var(--indent); }
  .hero-film-thumb { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 899.98px) { .hero .hero-meta .hero-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: calc(440px + var(--indent)); } }
@media (max-width: 719.98px) { .hero .hero-name { --t: 29px; } }
@media (max-width: 379.98px) { .hero .hero-name { --t: 27px; } .hero-film-bar { gap: 12px; padding: 12px 14px; } .hero-film-play { width: 38px; height: 38px; } }

/* Intro video dialog: the panel grows out of the button that opened it (research.js), and shrinks back on close. */
.intro-dialog { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.intro-dialog::backdrop { background: rgb(9 11 18 / 72%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.intro-dialog.is-animating::backdrop { transition: none; }
.intro-panel { overflow: hidden; border: 1px solid rgb(255 255 255 / 10%); border-radius: 14px; background: var(--night-2); color: var(--night-ink); box-shadow: 0 30px 90px rgb(0 0 0 / 45%); transform-origin: 0 0; }
.intro-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 12px 12px 20px; }
.intro-heading h2 { font: 600 16px/1.3 var(--head-font); letter-spacing: -.01em; }
.intro-heading button { flex: none; padding: 8px 14px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 8px; background: rgb(255 255 255 / 6%); color: var(--night-ink); font-size: 13.5px; }
.intro-heading button:hover { background: rgb(255 255 255 / 12%); }
.intro-panel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
@media (max-width: 640px) {
  .intro-dialog { width: 100vw; margin: auto 0; }
  .intro-panel { border-radius: 0; border-inline: 0; }
}

/* ───────── Rollout results and experience: a dark band for the recorded evidence ───────── */
.research-site #rollout-archive { background: var(--night-2); color: var(--night-ink); }
#rollout-archive .archive-heading h2 { color: #fff; }
#rollout-archive .task-picker { color: var(--night-ink-2); }
#rollout-archive .task-picker select { border-color: rgb(255 255 255 / 14%); background-color: var(--night-3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23a9a8b8' stroke-width='1.5'/%3E%3C/svg%3E"); color: var(--night-ink); }
#rollout-archive .task-picker select:hover { border-color: rgb(255 255 255 / 26%); }
#rollout-archive .task-picker select option { background: var(--night-3); color: var(--night-ink); }
#rollout-archive .episode-card { border-color: rgb(255 255 255 / 8%); background: var(--night-3); }
#rollout-archive .episode-card:hover { border-color: rgb(255 255 255 / 18%); box-shadow: 0 18px 44px -24px rgb(0 0 0 / 70%); }
#rollout-archive .episode-poster { background: var(--night); }
#rollout-archive .episode-poster > span { background: rgb(9 11 18 / 60%); border-color: rgb(255 255 255 / 30%); backdrop-filter: blur(8px); }
#rollout-archive .episode-meta { color: var(--night-ink-2); }
#rollout-archive .episode-meta b { color: #fff; }
#rollout-archive .episode-meta small { color: var(--night-ink-2); }
#rollout-archive .episode-experience { border-top-color: rgb(255 255 255 / 8%); color: var(--accent-night); }
#rollout-archive .episode-experience:hover { color: #fff; }
#rollout-archive :focus-visible { outline-color: var(--accent-night); }

/* ───────── Figure 2 (Method overview): a wider figure column, larger type and calmer chrome; the drawing is unchanged ───────── */
.system-figure .sys-sub, .system-figure .sys-label, .system-figure .sys-note { font-size: 13.5px; }
.system-figure .sys-title { font-size: 17px; }
.system-figure .sys-rec-label { font-size: 14px; }
.system-figure .sys-tag { font-size: 17px; }
.system-figure .sys-opt { font-size: 12.5px; }
.system-figure .sys-wire { stroke-width: 1.8; }
.system-figure .sys-node rect { stroke-width: 1.4; }
.method-stage .sys-layer { opacity: .5; }
.method-stage[data-stage="1"] .sys-memory-direct, .method-stage[data-stage="2"] .sys-memory-hybrid { opacity: .45; }
.method-stage[data-stage="2"] :is(.sys-policy, .sys-base, .sys-chunk, .sys-chunk-label, .sys-review) { opacity: .25; }
.stage-zoom { display: none; }
@media (min-width: 1001px) {
  .method-layout { --split: .3; grid-template-columns: .6fr 1.4fr; gap: 64px; --gap: 64px; }
}
@media (min-width: 761px) {
  /* The step list on the left drives the stage, so the card keeps only a small schematic tag, the figure and one copy row. */
  .method-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "visual visual" "copy controls"; }
  .method-stage .stage-visual { grid-area: visual; }
  .method-stage .stage-copy { grid-area: copy; padding: 6px 24px 18px; }
  .method-stage .stage-controls { grid-area: controls; align-self: start; gap: 6px; padding: 8px 20px 0 0; border: 0; background: none; }
  .method-stage .stage-controls button { width: 34px; height: 30px; }
  .method-stage .stage-controls > span { display: none; }
  .method-stage .stage-toolbar { position: absolute; z-index: 1; top: 12px; left: 16px; padding: 0; border: 0; background: none; pointer-events: none; }
  .method-stage .stage-counter { display: none; }
  .stage-visual .system-figure { max-height: clamp(260px, calc(100dvh - 260px), 600px); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .method-layout { --split: .35; grid-template-columns: .7fr 1.3fr; gap: 35px; --gap: 35px; }
}
/* Phones: the whole figure at screen width, plus a button that opens the current stage large. */
@media (max-width: 760px) {
  /* The enlarge button takes the counter's place in the card's top bar. */
  .method-stage { position: relative; }
  .stage-visual { position: static; overflow: visible; }
  .method-stage .stage-counter { display: none; }
  .stage-visual .system-figure { min-width: 0; width: 100%; height: auto; }
  .stage-zoom { position: absolute; z-index: 2; top: 6px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgb(255 255 255 / 92%); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgb(20 16 40 / 8%); }
  .stage-zoom svg { width: 14px; height: 14px; }
}
.method-figure-dialog { width: min(1000px, calc(100vw - 16px)); padding: 16px; }
.method-figure-zoom { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.method-stage.is-zoomed { position: static; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.method-stage.is-zoomed .system-figure { width: max(100%, 760px); max-height: none; }
@media (max-width: 760px) {
  .method-figure-dialog .dialog-heading { margin-bottom: 10px; }
  .method-figure-dialog .dialog-heading h2 { font-size: 18px; }
}
