/* Shared reading column for article text and interactive scenes. */
:root {
  --article-width: 900px;
  --paper: #fffefa; --surface: #f6f5f0; --ink: #232923; --muted: #70766f;
  --line: #e1e5dc; --line-dark: #c7cfc3; --accent: #547354;
  --accent-dark: #38553b; --green: #38553b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.8 var(--sans); text-rendering: optimizeLegibility; }
img, video, iframe { display: block; max-width: 100%; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-dark); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--article-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 14px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
.masthead { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.brand { color: var(--ink); font-size: 21px; font-weight: 650; text-decoration: none; letter-spacing: -.6px; }
.brand-divider { margin: 0 12px; color: #b8c0b2; font-weight: 400; }
.brand-note { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.article-header { padding-top: 52px; }
.article-header > :not(.featured-scene) { max-width: 900px; margin-inline: auto; text-align: center; }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.045em; line-height: 1.12; }
.dek { max-width: 760px !important; margin-top: 26px; margin-bottom: 26px; padding: 14px 22px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 20px; font-weight: 500; line-height: 1.55; color: var(--ink); text-align: left !important; }
.dek strong { color: var(--accent-dark); font-weight: 700; letter-spacing: .04em; }
.title-short { color: var(--accent-dark); font-weight: 600; letter-spacing: -.03em; }
.authors { margin-top: 24px; }
.author-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; margin: 0; font-size: 17px; color: var(--ink); }
.author-list sup, .author-note sup { margin-left: 1px; font-size: .7em; color: var(--accent); }
.author-list a { color: inherit; text-decoration: none; }
.author-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.author-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.article-links { display: flex; justify-content: center; gap: 10px; margin: 18px auto 0; }
.article-links .button { gap: 6px; padding-inline: 16px; font-size: 14px; }
.article-links .button:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.github-icon { width: 1.1em; height: 1.1em; flex: 0 0 1.1em; fill: currentColor; }
.featured-scene { margin-top: 44px; }
.featured-heading { margin-bottom: 15px; }
.featured-heading .section-label { margin-bottom: 4px; font-size: 10px; }
.featured-heading h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.scene-try { padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.scene-try > strong { display: block; margin-bottom: 8px; font-size: 13px; }
.scene-try-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-try-actions button { min-height: 36px; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 5px; background: #edf2e8; color: var(--accent-dark); font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.scene-try-actions button:hover:not(:disabled) { background: #dce8d5; }
.scene-try-actions button[aria-pressed="true"] { background: var(--accent-dark); color: white; }
.scene-try-actions button[aria-pressed="true"]:hover:not(:disabled) { background: #2b422d; }
.scene-try-actions button:disabled { opacity: .5; cursor: wait; }
.scene-try p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.scene-try p:empty { display: none; }
@media (max-width: 540px) {
  .scene-try-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-try-actions button { min-height: 44px; padding-inline: 8px; }
  .scene-stage #demo-mount iframe, .scene-load-screen { min-height: 520px; }
  .scene-load-screen .scene-load-controls { left: 16px; right: 16px; bottom: 16px; align-items: center; }
}
.scene-stage, .viewer-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #e6e9e3; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 43px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 11px; }
.panel-heading b { font-weight: 500; }
.panel-heading span { color: var(--muted); text-align: right; }
#demo-mount iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 0; border: 0; }
.scene-stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; background: var(--paper); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.scene-stage-footer a { font-weight: 500; text-decoration: none; }
.scene-stage-footer .button { border: 0; padding: 0; min-height: 0; color: var(--accent-dark); }
.status-dot { margin-inline: 5px; }
.source-card { display: grid; grid-template-columns: 224px minmax(0, 360px); gap: 22px; align-items: center; margin-top: 20px; }
.source-card video { width: 100%; aspect-ratio: 16/9; border-radius: 5px; background: #232923; }
.source-card .section-label { font-size: 9px; margin-bottom: 3px; }
.source-card b { font-size: 14px; font-weight: 500; }
.source-card p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-dark); border-radius: 4px; color: inherit; background: transparent; cursor: pointer; font-size: 12px; font-weight: 500; text-decoration: none; }
.button.primary { color: white; background: var(--accent-dark); }
.article-layout { padding: 44px 0 80px; }
.contents { position: sticky; z-index: 20; top: 0; display: flex; gap: 22px; overflow-x: auto; padding: 16px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.contents a { white-space: nowrap; font-size: 10px; text-decoration: none; color: #99a18f; }
.contents a span { margin-left: 5px; color: var(--muted); font-size: 12px; }
.contents a:hover span, .contents a[aria-current] span { color: var(--accent-dark); }
.contents a[aria-current] { color: var(--accent-dark); }
article { width: 100%; min-width: 0; margin-inline: auto; }
article > section { margin-bottom: 80px; }
article > section + section { padding-top: 40px; border-top: 1px solid var(--line); }
article h2 { margin: 0 0 24px; font: 400 clamp(30px, 3vw, 40px)/1.2 var(--serif); letter-spacing: -.035em; }
article h3 { margin: 56px 0 18px; font: 400 29px/1.3 var(--serif); letter-spacing: -.025em; }
article p { margin: 0 0 22px; }
article p strong { font-weight: 600; }
article figure { margin-block: 32px; margin-inline: 0; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
article .wide-figure { width: 100%; margin-inline: 0; }
.tool-showcase-embed iframe { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 10px; background: #f7f6f0; }
.definitions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 32px 0; padding-block: 23px; border-block: 1px solid var(--line); }
.definitions dt { font-size: 15px; font-weight: 600; }
.definitions dd { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
blockquote { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font: 400 22px/1.6 var(--serif); color: var(--accent-dark); }
.agent-steps { margin: 30px 0; padding: 0; list-style: none; counter-reset: steps; }
.agent-steps li { counter-increment: steps; display: grid; grid-template-columns: 24px 85px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.agent-steps li::before { content: '0' counter(steps); color: var(--accent); font-size: 11px; padding-top: 3px; }
.agent-steps li b { font-weight: 500; }
.agent-steps span { color: var(--muted); }
.pipeline-figure { padding: 20px 0; }
.pipeline-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.pipeline-line i { font-style: normal; color: #a0ac98; }
.pipeline-line strong { color: var(--accent-dark); font-weight: 600; }
.workflow-map { padding: 26px 0 18px; }
.workflow-agent { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; border-block: 1px solid var(--line-dark); background: #f2f5ed; }
.workflow-agent .section-label { display: block; margin-bottom: 5px; font-size: 10px; }
.workflow-agent b { font-size: 17px; font-weight: 500; }
.workflow-agent > span { max-width: 190px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.workflow-branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 22px; }
.workflow-branches a { display: flex; flex-direction: column; padding: 0 18px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.workflow-branches a:first-child { padding-left: 0; }
.workflow-branches a:last-child { padding-right: 0; border-right: 0; }
.workflow-branches a > span { margin-bottom: 8px; font-size: 10px; color: var(--accent); }
.workflow-branches b { font-size: 14px; font-weight: 600; }
.workflow-branches a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.workflow-branches p { margin: 10px 0 16px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.workflow-branches small { margin-top: auto; font-size: 10px; line-height: 1.6; color: var(--accent-dark); }
.application-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0 18px; padding: 20px 0; border-block: 1px solid var(--line); }
.application-paths b { font-size: 13px; font-weight: 600; }
.application-paths p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.return-path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; margin-top: 30px; border-block: 1px solid var(--line); font-size: 12px; }
.return-path i { font-style: normal; color: #9aa78f; }
article .artifact-note { margin-top: 16px; font-size: 12px; color: var(--muted); }
.note { margin: 28px 0; padding: 18px 22px; border-left: 2px solid #a8b49e; background: #f3f5ef; font-size: 13px; }
.note b { font-weight: 600; }
.note p { margin: 5px 0 0; color: #626c5d; }
.image-pair { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.image-pair > div { min-width: 0; display: flex; flex-direction: column; }
.live-scene-pair img, .live-scene-pair iframe { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 6px; background: #e6e9e3; }
.live-scene-pair img { object-fit: contain; }
.image-pair span { padding-top: 8px; color: var(--muted); font-size: 11px; }
.draft-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #2d2d2b; }
.reveal-label { position: absolute; left: 14px; top: 14px; padding: 4px 10px; color: var(--ink); background: #fffefae8; border-radius: 4px; font-size: 11px; }
.fact-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 24px 0 35px; font-size: 11px; color: var(--muted); }
.fact-row b { margin-right: 4px; font-weight: 600; color: var(--ink); }
.segmented { display: flex; gap: 4px; }
.segmented button, .measure-toolbar button, .measure-footer button { border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; color: var(--muted); background: var(--paper); cursor: pointer; font-size: 12px; }
.segmented button[aria-pressed="true"] { border-color: var(--accent-dark); background: var(--accent-dark); color: white; }
.evidence-block, .provenance { border-block: 1px solid var(--line-dark); }
.evidence-block > summary, .provenance > summary { padding: 14px 0; cursor: pointer; font-weight: 700; }
.measure-explorer { padding: 10px 0 30px; }
.measure-toolbar, .comparison-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}
.measure-toolbar label, .comparison-toolbar label { margin-left: auto; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.measure-toolbar select, .comparison-toolbar select { border: 1px solid var(--line-dark); border-radius: 0; padding: 6px 28px 6px 8px; background: var(--surface); font-size: 12px; }
.measure-toolbar strong { min-width: 58px; color: var(--accent-dark); font-family: var(--serif); font-size: 17px; text-align: right; }
.segmented { display: inline-flex; }
.segmented button + button { margin-left: -1px; }
.measure-viewport { position: relative; min-height: 500px; overflow: hidden; background: #10100f; }
.measure-viewport > img, #measure-canvas, #measure-canvas canvas { width: 100%; height: 500px; }
.measure-viewport > img { object-fit: cover; }
#measure-canvas { position: absolute; inset: 0; }
#measure-canvas canvas { display: block; }
#measure-start { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4; }
#measure-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#measure-top-label, #measure-bottom-label, #measure-distance-label { position: absolute; padding: 3px 6px; color: white; background: rgba(20,20,18,0.78); font-size: 10px; }
.source-inset { position: absolute; z-index: 5; right: 12px; top: 12px; width: 210px; margin: 0; border: 1px solid rgba(255,255,255,0.5); background: #171715; }
.source-inset video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.source-inset figcaption { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 4px 6px; color: #ddd; font-size: 9px; }
.source-inset button { border: 0; color: white; background: none; cursor: pointer; font-size: 9px; }
.measure-source { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; padding: 15px; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.measure-source a { display: block; }
#measure-source-crop { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #ddd; }
#measure-source-crop img { position: absolute; max-width: none; height: auto; object-fit: initial; }
#measure-source-markers { position: absolute; inset: 0; pointer-events: none; }
#measure-source-markers span {
  position: absolute;
  width: 10px;
  height: 10px;
  translate: -50% -50%;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(20,20,18,0.6);
}
.measure-source p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.measure-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-top: 10px; }
.measure-footer > div { display: flex; align-items: center; gap: 7px; }
.measure-footer p, #measure-status { margin: 0; color: var(--muted); font-size: 10px; }
button:disabled, select:disabled { opacity: 0.55; cursor: wait; }

.comparison { margin: 25px 0 45px; }
.image-reveal { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.image-reveal > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-reveal > img:first-child { clip-path: inset(0 calc(100% - var(--split)) 0 0); z-index: 2; }
.image-reveal > img:nth-child(2) { z-index: 1; }
.reveal-label { z-index: 4; }
.after-label { left: auto; right: 10px; }
.reveal-divider { position: absolute; z-index: 4; left: var(--split); top: 0; bottom: 0; width: 1px; background: white; pointer-events: none; }
.reveal-divider span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid white; border-radius: 50%; color: white; background: rgba(20,20,18,0.65); }
.image-reveal input[type="range"] { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-caption { display: flex; justify-content: space-between; gap: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.comparison-caption p { margin: 2px 0 0; color: var(--muted); }
.comparison-caption > span { flex: 0 0 auto; color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }


.motion-pipeline { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 28px 0; padding: 18px 0; border-block: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.motion-pipeline span:not(:last-child)::after { content: '→'; margin-inline: 12px; color: #9aa78f; }
article .tool-path-label { margin: 24px 0 8px; font-size: 13px; font-weight: 600; }
.tool-path-label + .motion-pipeline { margin-top: 0; }
.motion-viewer, .generation-viewer, .articulation-viewer { width: 100%; height: 590px; border: 0; }
.motion-examples { margin: 24px 0 36px; }
.motion-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.motion-tabs button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.motion-tabs button[aria-selected="true"] { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.motion-examples [hidden] { display: none !important; }
.motion-label { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.motion-label span { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.motion-prompt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 16px 18px; margin-bottom: 18px; border-left: 2px solid var(--line-dark); background: var(--surface); }
.motion-prompt p { margin: 0; font-size: 16px; }
.motion-prompt .motion-label { margin: 0; flex-shrink: 0; }
.motion-examples iframe { display: block; width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 6px; background: #e6e9e3; }
.motion-io { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 18px; }
.motion-input, .motion-output { min-width: 0; }
.motion-input video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #e6e9e3; border-radius: 6px; }
.motion-io iframe { height: 420px; }
.motion-playback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid #d8dfd2; background: #fffefa; }
.motion-playback button { flex-shrink: 0; padding: 6px 12px; border: 1px solid #cbd2c5; border-radius: 4px; background: #f1f3ed; color: #38553b; font: 12px/1.5 system-ui, sans-serif; cursor: pointer; }
.motion-playback [data-motion-play] { background: #38553b; color: white; min-width: 64px; }
.motion-playback button:hover { background: #e3e9dc; }
.motion-playback [data-motion-play]:hover { background: #2c442e; }
.motion-playback button:focus-visible { outline: 3px solid #547354; outline-offset: 3px; }
.motion-playback button:disabled { opacity: .5; cursor: wait; }
.motion-playback input { min-width: 0; flex: 1; accent-color: var(--accent-dark); }
.motion-playback output { flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.motion-example-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.motion-playback .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.human-ablation { margin: 24px 0; }
.human-ablation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; padding: 16px 0 20px; }
.human-ablation figure { margin: 0; min-width: 0; }
.human-ablation video { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 5px; background: var(--surface); }
.human-ablation figcaption, .human-ablation [role="status"] { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.human-ablation figcaption { font-size: 14px; line-height: 1.6; }
.human-ablation [hidden] { display: none; }
@media (max-width: 540px) {
  .human-ablation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .motion-io { grid-template-columns: 1fr; }
  .motion-examples iframe { height: 440px; }
  .motion-tabs button { font-size: 12px; }
  .motion-playback { gap: 8px; }
}
.render-player { margin-block: 32px; }
.render-tabs { margin-bottom: 12px; }
.render-player video { width: 100%; aspect-ratio: 16/9; background: #171c17; border-radius: 6px; }
.video-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; font-size: 11px; color: var(--muted); }
.provenance { color: var(--muted); font-size: 12px; }
.provenance p { margin: 8px 0; }
.provenance ul { columns: 2; padding-left: 18px; }
.provenance code { overflow-wrap: anywhere; }
#citation { margin-top: 40px; }
#references { margin-top: 40px; }
.reference-list { margin: 20px 0 0; padding-left: 2.2em; font-size: 14px; line-height: 1.6; color: var(--muted); }
.reference-list li { margin-bottom: 8px; padding-left: 4px; overflow-wrap: anywhere; }
.reference-list cite { font-style: normal; color: var(--ink); }
.citation-bibtex { margin: 20px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.reading-notes { margin-bottom: 24px; }
.reading-notes ul { columns: 1; }
.reading-notes li { margin-bottom: 8px; }
.footer { display: flex; justify-content: space-between; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.comparison-caption > span { flex: 0 1 220px; text-transform: none; letter-spacing: 0; font-weight: 400; text-align: right; }
.image-reveal { border-radius: 6px; }
.evidence-block > summary { font-size: 16px; font-weight: 500; }
@media (max-width: 1000px) {
  .wrap { width: min(var(--article-width), calc(100% - 48px)); }
  .contents { gap: 18px; }
  .contents a { font-size: 0; }
  .contents a span { margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.8; }
  .wrap { width: calc(100% - 32px); }
  .masthead { min-height: 62px; }
  .masthead > span { display: none; }
  .article-header { padding-top: 36px; }
  h1 { font-size: clamp(32px, 8vw, 44px); }
  .dek { font-size: 16px; margin-top: 20px; }
  .eyebrow { font-size: 9px; }
  .author-list { gap: 2px 18px; font-size: 15px; }
  .featured-scene { margin-top: 32px; }
  .featured-heading h2 { font-size: 16px; }
  .panel-heading { padding: 10px 12px; }
  .panel-heading > span { display: none; }
  .scene-stage-footer { padding: 10px 12px; gap: 12px; font-size: 10px; }
  .source-card { grid-template-columns: 136px 1fr; gap: 14px; }
  .source-card p:last-child { font-size: 10px; line-height: 1.5; }
  .source-card b { font-size: 12px; }
  .article-layout { padding-top: 30px; }
  .contents { justify-content: flex-start; overflow-x: auto; gap: 22px; padding: 15px 2px; margin-bottom: 0; }
  .contents a span { font-size: 11px; }
  article > section { margin-bottom: 48px; }
  article > section + section { padding-top: 30px; }
  article h2 { font-size: 30px; }
  article h3 { font-size: 26px; margin-top: 36px; }
  .tool-showcase-embed iframe { height: 900px; }
  .definitions { grid-template-columns: 1fr; gap: 20px; }
  .definitions dd { margin-top: 3px; }
  .agent-steps li { grid-template-columns: 20px 70px 1fr; gap: 8px; font-size: 12px; }
  .pipeline-line { flex-wrap: wrap; justify-content: flex-start; }
  .image-pair { grid-template-columns: 1fr; gap: 20px; }
  .live-scene-pair img { height: auto; aspect-ratio: 16/9; }
  .live-scene-pair iframe { height: 460px; }
  .fact-row { display: grid; grid-template-columns: 1fr 1fr; }
  .motion-viewer, .generation-viewer, .articulation-viewer { height: 540px; }
  .workflow-agent { display: block; padding: 18px; }
  .application-paths { grid-template-columns: 1fr; gap: 16px; }
  .workflow-agent > span { display: block; margin-top: 10px; max-width: none; }
  .workflow-agent b { font-size: 15px; }
  .workflow-branches { grid-template-columns: 1fr; padding-top: 6px; }
  .workflow-branches a, .workflow-branches a:first-child, .workflow-branches a:last-child { display: grid; grid-template-columns: 25px 1fr; gap: 3px 12px; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-branches a > span { grid-row: 1 / 4; margin-top: 3px; }
  .workflow-branches p { margin: 0; }
  .workflow-branches small { grid-column: 2; }
  .measure-toolbar label { margin-left: 0; }
  .measure-viewport, .measure-viewport > img, #measure-canvas, #measure-canvas canvas { height: 390px; min-height: 390px; }
  .source-inset { width: 130px; }
  .measure-source { grid-template-columns: 100px 1fr; gap: 12px; }
  .measure-footer, .comparison-caption, .video-caption { align-items: flex-start; flex-direction: column; gap: 10px; }
  .measure-footer > div { flex-wrap: wrap; }
  .comparison-caption > span { flex: auto; text-align: left; }
  .provenance ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (min-width: 1200px) {
  .wrap { margin-left: calc((100% - 1140px) / 2 + 240px); margin-right: auto; }
  .contents {
    position: fixed;
    top: 120px;
    left: calc((100% - 1140px) / 2);
    width: 200px;
    max-height: calc(100dvh - 152px);
    overflow-y: auto;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 0 0;
    margin: 0;
    border: 0;
    border-right: 1px solid var(--line);
  }
  .contents a { padding: 7px 10px; white-space: normal; line-height: 1.5; border-radius: 4px; }
  .contents a span { margin-left: 0; font-size: 13px; }
  .contents a[aria-current] { background: var(--surface); }
}

/* Continuous article and problem-based navigation. */
.comparison-embed { display: block; width: 100%; height: 340px; border: 0; }
.case-selector { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.case-selector a { padding: 18px; text-decoration: none; border-right: 1px solid var(--line); }
.case-selector a:last-child { border: 0; }
.case-selector a:hover { background: var(--surface); }
.case-selector b { display: block; font-size: 14px; font-weight: 500; }
.case-selector span { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.mask-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mask-view { position: relative; overflow: hidden; border-radius: 6px; }
.mask-view img { display: block; width: 100%; }
.mask-view .mask-overlay { position: absolute; inset: 0; }
.mask-pair span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.experiment-placeholder { display: grid; place-items: center; min-height: 150px; margin: 30px 0; padding: 24px; border: 1px dashed var(--line-dark); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 13px; text-align: center; }
.findings-table { margin: 30px 0; overflow-x: auto; }
.findings-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; text-align: left; }
.findings-table caption { text-align: left; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.findings-table th { font-weight: 600; background: var(--surface); }
.findings-table th, .findings-table td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.findings-table td { width: 25%; }
@media (max-width: 680px) {
  .comparison-embed { height: 430px; }
  .case-selector { grid-template-columns: 1fr; }
  .case-selector a { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .case-selector span { margin-top: 2px; }
  .findings-table table { min-width: 650px; }
}

.xray-modes { margin-bottom: 12px; }
.xray-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.xray-stage img { display: block; width: 100%; height: auto; }
#inspection-overlay { position: absolute; inset: 0; }
.xray-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.xray-controls label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.xray-controls input { width: 130px; accent-color: var(--accent); }

.tool-section-embed iframe { height: 480px; }
.case-selector { gap: 1px; background: var(--line); }
.case-selector a { border: 0; background: var(--paper); }
@media (min-width: 1200px) { .contents { top: 96px; max-height: calc(100dvh - 120px); gap: 2px; } .contents a { padding-block: 6px; } }
@media (min-width: 681px) and (max-width: 1000px) { .case-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Article chapters and their tool subsections. */
.contents-subsections { display: contents; }
#tools > section { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
#tools > section > h3 { margin-top: 0; font-size: 36px; }
/* Workflow stage of each tool, matching the stages in the workflow diagram. */
.stage-track { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 12px; padding: 0; list-style: none; font-size: 11px; font-weight: 600; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; color: var(--line-dark); }
.stage-track li + li::before { content: "›"; margin: 0 10px; color: var(--line-dark); }
.stage-track li[aria-current] { color: var(--accent); }
@media (max-width: 540px) { .stage-track { font-size: 10px; letter-spacing: .08em; } .stage-track li + li::before { margin: 0 6px; } }
#tools h4 { margin: 32px 0 14px; font-size: 20px; font-weight: 500; }
.workflow-examples { margin: 28px 0; }
.workflow-examples summary { cursor: pointer; color: var(--muted); }
@media (min-width: 1200px) {
  .contents-subsections { display: flex; flex-direction: column; margin-left: 12px; padding-left: 9px; border-left: 1px solid var(--line); }
  .contents-subsections a span { font-size: 12px; }
}
@media (max-width: 680px) {
  #tools > section { margin-top: 44px; padding-top: 28px; }
  #tools > section > h3 { font-size: 28px; }
}

.gravity-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.gravity-flow b, .gravity-flow span { display: block; }
.gravity-flow span { margin-top: 8px; font-size: 14px; color: var(--muted); }
.orientation-step { scroll-margin-top: 90px; }
@media (max-width: 680px) { .gravity-flow { grid-template-columns: 1fr; } }

/* Compact continuation from the shared scene comparison into exploration. */
#explore.featured-scene { margin-top: 20px; }
#explore > .featured-heading,
#explore .scene-stage > .panel-heading {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
#explore #demo-mount iframe { display: block; }

/* Agent-authored RoomKit methods and registered asset overview. */
.roomkit-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 28px 0 32px; }
.roomkit-capabilities > div { border-top: 1px solid var(--line); padding-top: 14px; }
.roomkit-capabilities dt { font-size: 16px; font-weight: 600; }
.roomkit-capabilities dd { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.roomkit-atlas img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.roomkit-atlas-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 12px; }
@media (max-width: 680px) { .roomkit-capabilities { grid-template-columns: 1fr; gap: 20px; } }

/* Parallel steps in preparing the scene reference. */
.reference-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 0; margin-top: 30px; }
.reference-columns > .orientation-step { min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; }
#tools .reference-columns h4 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; }
.reference-columns p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; }
.reference-columns .tool-section-embed { margin: 0; min-width: 0; }
.reference-columns figcaption { font-size: 12px; }
@media (max-width: 760px) {
 .reference-columns { grid-template-columns: 1fr; gap: 32px; }
 .reference-columns > .orientation-step { display: block; grid-row: auto; }
}

.roomkit-library-tabs { display: flex; gap: 20px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.roomkit-library-tabs button { padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.roomkit-library-tabs button[aria-selected="true"] { color: var(--accent-dark); border-bottom-color: var(--accent-dark); font-weight: 600; }
.roomkit-library-tabs button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.roomkit-atlas [role="tabpanel"][hidden] { display: none; }
.roomkit-atlas-links span { color: var(--muted); }
.roomkit-atlas-source { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--muted); }

#demo-mount { position: relative; }
.scene-load-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; background: #111713; }
.scene-load-screen[hidden] { display: none; }
.scene-load-screen > img, .scene-load-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* The preview video bakes a caption bar into its bottom ~11%; keep the button above it, even when letterboxed. */
.scene-load-controls { position: absolute; right: 16px; bottom: calc((100% - 56.25cqw) / 2 + 6.2cqw + 12px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100% - 32px); color: white; }
.scene-load-controls .button { min-height: 48px; padding: 12px 24px; font-size: 17px; line-height: 1.4; font-weight: 600; color: white; background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgb(255 255 255 / 85%), 0 6px 20px rgb(0 0 0 / 35%); cursor: pointer; }
.scene-load-controls .button:not(:disabled) { animation: scene-load-pulse 2.4s ease-in-out infinite; }
@keyframes scene-load-pulse { 50% { box-shadow: 0 0 0 6px rgb(255 255 255 / 55%), 0 6px 20px rgb(0 0 0 / 35%); } }
@media (prefers-reduced-motion: reduce) { .scene-load-controls .button { animation: none !important; } }
.scene-load-controls progress { width: 220px; max-width: 100%; accent-color: #c5d9b1; }
.scene-load-controls [hidden] { display: none; }
#scene-load-status { padding: 4px 10px; border-radius: 6px; background: rgb(17 23 19 / 70%); font-size: 14px; text-align: right; }
#scene-load-status:empty { display: none; }
#demo-mount iframe.scene-loading-frame { position: absolute; inset: 0; visibility: hidden; }

/* Workflow illustration, previously injected by site.js. */
.workflow-diagram { --wf-green: #3e5c42; --wf-paper: #fffefa; }
.workflow-diagram .defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.workflow-diagram .map { background: #edf2e8; border: 1px solid #dae3d3; border-radius: 20px; padding: 24px 23px 8px; }
.workflow-diagram .stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.workflow-diagram .stage { position: relative; background: var(--wf-paper); border: 1px solid #ced9c7; border-radius: 12px; min-height: 204px; padding: 20px 12px; box-shadow: 0 3px 0 #dce4d6; }
.workflow-diagram .stage:not(:last-child)::after { content: ''; position: absolute; right: -25px; top: 37px; width: 20px; height: 3px; background: #547354; }
.workflow-diagram .stage:not(:last-child)::before { content: ''; position: absolute; right: -25px; top: 33px; width: 9px; height: 9px; border-right: 3px solid #547354; border-top: 3px solid #547354; transform: rotate(45deg); }
.workflow-diagram .stage h3 { font-family: var(--sans); font-size: 23px; line-height: 1.2; letter-spacing: -.7px; margin: 0 0 21px; font-weight: 700; }
.workflow-diagram .stage-note { display: block; min-height: 34px; margin-top: 8px; font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.workflow-diagram .tools { display: flex; flex-direction: column; gap: 15px; }
.workflow-diagram .tool { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 14px; line-height: 22px; text-decoration: none; white-space: normal; }
.workflow-diagram .tool:hover { text-decoration: underline; text-underline-offset: 4px; }
.workflow-diagram .tool svg { width: 22px; height: 22px; flex: none; stroke: #587650; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.workflow-diagram .verify { background: var(--wf-green); border-color: var(--wf-green); color: var(--wf-paper); box-shadow: 0 3px 0 #2d4630; }
.workflow-diagram .verify .tool svg { stroke: #d8e8c9; }
.workflow-diagram .verify a:focus-visible { outline-color: #d8e8c9; }
.workflow-diagram .return { display: block; width: 100%; height: 76px; overflow: visible; }
.workflow-diagram .return text { font-family: var(--sans); font-size: 19px; font-weight: 600; fill: var(--wf-green); }
.workflow-diagram .mobile-repair { display: none; }
#workflow-build { scroll-margin-top: 100px; }
@media (max-width: 1000px) {
  .workflow-diagram .map { padding: 20px; }
  .workflow-diagram .stages { grid-template-columns: 1fr; gap: 28px; }
  .workflow-diagram .stage { display: grid; grid-template-columns: minmax(95px, .8fr) minmax(0, 1fr); align-items: start; gap: 12px; min-height: 0; padding: 18px; }
  .workflow-diagram .stage h3 { margin: 0; font-size: 22px; }
  .workflow-diagram .tools { gap: 8px; }
  .workflow-diagram .tool { min-height: 30px; white-space: normal; }
  .workflow-diagram .stage:not(:last-child)::after { right: auto; left: 34px; top: auto; bottom: -24px; width: 3px; height: 18px; }
  .workflow-diagram .stage:not(:last-child)::before { right: auto; left: 31px; top: auto; bottom: -24px; transform: rotate(135deg); }
  .workflow-diagram .return { display: none; }
  .workflow-diagram .mobile-repair { display: block; grid-column: 1 / -1; color: inherit; font-size: 16px; padding: 6px 0; text-underline-offset: 4px; }
}
@media (max-width: 400px) {
  .workflow-diagram .map { padding: 16px 12px; }
  .workflow-diagram .stage { padding: 16px 12px; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; }
  .workflow-diagram .tool { gap: 6px; }
}

/* Matched-camera comparison in the opening case study. */
.kitchen-refinement { margin-block: 26px 0; }
.kitchen-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kitchen-card { min-width: 0; }
.kitchen-label { display: flex; gap: 8px; align-items: baseline; margin-bottom: 9px; font-size: 12px; font-weight: 500; line-height: 1.35; }
.kitchen-label span { color: #91998b; font-size: 9px; }
.kitchen-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #e7e9e1; box-shadow: 0 0 0 1px rgb(45 59 37 / 9%); }
.kitchen-playback { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.kitchen-play { display: grid; place-items: center; flex: 0 0 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; font-size: 11px; }
.kitchen-play:hover { background: #edf0e7; }
.kitchen-play:disabled { opacity: .45; cursor: wait; }
.kitchen-progress { width: 100%; min-width: 0; height: 3px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.kitchen-time { flex-shrink: 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.kitchen-refinement > figcaption { margin-top: 12px; font-size: 12px; }
.kitchen-status { color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  .kitchen-cards { gap: 7px; }
  .kitchen-label { display: block; min-height: 30px; font-size: 10px; }
  .kitchen-label span { display: none; }
  .kitchen-card video { border-radius: 4px; }
  .kitchen-playback { gap: 9px; }
}

/* Real object repairs below the X-Ray tool demo. */
.xray-cases { margin-top: 30px; }
.xray-cases[open] { padding-bottom: 18px; }
.xray-case-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; font-size: 12px; color: var(--muted); }
.xray-case-toolbar select, .xray-case-views button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 5px; background: var(--paper); color: var(--accent); font: inherit; cursor: pointer; }
.xray-case-views { display: flex; gap: 6px; margin-left: auto; }
.xray-case-views button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.xray-reveal { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); --split: 50%; border-radius: 6px; }
.xray-reveal > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.xray-reveal > img:first-child { clip-path: inset(0 calc(100% - var(--split)) 0 0); z-index: 2; }
.xray-reveal > img:nth-child(2) { z-index: 1; }
.xray-reveal-label { position: absolute; top: 10px; left: 10px; z-index: 4; padding: 4px 8px; background: #1f2b22c9; color: #fff; border-radius: 3px; font-size: 11px; line-height: 1.4; pointer-events: none; }
.xray-reveal-label.after { left: auto; right: 10px; }
.xray-reveal-divider { position: absolute; z-index: 4; left: var(--split); top: 0; bottom: 0; width: 1px; background: #fff; pointer-events: none; }
.xray-reveal-divider span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #fff; border-radius: 50%; color: #fff; background: #141412aa; line-height: 1; }
.xray-reveal input[type="range"] { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.xray-reveal:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.xray-case-caption { padding-top: 12px; font-size: 12px; line-height: 1.6; }
.xray-case-caption p { margin: 3px 0; color: var(--muted); }
.xray-case-caption > span { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 480px) { .xray-case-views { width: 100%; margin-left: 0; } }

/* Real placement repairs below the physics tool demo. */
.contact-cases { margin-top: 30px; }
.contact-cases > h4 { margin-bottom: 18px; }
.contact-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-case { margin: 0; min-width: 0; }
.contact-case h5 { margin: 0 0 10px; font: 600 14px/1.4 var(--sans); }
.contact-case-pair { display: grid; gap: 10px; }
.contact-case-pair a { display: block; color: var(--muted); text-decoration: none; min-width: 0; }
.contact-case-pair span { display: block; margin-bottom: 5px; font-size: 11px; }
.contact-case-pair img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); border-radius: 4px; }
.contact-case-pair a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.contact-case figcaption { margin-top: 12px; font-size: 12px; line-height: 1.65; }
.contact-cases .contact-cases-note { margin-top: 18px; color: var(--muted); font-size: 12px; }
@media (max-width: 680px) {
  .contact-case-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-case-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Small semantic icons share the workflow diagram's line style. */
.section-icon {
  display: inline-block;
  width: .85em;
  height: .85em;
  flex: 0 0 .85em;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h2:has(> .section-icon), h3:has(> .section-icon) {
  display: flex;
  align-items: baseline;
  gap: .35em;
}
h2 > .section-icon, h3 > .section-icon {
  align-self: flex-start;
  margin-top: .18em;
}
h2 > .section-icon + span, h3 > .section-icon + span { min-width: 0; }
.provenance > summary > .section-icon {
  margin-inline: .25em .4em;
  vertical-align: -.08em;
}

iframe[hidden] { display: none !important; }

/* Keep the original viewer footprint and controls while showing frame zero. */
.motion-viewer-stage { position: relative; }
.motion-viewer-stage [data-motion-preview] { position: absolute; inset: 0; z-index: 1; }

/* Compact example thumbnails below the synchronized motivation comparison. */
.motivation-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.motivation-example { width: 104px; padding: 3px; border: 2px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; opacity: .7; transition: opacity .18s, border-color .18s; }
.motivation-example img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.motivation-example:hover { opacity: 1; }
.motivation-example[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.motivation-example:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

/* Stage-level workflow token accounting. */
.workflow-token-table { width: 100%; margin: 18px 0 24px; border-collapse: collapse; font-size: 13px; line-height: 1.6; text-align: left; }
.workflow-token-table caption { margin-bottom: 10px; text-align: left; font-weight: 600; }
.workflow-token-table th, .workflow-token-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.workflow-token-table tbody th { font-weight: 400; }
.workflow-token-table thead, .workflow-token-table tfoot { background: var(--surface); font-weight: 600; }
.workflow-token-table td, .workflow-token-table thead th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.workflow-ablation .workflow-token-note { font-size: 12px; line-height: 1.6; color: var(--muted); }

.workflow-token-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 680px) { .workflow-token-grid { grid-template-columns: 1fr; gap: 0; } }
