:root {
  color-scheme: light;
  --paper: #fff;
  --tint: #f8f6fc;
  --hero: #f8f5fe;
  --wash: #efe8fc;
  --panel: #fff;
  --ink: #221c2a;
  --secondary: #514b5d;
  --muted: #696171;
  --accent: #6537a6;
  --accent-deep: #412466;
  --accent-light: #eae0fa;
  --line: #e2dde8;
  --strong-line: #cac1d6;
  --display-start: #362044;
  --display-mid: #62398e;
  --display-end: #9156c5;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --header-height: 4rem;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15121c;
  --tint: #1b1723;
  --hero: #1d1728;
  --wash: #30233f;
  --panel: #221d2c;
  --ink: #f5f0fa;
  --secondary: #cec4d8;
  --muted: #b7aabd;
  --accent: #c7a0fa;
  --accent-deep: #dbbfff;
  --accent-light: #382a4b;
  --line: #39303f;
  --strong-line: #574a62;
  --display-start: #f2e7ff;
  --display-mid: #d0a9fa;
  --display-end: #ba8de5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, pre { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
::selection { color: #231032; background: #e3caff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - var(--gutter) * 2), 74rem); margin-inline: auto; }
.reading-shell { max-width: 66rem; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 20; left: 1rem; top: .6rem; padding: .5rem 1rem; border-radius: 6px; color: var(--ink); background: var(--panel); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); }
.nav-bar, .brand, .site-nav, .nav-actions, .icon-button { display: flex; align-items: center; }
.nav-bar { min-height: var(--header-height); }
.brand { gap: .5rem; width: max-content; color: var(--ink); font-size: 1.29rem; line-height: 1; letter-spacing: -.058em; }
.brand img { width: 2.35rem; height: auto; }
.wordmark { font-family: var(--sans); font-weight: 750; }
.site-nav { gap: clamp(.95rem, 2.2vw, 2.05rem); margin-left: auto; align-self: stretch; }
.site-nav a { position: relative; display: flex; align-items: center; color: var(--secondary); font-size: .88rem; font-weight: 550; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); }
.nav-actions { gap: .4rem; margin-left: 1.55rem; border-left: 1px solid var(--line); padding-left: 1.25rem; }
.icon-button { justify-content: center; width: 2.28rem; height: 2.28rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--secondary); }
.icon-button:hover:enabled, .view-button:hover { color: var(--accent); border-color: var(--accent); }
.icon-button:disabled { opacity: .36; }
.icon-button .icon { width: 1.05rem; height: 1.05rem; }
.theme-toggle { width: 2.15rem; height: 2.15rem; background: transparent; }
.theme-sun, [data-theme="dark"] .theme-moon, .menu-toggle { display: none; }
[data-theme="dark"] .theme-sun { display: initial; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, var(--paper) 12%, transparent 65%), linear-gradient(125deg, var(--wash) -20%, var(--hero) 44%, var(--wash) 125%); border-bottom: 1px solid var(--line); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) .7px, transparent 1px) 50% 0 / 20px 20px; opacity: .56; mask-image: linear-gradient(90deg, black, transparent 37%, transparent 63%, black); }
.orbit { position: absolute; width: clamp(25rem, 41vw, 46rem); aspect-ratio: 1.59; background: url("assets/images/orbits.svg") center/100% 100% no-repeat; z-index: -1; pointer-events: none; opacity: .59; }
.orbit-left { left: -15%; top: 9%; transform: rotate(-14deg); }
.orbit-right { right: -16%; bottom: 4%; transform: rotate(163deg); }
[data-theme="dark"] .orbit { opacity: .37; filter: brightness(1.4); }
.hero-inner { position: relative; padding-block: clamp(2.5rem, 3.6vw, 3.75rem) 2.6rem; }
.hero h1 { font-weight: 600; }
.hero-name {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto .65rem;
  padding: 0 .065em .045em 0;
  font-size: clamp(4.4rem, 7vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.078em;
  color: var(--accent-deep);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-name {
    background-image: linear-gradient(98deg, var(--display-start) 8%, var(--display-mid) 55%, var(--display-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active), print {
  .hero-name { background: none; color: CanvasText; }
}
.paper-title { display: block; max-width: 58rem; margin: auto; color: var(--ink); font: 400 clamp(2rem, 3.05vw, 2.95rem)/1.04 var(--serif); letter-spacing: -.027em; text-wrap: balance; }
.paper-title > span { display: block; }
.authors, .affiliations, .author-notes { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.authors { gap: .1rem 1.28rem; margin: 1.25rem auto .36rem; font-size: 1.045rem; font-weight: 650; line-height: 1.55; }
sup { color: var(--accent); font: 650 .65em/0 var(--sans); position: relative; top: -.04em; }
.authors sup { margin-left: .07rem; }
.affiliations { gap: .05rem .95rem; color: var(--secondary); font-size: .865rem; line-height: 1.65; }
.affiliations sup, .author-notes sup { font-size: .75em; }
.author-notes { gap: 1rem; margin-top: .3rem; color: var(--muted); font-size: .8rem; }
.author-notes a:hover, .footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.hero-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.hero-actions a { display: grid; place-items: center; min-height: 44px; border-radius: 99px; color: var(--accent); font-weight: 650; }
/* The link text stays available when the artwork is hidden or unavailable. */
.hero-actions a > * { grid-area: 1 / 1; }
.hero-actions img { width: 100%; height: auto; border-radius: inherit; }
@media (hover: hover) {
  .hero-actions a:hover img { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--strong-line); }
}
@media (forced-colors: active) {
  .hero-actions img { display: none; }
  .hero-actions a { border: 1px solid LinkText; color: LinkText; }
}

.gallery-section { padding: 2.15rem 0 2.55rem; border-bottom: 1px solid var(--line); }
.gallery-heading, .gallery-controls, .gallery-pager, .clip-caption { display: flex; align-items: center; }
.gallery-heading { justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.gallery-heading h2 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.15; letter-spacing: -.055em; font-weight: 650; }
.gallery-controls { gap: .4rem; }
.gallery-pager { gap: inherit; }
.gallery-count, .time-readout { font: 500 .82rem/1 var(--mono); white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-count { margin-inline: .4rem; }
.control-separator { height: 1rem; width: 1px; margin-inline: .35rem; background: var(--line); }
.gallery-track { --columns: 3; --gap: .95rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns)); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem 0; }
.gallery-track::-webkit-scrollbar { display: none; }
.clip { min-width: 0; scroll-snap-align: start; }
.clip a { display: block; border-radius: .75rem; }
.clip a:focus-visible { outline-offset: -3px; }
.clip-image { position: relative; isolation: isolate; overflow: hidden; border-radius: .72rem; background: #221e2c; aspect-ratio: 16/9; }
.clip-image::after { content: ""; position: absolute; inset: 0; border: 1px solid #261d3920; border-radius: inherit; pointer-events: none; }
.clip-image video { width: 100%; height: 100%; object-fit: contain; }
.clip-open { position: absolute; right: .65rem; bottom: .65rem; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; color: white; background: #181322a1; border: 1px solid #ffffff6b; border-radius: 50%; }
.clip-open .icon { width: .9rem; height: .9rem; }
.clip a:hover .clip-open, .clip a:focus-visible .clip-open { background: #4c296d; }
.clip-caption { justify-content: space-between; align-items: baseline; gap: .6rem; padding: .65rem .05rem 0; }
.clip-caption h3 { font-size: .99rem; font-weight: 650; letter-spacing: -.022em; line-height: 1.35; }
.clip a:hover h3 { color: var(--accent); }
.clip-dataset { flex: none; font: 500 .75rem/1.5 var(--mono); color: var(--muted); }

.content-section { padding-block: clamp(3.5rem, 6.3vw, 6rem); border-bottom: 1px solid var(--line); }
.content-section h2 { font: 400 clamp(2.4rem, 3.9vw, 3.65rem)/1.03 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.section-intro, .citation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.08fr); gap: clamp(2rem, 4.2vw, 4rem); align-items: start; }
.intro-copy { color: var(--secondary); font-size: 1.06rem; line-height: 1.72; }
.intro-copy p + p { margin-top: .84rem; }
.intro-copy strong { color: var(--accent-deep); font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.4rem; padding: 1.65rem 0; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(110deg, var(--hero), var(--panel)); }
.metrics > div { padding: 0 clamp(1rem, 2.8vw, 2.55rem); }
.metrics > div + div { border-left: 1px solid var(--line); }
.metric-value { display: block; color: var(--accent); font: 400 clamp(3.2rem, 5.4vw, 5.1rem)/.98 var(--serif); letter-spacing: -.045em; margin-bottom: .65rem; }
.metric-value span { font-size: .6em; }
.metrics h3, .method-points h3 { font-size: 1.02rem; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.metrics p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: .2rem; }
.method-section, .citation-section { background: var(--tint); }
.teaser-section { padding-block: clamp(1.5rem, 3.4vw, 3rem); background: var(--tint); border-bottom: 1px solid var(--line); }
.paper-figure { background: var(--panel); border: 1px solid var(--line); border-radius: .95rem; overflow: hidden; }
.paper-figure > a { display: block; background: white; }
.paper-figure img { width: 100%; height: auto; }
.paper-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line); color: var(--secondary); font-size: .9rem; }
.paper-figure figcaption strong { color: var(--ink); }
.paper-figure figcaption a, .pair-caption a, .table-source { width: fit-content; display: inline-flex; align-items: center; flex-shrink: 0; gap: .4rem; color: var(--accent); font-weight: 600; font-size: .87rem; }
.paper-figure figcaption a:hover, .pair-caption a:hover, .table-source:hover { text-decoration: underline; text-underline-offset: .18rem; }
.paper-figure figcaption .icon, .pair-caption .icon, .table-source .icon { width: .95rem; height: .95rem; }
.method-figure { margin-top: 2.15rem; }
.method-figure > a { padding: clamp(.55rem, 2vw, 1.6rem); }
.method-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.8rem; }
.method-points p { margin-top: .5rem; color: var(--secondary); font-size: 1rem; line-height: 1.58; }

.comparison-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr); gap: clamp(1rem, 2.8vw, 2rem); align-items: start; margin-top: 2.1rem; }
.pair { min-width: 0; }
.pair-frame { --split: 50%; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 32/9; background: #19151c; border-radius: .8rem .8rem 0 0; }
.pair-frame[data-view="wipe"] { aspect-ratio: 16/9; }
.pair-frame video, .pair-frame canvas { width: 100%; height: 100%; object-fit: contain; }
.pair-frame[data-view="wipe"] video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.pair-frame canvas { position: absolute; inset: 0; }
.pair-label { position: absolute; top: .75rem; z-index: 1; pointer-events: none; padding: .2rem .58rem; border-radius: .3rem; font-size: .78rem; line-height: 1.5; font-weight: 650; color: #fff; background: #27232edb; }
.label-base { left: .75rem; }
.label-ours { right: .75rem; background: #61369be8; }
.wipe-overlay, .wipe-overlay input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.wipe-overlay input { z-index: 2; opacity: 0; cursor: ew-resize; direction: ltr; touch-action: pan-y; appearance: none; }
.wipe-overlay input::-webkit-slider-thumb { appearance: none; width: 1px; height: 32px; }
.wipe-overlay input::-moz-range-thumb { width: 1px; height: 32px; border: 0; }
.wipe-overlay:focus-within { outline: 3px solid #d9b6ff; outline-offset: -4px; }
.wipe-rule { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: white; box-shadow: 0 0 5px #1c142c70; }
.wipe-rule span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid #ffffffa6; border-radius: 50%; color: #fff; background: #302739c9; }
.player-bar { display: flex; align-items: center; gap: .77rem; padding: .52rem .8rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 .8rem .8rem; background: var(--tint); }
.player-bar .icon-button { width: 2rem; height: 2rem; flex: none; }
.timeline { min-width: 1.5rem; width: 100%; flex: 1 1 auto; height: 1rem; cursor: pointer; accent-color: var(--accent); }
.time-readout { font-size: .76rem; }
.view-button { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: .32rem; color: var(--secondary); background: var(--panel); border: 1px solid var(--line); padding: .3rem .65rem; border-radius: 99px; font-size: .8rem; line-height: 1.5; font-weight: 600; }
.view-button[aria-pressed="true"] { background: var(--accent-light); color: var(--accent-deep); border-color: var(--strong-line); }
.view-button .icon { width: 1rem; height: 1rem; }
.pair-caption { margin-top: .85rem; font-size: .97rem; color: var(--secondary); }
.pair-caption a { margin-top: .48rem; }
.case-list { display: grid; gap: .5rem; }
.case-option { display: flex; align-items: center; gap: .75rem; padding: .55rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); }
.case-option:hover { border-color: var(--strong-line); background: var(--tint); }
.case-option[aria-current] { background: var(--hero); border-color: var(--accent); }
.case-option strong, .case-option small { display: block; }
.case-option strong { font-weight: 650; font-size: .97rem; line-height: 1.35; letter-spacing: -.02em; }
.case-option small { margin-top: .15rem; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.case-thumb { display: block; flex: 0 0 4.15rem; aspect-ratio: 16/9; overflow: hidden; border-radius: .35rem; background: var(--line); }
.case-thumb img { width: 200%; max-width: none; height: 100%; transform: translateX(-50%); }

.benchmark-tabs { display: flex; align-items: stretch; gap: .3rem; margin-top: 2.1rem; border-bottom: 1px solid var(--line); }
.benchmark-tabs button { appearance: none; border: 0; border-bottom: 2px solid transparent; border-radius: .4rem .4rem 0 0; padding: .7rem 1.1rem; color: var(--secondary); background: transparent; font-size: .95rem; font-weight: 650; }
.benchmark-tabs button:hover { color: var(--accent); background: var(--tint); }
.benchmark-tabs button[aria-selected="true"] { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-light); }
.benchmark-panel { margin-top: 1.6rem; min-width: 0; }
.benchmark-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; }
.benchmark-heading h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: -.035em; }
.benchmark-reading { max-width: 57rem; margin-top: .55rem; line-height: 1.6; color: var(--secondary); }
.benchmark-reading strong { color: var(--ink); }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: .8rem; margin-top: 1.15rem; scrollbar-color: var(--strong-line) var(--tint); }
.score-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.score-table :is(th, td) { text-align: right; padding: .61rem .85rem; border-bottom: 1px solid var(--line); }
.score-table thead th { color: var(--secondary); background: var(--tint); font-weight: 650; font-size: .86rem; vertical-align: middle; }
.score-table tbody th, .score-table thead tr:first-child > :first-child { position: sticky; left: 0; z-index: 1; text-align: left; box-shadow: 1px 0 var(--line); }
.score-table tbody th { background: var(--paper); color: var(--ink); font-weight: 500; }
.score-table tbody tr:last-child > * { border-bottom: 0; }
.score-table thead tr:first-child > :last-child, .score-table tbody td:last-child { border-inline-start: 1px solid var(--strong-line); }
.score-table thead tr:first-child > :last-child { color: var(--accent-deep); background: color-mix(in srgb, var(--accent-light) 58%, var(--tint)); }
.score-table .our-result, .score-table .our-result th { background: var(--accent-light); color: var(--accent-deep); }
.score-table .our-result th, .score-table strong { font-weight: 750; }
.physics-table { min-width: 44rem; }
.rbench-table { min-width: 59rem; font-size: .9rem; }
.rbench-table :is(th, td) { padding-inline: .5rem; }
.rbench-table thead th { font-size: .8rem; }
.rbench-table th[scope="colgroup"] { color: var(--accent-deep); text-align: center; }
.rbench-table th[scope="colgroup"] + th[scope="colgroup"], .rbench-table thead tr:nth-child(2) > :nth-child(6), .rbench-table tbody tr > :nth-child(7) { border-inline-start: 1px solid var(--line); }
.world-table { min-width: 26rem; }
.judge-table { min-width: 49rem; }
.robotwin-table { min-width: 32rem; }
.table-note { margin-top: .85rem; max-width: 58rem; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.result-detail { margin-top: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-detail + .result-detail { margin-top: 0; border-top: 0; }
.result-detail summary { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem .1rem; color: var(--accent); font-weight: 600; cursor: pointer; list-style: none; }
.result-detail summary::-webkit-details-marker { display: none; }
.result-detail summary .icon { width: 1rem; height: 1rem; transform: rotate(90deg); }
.result-detail[open] summary .icon { transform: rotate(-90deg); }
.result-detail .table-note { margin-top: 0; }
.result-detail .table-source { margin: .65rem 0 1rem; }
.planning-example img { width: 100%; height: auto; border-radius: .5rem; background: #fff; }
.planning-example figcaption { padding: .6rem 0 1rem; color: var(--secondary); font-size: .9rem; }
.citation-note { font-size: .92rem; color: var(--muted); margin-top: .6rem; }
.citation-card { min-width: 0; border-radius: .8rem; overflow: hidden; background: #262030; color: #eee4f6; }
.code-bar { display: flex; justify-content: space-between; align-items: center; min-height: 3rem; padding: .45rem 1.15rem; border-bottom: 1px solid #ffffff1c; }
.code-bar > span, .copy-button { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; }
.code-bar > span { color: #dbbdf1; font-weight: 600; }
.code-bar .icon { width: .95rem; height: .95rem; }
.copy-button { color: #f5ecfa; border: 1px solid #ffffff38; background: #ffffff08; border-radius: .35rem; padding: .27rem .63rem; line-height: 1.4; }
.copy-button:hover { background: #ffffff1c; }
.citation-card pre { padding: 1.05rem 1.2rem 1.25rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .86rem/1.65 var(--mono); }
.site-footer { padding: 1.65rem 0; }
.site-footer > .shell, .footer-links { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer .brand img { width: 1.95rem; }
.footer-links { color: var(--muted); font-size: .82rem; }

.clip-dialog { width: min(56rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--strong-line); border-radius: .95rem; box-shadow: 0 24px 92px #130c2466; }
.clip-dialog::backdrop { background: #130d1ec4; backdrop-filter: blur(5px); }
.dialog-top, .dialog-navigation { display: flex; align-items: center; justify-content: space-between; }
.dialog-top { padding: .65rem .9rem .65rem 1.2rem; color: var(--accent); font-weight: 650; font-size: .9rem; }
.dialog-navigation { gap: .35rem; }
#dialog-close { margin-left: .5rem; }
.clip-dialog video { width: 100%; aspect-ratio: 16/9; max-height: 62dvh; object-fit: contain; background: #131016; }
.dialog-caption { padding: 1rem 1.25rem 1.25rem; }
.dialog-caption h2 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.04em; }
.dialog-caption p { margin-top: .35rem; color: var(--secondary); }

@media (max-width: 920px) {
  .affiliations { max-width: 44rem; margin-inline: auto; }
  .gallery-track { --columns: 2; }
  .gallery-section { padding-block: 1.65rem 2rem; }
  .section-intro, .citation-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr); gap: 2rem; }
  .comparison-layout { grid-template-columns: minmax(0, 1fr) 14rem; }
  .case-thumb { flex-basis: 3.2rem; }
}
@media (max-width: 740px) {
  :root { --header-height: 3.6rem; }
  .menu-toggle { display: flex; }
  .nav-actions { margin-left: auto; border: 0; padding: 0; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: .55rem var(--gutter) .8rem; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 12px 16px #281d3b0c; }
  .site-nav.is-open { display: grid; gap: 0 .9rem; grid-template-columns: repeat(2, 1fr); }
  .site-nav a { padding: .65rem 0; }
  .site-nav a[aria-current]::after { display: none; }
  .hero-inner { padding-block: 2.25rem 2.1rem; }
  .orbit { opacity: .35; }
  .orbit-left { left: -16rem; top: 0; }
  .orbit-right { right: -17rem; bottom: 0; }
  .section-intro, .citation-layout { grid-template-columns: 1fr; gap: 1rem; }
  .method-points { grid-template-columns: 1fr; gap: .9rem; }
  .method-points article + article { border-top: 1px solid var(--line); padding-top: .9rem; }
  .method-points p { margin-top: .28rem; }
  .comparison-layout { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-copy { font-size: 1rem; }
}
@media (max-width: 590px) {
  .brand { font-size: 1.2rem; }
  .hero-name { font-size: clamp(3.85rem, 15vw, 5rem); margin-bottom: .7rem; }
  .paper-title { font-size: clamp(1.78rem, 6.5vw, 2.2rem); line-height: 1.055; }
  .paper-title > span { display: inline; }
  .authors { max-width: 31rem; margin-top: 1rem; font-size: .95rem; gap: .15rem .8rem; }
  .affiliations { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: .28rem .7rem; margin-top: .6rem; font-size: .78rem; line-height: 1.4; text-wrap: balance; }
  .author-notes { margin-top: .65rem; }
  .hero-actions { gap: .4rem; margin-top: 1.12rem; }
  .gallery-track { --columns: 1; --gap: .72rem; grid-auto-columns: 88%; }
  .gallery-heading { gap: .35rem; }
  .gallery-heading h2 { font-size: 1.36rem; }
  .gallery-controls { gap: .25rem; }
  .gallery-controls .icon-button { width: 1.98rem; height: 1.98rem; }
  .gallery-count { font-size: .7rem; margin-inline: .15rem; }
  .control-separator { display: none; }
  .clip-caption { gap: .4rem; }
  .clip-caption h3 { font-size: .95rem; }
  .clip-dataset { font-size: .72rem; }
  .content-section { padding-block: 2.8rem; }
  .metrics { margin-top: 1.45rem; padding: .2rem 1rem; grid-template-columns: 1fr; }
  .metrics > div { display: grid; column-gap: 1.3rem; grid-template-columns: 6.6rem 1fr; align-items: center; padding: .85rem 0; }
  .metrics > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .metric-value { font-size: 3.1rem; grid-row: span 2; margin: 0; }
  .metrics h3 { align-self: end; }
  .metrics p { align-self: start; margin: .05rem 0 0; }
  .method-figure, .comparison-layout { margin-top: 1.35rem; }
  .paper-figure figcaption { padding: .65rem .75rem; font-size: .82rem; }
  .paper-figure figcaption a { font-size: .82rem; }
  .teaser-section figcaption { flex-direction: column; align-items: start; gap: .4rem; }
  .case-option { padding: .55rem .6rem; gap: .4rem; }
  .case-option strong { font-size: .86rem; }
  .case-option small { font-size: .76rem; }
  .case-thumb { display: none; }
  .player-bar { padding: .45rem .5rem; gap: .45rem; }
  .time-readout { font-size: .69rem; }
  .view-button { font-size: .74rem; padding: .27rem .45rem; }
  .pair-label { top: .5rem; font-size: .73rem; }
  .label-base { left: .5rem; }
  .label-ours { right: .5rem; }
  .benchmark-tabs { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: .15rem; margin-top: 1.3rem; }
  .benchmark-tabs button { min-height: 2.8rem; padding: .45rem .25rem; font-size: .85rem; line-height: 1.25; }
  .benchmark-panel { margin-top: 1.15rem; }
  .score-table :is(th, td) { padding: .52rem .65rem; }
  .score-table tbody th, .score-table thead tr:first-child > :first-child { min-width: 7.3rem; max-width: 8.6rem; }
  .site-footer > .shell, .footer-links { align-items: flex-start; }
  .footer-links { flex-direction: column; gap: .3rem; }
}
@media (max-width: 365px) {
  .hero-actions { grid-template-columns: repeat(2, 112px); gap: .25rem .5rem; }
  .gallery-count { margin-inline: .05rem; }
  .gallery-controls { gap: .18rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
