/* TrajRealm: imagery leads; the research interface stays quiet and precise.
   Palette retains the Figure 1 identity. No changes to media geometry or timing. */
:root{--ui-ink:#203247;--ui-muted:#526377;--ui-line:#cad4e0;--ui-surface:rgba(255,255,255,.82);--ui-blue:#4269b2;--ui-radius:16px;--ui-space:clamp(56px,7vw,104px)}
body{font-family:"Aptos","Segoe UI",sans-serif;color:var(--ui-ink);font-size:16px;line-height:1.65}
h2,h3,h4{font-family:"Aptos Display","Aptos","Segoe UI",sans-serif;text-wrap:balance}
h2{font-size:clamp(30px,3.2vw,46px);letter-spacing:-.035em;line-height:1.16;font-weight:650}
p{overflow-wrap:break-word}
.section{padding-block:var(--ui-space)}
.section-heading{align-items:end;gap:48px;margin-bottom:38px}
.section-heading .lead,.section-heading .intro{font-size:16px;line-height:1.75;color:var(--ui-muted);max-width:48ch}
.page-body .eyebrow{font-size:12px;font-weight:600;letter-spacing:.025em;text-transform:none;color:var(--ui-muted);margin-bottom:14px}
.page-body .caption,.track-help{color:var(--ui-muted);font-size:13px;max-width:80ch}
.page-body :is(button,input,select,summary),.hero :is(button,a){touch-action:manipulation}
:is(a,button,input,select,summary):focus-visible{outline:3px solid #4269b2;outline-offset:4px}
section[id]{scroll-margin-top:90px}
.nav{min-height:64px}.nav-links{gap:22px}.nav-links a{padding-block:12px;font-size:13px}
.page-contents{border:1px solid #ffffff8c;border-radius:16px;background:rgba(255,255,255,.75);backdrop-filter:blur(16px);bottom:auto;max-height:calc(100vh - 140px);padding:16px 8px}
.contents-heading{letter-spacing:.03em;text-transform:none;font-size:12px;color:var(--ui-muted)}
.page-contents a{min-height:44px;color:var(--ui-muted)}
.page-contents a[aria-current]{background:#e5ecf8;color:#294e88}
.contributions{gap:36px;margin-top:44px}.contributions article{border-top-width:2px;padding-top:24px}.contributions h3{font-size:23px}.contributions p{color:var(--ui-muted);line-height:1.65}.contributions a{font-size:14px;min-height:44px;display:flex;align-items:center}
.geometry-band{padding-block:54px}.geometry-strip{gap:14px}.geometry-strip img{border-radius:10px}.geometry-strip figcaption{font-size:13px;color:var(--ui-muted);text-align:left;padding-top:12px}.geometry-band .caption{margin-top:24px}
/* One control grammar: quiet surface, precise border, solid selected state. */
.track-lab{border:1px solid var(--ui-line);border-radius:20px;box-shadow:0 12px 40px #2032470a}
.track-toolbar{padding:20px 24px}.track-games{background:#eef2f7;border-radius:12px;gap:4px}
.track-games button{min-height:44px;border-radius:9px;font-weight:550}
.track-games button[aria-pressed=true]{background:var(--ui-ink);box-shadow:none}
.track-layer{min-height:44px;border-radius:10px;color:#354c66;background:white}.track-layer:has(input:checked){background:#edf3fc;border-color:#8faad0;color:#294e88}.track-layer input{width:17px;height:17px}
.track-layers>span{letter-spacing:.025em;font-size:12px;color:var(--ui-muted)}
.track-lab select,select{min-height:44px;border-radius:9px;border-color:var(--ui-line)}
.track-transport{background:#f4f7fa}.track-play{background:var(--ui-ink);border-radius:10px}.track-expand{width:44px;height:44px;border-radius:10px}
.track-settings{font-size:13px}.track-settings summary{min-height:44px;display:list-item;padding-block:12px}.track-settings-grid label{flex-wrap:wrap;max-width:100%}
.track-headings{letter-spacing:.04em;font-size:12px}.track-bottom{font-size:12px;color:var(--ui-muted)}
.legacy-viewers{margin-top:40px}.legacy-viewers>summary{font-size:16px;padding-block:20px;color:var(--ui-ink)}
.demo-switch{gap:8px}.demo-switch button{min-height:52px;border-radius:12px;background:var(--ui-surface)}
.statistics{background:var(--ui-line);border-color:var(--ui-line);border-radius:var(--ui-radius)}
.stat-card{padding:32px 26px;background:rgba(255,255,255,.94)}.stat-value{color:var(--ui-ink);font-size:clamp(30px,3.1vw,46px);font-variant-numeric:tabular-nums}.stat-card dt{font-size:14px;font-weight:600}.stat-card p{color:var(--ui-muted);font-size:13px}
.category-row{padding-block:18px}.category-label p{color:var(--ui-muted)}
.source-branches article{background:var(--ui-surface);border-radius:var(--ui-radius);padding:28px}.pipeline{background:var(--ui-surface);border-radius:var(--ui-radius)}.pipeline p{font-size:14px;line-height:1.7}
.task-explorer{border-radius:var(--ui-radius);border-color:var(--ui-line);background:var(--ui-surface)}.task-options{background:#eef2f7;padding:12px}.task-options button{min-height:44px;color:var(--ui-muted);border-radius:9px}.task-options button[aria-pressed=true]{color:var(--ui-ink);border-color:var(--ui-line)}
#task-detail{padding:36px}#task-detail p{font-size:16px;max-width:60ch}.task-tags span{border-radius:8px;font-size:12px;background:#e9eff8;color:#36557d}
.result-card{border-radius:var(--ui-radius);box-shadow:none;border-color:var(--ui-line);padding:26px;background:var(--ui-surface)}.result-card .feature-number{letter-spacing:.02em;font-size:12px;color:var(--ui-muted)}.score-row{font-size:12px;color:var(--ui-muted)}.score-row strong{font-size:13px}
.resources{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:24px}.resources article{padding:22px 0;border-top:1px solid var(--ui-line)}.resources h3{font-size:17px;margin-bottom:12px}.resources .status{font-size:13px;color:var(--ui-muted)}.resources a{font-size:14px}
/* Retain the requested translucent hero, but give every control a real hit area. */
.hero .hero-links{gap:10px;align-items:stretch}.hero .hero-links .button{min-height:58px;border-radius:14px;padding:10px 20px}.hero .hero-links .release-pending small{font-size:11px;color:#f0f3f8}.hero .hero-links .release-pending{border-color:#ffffff26}
.hero-playlist{border-radius:18px;gap:8px}.hero-playlist button{min-height:44px;min-width:40px}.hero-mode-switch button{min-width:68px}.hero-playlist #hero-pause{height:44px;width:44px;min-width:44px}.hero-scene-detail{font-size:12px;color:#f0f3f8}.hero :is(button,a):focus-visible{outline-color:#fff}
@media(max-width:900px){.section-heading{gap:24px}.contributions{gap:22px}.geometry-strip figcaption{font-size:12px}.hero-foot{gap:14px}.hero-scene{flex-shrink:1}.hero-playlist{flex-shrink:0}}
@media(max-width:760px){.section{padding-block:56px}.section-heading{grid-template-columns:1fr;gap:18px;margin-bottom:28px}.contributions{grid-template-columns:1fr;gap:28px}.geometry-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.geometry-band{padding-block:40px}.hero .hero-links{max-width:440px;margin-inline:auto;display:grid;grid-template-columns:1fr 1fr}.hero .hero-links .button{padding:8px 12px;font-size:12px}.hero-playlist{flex-wrap:wrap;max-width:100%;gap:4px}.hero-playlist button{min-width:36px;padding-inline:8px}.hero-mode-switch button{min-width:60px}.hero-foot{align-items:center}.hero-scene-detail{font-size:11px}.resources{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.task-explorer{grid-template-columns:1fr}.task-options{flex-direction:row;flex-wrap:wrap}.track-transport{grid-template-columns:44px minmax(0,1fr) auto 44px}.track-play{width:44px;height:44px}.stat-card{padding:24px 18px}.stat-value{font-size:32px}.protocol-grid{grid-template-columns:1fr}}
@media(max-width:420px){.hero-playlist{justify-content:center}.hero-mode-switch{width:100%;justify-content:center}.hero-foot .hero-scene{display:none}.resources{grid-template-columns:1fr}.track-games button{padding-inline:14px}.track-settings-grid input{max-width:100%}}
@media(prefers-reduced-motion:reduce){.hero-playlist button,.hero .hero-links .button,.page-contents{transition:none}}
@media(max-width:760px){
  .nav{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0 6px;min-height:90px}
  .nav-links{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;max-width:100%;gap:20px;scrollbar-width:none;padding-inline:2px}
  .nav-links a{flex:none;padding:8px 0;font-size:12px}
  .hero{min-height:max(620px,calc(100svh - 124px))}
  .hero-inner{padding:32px 0 145px}
  .hero .title-detail{font-size:23px}
}
/* A single video follows the selected task; other samples do not decode in the background. */
.task-video { margin: 1.5rem 0 0; }
.task-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #101923; border: 1px solid rgba(255,255,255,.65); border-radius: 14px; }
.task-video figcaption { margin-top: .7rem; font-size: .82rem; color: var(--muted, #536575); }
.task-video-status { display: block; font-size: .82rem; margin-top: .4rem; }
.task-video video[hidden] { display: none; }

/* One exploration workspace, two coordinate views. */
.explore-workbench{border:1px solid var(--ui-line);border-radius:20px;background:var(--ui-surface);overflow:hidden;box-shadow:0 12px 40px #2032470a}
.explore-tabs{display:flex;gap:8px;padding:12px;border-bottom:1px solid var(--ui-line);background:#eef2f780}
.explore-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;padding:12px 20px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ui-muted);font:inherit;font-weight:650;cursor:pointer}
.explore-tabs button span{font-size:12px;font-weight:400}
.explore-tabs button[aria-selected=true]{color:var(--ui-ink);background:#fff;border-color:var(--ui-line);box-shadow:0 2px 8px #20324708}
.explore-tabs button:focus-visible{outline:3px solid #5486c7;outline-offset:2px}
.explore-workbench [role=tabpanel][hidden]{display:none!important}
.explore-workbench .track-lab{border:0;border-radius:0;box-shadow:none;margin:0}
.explore-3d{padding:24px}.explore-3d .demo-switch{margin:0 0 24px;gap:6px;padding:4px;background:#eef2f7;border-radius:12px;width:fit-content;max-width:100%}
.explore-3d .demo-switch button{min-height:44px;border:0;border-radius:9px;background:transparent;padding:10px 16px;box-shadow:none;color:var(--ui-muted)}
.explore-3d .demo-switch button[aria-pressed=true]{background:var(--ui-ink);color:#fff}
.explore-3d .demo-switch button span{color:inherit}.explore-3d .demo-subtitle{font-size:22px;margin:0 0 8px}.explore-3d .intro{font-size:14px;margin:0 0 20px}
@media(max-width:760px){.explore-tabs button{flex-direction:column;gap:3px;padding:10px 8px;font-size:14px}.explore-tabs button span{font-size:11px}.explore-3d{padding:16px}.explore-3d .demo-switch{width:100%}.explore-3d .demo-switch button{flex:1;padding:10px}.explore-3d .demo-switch button span{font-size:12px}}

.paper-results{margin:28px 0 36px;min-width:0}.paper-table-scroll{overflow-x:auto;max-width:100%;padding-bottom:8px}.paper-table{border-collapse:collapse;width:100%;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;border-top:2px solid #344456;border-bottom:2px solid #344456;background:#ffffffa6}.paper-table th,.paper-table td{padding:11px 9px;text-align:center;border:0}.paper-table thead{border-bottom:1px solid #657487}.paper-table thead tr:first-child th{padding-top:14px;padding-bottom:8px}.paper-table thead tr:last-child th{font-size:11px;color:var(--ui-muted);font-weight:500}.paper-table th:first-child{position:sticky;left:0;background:#f5f7fa;text-align:left;z-index:1}.paper-table thead tr:last-child th:first-child{position:static;background:transparent;text-align:center}.paper-table tbody tr+tr{border-top:1px solid #dce2ea}.paper-table tbody tr:nth-child(even){background:#edf3fa70}.paper-table .best-score{font-weight:750;color:#244e80;background:#ddeafa80}.benchmark-results{margin-top:54px;padding-top:28px;border-top:1px solid var(--ui-line)}.table-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.paper-table-scroll:focus-visible{outline:2px solid #5486c7;outline-offset:3px}

.annotation-companion{margin-top:56px;padding-top:48px;border-top:1px solid var(--ui-line)}
.annotation-companion .section-heading{margin-bottom:26px}.annotation-companion .intro{font-size:16px;line-height:1.7}
.annotation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.annotation-grid figure{margin:0;min-width:0}.annotation-grid a{display:block;border-radius:12px;overflow:hidden}.annotation-grid img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.annotation-grid figcaption{font-size:13px;color:var(--ui-muted);margin-top:10px}.annotation-grid a:focus-visible{outline:3px solid #5486c7;outline-offset:3px}.annotation-companion>.caption{margin-top:22px}
@media(max-width:760px){.annotation-companion{margin-top:36px;padding-top:32px}}

/* Two families share one vocabulary and one media panel. */
.category-chart{display:grid;grid-template-columns:1fr 1fr;gap:24px}.category-family{min-width:0;padding:24px;border:1px solid #b9c9d4;border-radius:20px;background:rgba(255,255,255,.38)}.category-family h4{font-size:24px;margin:0 0 16px}.category-family .category-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-top:1px solid #c6d2d9;text-decoration:none;color:inherit}.category-label small{display:block;line-height:1.5;margin-top:6px}.category-value{min-width:30px}.taxonomy-family{display:grid;gap:8px;margin-bottom:22px}.taxonomy-family-title{font-size:16px;margin:0 0 6px}.task-options{display:block}.taxonomy-family button,#task-clips button{min-height:44px;border:1px solid #adbdc9;border-radius:12px;background:rgba(255,255,255,.6);padding:12px 16px;text-align:left;color:#253b4c;cursor:pointer;font:inherit}.taxonomy-family button[aria-pressed="true"],#task-clips button[aria-pressed="true"]{background:#e4edf8;border-color:#55759c;box-shadow:inset 3px 0 #55759c}.task-video video[hidden]{display:none}#task-status{padding:12px;color:#506270}.prediction-link{padding:24px;margin-top:30px;border:1px solid #bbc9d4;border-radius:18px;background:rgba(255,255,255,.4)}.prediction-link a{display:inline-block;padding:12px 0}.benchmark-results{margin-top:36px}button:focus-visible,a:focus-visible{outline:3px solid #5875c4;outline-offset:4px}@media(max-width:760px){.category-chart{grid-template-columns:1fr}.taxonomy-family{grid-template-columns:repeat(2,minmax(0,1fr))}.taxonomy-family-title{grid-column:1/-1}.task-explorer{grid-template-columns:1fr}.category-family{padding:18px}.statistics .stat-value{font-size:clamp(26px,6vw,44px)}}

/* Benchmark: quiet left navigation, with the video as the primary content. */
#benchmark .task-explorer{grid-template-columns:190px minmax(0,1fr);gap:32px;border:0;border-radius:0;background:transparent;overflow:visible;align-items:start}
#benchmark .task-options{padding:4px 24px 0 0;background:transparent;border-right:1px solid var(--ui-line)}
#benchmark .taxonomy-family{display:flex;flex-direction:column;gap:0;margin-bottom:26px}
#benchmark .taxonomy-family:last-child{margin-bottom:0}
#benchmark .taxonomy-family-title{margin:0 0 12px;font-size:12px;font-weight:650;letter-spacing:.06em;color:var(--ui-muted)}
#benchmark .taxonomy-family button{position:relative;width:100%;min-height:44px;padding:10px 0 10px 14px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ui-muted);font-size:15px;line-height:1.5;text-align:left;transition:color .18s ease}
#benchmark .taxonomy-family button:hover{color:var(--ui-ink)}
#benchmark .taxonomy-family button[aria-pressed="true"]{color:var(--ui-ink);font-weight:700;background:transparent;box-shadow:none}
#benchmark .taxonomy-family button[aria-pressed="true"]::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:2px;background:#55759c}
#benchmark #task-detail{min-width:0;align-self:start;padding:0;min-height:0}
#benchmark #task-family{display:none}
#benchmark #task-detail .module-title{margin-bottom:8px}
#benchmark #task-clips{gap:22px;margin-bottom:12px}
#benchmark #task-clips[hidden]{display:none}
#benchmark #task-clips button{min-height:44px;padding:8px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--ui-muted);font-size:14px}
#benchmark #task-clips button[aria-pressed="true"]{border-bottom-color:#55759c;color:var(--ui-ink);font-weight:650}
#benchmark .task-video{margin-top:0}
#benchmark #task-status:empty{display:none}
#benchmark #task-status:not(:empty){padding:48px 0;margin:0}
@media(max-width:760px){#benchmark .task-explorer{grid-template-columns:132px minmax(0,1fr);gap:16px}#benchmark .task-options{padding-right:12px}#benchmark .taxonomy-family button{font-size:12px;padding-left:10px;overflow-wrap:anywhere}#benchmark .taxonomy-family-title{font-size:11px}#benchmark #task-clips{gap:8px}#benchmark #task-clips button{font-size:12px}#benchmark .task-video figcaption{font-size:11px}}

/* Compact reading rhythm; reserve space for the media itself. */
.page-body .section{padding-top:48px;padding-bottom:48px}
.page-body .section-heading{margin-bottom:24px;gap:24px}
.page-body .section-heading:has(>div:only-child){grid-template-columns:1fr}
.page-body .eyebrow{margin-bottom:10px}
.page-body .contributions{margin-top:24px;gap:24px}
.page-body .contributions p{margin-bottom:10px}
.page-body .statistics{margin-top:24px}
.page-body .stat-card{padding:22px 24px}
.page-body .category-heading{margin-top:28px;margin-bottom:16px}
.page-body .category-chart{gap:20px}
.page-body .category-family{padding:18px 22px}
.page-body .category-family h4{margin-bottom:10px}
.page-body .category-family .category-row{padding:10px 0}
#demo .explore-workbench{margin-top:0}
#demo .demo-panel{padding-top:16px}
#demo .grid-demo{margin-top:20px;padding:0;border:0;background:transparent}
#demo #grid-video{display:block;width:100%;margin:0}
.geometry-band{padding-top:36px;padding-bottom:36px}
.geometry-band .section-heading{margin-bottom:20px}
.geometry-band .annotation-companion{margin-top:32px;padding-top:28px}
.page-body .source-branches{margin-top:24px;gap:20px}
.page-body .source-branches article{padding:20px}
.page-body .pipeline{margin-top:20px}
.page-body .pipeline li{padding:22px}
.page-body .statistics-method{margin-top:16px;padding-top:12px;padding-bottom:12px}
#benchmark .task-explorer{margin-top:24px}
#results .benchmark-results{margin-top:28px}
.page-body .paper-results{margin-top:24px}
.page-body .result-toolbar{margin-top:20px;margin-bottom:16px}
.page-body .resources{gap:24px;margin-top:20px}
.page-body .resources article{padding:16px 0}
@media(max-width:760px){.page-body .section{padding-top:32px;padding-bottom:32px}.page-body .section-heading{margin-bottom:20px;gap:16px}.geometry-band{padding-top:28px;padding-bottom:28px}.geometry-band .annotation-companion{margin-top:24px;padding-top:20px}.page-body .category-family{padding:16px}.page-body .stat-card{padding:18px}.page-body .pipeline li{padding:18px}}

/* Section labels share the Figure 1 blue/red/yellow/green identity. */
.page-body .section-label{display:block;width:fit-content;max-width:100%}
@supports(background-clip:text){.page-body .section-label{background-image:var(--realm-gradient);background-size:100% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}}
@media(forced-colors:active){.page-body .section-label{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}

.comparison-key{font-size:12px;color:#607086;margin:0 0 10px}.comparison-key span{padding:0 8px}
.comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.comparison-grid h3,.comparison-ours-title{font-size:17px;margin:0 0 10px;font-weight:650}
.comparison-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-bottom:8px}
.comparison-pair a{display:block;min-width:0;border-radius:5px;overflow:hidden}
.comparison-pair img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.comparison-pair a:focus-visible{outline:3px solid #5274c8;outline-offset:3px}
.comparison-ours-title{border-top:1px solid #7187a333;padding-top:18px;margin-top:14px}
.comparison-workbench .explore-tabs button{flex-basis:0;min-width:0;line-height:1.3;text-wrap:balance}
.comparison-panel{padding:clamp(12px,2vw,24px)}
.comparison-panel .gallery-heading{justify-content:flex-end}
.comparison-panel .caption{font-size:12px;margin:0 auto 0 0}
.comparison-source-heading{display:grid;grid-template-columns:6rem minmax(0,1fr);align-items:baseline;column-gap:8px}
.comparison-source-note{font-weight:400;letter-spacing:normal}
.comparison-subgallery{margin-block-start:20px;padding-block-start:14px;border-top:1px solid var(--ui-line)}
.chapter .comparison-subgallery .gallery-heading{margin-block-end:10px}
.comparison-subgallery .caption{font-weight:600}
.comparison-panel .gallery-play{flex-shrink:0}
@media(max-width:520px){.comparison-workbench .explore-tabs{gap:4px;padding:8px}.comparison-workbench .explore-tabs button{padding-inline:4px;font-size:12px}}
@media(max-width:760px){.comparison-grid{grid-template-columns:1fr;gap:18px}}

.sample-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.sample-groups h4{font-size:17px;margin:0 0 10px}.sample-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sample-panels img{display:block;width:100%;height:auto;border-radius:5px}.sample-panels a:focus-visible{outline:3px solid #5274c8;outline-offset:3px}
@media(max-width:760px){.sample-groups{grid-template-columns:1fr}}

.geometry-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.geometry-strip figure:last-child{grid-column:auto;width:100%;justify-self:stretch}
@media(max-width:760px){.geometry-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dataset-cite{font-size:13px;color:#5577a3;text-decoration:none;vertical-align:middle}.dataset-cite:hover{text-decoration:underline}

/* Manuscript Table 5 rankings, including tied ranks. */
.paper-table td.score-rank-1{background:rgba(59,130,246,.30);font-weight:700}
.paper-table td.score-rank-2{background:rgba(59,130,246,.18)}
.paper-table td.score-rank-3{background:rgba(59,130,246,.08)}

/* Fit each dataset/category in a complete table without horizontal scrolling. */
.paper-table-scroll{overflow:visible;max-width:100%;padding:0;min-width:0}
.paper-table{table-layout:fixed;white-space:normal;font-size:12px;width:100%;min-width:0}
.paper-table th,.paper-table td{padding:9px 3px;overflow-wrap:anywhere}
.paper-table th:first-child{position:static;width:33%;font-size:12px;line-height:1.4}
.paper-table thead tr:last-child th:first-child{width:auto}
.paper-table thead tr:last-child th{font-size:11px;line-height:1.4}
.paper-table .method-group th:first-child{background:#e8eef3;font-size:11px;letter-spacing:.03em;padding:7px 8px}
.paper-table .dense-method{text-decoration:underline;text-underline-offset:3px}
@media(max-width:480px){.paper-table{font-size:11px}.paper-table th:first-child{font-size:11px;width:31%}.paper-table th,.paper-table td{padding:8px 2px}.paper-table thead tr:last-child th{font-size:10px}}

/* Paper statistics keep synchronized states and camera observations distinct. */
.statistics{grid-template-columns:repeat(3,minmax(0,1fr))}.paper-table sup{font-size:.7em;line-height:0;margin-left:1px}.paper-table .method-group th:first-child{letter-spacing:0;overflow-wrap:normal}.statistics .stat-value{font-size:clamp(26px,3.5vw,44px)}@media(max-width:760px){.statistics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Figures from the manuscript. */
.paper-figure{margin:20px 0 24px}
.paper-figure-image{display:block;overflow:hidden;border-radius:8px;border:1px solid var(--ui-line,#d5dde5);background:#fff}
.paper-figure-image img{display:block;width:100%;height:auto}
.paper-figure-image:focus-visible,.paper-figure-toggle summary:focus-visible{outline:3px solid #5274c8;outline-offset:3px}
.paper-figure-toggle{margin-top:16px}
.paper-figure-toggle summary{width:fit-content;cursor:pointer;color:var(--ui-ink,#1d3043);font-weight:650}
.paper-figure-toggle .paper-figure{margin-bottom:0}

/* Keep each dataset on a single row and let narrow screens scroll it. */
.scene-groups{grid-template-columns:minmax(0,1fr);gap:20px}
.scene-panels{grid-template-columns:repeat(5,minmax(136px,1fr));gap:8px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
.scene-panels>a,.scene-panels>figure{scroll-snap-align:start}
.scene-panels a:focus-visible{outline-offset:-3px}
.scene-panels figure{min-width:0;margin:0}
.scene-panels figure a{display:block}
.scene-panels figcaption{margin:7px 0 3px;padding-inline:4px;color:var(--ui-ink,#1d3043);font-size:13px;font-weight:600;line-height:1.4;text-align:center;text-wrap:balance}

.annotation-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:clamp(12px,2vw,24px);align-items:start}
.annotation-motion{display:block;width:100%;height:auto;aspect-ratio:25/11;margin:0;border:1px solid var(--ui-line);border-radius:12px;background:#f3f7fa;object-fit:contain}
.annotation-motion:focus-visible{outline:3px solid #5274c8;outline-offset:3px}

@media(min-width:761px){
  .annotation-grid{contain:size;align-self:stretch;grid-template-rows:repeat(3,minmax(0,1fr))}
  .annotation-grid figure{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}
  .annotation-grid img{height:100%;aspect-ratio:auto}
}
@media(max-width:760px){.annotation-layout{grid-template-columns:minmax(0,1fr)}}
.annotation-companion .annotation-grid a{border-radius:7px}
.annotation-companion .annotation-grid a:focus-visible{outline-offset:-3px}
.annotation-companion .annotation-grid figcaption{margin:3px 0 0;font-size:12px;line-height:1.3}

/* Unnumbered hero clip selectors still show playback progress. */
.hero-clip-switch button::before {
  content: '';
  display: block;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media(max-width:540px){
  .hero-playlist{display:grid;grid-template-columns:minmax(0,1fr) auto;width:min(100%,360px)}
  .hero-mode-switch{width:auto;justify-self:start}
  .hero-clip-switch{grid-column:1 / -1;grid-row:2}
  .hero-clip-switch button{flex:1;min-width:0}
  .hero-playlist #hero-pause{grid-column:2;grid-row:1;margin-left:0}
}

/* A single reading column and heading scale across the research chapters. */
.page-body {
  --chapter-space: clamp(20px, 2.45vw, 34px);
  --module-space: clamp(20px, 2.05vw, 30px);
  --chapter-heading-size: clamp(32px, 3.6vw, 46px);
  --module-heading-size: clamp(23px, 2.55vw, 32px);
  --group-heading-size: clamp(16px, 1.5vw, 19px);
}
.page-body > .chapter, #demo.chapter {
  margin-block: 0;
  padding-block: var(--chapter-space);
  scroll-margin-top: 0;
}
.page-body > .chapter + .chapter { border-top: 1px solid var(--ui-line); }
.chapter-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px clamp(22px, 4vw, 56px);
  margin: 0 0 clamp(14px, 1.45vw, 22px);
}
.chapter-heading > h2 {
  margin: 0;
  font-size: var(--chapter-heading-size);
  line-height: 1.24;
  padding-block: .035em .12em;
  letter-spacing: -.04em;
  font-weight: 750;
  text-wrap: balance;
}
.page-body .realm-wordmark {
  padding-block: .03em .11em;
  margin-block: -.03em -.11em;
}
.chapter-heading > .lead {
  flex: 1 1 100%;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ui-muted);
}
.chapter .module-title {
  margin: 0;
  font-size: var(--module-heading-size);
  line-height: 1.2;
  letter-spacing: -.033em;
  font-weight: 700;
}
.chapter .group-title,
.chapter .sample-groups h4,
.chapter .depth-baseline h4,
.chapter .comparison-ours-title {
  margin-block-end: 10px;
  font-size: var(--group-heading-size);
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 650;
}
.world-row-heading .group-title { margin: 0; }
.chapter .gallery-heading { margin-block-end: 16px; }
.chapter-module + .chapter-module {
  margin-block-start: var(--module-space);
  padding-block-start: var(--module-space);
  border-top: 1px solid var(--ui-line);
}
.chapter :is(.contributions, .statistics, .task-explorer, .resources) { margin-block-start: 0; }
#benchmark .task-explorer { margin-block-start: 0; }
.chapter .geometry-strip { gap: 16px; }
.chapter .geometry-strip figcaption { padding-block-start: 6px; }
.chapter .annotation-companion > .caption { margin-block: 12px 0; }
.chapter .resources {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.chapter .resources article { flex: 1 0 max-content; }
.chapter .resources h3 {
  margin: 0 0 6px;
  font-size: var(--group-heading-size);
  line-height: 1.3;
}
#results {
  --result-line: #d9e3ed;
  --result-surface: #ffffffee;
  --result-tint: #eff4fa;
}
#results > .caption { margin: 12px 0 0; }
#results > .result-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  max-width: none;
  margin: 0 0 14px;
}
.result-key strong { margin-inline-end: 3px; color: var(--ui-ink); }
#result-tables { display: grid; gap: 16px; min-width: 0; }
#results .paper-results {
  margin: 0;
  padding: clamp(10px, 1.6vw, 18px);
  border: 1px solid var(--result-line);
  border-radius: 16px;
  background: var(--result-surface);
}
#results .benchmark-results {
  margin-block-start: var(--module-space);
  padding-block-start: var(--module-space);
  border-top: 1px solid var(--result-line);
}
@media (max-width: 760px) {
  .chapter .geometry-strip { gap: 14px 10px; }
  #benchmark .task-explorer { grid-template-columns: minmax(0, 1fr); }
  #benchmark .task-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
  }
  #benchmark .taxonomy-family { margin: 0; }
}

.benchmark-metrics {
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.benchmark-metrics:empty { display: none; }
#benchmark .chapter-heading { row-gap: 4px; }
#benchmark-total { flex-basis: 100%; margin: 0; }
#benchmark #task-counts { margin: 0 0 10px; font-size: 13px; }
#task-detail { scroll-margin-top: 12px; }

.result-table-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 12px;
}
.result-table-heading label { color: var(--ui-muted); font-size: 13px; }
.result-table-heading select {
  max-width: min(100%, 19ch);
  margin-inline-start: 8px;
  min-height: 36px;
  padding-inline: 9px;
  border: 1px solid var(--result-line);
  border-radius: 7px;
  font: inherit;
  color: var(--ui-ink);
  background: var(--result-tint);
}
.result-table {
  border: 1px solid var(--result-line);
  border-radius: 10px;
  overflow: clip;
}
.result-table .paper-table {
  --method-width: 15%;
  border: 0;
  background: #fff;
  font-size: clamp(11px, 1vw, 13px);
  font-feature-settings: "tnum";
}
.is-compact .result-table .paper-table {
  --method-width: 26%;
  font-size: 13px;
}
.result-table .result-methods { width: var(--method-width); }
.result-table .paper-table :is(th, td) { padding: 7px 2px; }
.result-table .paper-table th:first-child {
  width: auto;
  background: transparent;
  font-size: inherit;
}
.result-table .paper-table th:first-child:not([colspan]) { padding-inline: 6px; }
.result-table .paper-table td { white-space: nowrap; }
.result-table .paper-table thead {
  border-bottom: 1px solid var(--result-line);
  background: var(--result-tint);
}
.result-table .paper-table thead tr:last-child th {
  color: var(--ui-muted);
  font-size: 10px;
  white-space: nowrap;
}
.result-table .paper-table thead .result-average,
.result-table .paper-table thead tr:last-child .result-average:first-child {
  background: #dce8f5;
  color: #324e70;
}
.result-table .dataset-start { border-inline-start: 1px solid var(--result-line); }
.result-table .paper-table tbody tr + tr { border-top-color: var(--result-line); }
.result-table .paper-table tbody tr:nth-child(even) { background: #f8fafc; }
.result-table .paper-table .method-group th:first-child {
  padding: 7px 9px;
  background: #e8f0f8;
  color: #334f70;
  font-weight: 650;
}
.result-table .paper-table .result-average { font-weight: 650; }
.result-table .paper-table td.result-average:where(:not(.score-rank-1,.score-rank-2,.score-rank-3,.best-score)) {
  background: #f1f6fc;
}
.result-table .paper-table .result-delta { font-size: .94em; }
.result-delta th { color: var(--ui-muted); }
.result-delta .delta-positive { color: #235f49; }
.result-delta .delta-negative { color: #973a49; }

.result-radar-heading { margin-block-end: 14px; }
.result-radar-heading .caption { margin: 5px 0 0; }
.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 20%);
  grid-template-areas: "panels legend";
  gap: 14px;
}
.radar-panels { display: grid; grid-area: panels; gap: 14px; min-width: 0; }
.radar-protocol {
  min-width: 0;
  padding: clamp(10px, 1.5vw, 16px);
  border: 1px solid var(--result-line);
  border-radius: 16px;
  background: var(--result-surface);
}
#results .radar-protocol > .group-title { margin: 0 0 4px; }
.radar-protocol > .caption { margin: 0 0 12px; }
.radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.radar-card { margin: 0; }
.radar-card img { display: block; width: 100%; height: auto; }
.radar-grid .radar-card {
  padding: 5px;
  border: 1px solid var(--result-line);
  border-radius: 10px;
  background: #fff;
}
.radar-legend-source {
  grid-area: legend;
  align-self: start;
  position: sticky;
  top: 78px;
  border: 1px solid var(--result-line);
  border-radius: 12px;
  background: var(--result-surface);
}
@media (max-width: 800px) {
  .radar-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "legend" "panels";
  }
  .radar-legend-source {
    position: static;
    width: min(200px, 100%);
  }
}
@media (max-width: 560px) {
  .radar-grid { grid-template-columns: minmax(0, 1fr); }
  .is-compact .result-table .paper-table { font-size: 11px; }
}

/* Institutional mark and paper byline in the hero. */
.nav-identity {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}
.nav-identity .brand {
  padding-inline-end: 14px;
  border-inline-end: 1px solid var(--ui-line);
}
.nav-lab-logo {
  display: block;
  width: clamp(140px, 18vw, 220px);
  height: auto;
}

/* The blue emblem occupies the upper-left 738 px of the official artwork. */
.nav-fudan-seal {
  display: block;
  flex: none;
  overflow: hidden;
  width: clamp(26px, 3vw, 36px);
  aspect-ratio: 1;
}
.nav-fudan-seal img {
  display: block;
  width: calc(100% * 2267 / 738);
  max-width: none;
  height: auto;
}
.paper-masthead {
  padding-block: clamp(18px, 2.2vw, 32px) clamp(8px, .9vw, 12px);
  text-align: center;
}
.paper-title {
  max-inline-size: 35ch;
  margin-inline: auto;
  padding-block: .04em .13em;
  color: #171717;
  font-size: clamp(27px, 3.65vw, 52px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.13;
  text-wrap: balance;
}
@supports (background-clip: text) {
  .paper-title-wordmark {
    background-image: var(--realm-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors: active) {
  .paper-title-wordmark { background-image: none; -webkit-text-fill-color: CanvasText; }
}
.hero-byline {
  display: grid;
  gap: 6px;
  max-width: 1080px;
  margin: 16px auto 0;
  color: var(--ui-ink);
}
.hero-byline :is(ul, p) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1em;
  row-gap: .26em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-authors {
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 650;
  line-height: 1.35;
}
.hero-authors sup {
  margin-inline-start: .12em;
  color: #42609a;
}
.hero-affiliations {
  font-size: clamp(12px, 1.11vw, 14px);
  line-height: 1.4;
}
.hero-author-notes {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ui-muted);
}
.hero-byline li { white-space: nowrap; }

@media (max-width: 1120px) {
  .nav-links {
    min-width: 0;
    gap: clamp(12px, 1.7vw, 20px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links a { flex: none; }
}
@media (min-width: 761px) and (max-height: 600px) {
  .hero-byline { gap: 4px; margin-top: 10px; }
}
@media (max-width: 760px) {
  .nav-identity { gap: 10px; }
  .nav-identity .brand { font-size: clamp(22px, 6vw, 27px); padding-inline-end: 10px; }
  .nav-lab-logo { width: clamp(112px, 37vw, 180px); }
  .hero-byline { margin-top: 14px; }
  .hero-authors { font-size: 14px; }
}

/* Project links below the paper byline. */
.paper-masthead .hero-links.hero-resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-block: clamp(12px, 1.65vw, 23px) 0;
}
.hero-resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 19px;
  border: 1px solid #1d304318;
  border-radius: 999px;
  background: #f4f4f6;
  color: #171b22;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.hero-resource-link:hover {
  background: #e8ebef;
  color: #171b22;
  text-decoration: none;
}
.hero-resource-link img { display: block; flex: 0 0 auto; object-fit: contain; }
.hero-resource-link.hero-resource-primary {
  border-color: #ffffff45;
  background: #1c2129;
  color: #fff;
  font-weight: 650;
}
.hero-resource-link.hero-resource-primary:hover { background: #2f3946; }
@media (max-width: 760px) {
  .paper-masthead .hero-links.hero-resources { gap: 7px; }
  .hero-resource-link { min-height: 44px; gap: 7px; padding-inline: 12px; font-size: 13px; }
}

/* Reserve space for the wordmark and playback controls inside the 16:9 video. */
.hero-frame { padding-inline: clamp(5px, .55vw, 10px); }
.hero-frame .hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-content: stretch;
  aspect-ratio: 16 / 9;
  width: min(100%, 1680px);
  overflow: clip;
  height: auto;
  min-height: 0;
  margin-inline: auto;
}
.hero-frame .hero-inner {
  --wordmark-top-inset: clamp(4px, 1.2vw, 16px);
  --wordmark-prior-lift: clamp(8px, 5vw, 86px);
  --wordmark-width-limit: 100cqw;
  container-type: size;
  display: grid;
  place-items: start center;
  min-height: 0;
  margin-block: 0;
  padding: 0;
}
.hero-frame .hero .title-art {
  /* The SVG viewBox is 1600 × 250. Fit it in the row left above the controls. */
  --wordmark-width: min(var(--wordmark-width-limit), 1100px, max(0px, calc((100cqh - 2 * var(--wordmark-top-inset)) * 6.4)));
  --wordmark-height: calc(var(--wordmark-width) / 6.4);
  --wordmark-top: max(var(--wordmark-top-inset), calc((100cqh - var(--wordmark-height)) / 2 - var(--wordmark-prior-lift) - 240px));
  width: var(--wordmark-width);
  margin: min(calc(var(--wordmark-top) + 140px), calc(100cqh - var(--wordmark-height) - var(--wordmark-top-inset))) auto 0;
  opacity: .8;
}
.hero-frame .hero-foot {
  grid-row: 2;
  position: static;
  margin-block: 0 clamp(6px, 1.4vw, 22px);
  justify-content: space-between;
}
.hero-frame .hero-scene { padding-block: 8px; }
@media (max-width: 760px) {
  .hero-frame .hero-inner { --wordmark-prior-lift: clamp(3px, 1.25vw, 10px); }
  .hero-frame .hero-foot { align-items: center; gap: 4px; }
  .hero-frame .hero-foot .hero-scene {
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 6px;
    padding: 0;
  }
  .hero-frame .hero-scene-name { font-size: 12px; line-height: 1.2; }
  .hero-frame .hero-scene-detail { font-size: 10px; line-height: 1.2; letter-spacing: 0; }
}
@media (max-width: 420px) {
  .paper-masthead .hero-links.hero-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 330px;
    margin-inline: auto;
  }
  .hero-resource-link { padding-inline: 8px; }
  .hero-resource-primary { grid-column: 1 / -1; justify-self: center; }
  .hero-frame .hero-inner { --wordmark-width-limit: 92cqw; }
  .hero-frame .hero-foot { gap: 2px; }
  .hero-frame .hero-playlist { padding-block: 3px; row-gap: 3px; }
}
