/* Academic project page. All fonts and media work without external services. */
:root {
  --text: #363636;
  --muted: #696969;
  --link: #2878b9;
  --line: #dedede;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--text); background: #fff; font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
a, button, input, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--link); }
img, video { display: block; max-width: 100%; }
svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
strong { font-weight: 600; }
sup { font-size: .7em; margin-left: 2px; }
.content { width: min(960px, calc(100% - 48px)); margin: 0 auto; }
.reading-width { width: min(800px, calc(100% - 48px)); margin: 0 auto; }
.hero { max-width: 1150px; margin: 0 auto; padding: 36px 24px 28px; text-align: center; }
h1 { font-size: clamp(30px, 3.6vw, 45px); font-weight: 600; line-height: 1.17; letter-spacing: -1.2px; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 20px; row-gap: 2px; margin-top: 27px; font-size: 17px; line-height: 1.9; }
.authors>span, .authors a { color: var(--link); }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 24px; margin-top: 3px; font-size: 16px; }
.venue { margin-top: 13px; font-size: 20px; }
.resource-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 17px; min-height: 38px; border-radius: 22px; font-size: 14px; line-height: 1.4; background: #363636; color: #fff; }
.button:hover { background: #4b4b4b; text-decoration: none; }
.button-primary>span { display: none; }
.button-unavailable { background: #737373; color: #fff; }
.button-unavailable small { font-size: 10px; font-weight: 400; opacity: .9; }
.observation { padding-top: 6px; padding-bottom: 15px; }
.observation h2 { font-size: 34px; margin-bottom: 16px; }
.observation .observation-figure { margin: 32px 0 17px; }
.preview-metric-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 25px; align-items: start; }
.sample-panel .sample-prompt { text-align: center; font-size: 17px; margin: 10px 0 0; line-height: 1.5; }
.l2r-preview video { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; background: #111; }
.preview-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.preview-controls p { font-size: 14px; font-weight: 500; line-height: 1.4; }
.preview-controls .play-button { flex-shrink: 0; }
.play-button[hidden] { display: none; }
.metric-chart { display: block; width: 100%; height: auto; }
.metric-chart line { stroke: #333; stroke-width: 2; stroke-dasharray: 7 6; }
.metric-chart rect { stroke: none; fill: #fff; }
.metric-chart text { stroke: none; fill: #333; text-anchor: middle; font: 22px var(--font); }
.metric-model-label text { font-size: 26px; fill: #696969; text-anchor: end; }
.metric-axis-label text { fill: #111; font-size: 34px; }
.metric-legend { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 13px 0 0; font-size: 14px; line-height: 1.4; }
.metric-legend-row { display: flex; justify-content: center; gap: 12px; max-width: 100%; list-style: none; margin: 0; padding: 0; }
.metric-legend li { display: flex; gap: 6px; align-items: center; min-width: 0; text-align: center; }
.metric-legend li::before { content: ""; width: 18px; height: 3px; flex-shrink: 0; background: var(--metric-color); }
.metric-note { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.linked-observation .step-control { margin-top: 28px; }
.section .showcase { margin: 25px 0 38px; }
.showcase { text-align: center; }
.showcase-top { margin-bottom: 16px; }
.prompt p { font-size: 17px; line-height: 1.6; }
.model-tag { color: var(--muted); font-size: 12px; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.video-panel { display: flex; flex-direction: column; min-width: 0; }
.video-label { order: -1; font-size: 15px; margin-bottom: 9px; }
.video-panel video { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #111; }
.showcase-bottom { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 16px; }
.example-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.example-tab { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; padding: 6px 9px; border-radius: 4px; font-size: 12px; }
.example-tab img { width: 28px; height: 21px; object-fit: cover; border-radius: 2px; }
.example-tab:hover { background: #f5f5f5; }
.example-tab.active { border-color: #b9cbd9; color: var(--link); background: #f7fafc; }
.play-button { display: inline-flex; gap: 7px; align-items: center; background: transparent; border: 0; min-height: 36px; padding: 5px; color: #555; font-size: 12px; }
h2 { font-size: 30px; line-height: 1.25; font-weight: 600; text-align: center; margin-bottom: 23px; letter-spacing: -.4px; }
.section { padding: 49px 0 12px; }
.research-copy { max-width: 800px; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.teaser-figure { margin-top: 30px; }
.decoder-section { margin-top: 52px; padding: 54px 0 48px; border-block: 1px solid #dce6ed; background: #f4f8fb; }
.decoder-section h2 { max-width: 960px; margin: 0 auto 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; text-wrap: balance; }
.decoder-section h2 span { display: block; color: #256b9f; }
.decoder-intro { max-width: 760px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.7; }
.decoder-intro strong { color: #256b9f; }
.decoder-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 24px auto 8px; }
.decoder-stats > div { display: flex; flex-direction: column; align-items: center; padding: 7px 16px; }
.decoder-stats > div + div { border-left: 1px solid #dae4ec; }
.decoder-stats strong { color: #256b9f; font-size: 36px; line-height: 1.25; font-weight: 650; letter-spacing: -.6px; white-space: nowrap; }
.decoder-stats strong span { font-size: 24px; font-weight: 500; }
.decoder-stats > div > span { color: #657888; font-size: 13px; margin-top: 5px; }
.decoder-size-note { text-align: center; font-size: 12px; color: var(--muted); }
.decoder-demo { margin: 26px 0 0; border: 1px solid #dce6ed; border-radius: 12px; padding: 22px; background: #fff; }
.decoder-prompt { font-size: 17px; text-align: center; }
.decoder-prompt > span { display: inline-block; margin-left: 10px; color: var(--muted); font-size: 12px; }
.decoder-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin: 20px 0 15px; }
.decoder-step-picker { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
.decoder-step-picker > span { font-size: 13px; margin-right: 7px; color: #526c80; }
.decoder-step-picker button { min-width: 33px; min-height: 34px; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 13px; }
.decoder-step-picker button:hover { background: #eaf1f7; }
.decoder-step-picker button.selected { background: #e5f0f9; border-color: #b2cbdf; color: #256b9f; font-weight: 650; }
.decoder-replay { min-height: 36px; padding: 6px 12px; border: 1px solid #c8d9e6; background: #fff; color: #256b9f; border-radius: 6px; font-size: 12px; }
.decoder-replay:hover:not(:disabled) { background: #eaf3fa; }
.decoder-replay:disabled { opacity: .5; cursor: wait; }
.decoder-input { display: flex; align-items: center; justify-content: center; gap: 8px; }
.latent-illustration { width: 112px; height: 86px; flex-shrink: 0; stroke-width: 1; }
.latent-illustration .latent-cell { stroke: none; }
.decoder-input > div { display: flex; flex-direction: column; }
.decoder-input strong { font-size: 14px; font-weight: 550; color: #455c70; }
.decoder-input span { font-size: 13px; color: #64788a; }
.decoder-input small { font-size: 10px; color: #81909d; }
.decoder-branches { display: block; width: 100%; height: 34px; color: #a5b9ca; stroke-width: 1.4; }
.decoder-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.decoder-result { min-width: 0; border: 1px solid #d9dfe5; border-radius: 8px; overflow: hidden; background: #fff; }
.decoder-result-l2r { border-color: #b8d2e6; }
.decoder-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.decoder-result-heading h3 { margin: 0; text-align: left; font-size: 16px; font-weight: 550; line-height: 1.3; }
.decoder-result-heading h3 span { font-size: 13px; font-weight: 400; }
.decoder-result-heading > strong { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.decoder-result-l2r .decoder-result-heading { color: #256b9f; background: #f0f7fc; }
.decoder-screen { position: relative; aspect-ratio: 3/2; background: #f0f3f6; }
.decoder-screen video { width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.decoder-result[data-state="ready"] video { opacity: 1; }
.decoder-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 12px; color: #748594; text-align: center; }
.decoder-cover[hidden], .decoder-cover [hidden] { display: none; }
.decoder-cover-label { font-size: 14px; }
.decoder-clock { font-size: 30px; line-height: 1.3; font-variant-numeric: tabular-nums; color: #50687b; }
.decoder-progress { width: 65%; height: 4px; overflow: hidden; border-radius: 2px; background: #dce5ec; }
.decoder-progress > span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #8a9eae; }
.decoder-result-l2r .decoder-progress > span { background: #477da6; }
.decoder-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-top: 7px; }
.decoder-footer > p { font-size: 13px; color: #526c80; }
.decoder-footer .play-button { white-space: nowrap; }
.decoder-timing-note { font-size: 11px; color: #77818b; line-height: 1.6; }
.results-detail { margin-top: 18px; font-size: 14px; }
.results-detail summary { cursor: pointer; color: var(--link); padding: 9px 0; }
.results-detail[open] .figure-meta { margin: 15px 0; }
.results-detail img { width: 100%; height: auto; }
.future-section { padding-bottom: 44px; }
.figure-meta { text-align: center; color: var(--muted); font-size: 14px; margin: -10px 0 20px; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 44px 0 16px; }
.result-heading h3 { margin: 0; font-size: 20px; text-align: left; }
.result-heading>span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.paper-figure { margin: 26px 0 40px; }
.paper-figure img { width: 100%; height: auto; }
.paper-figure>a { display: block; }
.preview-figure { margin: 42px 0; }
.sample-prompt { text-align: center; font-size: 16px; margin-bottom: 17px; }
.sample-prompt>span { font-size: 12px; color: var(--muted); margin-left: 12px; }
.frame-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.frame-pair img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.panel-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.panel-label>span { font-size: 12px; color: var(--muted); }
.step-control { max-width: 650px; margin: 23px auto 0; padding: 14px 18px 12px; background: #f6f9fc; border: 1px solid #dce6ed; border-radius: 12px; }
.slider-caption { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 9px; }
.slider-caption output { color: #286a9b; font-variant-numeric: tabular-nums; }
.step-navigation { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 10px; align-items: start; }
.step-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #c6d7e4; border-radius: 50%; color: #286a9b; background: #fff; }
.step-arrow svg { width: 20px; height: 20px; stroke-width: 2; }
.step-arrow:hover:not(:disabled) { background: #e7f1f9; border-color: #477da6; }
.step-arrow:disabled { opacity: .35; cursor: default; }
.step-track { min-width: 0; }
.step-control input { -webkit-appearance: none; appearance: none; display: block; width: 100%; margin: 0; height: 40px; background: transparent; cursor: grab; }
.step-control input:active { cursor: grabbing; }
.step-control input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #477da6 var(--step-progress), #d3e1eb var(--step-progress)); }
.step-control input::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #477da6 var(--step-progress), #d3e1eb var(--step-progress)); }
.step-control input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -13px; border: 2px solid #477da6; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4m8-8 4 4-4 4' fill='none' stroke='%23477da6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 21px no-repeat; box-shadow: 0 1px 3px #23445b1a; }
.step-control input::-moz-range-thumb { width: 28px; height: 28px; border: 2px solid #477da6; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4m8-8 4 4-4 4' fill='none' stroke='%23477da6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 21px no-repeat; box-shadow: 0 1px 3px #23445b1a; }
.step-control input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 4px #477da618; }
.step-control input:hover::-moz-range-thumb { box-shadow: 0 0 0 4px #477da618; }
.step-ticks { display: flex; justify-content: space-between; }
.step-ticks button { min-width: 32px; min-height: 30px; border: 0; background: transparent; padding: 2px; font-size: 14px; }
.step-ticks .selected { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.step-hint { margin-top: 5px; color: #526c80; font-size: 13px; text-align: center; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.results-table { width: 100%; border-collapse: collapse; min-width: 650px; font-size: 14px; text-align: center; border-top: 2px solid #555; border-bottom: 2px solid #555; }
.results-table th,.results-table td { padding: 12px 14px; font-variant-numeric: tabular-nums; }
.results-table th { font-weight: 500; }
.results-table th:first-child { text-align: left; }
.results-table thead { border-bottom: 1px solid #888; }
.results-table thead tr:first-child th[colspan] { border-bottom: 1px solid #ccc; }
.results-table tbody tr+tr { border-top: 1px solid #ededed; }
.results-table tbody strong { font-weight: 650; }
.vbench-table { min-width: 820px; font-size: 15px; }
.vbench-table th,.vbench-table td { padding: 13px 10px; white-space: nowrap; }
.vbench-table thead th { font-size: 14px; }
.vbench-table thead tr:first-child th { font-size: 16px; font-weight: 600; }
.vbench-table thead tr:first-child th:last-child,
.vbench-table thead tr:nth-child(2) th:nth-child(5),
.vbench-table tbody td:nth-child(6) { border-left: 1px solid var(--line); }
.vbench-table .method-ours { background: #edf5fb; }
.vbench-table .method-ours th { color: #256b9f; font-weight: 650; }
.vbench-table .method-variant { background: #f7f9fb; }
.vbench-table .method-variant th { padding-left: 24px; }
.vbench-table .time-overhead { background: rgba(37,107,159,.045); }
.vbench-table thead .time-overhead { color: #256b9f; font-weight: 700; }
.vbench-table .time-overhead strong { color: #256b9f; font-weight: 750; }
.method-detail { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.table-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: -10px; }
.section-text, .method-description { max-width: 850px; margin-inline: auto; line-height: 1.8; }
.method-description p+p { margin-top: 14px; }
h3 { font-size: 23px; font-weight: 550; text-align: center; margin: 44px 0 22px; }
.latency-figure { margin-top: 10px; }
.overview-video { width: 100%; aspect-ratio: 16/9; background: #111; }
.video-caption { color: var(--muted); font-size: 13px; margin-top: 11px; text-align: center; }
.citation-section { padding: 16px 0 28px; border-top: 1px solid var(--line); }
.citation-section>h2 { font-size: 23px; text-align: left; margin-bottom: 16px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; }
.citation-source { font-size: 13px; }
.citation-heading h2 { margin: 0; text-align: left; }
.copy-button { font-size: 12px; background: #fff; border: 1px solid #ccc; padding: 6px 13px; border-radius: 3px; }
.copy-button:hover { background: #f5f5f5; }
pre { margin: 0; padding: 22px 25px; background: #f5f5f5; overflow-x: auto; font-size: 12px; line-height: 1.7; }
code { font-family: "SFMono-Regular", Consolas, monospace; }
footer { background: #f7f7f7; padding: 30px 24px; text-align: center; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 15px; z-index: 10; padding: 10px 15px; background: #333; color: #fff; }
.skip-link:focus { top: 10px; }
@media(max-width:780px) {
  .decoder-demo { padding: 16px; }
  .decoder-pair { gap: 12px; }
  .decoder-result-heading { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; }
  .hero { padding-top: 35px; }
  h1 { font-size: 34px; letter-spacing: -.8px; }
  .desktop-break { display: none; }
  .authors { font-size: 15px; column-gap: 14px; margin-top: 22px; }
  .affiliations { font-size: 14px; }
  .venue { font-size: 18px; }
  .showcase-bottom { gap: 12px; align-items: center; }
  .example-tab { font-size: 11px; padding: 6px 7px; }
  .example-tab img { display: none; }
  .video-label { font-size: 13px; }
  .section { padding-top: 40px; }
  h2 { font-size: 27px; margin-bottom: 19px; }
  .panel-label { flex-wrap: wrap; font-size: 12px; gap: 2px; }
  .panel-label>span { font-size: 11px; }
  .frame-pair { gap: 12px; }
  .preview-metric-grid { grid-template-columns: 1fr; gap: 23px; }
  .sample-panel { max-width: 440px; width: 100%; margin-inline: auto; }
  .sample-panel .sample-prompt { font-size: 16px; }
  .research-copy { font-size: 17px; line-height: 1.8; }
}
@media(max-width:480px) {
  .decoder-intro { font-size: 15px; }
  .decoder-stats { margin-top: 18px; }
  .decoder-stats > div { padding: 4px 6px; }
  .decoder-stats strong { font-size: 24px; }
  .decoder-stats strong span { font-size: 15px; }
  .decoder-stats > div > span { font-size: 10px; }
  .decoder-size-note { font-size: 11px; }
  .decoder-demo { padding: 12px; }
  .decoder-prompt { font-size: 15px; }
  .decoder-prompt > span { display: block; margin-left: 0; }
  .decoder-step-picker > span { width: 100%; margin: 0; }
  .decoder-step-picker button { min-width: 30px; min-height: 34px; padding-inline: 5px; }
  .decoder-pair { gap: 8px; }
  .decoder-result-heading { padding: 9px 8px; min-height: 83px; justify-content: space-between; }
  .decoder-result-heading h3 { font-size: 13px; }
  .decoder-result-heading h3 span { font-size: 11px; }
  .decoder-result-heading > strong { font-size: 19px; }
  .decoder-cover-label { font-size: 11px; }
  .decoder-clock { font-size: 20px; }
  .decoder-footer { align-items: flex-start; }
  .decoder-footer > p { font-size: 11px; }
  .content,.reading-width { width: calc(100% - 32px); }
  .hero { padding: 30px 16px; }
  h1 { font-size: 29px; line-height: 1.2; letter-spacing: -.6px; }
  .authors { font-size: 13px; gap: 3px 12px; }
  .affiliations { font-size: 13px; }
  .venue { margin-top: 10px; font-size: 17px; }
  .resource-links { gap: 6px; }
  .button { font-size: 12px; padding: 8px 12px; gap: 5px; }
  .button svg { width: 13px; height: 13px; }
  .button-unavailable small { font-size: 9px; }
  .prompt p { font-size: 14px; }
  .observation h2 { font-size: 28px; }
  .model-tag { font-size: 11px; }
  .video-pair { gap: 8px; }
  .video-label { font-size: 12px; }
  .showcase-bottom { gap: 7px; }
  .example-tabs { gap: 3px; }
  .example-tab { font-size: 11px; padding: 6px; }
  .play-button { font-size: 11px; flex-shrink: 0; }
  h2 { font-size: 25px; }
  .sample-prompt { font-size: 14px; }
  .sample-prompt>span { display: block; margin: 3px 0 0; }
  .panel-label { font-size: 11px; min-height: 35px; }
  .panel-label>span { display: block; width: 100%; font-size: 10px; }
  .step-control { margin-top: 17px; padding: 12px; }
  .step-navigation { gap: 6px; }
  .slider-caption { font-size: 14px; }
  .step-ticks button { min-width: 24px; font-size: 12px; }
  .result-heading { flex-wrap: wrap; gap: 4px; }
  .result-heading h3 { font-size: 18px; }
  .research-copy { font-size: 16px; }
  h3 { font-size: 21px; margin-top: 35px; }
  pre { font-size: 10px; padding: 17px; }
  footer { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
