/* Generated by scripts/build-page-assets.py */
/* styles.css */
:root {
  color-scheme: light;
  --ink: #172d27;
  --muted: #465d53;
  --green: #17664f;
  --deep-green: #124e3a;
  --paper: #fbfcf8;
  --wash: #eff5e9;
  --white: #fff;
  --line: #cfdcd1;
  --display: "Bricolage Grotesque", Inter, "Avenir Next", system-ui, sans-serif;
  font: 100%/1.5 Inter, "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html.smooth-navigation { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #0f78a3; outline-offset: 4px; }
::selection { color: var(--ink); background: #c7e4cc; }
[hidden] { display: none !important; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { inset: .7rem auto auto .7rem; width: auto; height: auto; padding: .65rem 1rem; clip-path: none; background: var(--white); z-index: 5; }

.container { max-width: 78rem; width: calc(100% - 7rem); margin: 0 auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.45rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .55rem; justify-self: start; font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; object-fit: contain; }
nav { display: flex; gap: clamp(1.15rem, 2.65vw, 2.65rem); }
nav a, .footer-inner > a:last-child { font-size: .93rem; font-weight: 640; color: var(--muted); }
nav a:hover, .footer-inner > a:last-child:hover { color: var(--green); text-decoration: underline; text-underline-offset: .3em; }
.header-cite { justify-self: end; padding: .42rem .95rem; border: 1px solid var(--line); border-radius: 100px; font-weight: 680; font-size: .9rem; }
.header-cite:hover { background: var(--wash); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; padding: .66rem 1rem; border-radius: .6rem; border: 1px solid var(--line); line-height: 1.35; font-weight: 680; cursor: pointer; background: var(--white); font-size: .93rem; white-space: nowrap; }
.button:hover { background: var(--wash); }
.primary { color: var(--white); background: #215f51; border-color: #215f51; }
.primary:hover { background: var(--deep-green); }
.ghost { background: #ffffff9e; border-color: #bfcfcb; }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }

.comparison-frame {
  --split: 58%;
  display: grid;
  aspect-ratio: 16 / 9;
  border-radius: .65rem;
  background: linear-gradient(115deg, #d9eae4, #dadbf3);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#compare-canvas { display: block; width: 100%; height: auto; }
.comparison-frame:focus-within { outline: 3px solid #4071a1; outline-offset: 3px; }
.comparison-legend { position: absolute; inset: .78rem .78rem auto; display: flex; justify-content: space-between; pointer-events: none; }
.comparison-legend span { padding: .27rem .63rem; border-radius: .38rem; background: #fcfffaed; color: var(--ink); font-size: .83rem; font-weight: 740; box-shadow: 0 2px 12px #161d261c; }
.comparison-legend span:last-child { color: #155543; background: #e1f6ed; }
.split-marker { position: absolute; inset: 0 auto 0 var(--split); width: 2px; background: #e5fdf2; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 13px #8df7d5, 0 0 3px #d5ffe9; }
.split-marker span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.46rem; height: 2.46rem; color: #174e42; background: #f0fff8; border: 1px solid #76cfb3; border-radius: 50%; font-size: 1.3rem; font-weight: 755; box-shadow: 0 0 0 5px #b8f0d844; }
#comparison-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.demo-controls { display: flex; gap: .5rem; align-items: center; padding: .68rem .06rem 0; flex-wrap: wrap; }
.demo-controls > p { margin-left: auto; color: var(--muted); font-size: .84rem; }
.play-button { color: #fff; background: #285e55; border-color: #285e55; }
.play-button:hover { background: #164c43; }
.play-button[data-playing=true] .play-icon { border: 0; width: .53rem; height: .59rem; border-inline: 2px solid currentColor; }
.replay-button { color: #33366a; background: #edf0fd; border-color: #dce1f4; }
.replay-button:hover { background: #e3e8fc; }
.replay-button span, #replay-trajectory span { font-size: 1.1rem; line-height: .85; }
sup { color: var(--green); font-size: .68em; font-weight: 750; }
.affiliations { margin-top: .65rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.05rem; font-size: .88rem; color: var(--muted); }

.section { padding: clamp(3rem, 7vw, 6.3rem) 0; border-top: 1px solid var(--line); scroll-margin-top: .25rem; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .65fr); align-items: end; gap: 2.5rem; margin-bottom: 2.1rem; }
.eyebrow { color: var(--green); font-size: .9rem; font-weight: 750; margin-bottom: .75rem; }
.section h2 { font-family: var(--display); font-size: clamp(2.15rem, 4.55vw, 4.25rem); line-height: 1.035; letter-spacing: -.047em; font-weight: 730; }
.section-heading > p { color: var(--muted); font-size: 1.04rem; line-height: 1.64; max-width: 38ch; padding-bottom: .16rem; }
.figure-card { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); overflow: hidden; }
.figure-card figcaption { color: var(--muted); padding: .85rem 1.15rem; border-top: 1px solid var(--line); font-size: .91rem; }
.figure-trigger { display: block; min-width: 100%; position: relative; border: 0; cursor: zoom-in; padding: clamp(.7rem, 2.8vw, 2rem); background: var(--white); }
.figure-trigger:focus-visible { outline-offset: -4px; }
.figure-trigger img { margin: 0 auto; width: 100%; height: auto; }
.figure-trigger .zoom { position: absolute; top: .72rem; right: .72rem; background: var(--paper); color: var(--deep-green); border: 1px solid var(--line); border-radius: .42rem; padding: .25rem .55rem; font-size: .85rem; font-weight: 650; }
.method-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.45rem; margin-top: 1.65rem; }
.method-notes article { padding-top: .85rem; border-top: 3px solid #9dbcb1; }
.method-notes h3, .result-card h3 { font-size: 1.13rem; margin-bottom: .35rem; letter-spacing: -.025em; }
.method-notes p, .result-card p, .table-note { color: var(--muted); font-size: .94rem; }
.localization-study { margin-top: clamp(1.75rem, 4vw, 3.5rem); scroll-margin-top: 4.25rem; }
.localization-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .65rem 2rem; margin-bottom: 1.1rem; }
.localization-intro h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.65vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; }
.localization-intro p, .localization-figure figcaption { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.localization-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.localization-grid .figure-trigger img { display: block; padding-top: 0; }
.localization-figure figcaption { margin-top: .65rem; }
.sampling { display: inline-flex; min-width: 0; margin-top: 1.45rem; padding: .66rem 1rem; border: 1px solid var(--line); cursor: zoom-in; }
.trajectory { background: linear-gradient(145deg, #f3f5fd, #f9fbf8 50%, #ebf6ef); }
.trajectory-card { padding: clamp(.75rem, 2.6vw, 1.45rem); border: 1px solid #ccd8e0; border-radius: 1rem; background: #fff; }
.trajectory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin-bottom: .9rem; flex-wrap: wrap; }
.toggle-group { display: flex; gap: .2rem; padding: .2rem; background: #edf1f5; border-radius: .58rem; }
.toggle-group button, .trajectory-steps button { color: #475362; border: 1px solid transparent; border-radius: .43rem; padding: .43rem .65rem; background: transparent; cursor: pointer; font-weight: 660; font-size: .88rem; }
.toggle-group button[aria-pressed=true], .trajectory-steps button[aria-pressed=true] { color: #31376d; background: #e6eafe; border-color: #cbd3f3; }
.toggle-group button:hover, .trajectory-steps button:hover { background: #edeffa; }
.trajectory-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.35rem, 1.2vw, .8rem); }
.trajectory-image { aspect-ratio: 416 / 240; background-color: #e2ece8; background-size: 300% 300%; border-radius: .55rem; }
.trajectory-image { background-image:var(--atlas, none); }
.trajectory-frames figcaption { font-size: .86rem; color: var(--muted); margin: .35rem 0 .68rem; }
.trajectory-steps { display: flex; flex-wrap: wrap; gap: .27rem; border-top: 1px solid #dce4e8; padding-top: .63rem; }
.trajectory-steps button { flex: 1; white-space: nowrap; background: #f6f7fa; }
.trajectory-note { min-height: 1.5em; margin-top: .6rem; color: var(--muted); font-size: .91rem; }
.benchmark { background: #eff5ea; }
.benchmark-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.65rem; border-block: 1px solid var(--line); }
.benchmark-stats > div { padding: 1.05rem 1.2rem 1.14rem; }
.benchmark-stats > div + div { border-left: 1px solid var(--line); }
.benchmark-stats dt { color: var(--deep-green); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 760; letter-spacing: -.07em; }
.benchmark-stats dd { font-size: .91rem; color: var(--muted); margin-top: .45rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.result-card { border: 1px solid var(--line); border-radius: .85rem; background: var(--white); padding: 1.05rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .93rem; margin-top: .8rem; white-space: nowrap; }
th, td { padding: .48rem .42rem; text-align: right; border-top: 1px solid var(--line); }
th:first-child { text-align: left; padding-left: .15rem; }
thead th { color: var(--muted); font-weight: 620; font-size: .84rem; }
tbody th { font-weight: 700; }
table .gain { color: var(--deep-green); font-weight: 760; }
.table-note { margin-top: .85rem; }
.citation { background: var(--wash); }
.citation-grid { display: grid; grid-template-columns: .45fr 1fr; gap: 2rem; align-items: center; }
.bib { position: relative; border: 1px solid var(--line); background: var(--white); border-radius: .8rem; padding: .9rem 1rem .7rem; }
.copy { margin-bottom: .6rem; }
.bib pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 .2rem; font-size: .88rem; line-height: 1.55; color: var(--muted); }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; }
dialog { padding: .8rem; max-width: min(95vw, 94rem); max-height: 94vh; border: 1px solid var(--line); border-radius: .8rem; overscroll-behavior: contain; box-shadow: 0 14px 70px #1a352743; color: var(--ink); }
dialog::backdrop { background: #223b31aa; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.dialog-header h2 { font-size: 1.12rem; }
#enlarged-figure { max-height: 78vh; width: 100%; object-fit: contain; }

@media (max-width: 640px) {
  .section-heading, .result-grid, .citation-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .section-heading { margin-bottom: 1.22rem; }
  .method-notes { grid-template-columns: 1fr; gap: .85rem; }
  .localization-intro, .localization-grid { grid-template-columns: minmax(0, 1fr); }
  .figure-trigger img { padding-top: 1.45rem; }
  .benchmark-stats { grid-template-columns: repeat(2, 1fr); }
  .benchmark-stats > div:nth-child(3) { border-left: 0; }
  .benchmark-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trajectory-steps button { padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) { html.smooth-navigation { scroll-behavior: auto; } }

/* screening.css */
:root {
  --ink: #13213c;
  --muted: #4f5f76;
  --green: #385fbf;
  --deep-green: #203f94;
  --wash: #eff4fc;
  --paper: #fff;
  --line: #d6dfef;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Helvetica Neue", Inter, system-ui, sans-serif;
  font-family: "Helvetica Neue", Inter, system-ui, sans-serif;
}
.container { width: min(90%, 74rem); }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251,253,255,.93); backdrop-filter: blur(15px); }
.header-inner { min-height: 3.65rem; }
.mobile-sections { display:none; }
.read-progress { position: absolute; top: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg,#328abb,#6958cb); }
.header-cite { color: #24365b; background: white; }
.site-header nav a { color: #475675; }
.section, #demo, #top { scroll-margin-top: 4.25rem; }
.intro { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 2.2rem; background: radial-gradient(ellipse at 8% 15%,#e0f0fa 0,transparent 42%),radial-gradient(ellipse at 94% 10%,#e7e4fa 0,transparent 48%),linear-gradient(180deg,#f7faff 0%,#f6f9fd 48%,#fff 100%); }
.intro::before { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0 0 auto; height: 28rem; opacity: .5; background-image: radial-gradient(#a9b6d2 .85px,transparent .9px); background-size: 17px 17px; mask-image: linear-gradient(180deg,#000 35%,transparent); }
.masthead { text-align:center; padding: clamp(1.8rem,3.2vw,3rem) 0 1.65rem; position: relative; }
.masthead h1 { font: 730 clamp(3.4rem,8vw,7.8rem)/.99 var(--display); letter-spacing: -.055em; padding: 0 .08em .065em; display: inline-block; color: #244f85; background: linear-gradient(103deg,#0a617c 2%,#147d94 27%,#3858ac 62%,#6548a5 99%); background-clip:text; -webkit-text-fill-color: transparent; }
.subtitle { font: 590 clamp(1.05rem,2vw,1.65rem)/1.22 var(--display); color: #22324e; letter-spacing: -.03em; margin: .38rem 0 0; }
.credits { padding-top: 1rem; }
.authors,.affiliations,.resource-links { display:flex; justify-content:center; flex-wrap:wrap; }
.authors { gap:.22rem 1.05rem; font-size:1rem; font-weight:650; }
.authors a:hover { text-decoration: underline; text-underline-offset: .2em; }
sup { color:#466598; margin-left:.06em; }
.affiliations { max-width: 57rem; margin:.42rem auto 0; gap:.04rem .8rem; font-size:.81rem; line-height:1.55; color:#516079; }
.resource-links { gap:.55rem; margin:1.15rem 0 0; }
.pill { display:inline-flex; gap:.53rem; align-items:center; justify-content:center; min-height:2.35rem; padding:.4rem 1rem; cursor:pointer; border:1px solid #c1cce0; border-radius:2rem; color:#2d4167; background:#fffffff2; font-size:.89rem; font-weight:680; }
.pill:hover { background:#f0f4ff; border-color:#8399c1; }
.pill.active { color:#fff; background:#243e76; border-color:#243e76; box-shadow:0 3px 12px #39509520; }
.pill.active:hover { background:#344f8d; }
.icon-grid { width:.76rem; aspect-ratio:1; background: conic-gradient(from 90deg at 44% 44%,transparent 0 90deg,currentColor 0) top left/53% 53% repeat; }
.icon-layers { width:.78rem; height:.65rem; border:1.5px solid currentColor; border-radius:2px; box-shadow: -2px 2px 0 #fff,-3px 3px 0 currentColor; }
.field-marks { position:absolute; z-index:-1; inset:0 0 auto; height:22rem; overflow:hidden; pointer-events:none; }
.field-marks i { --t:#728dc2; position:absolute; width:6rem; height:3.7rem; color:var(--t); background: linear-gradient(currentColor,currentColor) left top/28% 1px,linear-gradient(currentColor,currentColor) left top/1px 34%,linear-gradient(currentColor,currentColor) right bottom/28% 1px,linear-gradient(currentColor,currentColor) right bottom/1px 34%; background-repeat:no-repeat; opacity:.45; animation: field-pass 8s ease-in-out infinite; }
.field-marks i::after { content:""; position:absolute; left:9%; bottom:16%; height:2px; width:65%; background:currentColor; box-shadow:0 -5px 0 currentColor; transform-origin:left; animation: clean-pass 8s ease-in-out infinite; }
.field-marks i:nth-child(1) { left:7%; top:21%; }
.field-marks i:nth-child(2) { left:15%; top:64%; width:3.6rem; height:2rem; --t:#458893; }
.field-marks i:nth-child(3) { right:7%; top:30%; --t:#9083bb; }
.field-marks i:nth-child(4) { right:17%; top:70%; width:3.6rem; height:2rem; }
.field-marks i:nth-child(even),.field-marks i:nth-child(even)::after { animation-delay:-3s; }
@keyframes field-pass { 0%,100% {opacity:.2} 38%,77% {opacity:.53} }
@keyframes clean-pass { 0%,30%,100% {transform:scaleX(1)} 65%,85% {transform:scaleX(.02)} }

.premiere { position: relative; margin:auto; background:#101a2d; color:white; border:1px solid #24314a; border-radius:1rem; box-shadow:0 15px 37px -18px #202c5559; }
.premiere-rim { padding:5px 5px 0; }
.reel-frame { position:relative; overflow:hidden; background:#152238; border-radius:.72rem .72rem .14rem .14rem; }
.reel-frame video { display:block; width:100%; height:auto; aspect-ratio:32/9; }
.reel-frame::after { content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; transform:translateX(-50%); background:#f1f5fa; pointer-events:none; }
.reel-tags { position:absolute; inset: .65rem 0 auto; display:grid; grid-template-columns:1fr 1fr; pointer-events:none; }
.reel-tags span { justify-self:start; margin-left:.75rem; padding:.18rem .52rem; border-radius:.26rem; font-size:.73rem; letter-spacing:.035em; font-weight:720; background:#152337dc; color:#fff; }
.reel-tags span:last-child { background:#dff8f0f2; color:#164d42; }
.reel-footer { display:flex; align-items:center; gap:1rem; justify-content:space-between; padding:.8rem 1.05rem; }
.reel-kicker,.eyebrow { font:650 .76rem/1.35 var(--mono); letter-spacing:.1em; text-transform:uppercase; }
.reel-kicker { display:block; color:#accaef; margin-bottom:.17rem; font-size:.67rem; }
.reel-info h2 { font:650 1.17rem/1.3 var(--display); letter-spacing:-.025em; }
.reel-info em { font-style:normal; font-weight:500; }
.reel-info h2 span { margin-left:.65rem; color:#c1cfe1; font-size:.8rem; font-weight:480; }
.shot-name { color:#d9e3f3; font-size:.94rem; font-weight:620; }
.shot-name span { margin-left:.38rem; color:#b4c5dc; font:.77rem var(--mono); }
.reel-transport { display:flex; align-items:center; gap:.55rem; }
.reel-transport button { color:white; display:grid; place-items:center; width:2rem; height:2rem; border:1px solid #64738c; background:transparent; border-radius:50%; cursor:pointer; }
.reel-transport button:hover { background:#293951; }
.reel-transport button[data-playing=true] span { width:8px; height:10px; border:0; border-inline:3px solid currentColor; }
#reel-seek { width:clamp(3rem,6vw,6rem); accent-color:#bad5ff; cursor:pointer; }
#reel-clock { font:.78rem var(--mono); color:#d4e4fa; font-variant-numeric:tabular-nums; }
.reel-caption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.2rem 1rem; margin:.8rem .09rem 0; font-size:.89rem; color:var(--muted); }
.reel-caption a { font-size:.8rem; color:#4066a0; text-decoration:underline; text-underline-offset:.18em; }

.section { padding:clamp(3.3rem,6vw,5.8rem) 0; }
.section h2,.abstract h2 { font-family:var(--display); font-weight:730; color:#182c50; letter-spacing:-.055em; }
.section-heading { margin-bottom:1.5rem; }
.eyebrow { color:#4668a4; margin-bottom:.55rem; }
.section-heading > p { max-width:41ch; color:var(--muted); }
.gallery { background:#fff; }
.gallery-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; margin-bottom:1rem; }
.filter { padding:.42rem .9rem; border:1px solid #d1dbeb; border-radius:3rem; background:white; color:#455874; font-weight:650; font-size:.88rem; cursor:pointer; }
.filter[aria-pressed=true] { color:#fff; background:#263e70; border-color:#263e70; }
.filter:hover { border-color:#8a9ec0; }
#gallery-count { font:.8rem var(--mono); margin-left:auto; color:#596a83; }
.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem 1.05rem; }
.gallery-card { padding:0; border:0; border-radius:.65rem; text-align:left; background:transparent; cursor:pointer; color:var(--ink); min-width:0; }
.gallery-picture { display:block; position:relative; overflow:hidden; width:100%; aspect-ratio:16/9; background:#e6ecf5; border-radius:.65rem; isolation:isolate; }
.gallery-picture img,.gallery-picture video { display:block; position:absolute; inset:0 auto 0 0; max-width:none; height:100%; width:100%; }
.gallery-picture video { width:200%; transform:translateX(-50%); opacity:0; transition: opacity .3s; }
.gallery-picture.is-playing video { opacity:1; }
.gallery-action { position:absolute; bottom:.55rem; right:.55rem; display:grid; place-items:center; width:1.85rem; aspect-ratio:1; border:1px solid #ffffffaa; background:#16253ad9; border-radius:50%; color:#fff; }
.card-meta { display:block; margin:.62rem 0 .12rem; font:650 .7rem/1.4 var(--mono); letter-spacing:.065em; text-transform:uppercase; color:#53688e; }
.gallery-card strong { display:block; font:660 clamp(1rem,1.7vw,1.3rem)/1.25 var(--display); letter-spacing:-.03em; }
.gallery-card:hover strong { color:#305db0; }
.abstract { padding:clamp(3rem,5vw,4.5rem) 0; background:#f4f7fc; border-block:1px solid var(--line); }
.abstract-inner { display:grid; grid-template-columns:1fr 1.5fr; gap:3rem; align-items:start; }
.abstract h2 { font-size:clamp(2rem,4vw,3.6rem); line-height:1.05; }
.abstract-inner > div:last-child p { font-size:1.07rem; color:#334966; line-height:1.65; }
.abstract-inner > div:last-child p + p { margin-top:.7rem; }
.trajectory { background:linear-gradient(120deg,#f8faff,#faf9ff); }
.trajectory-steps button[aria-pressed=true],.toggle-group button[aria-pressed=true] { border-color:#94a4d3; }
.method-notes article { border-top:2px solid #a1b4d7; }
.benchmark { background:#f4f8fd; }
.citation { background:#f1f5fc; }
.clip-dialog,.film-dialog { width:min(54rem,94vw); padding:1rem; }
dialog::backdrop { background:#101a30b8; backdrop-filter:blur(7px); }
.clip-dialog .eyebrow { font-size:.68rem; }
.clip-dialog .dialog-header h2 { font:700 1.32rem var(--display); }
.dismiss { border:1px solid var(--line); border-radius:50%; width:2.1rem; height:2.1rem; font-size:1.45rem; line-height:1; color:var(--ink); background:#f6f8fc; cursor:pointer; }
#case-description { margin:.7rem .1rem 0; color:var(--muted); font-size:.94rem; }
#film-video { display:block; width:100%; aspect-ratio:16/9; background:#111a2b; }
@media (max-width:900px) {
  .container { width:93%; }
  .reel-footer { flex-wrap:wrap; gap:.65rem; }
  .reel-info { margin-right:auto; }
  .reel-transport { margin-left:auto; }
}
@media (max-width:800px) {
  .header-inner { position:relative; min-height:3.1rem; grid-template-columns:1fr auto auto; gap:.6rem; }
  .mobile-sections { display:block; }
  .mobile-sections summary { cursor:pointer; font-size:.83rem; font-weight:600; color:var(--muted); }
  .mobile-sections[open] nav { display:grid; position:absolute; right:0; top:calc(100% + 1px); z-index:4; min-width:11rem; padding:.7rem; gap:.1rem; border:1px solid var(--line); border-radius:.5rem; background:white; box-shadow:0 10px 22px #172d4c1c; }
  .mobile-sections nav a { padding:.36rem .5rem; }
  .header-inner nav { display:none; }
}
@media (max-width:680px) {
  .masthead { padding:2rem 0 1.22rem; }
  .masthead h1 { font-size:clamp(2.6rem,10.3vw,4.3rem); }
  .subtitle { margin:.45rem auto 0; max-width:24rem; }
  .authors { gap:.18rem .65rem; font-size:.89rem; }
  .affiliations { font-size:.75rem; gap:0 .45rem; }
  .field-marks { opacity:.35; }
  .resource-links { margin-top:.85rem; gap:.3rem; }
  .pill { padding:.35rem .68rem; min-height:2.1rem; font-size:.82rem; }
  .reel-frame canvas { width:100%; aspect-ratio:16/18; display:block; }
  .reel-frame.stacked video { position:absolute; opacity:0; inset:0; width:100%; pointer-events:none; }
  .reel-frame.stacked::after { left:0; right:0; width:auto; top:50%; bottom:auto; height:2px; transform:translateY(-50%); }
  .reel-frame.stacked .reel-tags { inset:.4rem 0 0; grid-template: 1fr 1fr / 1fr; }
  .reel-tags span { align-self:start; margin-left:.45rem; font-size:.69rem; }
  .reel-footer { padding:.65rem .72rem; }
  .reel-info { order:1; }
  .shot-name { order:3; flex:0 0 100%; font-size:.78rem; }
  .reel-transport { order:2; }
  .reel-kicker { font-size:.62rem; }
  .reel-info h2 { font-size:1.04rem; }
  .reel-info h2 span { font-size:.72rem; margin-left:.3rem; }
  #reel-seek { width:2.7rem; }
  #reel-clock { display:none; }
  .section-heading,.abstract-inner { grid-template-columns:1fr; gap:.8rem; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem .6rem; }
  .gallery-picture { border-radius:.42rem; }
  .card-meta { font-size:.62rem; }
  .gallery-action { right:.3rem; bottom:.3rem; width:1.55rem; }
  .dialog-header { margin-bottom:.5rem; }
  .demo-controls > p { font-size:.77rem; }
  .credits { padding-top:.8rem; }
}
@media (max-width:370px) {
  #gallery-count { font-size:.68rem; }
  .filter { padding-inline:.62rem; }
  .resource-links { gap:.22rem; }
  .pill { padding-inline:.5rem; }
  .demo-controls { gap:.3rem; }
  .demo-controls button { font-size:.83rem; padding:.45rem .55rem; }
}
@media (min-width:681px) { .reel-frame canvas { display:none; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }

/* results.css */
.result-highlights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); margin:1.7rem 0; }
.result-highlights > div { padding:1rem clamp(.55rem,2vw,1.5rem); display:grid; gap:.22rem; align-content:start; }
.result-highlights > div + div { border-left:1px solid var(--line); }
.result-highlights span { font-size:.87rem; color:var(--muted); }
.result-highlights span:first-child { font-weight:680; color:#304666; }
.result-highlights strong { font:720 clamp(1.7rem,3.7vw,3.1rem)/1.1 var(--display); letter-spacing:-.05em; color:#345993; }
.result-highlights small { font-size:.46em; font-weight:580; letter-spacing:0; }
.score-explorer { border:1px solid var(--line); border-radius:1rem; background:white; overflow:hidden; }
.score-tabs { display:flex; gap:.32rem; flex-wrap:wrap; padding:.73rem clamp(.6rem,2vw,1.4rem); background:#f4f7fc; border-bottom:1px solid var(--line); }
.score-tabs button,.score-views button { line-height:1.35; border:1px solid transparent; font-weight:625; background:transparent; color:#425675; cursor:pointer; }
.score-tabs button { border-radius:2rem; padding:.46rem .93rem; font-size:.94rem; }
.score-tabs button[aria-selected=true] { background:#273e70; color:#fff; }
.score-tabs button:hover,.score-views button:hover { border-color:#abbad5; }
.score-panel { padding:clamp(.75rem,2.3vw,1.65rem); }
.score-tools { display:flex; align-items:end; justify-content:space-between; gap:.65rem; flex-wrap:wrap; }
.score-tools label,.chart-metric { display:grid; gap:.28rem; }
.score-tools label > span,.chart-metric { font-size:.81rem; color:#4a5b75; font-weight:600; }
.score-explorer select { font:600 .92rem/1.25 var(--display); color:#1e3559; border-radius:.42rem; border:1px solid #b7c7de; padding:.45rem .6rem; max-width:100%; background:#fff; }
.score-views { display:flex; border:1px solid var(--line); border-radius:.55rem; padding:2px; gap:2px; }
.score-views button { padding:.31rem .63rem; border-radius:.4rem; font-size:.85rem; }
.score-views button[aria-pressed=true] { background:#e7edfb; color:#284675; }
#score-context { font-size:.94rem; color:var(--muted); margin:.7rem 0 .9rem; max-width:89ch; }
.score-scroll { overflow-x:auto; }
.score-scroll table { width:100%; border-collapse:separate; border-spacing:0; margin:0; font-size:.92rem; }
.score-scroll th,.score-scroll td { padding:.46rem clamp(.45rem,1vw,.84rem); font-variant-numeric:tabular-nums; vertical-align:middle; }
.score-scroll thead th { font-size:.84rem; background:#f4f7fc; color:#354962; border-bottom:1px solid #c8d5e7; text-align:right; white-space:normal; min-width:3.8rem; }
.score-scroll th:first-child { text-align:left; }
.score-scroll thead small { display:block; font-size:.72rem; font-weight:500; color:#53647b; }
.score-scroll tbody th { font-size:.88rem; font-weight:520; }
.score-scroll tbody td { color:#39475b; }
.score-scroll tbody td strong { color:#111e38; font-weight:780; }
.score-scroll tbody td .psnr-gain { margin-inline-start:.28em; font-size:.82em; white-space:nowrap; }
.score-scroll tbody tr > :first-child { position:sticky; left:0; z-index:1; background:#fff; border-right:1px solid #dfe5ef; }
.score-scroll .reference-row > td,.score-scroll .reference-row > :first-child { background:#edf2ff; }
.score-scroll .reference-row > th { font-weight:680; color:#2d4381; }
.cue-label { display:block; margin-top:.03rem; font-size:.7rem; color:#5e7089; font-weight:450; }
.score-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-top:1rem; gap:.3rem .8rem; font-size:.81rem; color:var(--muted); }
.score-foot a,#results noscript a { color:#36579a; text-decoration:underline; text-underline-offset:.18em; }
.chart-metric { width:fit-content; }
.ranking { display:grid; gap:.48rem; margin:1rem 0 .25rem; padding:0; list-style:none; }
.ranking li { display:grid; align-items:center; gap:.68rem; grid-template-columns:minmax(7rem,1.2fr) minmax(4rem,4fr) 4.5rem; }
.score-name { font-size:.89rem; color:#394b66; }
.score-track { height:.57rem; background:#edf1f7; border-radius:.8rem; overflow:hidden; }
.score-track i { display:block; height:100%; background:#97adc9; border-radius:inherit; transform-origin:left; }
.reference-bar .score-track i { background:linear-gradient(90deg,#357881,#535eae); }
.ranking strong { font-size:.91rem; text-align:right; font-variant-numeric:tabular-nums; }
.reference-bar .score-name { color:#263b79; font-weight:680; }
@media (prefers-reduced-motion:no-preference) { .score-track i { animation:rank-in .32s ease-out both; } @keyframes rank-in { from {transform:scaleX(0)} to {transform:scaleX(1)} } }
@media (max-width:640px) {
  .result-highlights { gap:0; }
  .result-highlights > div { padding:.65rem .39rem; }
  .result-highlights span { font-size:.71rem; line-height:1.3; }
  .score-tabs { gap:.15rem; }
  .score-tabs button { font-size:.81rem; padding:.35rem .54rem; }
  .score-scroll table { font-size:.84rem; }
  .score-scroll tbody th { max-width:9.3rem; white-space:normal; min-width:6.65rem; }
  .score-scroll th,.score-scroll td { padding:.42rem .4rem; }
  .ranking li { gap:.4rem; grid-template-columns:minmax(5.6rem,1fr) minmax(3rem,1.2fr) 3.7rem; }
  .score-name { font-size:.79rem; }
}

/* qualitative-results.css */
.qual-panel { margin-top:clamp(2rem,4vw,3rem); }
.qual-heading { margin:0 0 1rem; font:700 clamp(1.45rem,3vw,2.1rem)/1.15 var(--display,system-ui); letter-spacing:-.035em; color:#1b2845; }
.qual-toolbar,.qual-scenes { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; }
.qual-toolbar { justify-content:space-between; gap:.5rem 1rem; }
.qual-choice,.qual-zoom { padding:.42rem .8rem; border:1px solid #d1dbeb; border-radius:3rem; background:#fff; color:#455874; font-family:inherit; font-size:.87rem; font-weight:650; line-height:1.25; cursor:pointer; }
.qual-choice:hover,.qual-zoom:hover { border-color:#8a9ec0; }
.qual-choice[aria-pressed="true"] { color:#fff; background:#263e70; border-color:#263e70; }
.qual-zoom[aria-pressed="true"] { color:#32477b; background:#e9effa; border-color:#aebfdd; }
.qual-zoom::before { content:""; display:inline-block; box-sizing:border-box; width:.65rem; height:.65rem; margin:0 .37rem .01rem 0; border:1.5px solid currentColor; border-radius:.15rem; }
.qual-zoom[aria-pressed=true]::before { background:currentColor; box-shadow:inset 0 0 0 1px #e9effa; }
.qual-zoom[hidden] { display:none; }
.qual-metadata { color:#52657d; font:.82rem/1.45 var(--mono,monospace); margin:.65rem 0 .75rem; }
.qual-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem .7rem; }
.qual-tile { overflow:hidden; margin:0; border:1px solid #dce3ee; border-radius:.55rem; background:#f6f8fd; min-width:0; }
.qual-name { padding:.29rem .6rem; font:.86rem/1.25 var(--display,system-ui); font-weight:650; color:#354765; }
.qual-ours { border-color:#9caed4; }
.qual-ours .qual-name { background:#e0e9fb; color:#243f74; }
.qual-view { position:relative; aspect-ratio:16/9; background:#edf0f4; overflow:hidden; }
.qual-image { display:block; width:100%; height:100%; max-width:none; }
.qual-region { position:absolute; left:21.077283%; top:48.958333%; width:21.077283%; height:25%; border:1.5px solid #fe4444; }
.qual-detail .qual-view { aspect-ratio:3/2; }
.qual-detail .qual-region { display:none; }
.qual-observation { color:#41516a; margin:.65rem 0 0; line-height:1.5; font-size:.96rem; }
@media (max-width:650px) {
  .qual-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
  .qual-name { font-size:.78rem; padding:.24rem .42rem; }
  .qual-choice,.qual-zoom { font-size:.8rem; padding:.38rem .65rem; }
}

/* theater.css */
:root { color-scheme:dark; }
html,body { background:#0d1018; color:#f1f3f9; }
body ::selection { color:#0c161c; background:#ade9dd; }
:focus-visible { outline-color:#9ae5dd; }
.skip:focus { color:#141923; }
.site-header { background:rgba(12,15,22,.92); border-color:#292f3d; backdrop-filter:blur(16px); }
.header-inner { min-height:3.7rem; }
.site-header .brand { color:#f5f5f5; }
.site-header nav a,.mobile-sections summary { color:#b6bfcf; }
.site-header nav a:hover { color:#fff; }
.header-cite { color:#eff2fb; background:#202530; border-color:#424a5b; }
.header-cite:hover { background:#313848; }
.read-progress { background:linear-gradient(90deg,#83ddd3,#b5aeff); }
.mobile-sections[open] nav { background:#191e29; border-color:#374153; }
.intro { padding-bottom:1.55rem; background:#0d1018; color:#eff3f9; }
.intro::before { display:none; }
.masthead { text-align:left; padding:clamp(2.1rem,3.6vw,4.2rem) 0 clamp(2.1rem,3.3vw,3.7rem); }
.masthead h1 { margin-left:-.055em; padding:.02em .06em .08em; background:none; color:#f3f4f9; -webkit-text-fill-color:currentColor; font:740 clamp(3rem,7.7vw,7.5rem)/.96 var(--display); letter-spacing:-.055em; }
.masthead h1 span { background:linear-gradient(105deg,#f2f4fb 3%,#dbe8ef 26%,#b0ded9 60%,#a4b8dc 95%); color:transparent; background-clip:text; -webkit-text-fill-color:transparent; }
.intro .subtitle { color:#e1e5ee; font-weight:520; font-size:clamp(1.05rem,1.9vw,1.65rem); text-wrap:balance; margin:.14rem 0 0; max-width:45rem; }
.intro .credits { max-width:47rem; padding-top:1.05rem; }
.intro .authors,.intro .affiliations,.intro .resource-links { justify-content:flex-start; }
.intro .authors { color:#e6ebf1; font-weight:590; font-size:.93rem; gap:.19rem .86rem; }
.intro sup { color:#b4b4e9; }
.intro .affiliations { color:#b6bfce; max-width:44rem; margin:.36rem 0 0; font-size:.79rem; line-height:1.45; }
.intro .resource-links { gap:.47rem; margin-top:1.25rem; }
.intro .pill { color:#e4e8ed; background:#202631d9; border-color:#525866; min-height:2.25rem; }
.intro .pill:hover { background:#343e50; }
.intro .pill.active { background:#e4f6f0; color:#142a27; border-color:#e4f6f0; box-shadow:none; }
.intro .pill.active:hover { background:#b6e8de; }
.theater-container { position:relative; }
.screening-deck { background:linear-gradient(145deg,#1b1f2b,#141823 70%); border:1px solid #383e4d; border-radius:.88rem; box-shadow:0 20px 58px -33px #000e; overflow:hidden; }
.deck-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem 1rem; padding:.7rem 1rem .72rem; }
#scene-category { font:600 .68rem/1.4 var(--mono); letter-spacing:.1em; text-transform:uppercase; color:#99d6cc; }
.deck-header h2 { color:#f3f4f7; font:630 clamp(1.15rem,2.1vw,1.55rem)/1.1 var(--display); letter-spacing:-.035em; margin:.2rem 0 0; }
.stage-modes { display:flex; gap:1px; padding:3px; border:1px solid #394252; border-radius:.48rem; background:#10141f; }
.stage-options { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; margin-inline-start:auto; }
.stage-modes button { border:0; background:transparent; border-radius:.27rem; padding:.24rem .7rem; color:#b9c3d2; font-size:.82rem; font-weight:620; cursor:pointer; }
.stage-modes button[aria-pressed=true] { background:#374156; color:#fff; }
.stage-modes button:hover { color:#fff; }
.stage-well { background:#0a0c11; }
.projection { position:relative; width:100%; overflow:hidden; isolation:isolate; }
.projection video,.projection canvas { display:block; width:100%; height:auto; }
.projection video { aspect-ratio:32/9; }
.projection.using-canvas video { position:absolute; opacity:0; pointer-events:none; inset:0; }
.projection[data-layout=stacked] canvas { aspect-ratio:16/18; }
.projection[data-layout=wipe] { max-width:52rem; margin:auto; }
.projection[data-layout=wipe] canvas { aspect-ratio:16/9; }
.projection[data-layout=pair]::after,.projection[data-layout=stacked]::after { content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; background:#e8f0f4ab; pointer-events:none; }
.projection[data-layout=stacked]::after { top:50%; left:0; right:0; width:auto; height:1px; }
.screen-labels { position:absolute; inset:.6rem .7rem auto; display:grid; grid-template-columns:1fr 1fr; pointer-events:none; }
.screen-labels span { justify-self:start; border-radius:.2rem; padding:.18rem .45rem; white-space:nowrap; background:#10141bdc; color:#fff; font:650 .68rem/1.3 var(--mono); letter-spacing:.065em; text-transform:uppercase; }
.screen-labels span + span { margin-left:.65rem; background:#d8f7eaf0; color:#173b33; }
.projection[data-layout=stacked] .screen-labels { inset:.43rem .48rem 0; grid-template:1fr 1fr / 1fr; }
.projection[data-layout=stacked] .screen-labels span { align-self:start; margin:0; }
.projection[data-layout=wipe] .screen-labels span + span { justify-self:end; }
.wipe-mark { position:absolute; inset:0 auto 0 var(--wipe,50%); width:2px; transform:translateX(-50%); background:#a2f0e2; box-shadow:0 0 11px #0e3828af; pointer-events:none; }
.wipe-mark span { width:2.05rem; aspect-ratio:1; border-radius:50%; color:#10201f; background:#e3fff5; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; font:700 1.05rem/1 var(--display); }
#wipe-position { position:absolute; inset:0; margin:0; width:100%; height:100%; opacity:0; cursor:ew-resize; }
.projection:focus-within { outline:2px solid #bef3ea; outline-offset:-3px; }
.deck-controls { display:flex; align-items:center; gap:.7rem; padding:.55rem .94rem; }
.deck-controls button { display:grid; place-items:center; background:transparent; border:0; color:#dce5f2; cursor:pointer; border-radius:.3rem; width:2rem; height:1.9rem; font:540 1.4rem/1 var(--display); }
.deck-controls button:hover { background:#333a4b; color:#fff; }
#reel-play { border:1px solid #5e687b; width:1.9rem; border-radius:50%; }
#reel-play span { width:0;height:0;border-block:4px solid transparent;border-left:6px solid currentColor; margin-left:2px; }
#reel-play[data-playing=true] span { width:8px;height:9px;border:0;border-inline:2px solid currentColor;margin:0; }
#reel-seek { flex:1; min-width:1.75rem; height:1.9rem; border-radius:.2rem; appearance:none; margin:0; cursor:pointer; background:linear-gradient(to right,#95ddd2 0 var(--played,0%),#424b5d var(--played,0%) 100%) center / 100% .22rem no-repeat; }
#reel-seek::-webkit-slider-thumb { appearance:none; height:.65rem; aspect-ratio:1; background:#d8f8ee; border-radius:50%; }
#reel-seek::-moz-range-thumb { width:.65rem; height:.65rem; border:0; background:#d8f8ee; border-radius:50%; }
#reel-clock,.scene-position { font: .73rem/1.15 var(--mono); color:#c6d1e1; font-variant-numeric:tabular-nums; white-space:nowrap; }
.scene-position { color:#acbbce; border-left:1px solid #485165; padding-left:.85rem; }
.deck-controls #loop-scene { width:auto; padding:0 .5rem; font:600 .76rem/1.15 var(--display); border:1px solid #414b5e; }
#loop-scene[aria-pressed=true] { background:#314942; color:#c9f9e8; }
.scene-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(7.4rem,1fr); padding:0 .85rem .65rem; gap:.45rem; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#536077 transparent; }
.scene-item { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; border:1px solid #394253; border-radius:.4rem; background:#141924; color:#ccd3df; padding:0; text-align:left; overflow:hidden; cursor:pointer; }
.scene-item:hover { border-color:#8f9db2; }
.scene-item[aria-pressed=true] { border-color:#92d8ca; background:#263630; color:#e7fcf4; }
.scene-image { display:block; flex:none; aspect-ratio:3.65; overflow:hidden; position:relative; background:#1c222b; }
.scene-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.scene-item strong,.scene-item small { display:block; margin:0 .43rem; line-height:1.25; }
.scene-item strong { font-weight:650; font-size:.82rem; margin-top:.34rem; }
.scene-item small { color:#a9b9c8; font:.63rem/1.4 var(--mono); margin-top:auto; padding-top:.12rem; margin-bottom:.31rem; }
.scene-item[aria-pressed=true] small { color:#a8d4c6; }
.deck-caption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.3rem 1rem; margin:.7rem .1rem 0; font-size:.88rem; color:#b2becd; }
.deck-caption a { color:#b9b4ed; font-size:.8rem; text-decoration:underline; text-underline-offset:.2em; }
@media(max-width:1000px) {
  .masthead h1 { font-size:clamp(3.6rem,8.8vw,6rem); }
  .intro .credits { max-width:69%; }
  .scene-rail { grid-auto-columns:minmax(7.5rem,1fr); }
}
@media(max-width:680px) {
  .header-inner { min-height:3.05rem; }
  .masthead { padding:1.9rem 0 1.45rem; }
  .masthead h1 { font-size:clamp(2.65rem,10.8vw,4.5rem); }
  .intro .subtitle { margin:.2rem 0 0; max-width:82%; font-size:1.04rem; line-height:1.22; }
  .intro .credits { max-width:100%; padding-top:.9rem; }
  .intro .authors { max-width:97%; font-size:.86rem; gap:.13rem .55rem; }
  .intro .affiliations { font-size:.72rem; gap:.04rem .45rem; }
  .intro .resource-links { margin-top:.8rem; }
  .intro .pill { min-height:1.95rem; }
  .screening-deck { border-radius:.62rem; display:flex; flex-direction:column; }
  .deck-header { padding:.63rem .65rem; order:0; gap:.45rem; }
  .deck-header h2 { font-size:1.02rem; }
  #scene-category { font-size:.58rem; }
  .stage-modes button { padding:.26rem .36rem; font-size:.72rem; }
  .stage-options { gap:.4rem; }
  .scene-rail { order:1; grid-auto-columns: minmax(6.4rem,32%); padding:0 .58rem .55rem; gap:.27rem; }
  .scene-image { aspect-ratio:3.3; }
  .scene-item strong { font-size:.71rem; }
  .scene-item small { font-size:.59rem; }
  .stage-well { order:2; }
  .deck-controls { order:3; padding:.4rem .55rem; gap:.37rem; }
  .deck-controls button { width:1.5rem; }
  .deck-controls #loop-scene { font-size:.69rem; }
  .scene-position { padding-left:.35rem; }
  .screen-labels { inset:.35rem .38rem auto; }
  .screen-labels span { font-size:.59rem; }
  .deck-caption { font-size:.79rem; }
}
@media(max-width:360px) { .scene-rail {grid-auto-columns:36%;} .scene-position {font-size:.66rem;} }

/* nocturne.css */
/* Dark screening-room palette shared by the research sections and their viewers. */
:root {
  --night-base: #0d1018;
  --night-surface: #151a25;
  --night-raised: #1b2130;
  --night-line: #353d50;
  --night-rule: #292f40;
  --night-text: #f1f3f9;
  --night-secondary: #b1bbcc;
  --night-lavender: #b5aeff;
  --night-aqua: #83ddd3;
}

.section, .abstract, footer, dialog {
  color-scheme: dark;
  --ink: var(--night-text);
  --muted: var(--night-secondary);
  --green: var(--night-aqua);
  --deep-green: var(--night-aqua);
  --line: var(--night-rule);
  --wash: var(--night-raised);
  --paper: var(--night-base);
  --white: var(--night-surface);
  color: var(--night-text);
}
.section, .abstract, footer { background: var(--night-base); border-color: var(--night-rule); }
.section h2, .abstract h2, .qual-heading, .dialog-header h2 { color: var(--night-text); }
.section-heading > p, .method-notes p, .qual-observation, .abstract-inner > div:last-child p { color: var(--night-secondary); }
.section .eyebrow, .abstract .eyebrow, dialog .eyebrow { color: var(--night-lavender); }
.section :focus-visible, .abstract :focus-visible, footer :focus-visible, dialog :focus-visible { outline-color: var(--night-aqua); }
.section ::selection, .abstract ::selection, dialog ::selection { background: #455979; color: #fff; }

.gallery { background: linear-gradient(180deg, #10141e 0%, var(--night-base) 18%); }
.gallery .section-heading { align-items: end; }
.gallery-toolbar { border-block: 1px solid var(--night-rule); padding-block: .68rem; margin-bottom: 1.2rem; }
.filter, .qual-choice, .qual-zoom, .gallery .pill, .section .button, dialog .button, .dismiss {
  color: #d8dfed;
  background: var(--night-surface);
  border-color: var(--night-line);
}
.filter:hover, .qual-choice:hover, .qual-zoom:hover, .gallery .pill:hover, .section .button:hover, dialog .button:hover, .dismiss:hover {
  color: #fff;
  border-color: #718097;
  background: #252d40;
}
.filter[aria-pressed=true], .qual-choice[aria-pressed=true] {
  background: var(--night-text);
  border-color: var(--night-text);
  color: #141722;
}
#gallery-count, .card-meta { color: #adb9ce; }
.gallery-picture {
  background: #141820;
  border-radius: .55rem;
  outline: 1px solid #ffffff1c;
  outline-offset: -1px;
}
.gallery-action {
  background: #121720d9;
  backdrop-filter: blur(5px);
  border-color: #ffffff80;
  color: #fff;
  transition: background .18s, color .18s, border-color .18s;
}
.gallery-card { align-self: start; }
.gallery-card strong { color: var(--night-text); }
.gallery-card:hover strong, .gallery-card:focus-visible strong { color: var(--night-aqua); }
.gallery-card:hover .gallery-action, .gallery-card:focus-visible .gallery-action {
  color: #10161b;
  background: var(--night-aqua);
  border-color: var(--night-aqua);
}
.abstract {
  background: radial-gradient(ellipse at 7% 95%, #1c2335 0%, transparent 58%), #121620;
}
.abstract-inner > div:last-child p:first-child { color: #e5e9f2; }
.trajectory { background: #0e111a; }
.trajectory-card { border-color: var(--night-line); background: #181e2a; }
.toggle-group { background: #0f131c; border: 1px solid #31394b; }
.toggle-group button, .trajectory-steps button { color: #c3cddd; }
.trajectory-steps { border-color: var(--night-line); }
.trajectory-steps button { background: #202737; }
.toggle-group button:hover, .trajectory-steps button:hover { background: #2a3346; color: #f2f4fa; }
.toggle-group button[aria-pressed=true], .trajectory-steps button[aria-pressed=true] {
  color: #100f1f;
  border-color: var(--night-lavender);
  background: var(--night-lavender);
}
.trajectory-image { background-color: #11151e; }
.trajectory-frames figcaption { color: #d4dceb; }
.trajectory-note { font-variant-numeric: tabular-nums; }
.method-notes article { border-top-color: #455069; }
.method-notes article h3 { color: #ebedfa; }
.benchmark { background: #11151e; }
.benchmark-stats { border-color: var(--night-line); }
.benchmark-stats dt { color: #b7ece6; font-variant-numeric: tabular-nums; }
.figure-card { background: var(--night-surface); border-color: var(--night-line); }
.figure-card .figure-trigger, #enlarged-figure { background: #fff; color-scheme: light; }
.figure-card .figure-trigger { padding: clamp(.6rem, 2vw, 1.4rem); }
.figure-card .zoom { background: #151c29f0; color: #f4f6fb; border-color: #606980; }
.figure-card figcaption { border-color: var(--night-line); color: #ced7e6; }

.results { background: #0e1119; }
.result-highlights { border-color: var(--night-line); }
.result-highlights span:first-child { color: #d5dceb; }
.result-highlights strong { color: var(--night-aqua); }
.result-highlights small { color: #acbec5; }
.score-explorer, .score-panel { background: var(--night-surface); }
.score-explorer, .score-tabs, .score-views { border-color: var(--night-line); }
.score-tabs, .score-views { background: #10151f; }
.score-tabs button, .score-views button, .score-tools label > span, .chart-metric { color: #c5cede; }
.score-tabs button[aria-selected=true] { background: #c2bcff; color: #151225; }
.score-tabs button:hover, .score-views button:hover { border-color: #6c7486; }
.score-views button[aria-pressed=true] { background: #36334e; color: #e5e2ff; }
.score-explorer select { background: #212837; border-color: #515d72; color: #f0f3f8; }
.score-explorer select option { color: #f0f3f8; background: #212837; }
.score-scroll { scrollbar-color: #535e72 var(--night-surface); }
.score-scroll thead th {
  background: #202635;
  color: #e1e5f0;
  border-color: var(--night-line);
}
.score-scroll thead small, .cue-label { color: #abb6c9; }
.score-scroll tbody tr > :first-child { border-color: var(--night-rule); background: var(--night-surface); }
.score-scroll tbody td { color: #c9d1df; border-color: var(--night-rule); }
.score-scroll tbody td strong { color: #f7fafb; }
.score-scroll tbody .reference-row > td, .score-scroll tbody .reference-row > :first-child {
  background: #1e3337;
  border-color: #385455;
}
.score-scroll .reference-row > th, .score-scroll .reference-row strong { color: #a4eee3; }
.score-foot a, #results noscript a { color: #bcb8ff; }
.score-name { color: #d6ddec; }
.score-track { background: #2b3444; }
.score-track i { background: #7c8da4; }
.reference-bar .score-track i { background: linear-gradient(90deg,#5bafa9,var(--night-aqua)); }
.reference-bar .score-name, .reference-bar strong { color: var(--night-aqua); }
.qual-panel { padding-top: clamp(1.3rem, 3vw, 2rem); border-top: 1px solid var(--night-line); }
.qual-zoom[aria-pressed=true] { background: #312f46; color: #e0dbff; border-color: #645f8d; }
.qual-zoom[aria-pressed=true]::before { box-shadow: inset 0 0 0 1px #312f46; }
.qual-metadata { color: #b4c0d2; }
.qual-tile { border-color: var(--night-line); background: var(--night-surface); }
.qual-view { background: #121620; }
.qual-name { color: #dbe1ed; }
.qual-ours { border-color: #4d807d; }
.qual-ours .qual-name { background: #213637; color: #a1eee2; }

.citation { background: #11151d; }
.bib { background: #0b0f17; border-color: var(--night-line); padding: clamp(.85rem, 2vw, 1.35rem); }
.bib pre { color: #c3cee5; font: .89rem/1.6 var(--mono,monospace); }
.bib .copy { color: #e0ddff; }
.footer-inner > a:last-child:hover { color: var(--night-aqua); }
dialog { background: #161b26; border-color: #455068; box-shadow: 0 26px 100px #0009; }
dialog::backdrop { background: #060810ce; backdrop-filter: blur(9px); }
.dialog-header { margin-bottom: .72rem; }
.comparison-frame { background: #121620; }
.comparison-frame:focus-within { outline-color: var(--night-lavender); }
.comparison-legend span { background: #111620e5; color: #fff; }
.comparison-legend span:last-child { background: #c4f1e8ee; color: #163b36; }
.split-marker { background: #dcfff5; box-shadow: 0 0 0 1px #1c3236aa; }
.split-marker span { background: #e1fcf5; color: #16332e; border-color: #c2eee3; box-shadow: 0 1px 12px #0716176e; }
dialog .play-button { color: #122d2a; background: var(--night-aqua); border-color: var(--night-aqua); }
dialog .play-button:hover { color: #071e1b; background: #abeee6; border-color: #abeee6; }
#enlarged-figure { border-radius: .4rem; }

@media (min-width: 740px) {
  .section .section-heading { margin-bottom: 1.85rem; }
  .abstract-inner { gap: clamp(2rem, 6vw, 6rem); }
}
@media (max-width: 640px) {
  .gallery .section-heading { align-items: start; }
  .gallery-grid { gap: 1.15rem .68rem; }
  .gallery-toolbar { gap: .27rem; }
  .filter { padding: .4rem .67rem; font-size: .82rem; }
  #gallery-count { font-size: .72rem; }
  .card-meta { font-size: .68rem; }
  .result-highlights span { font-size: .75rem; }
  .score-scroll td, .score-scroll th { padding-block: .53rem; }
}
@media (max-width: 470px) {
  .score-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-tabs button { text-align: center; }
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.35rem;
  margin-top: .72rem;
}
.publication-links a {
  display: inline-flex;
  align-items: center;
  gap: .37rem;
  min-height: 1.7rem;
  color: #e3eaf0;
  font-size: .88rem;
  font-weight: 650;
}
.publication-links small { color: #b1beca; font-size: .76rem; font-weight: 450; }
.publication-links svg { flex: none; }
.publication-links a[aria-disabled="true"] { color: #bec9d2; }
.publication-links a[href]:hover { color: #a8efdb; text-decoration: underline; text-underline-offset: .2em; }

/* motion.css */
/* The title, edit instruction and moving comparison share one stage. */
.header-actions { justify-self:end; display:flex; gap:.62rem; align-items:center; }
.theme-toggle {
  --slot: 1.5rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, var(--slot));
  place-items: center;
  height: 2.12rem;
  padding: .2rem;
  border: 1px solid #596675;
  border-radius: 2rem;
  background: #151d23;
  color: #aab7c3;
  cursor: pointer;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 50%;
  width: var(--slot);
  height: var(--slot);
  border-radius: 50%;
  background: #344951;
  transform: translateY(-50%);
}
.theme-toggle svg { position: relative; width: 1rem; height: 1rem; }
.theme-moon { color: #e6faf6; }
html[data-theme="light"] .theme-toggle { background: #e7eeeb; border-color: #91a39d; color: #526960; }
html[data-theme="light"] .theme-toggle::before { background: #fff; box-shadow: 0 1px 3px #233d332e; transform: translate(var(--slot), -50%); }
html[data-theme="light"] .theme-moon { color: inherit; }
html[data-theme="light"] .theme-sun { color: #165f4f; }
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle::before { transition: transform .15s ease-out; }
}
.mobile-sections .menu-source { display: none; }
@media (max-width: 520px) {
  .header-actions .header-cite { display: none; }
  .mobile-sections .menu-source { display: block; }
}
#page-motion,.hero-caption button { display:inline-flex; gap:.46rem; align-items:center; justify-content:center; color:#d1dcd9; border:1px solid #424e56; background:#151d23; border-radius:2rem; cursor:pointer; }
#page-motion { min-height:2.12rem; padding:.3rem .68rem; font-size:.76rem; font-weight:600; white-space:nowrap; }
#page-motion:hover,.hero-caption button:hover { color:white; background:#31403f; }
.transport-icon { display:block; width:.58rem; height:.65rem; border-inline:2px solid currentColor; }
[data-playing=false] .transport-icon { width:0; height:0; border:0; border-block:5px solid transparent; border-left:7px solid currentColor; margin-left:2px; }
.mast-surface { background:radial-gradient(ellipse at 78% 47%,#203235 0%,#111b23 40%,#0d1018 68%); }
.mast-surface::before { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:.55; background-image:radial-gradient(circle,#6c9e9b50 .75px,transparent 1px); background-size:19px 19px; mask-image:linear-gradient(110deg,transparent 4%,#000 50%,transparent); }
.mast-surface::after { content:""; position:absolute; pointer-events:none; z-index:-1; inset:0 auto 0 -29%; width:35%; opacity:0; background:radial-gradient(circle,#9ce7cc 1px,transparent 1.6px) left top / 19px 19px; mask-image:linear-gradient(105deg,transparent 8%,#000 50%,transparent 80%); }
@media(prefers-reduced-motion:no-preference) {
  .mast-surface.is-running::after { animation:scan-field 4.32s linear infinite; }
}
@keyframes scan-field { 0% { transform:translateX(0); opacity:0; } 25%,68% { opacity:.22; } 100% { transform:translateX(260%); opacity:0; } }
.hero-layout { display:grid; grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr); gap:clamp(2rem,4.4vw,4.4rem); align-items:center; padding-block:clamp(2.5rem,4.7vw,5rem); }
.hero-layout .masthead { padding:0; min-width:0; }
.hero-layout .masthead h1 { font-size:clamp(3.15rem,5.75vw,5.25rem); line-height:1.04; margin-bottom:0; letter-spacing:-.064em; }
.hero-layout .masthead h1 span { background-size:160% 100%; background-image:linear-gradient(100deg,#eef3fa 5%,#daf6e9 35%,#81d8be 55%,#b8c8ef 78%,#f0f5fa 95%); }
.hero-layout .subtitle { font-size:clamp(1.03rem,1.45vw,1.44rem); max-width:28em; line-height:1.25; }
.hero-layout .credits { max-width:none; padding-top:.85rem; }
.hero-layout .authors { font-size:.88rem; gap:.17rem .7rem; }
.hero-layout .affiliations { color:#abb9c4; font-size:.75rem; }
.hero-layout .resource-links { margin-top:.95rem; }
.edit-line { display:flex; align-items:center; gap:.37rem; color:#a6e4d3; min-height:1.6rem; margin-top:.92rem; font:540 clamp(.78rem,.98vw,.94rem)/1.4 var(--mono); }
.edit-glyph { font-size:1.12em; color:#74b9ac; }
.edit-caret { width:.38rem; height:.92em; display:inline-block; background:#8cddc7; margin-left:-.13rem; }
.mast-surface.is-running .edit-caret { animation:edit-blink 1s steps(1) infinite; }
.mast-surface.is-running .masthead h1 span { animation:type-sheen 8s ease-in-out infinite alternate; }
@keyframes edit-blink { 50% {opacity:0;} }
@keyframes type-sheen { from{background-position:0 50%;} to{background-position:100% 50%;} }
.hero-monitor { position:relative; min-width:0; }
.hero-footage { position:relative; aspect-ratio:16/9; background:#10151c; overflow:hidden; border-radius:.47rem .47rem 0 0; box-shadow:0 0 0 1px #61797766,0 1.35rem 3rem -2rem #050b12; }
.hero-footage video { display:block; width:100%; height:100%; object-fit:cover; }
.footage-status { position:absolute; top:.72rem; left:.75rem; display:inline-flex; align-items:center; gap:.39rem; padding:.24rem .46rem; color:#edf8f4; background:#101818bd; border-radius:.2rem; font:640 .65rem/1.3 var(--mono); letter-spacing:.05em; text-transform:uppercase; pointer-events:none; }
.footage-status i { width:.36rem; height:.36rem; border-radius:50%; background:#d6dee8; }
.hero-monitor[data-phase="result"] .footage-status i { background:#91edbd; }
.hero-monitor[data-phase="wipe"] .footage-status i { background:#a5caff; }
.hero-timeline { display:flex; gap:.22rem; height:3px; }
.hero-timeline i { flex:1; background:#3b4a52; }
.hero-timeline i::before { content:""; display:block; width:100%; height:100%; background:#a4ebd4; transform-origin:left; transform:scaleX(var(--scene-progress,0)); }
.hero-caption { display:flex; justify-content:space-between; align-items:center; gap:.7rem; color:#e4e9f0; padding-top:.52rem; }
.hero-player-tools { display:inline-flex; align-items:center; gap:.48rem; flex:none; }
.hero-caption strong { font:590 .92rem/1.23 var(--display); letter-spacing:-.01em; }
#hero-scene-no { margin-right:.6rem; color:#9dbeb6; font:.7rem/1.4 var(--mono); font-variant-numeric:tabular-nums; }
.hero-caption button { width:1.9rem; height:1.73rem; }
.hero-caption .transport-icon { width:.44rem; height:.54rem; }
.scene-item .scene-image::after { content:""; position:absolute; bottom:0; left:0; right:0; height:2px; background:#a8efce; transform:scaleX(0); transform-origin:left; }
.scene-item[aria-pressed=true] .scene-image::after { transform:scaleX(var(--scene-progress,0)); }
.result-highlights > div { position:relative; }
.result-highlights .gain-track { display:block; align-self:stretch; height:3px; background:#45505b; margin:.3rem 0 .25rem; }
.gain-track i { display:block; height:100%; width:var(--gain); background:linear-gradient(90deg,#76bcac,#bbf4cf); transform-origin:left; }
@media(prefers-reduced-motion:no-preference) {
  html:not(.motion-paused) .enter-section { animation:arrive .76s cubic-bezier(.19,.76,.24,1) both; }
  html:not(.motion-paused) .enter-section .gain-track i,
  html:not(.motion-paused) .ranking .score-track i { animation:grow-bar 1s cubic-bezier(.2,.72,.24,1) both; transform-origin:left; }
  html:not(.motion-paused) .enter-section .gain-track i { animation-delay:var(--delay,0s); }
}
@keyframes arrive { from { transform:translateY(14px); opacity:.25; } to { transform:translateY(0); opacity:1; } }
@keyframes grow-bar { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media(max-width:1080px) {
  .hero-layout { gap:1.8rem; }
  #page-motion { min-width:2.14rem; padding:.3rem; }
  .motion-text { display:none; }
}
@media(max-width:800px) {
  .hero-layout { grid-template-columns:1fr; gap:1.6rem; padding-block:2rem 1.6rem; }
  .hero-layout .masthead h1 { font-size:clamp(2.85rem,8.2vw,4.45rem); }
  .hero-layout .masthead,.hero-monitor { max-width:39rem; width:100%; justify-self:center; }
  .header-actions { gap:.35rem; }
}
@media(max-width:480px) {
  .hero-layout { padding-block:1.55rem 1.2rem; gap:1.15rem; }
  .hero-layout .masthead h1 { font-size:clamp(2.55rem,10.65vw,3.17rem); }
  .hero-layout .subtitle { max-width:100%; }
  .hero-layout .authors { font-size:.81rem; }
  .hero-layout .affiliations { font-size:.68rem; }
  .hero-layout .credits { padding-top:.55rem; }
  .hero-layout .resource-links,.edit-line { margin-top:.59rem; }
  .header-inner { gap:.42rem; }
}

/* method-motion.css */
.trajectory-card[data-atlas-ready][data-task=overlay] { --atlas: url('../../assets/trajectory/overlay.webp'); }
.trajectory-card[data-atlas-ready][data-task=object] { --atlas: url('../../assets/trajectory/object.webp'); }
.trajectory-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(.3rem,.9vw,.75rem); }
.trajectory-steps button { position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; padding:.24rem .24rem .4rem; gap:.24rem; line-height:1.25; text-indent:.3rem; border-radius:.4rem; }
.step-thumbnail { display:block; width:100%; aspect-ratio:416 / 240; border-radius:.2rem; background-image:var(--atlas); background-size:300% 300%; opacity:.72; }
.trajectory-steps button[aria-pressed=true] .step-thumbnail, .trajectory-steps button:hover .step-thumbnail { opacity:1; }
.trajectory-steps button::after, .method-tour-stages button::after { content:""; position:absolute; left:0; bottom:0; height:3px; width:100%; background:#9bede0; transform:scaleX(0); transform-origin:left; }
.trajectory-card.motion-running .trajectory-steps button[aria-pressed=true]::after, .method-tour.motion-running .method-tour-stages button[aria-pressed=true]::after { animation:method-tick var(--tick-length) linear both; }
@keyframes method-tick { from {transform:scaleX(0)} to {transform:scaleX(1)} }

.method-tour-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.6rem; background:#181e2a; padding:.75rem 1rem; border-bottom:1px solid #374153; }
.method-tour-stages { display:flex; gap:.35rem; flex-wrap:wrap; }
.method-tour-stages button { position:relative; overflow:hidden; padding:.42rem .68rem; background:transparent; border:1px solid #465167; border-radius:.42rem; color:#c8d2e2; font-weight:620; font-size:.83rem; cursor:pointer; }
.method-tour-stages button[aria-pressed=true] { color:#d4f9ee; background:#25423d; border-color:#629b90; }
#play-method-tour,#replay-trajectory { min-height:2.15rem; padding:.38rem .72rem; font-size:.83rem; }
.method-plate { display:block; position:relative; overflow:hidden; }
.method-tour .method-plate img { display:block; width:100%; padding-top:0; }
.method-spot { position:absolute; box-sizing:border-box; border:2px solid #3b746e; border-radius:.38rem; box-shadow:0 0 0 130vmax rgba(12,18,28,.25); pointer-events:none; transition: left .6s ease, top .6s ease, width .6s ease, height .6s ease; }
.method-tour figcaption { min-height:3.1rem; }

@media(max-width:680px) {
  .trajectory-steps { gap:.24rem; }
  .trajectory-steps button { padding:.11rem .11rem .28rem; text-indent:.12rem; font-size:.75rem; }
  .method-tour-toolbar { padding:.5rem .42rem; gap:.38rem; }
  .method-tour-stages { gap:.22rem; }
  .method-tour-stages button { font-size:.69rem; padding:.32rem .35rem; }
  #play-method-tour,#replay-trajectory { font-size:.73rem; padding:.32rem .45rem; min-height:1.95rem; }
  .method-spot { border-width:1.5px; border-radius:.18rem; }
  .method-tour figcaption { min-height:4.2rem; }
}
@media(prefers-reduced-motion:reduce) {
  .method-spot { transition:none; }
  .motion-running .trajectory-steps button::after, .motion-running .method-tour-stages button::after { animation:none!important; }
}
html.motion-paused .method-spot { transition:none; }

/* gallery-motion.css */
/* The moving preview composites both halves of one frame-matched video. */
.gallery-live {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease-out;
}
.gallery-live.has-frame { opacity: 1; }
.gallery-picture .gallery-decoder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  opacity: 0;
}
.gallery-live canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.gallery-live::before, .gallery-live::after {
  position: absolute;
  top: .55rem;
  z-index: 1;
  border-radius: .22rem;
  padding: .2rem .4rem;
  font: 600 .63rem/1.28 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gallery-live::before { content: "Original"; left: .55rem; background: #10151ded; color: #f4f6fa; }
.gallery-live::after { content: "Erased"; right: .55rem; background: #d6f8e9ed; color: #153c34; }
.gallery-live[data-phase="result"]::before, .gallery-live[data-phase="original"]::after { visibility: hidden; }
.gallery-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #ccffef;
  box-shadow: 0 0 6px #123e3590;
}
.gallery-live[data-phase="result"] .gallery-seam, .gallery-live[data-phase="original"] .gallery-seam { opacity: 0; }
@media (max-width: 600px) {
  .gallery-live::before, .gallery-live::after { top: .3rem; padding: .13rem .24rem; font-size: .53rem; }
  .gallery-live::before { left: .3rem; }
  .gallery-live::after { right: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .gallery-live { transition: none; } }

/* results-tour.css */
/* The same controls drive the selection, animated plot and printable table. */
#results .section-heading { align-items:center; }
#results .section-heading > p { max-width:42ch; }
.score-tour-head { background:#1c2432; display:flex; align-items:center; gap:.6rem; padding:.72rem .95rem; border-bottom:1px solid #3a4352; }
.score-tour-head .score-tabs { background:none; border:0; padding:0; flex:1; gap:.22rem; }
.score-tour-head .score-tabs button { padding:.38rem .66rem; font-size:.85rem; border-radius:.38rem; }
.score-tour-head .score-tabs button[aria-selected=true] { background:#c9ebde; border-color:#c9ebde; color:#132a24; }
#score-tour { display:flex; gap:.4rem; align-items:center; justify-content:center; flex-shrink:0; padding:.42rem .62rem; border:1px solid #526367; background:#172023; color:#d8efe7; border-radius:2rem; font-size:.76rem; font-weight:620; cursor:pointer; }
#score-tour:hover { background:#283b37; }
#score-tour .transport-icon { height:.57rem; width:.46rem; }
#score-tour[data-playing=false] .transport-icon { width:0; height:0; }
.score-panel[data-view=chart] { display:grid; grid-template-columns:minmax(11.2rem, .8fr) minmax(0,2.2fr); gap:1rem clamp(1rem,2.6vw,2.3rem); }
.score-panel[data-view=chart] .score-tools { grid-column:1/-1; padding-bottom:.85rem; border-bottom:1px solid #35404d; }
.score-panel[data-view=chart] #score-chart { min-width:0; }
.score-panel[data-view=chart] .score-summary { padding-top:.15rem; }
.score-panel[data-view=chart] #score-context { font-size:.87rem; line-height:1.55; margin-top:.8rem; color:#afbac9; }
.score-panel[data-view=table] #score-reading { display:none; }
.score-panel .score-foot { grid-column:1/-1; margin-top:.3rem; }
#score-reading > span { color:#b2c7c2; font-size:.8rem; }
#score-reading > p { display:flex; align-items:baseline; gap:.3rem; flex-wrap:wrap; margin:.18rem 0 -.04rem; }
#reading-score { font:650 clamp(2.15rem,3.6vw,3.8rem)/1.12 var(--display); letter-spacing:-.055em; color:#a6e7cd; font-variant-numeric:tabular-nums; }
#reading-unit { font-size:.95rem; color:#b7cfc4; }
#metric-ranking .ranking { align-content:start; min-height:15.2rem; gap:.45rem; margin-bottom:.55rem; }
#metric-ranking .ranking li { min-height:1.45rem; grid-template-columns:minmax(6.9rem,1.18fr) minmax(3rem,2.5fr) minmax(3.6rem,auto); }
#metric-ranking .score-track { height:.67rem; background-color:#242e3d; background-image:repeating-linear-gradient(to right,transparent 0 calc(25% - 1px),#495661 0 25%); border-radius:2px; }
#metric-ranking .score-track i { border-radius:2px; background:linear-gradient(90deg,#526375,#8da1b5); animation:none; }
#metric-ranking .reference-bar .score-track i { background:linear-gradient(90deg,#38947c,#a7e9cc); }
#metric-ranking .ranking strong { font-family:var(--mono); font-size:.79rem; color:#d4deeb; }
#metric-ranking .reference-bar strong { color:#b1f1da; }
#metric-ranking .score-name { overflow-wrap:anywhere; }
@media(prefers-reduced-motion:no-preference) {
  html:not(.motion-paused) #metric-ranking.bars-in .ranking .score-track i { animation:task-score-in .82s cubic-bezier(.33,1,.68,1) var(--row-delay) both; }
}
@keyframes task-score-in { from {transform:scaleX(0);} to {transform:scaleX(1);} }
@media(max-width:760px) {
  .score-tour-head { flex-wrap:wrap; align-items:flex-start; padding:.65rem; }
  .score-tour-head .score-tabs { gap:.15rem; }
  .score-tour-head .score-tabs button { font-size:.79rem; padding:.36rem .48rem; }
  .score-panel[data-view=chart] { display:block; }
  .score-panel[data-view=chart] .score-summary { display:flex; align-items:center; gap:1rem; padding-block:.55rem; }
  .score-panel[data-view=chart] #score-context { flex:1; margin:0; font-size:.77rem; }
  #score-reading { flex:0 1 42%; }
  #reading-score { font-size:2rem; }
  #score-reading > span { font-size:.72rem; }
  #metric-ranking .ranking { gap:.26rem; min-height:14rem; }
  #metric-ranking .ranking li { grid-template-columns:minmax(5.5rem,1.1fr) minmax(2.3rem,1.65fr) 3.7rem; }
  #metric-ranking .ranking strong { font-size:.73rem; }
}
@media(max-width:410px) {
  .score-tour-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.2rem; }
  #score-tour { font-size:.7rem; padding:.37rem .43rem; }
}

.score-tour-head .score-tabs button { position:relative; overflow:hidden; }
.tour-meter { position:absolute; height:2px; bottom:0; inset-inline:0; background:#3b9f7d; transform:scaleX(0); transform-origin:left; }
.score-panel[data-view=table] #score-reading { display:none; }
.score-legend { margin:.65rem 0 -.2rem; display:flex; flex-wrap:wrap; gap:.42rem .86rem; align-items:center; }
.score-legend span { display:inline-flex; align-items:center; gap:.33rem; color:#bac7d4; font-size:.71rem; }
.score-legend span::before { content:""; width:.52rem; height:.52rem; border-radius:2px; background:var(--key); }
.key-instruction { --key:#87a9d6; }
.key-box { --key:#b4a5d6; }
.key-model { --key:#9be1bf; }
#metric-ranking .box-guided-bar .score-track i { background:linear-gradient(90deg,#75678e,#b4a5d6); }
#metric-ranking .instruction-bar .score-track i { background:linear-gradient(90deg,#526d92,#87a9d6); }
@media(max-width:760px) {
  .score-tour-head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:.34rem; }
  .score-tour-head .score-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.16rem; }
  .score-tour-head .score-tabs button { padding:.28rem .14rem; min-height:2rem; line-height:1.15; white-space:normal; text-wrap:balance; }
  #score-tour { width:2rem; height:2rem; padding:0; }
  #score-tour span:last-child { display:none; }
}

#score-example-link { color:#aee6d1; font-size:.81rem; text-decoration:underline; text-underline-offset:.22em; }
#task-previews { scroll-margin-top:4.5rem; }
@media(max-width:760px) {
  .score-panel[data-view=chart] .score-summary { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:.35rem .75rem; }
  .score-panel[data-view=chart] #score-reading { grid-row:span 2; }
  #score-example-link { font-size:.74rem; }
}

/* task-previews.css */
#task-previews { display:grid; grid-template-columns:minmax(15rem,.84fr) minmax(0,1.16fr); gap:clamp(1rem,3vw,2.8rem); align-items:center; background:#151a23; border:1px solid #343c4a; border-radius:.75rem; margin:1.5rem 0 1rem; padding:clamp(.85rem,1.8vw,1.5rem); color:#f1f4fa; }
#task-previews[hidden] { display:none; }
.task-preview-copy h3 { margin:0 0 .7rem; color:#f1f4fa; font:650 clamp(1.15rem,1.8vw,1.65rem)/1.15 var(--display); letter-spacing:-.035em; }
.task-preview-tabs { display:flex; flex-wrap:wrap; gap:.29rem; margin-bottom:.9rem; }
.task-preview-tabs button,#task-preview-play { min-height:1.95rem; padding:.24rem .58rem; font:580 .8rem/1.25 var(--display); border:1px solid #465261; color:#c6d2dd; background:#1a222d; border-radius:1rem; cursor:pointer; }
.task-preview-tabs button:hover,#task-preview-play:hover { background:#2c3943; color:#fff; }
.task-preview-tabs button[aria-pressed=true] { border-color:#9ad8c4; background:#b7ead7; color:#173427; }
.task-preview-copy h4 { font:620 1rem/1.35 var(--display); margin:0; color:#e2ebe9; }
.task-preview-copy p { font-size:.89rem; color:#b1bdca; margin:.34rem 0 .8rem; max-width:39ch; }
#task-preview-play { min-width:5.5rem; font-size:.75rem; border-radius:.35rem; }
.task-preview-figure { width:100%; max-width:31rem; justify-self:end; }
.task-preview-stage { position:relative; overflow:hidden; background:#0a0e13; border:1px solid #3a4552; border-radius:.38rem; aspect-ratio:16/9; }
.task-preview-stage canvas { width:100%; height:100%; display:block; }
.task-preview-divider { display:none; width:1px; position:absolute; left:var(--preview-split,56%); inset-block:0; background:#c1f8de; box-shadow:0 0 .35rem #11292188; }
.task-split .task-preview-divider { display:block; }
.task-preview-phase { position:absolute; top:.49rem; left:.5rem; color:#f5fbf9; background:#0c1419cf; font:600 .65rem/1.3 var(--mono); border-radius:.17rem; padding:.18rem .34rem; }
.task-preview-figure figcaption { display:flex; gap:.6rem; align-items:center; padding:.21rem .02rem 0; color:#aebeca; font:550 .72rem/1.28 var(--display); }
.task-preview-figure input { flex:1; min-width:2rem; cursor:ew-resize; height:1.55rem; margin:0; accent-color:#9dd9c8; }
@media(max-width:680px) {
  #task-previews { grid-template-columns:minmax(0,1fr); gap:.72rem; }
  .task-preview-copy { display:grid; grid-template-columns:1fr auto; }
  .task-preview-copy h3 { align-self:center; margin:0; }
  .task-preview-tabs { grid-column:1/-1; grid-row:2; margin:.55rem 0; }
  .task-preview-copy h4,.task-preview-copy p { grid-column:1/-1; }
  .task-preview-copy p { max-width:none; margin:.13rem 0 0; font-size:.82rem; }
  #task-preview-play { grid-column:2; grid-row:1; }
  .task-preview-figure { max-width:none; }
}

/* light-theme.css */
/* The player chrome and research views share the light palette. Overlays on
   footage keep their original contrast so videos and comparisons stay intact. */
html[data-theme="light"] {
  color-scheme: light;
  --night-base: #fafbf8;
  --night-surface: #fff;
  --night-raised: #edf2ef;
  --night-line: #bbc9c5;
  --night-rule: #d5dfd9;
  --night-text: #182b30;
  --night-secondary: #455b65;
  --night-lavender: #57477e;
  --night-aqua: #0b6959;
  --mint-wash: #e1f2e9;
  --mint-line: #94baaf;
  --violet-wash: #eeebf5;
  --ink: var(--night-text);
  --muted: var(--night-secondary);
  --green: var(--night-aqua);
  --deep-green: #124f43;
  --line: var(--night-rule);
  --wash: var(--night-raised);
  --paper: var(--night-base);
  --white: #fff;
  color: var(--ink);
  background: var(--paper);
}
html[data-theme="light"] :is(body, .intro) { color: var(--ink); background: var(--paper); }
html[data-theme="light"] :is(.section, .abstract, footer, dialog) { color-scheme: light; }
html[data-theme="light"] ::selection { color: #123b32; background: #bce8d6; }
html[data-theme="light"] :focus-visible { outline-color: #146f7b; }

html[data-theme="light"] .site-header { background: rgb(253 254 251 / 95%); border-color: var(--line); }
html[data-theme="light"] .site-header .brand { color: var(--ink); }
html[data-theme="light"] :is(.site-header nav a, .mobile-sections summary) { color: var(--muted); }
html[data-theme="light"] :is(.site-header nav a:hover, .mobile-sections summary:hover) { color: var(--deep-green); }
html[data-theme="light"] .mobile-sections[open] nav { background: #fff; border-color: var(--night-line); }
html[data-theme="light"] .read-progress { background: linear-gradient(90deg, #087766, #656197); }
html[data-theme="light"] :is(.header-cite, .hero-caption button, #page-motion) {
  color: var(--ink);
  background: #fff;
  border-color: var(--night-line);
}
html[data-theme="light"] :is(.header-cite, .hero-caption button, #page-motion):hover {
  color: var(--deep-green);
  background: var(--mint-wash);
  border-color: var(--mint-line);
}

html[data-theme="light"] .mast-surface {
  background: radial-gradient(ellipse at 77% 39%, #e2efe9 0%, #f1f5ed 38%, var(--paper) 72%);
}
html[data-theme="light"] .mast-surface::before { background-image: radial-gradient(circle, #45776952 .75px, transparent 1px); }
html[data-theme="light"] .mast-surface::after { background-image: radial-gradient(circle, #47917d 1px, transparent 1.6px); }
html[data-theme="light"] .masthead h1 { color: var(--ink); }
html[data-theme="light"] .hero-layout .masthead h1 span {
  background-image: linear-gradient(100deg, #264942 5%, #176b52 35%, #287e6c 55%, #52558b 78%, #244b50 95%);
}
html[data-theme="light"] :is(.intro .subtitle, .hero-caption, .intro .authors, .publication-links a) { color: var(--ink); }
html[data-theme="light"] :is(.hero-layout .affiliations, .publication-links small, .publication-links a[aria-disabled="true"]) {
  color: var(--muted);
}
html[data-theme="light"] .intro sup { color: var(--night-lavender); }
html[data-theme="light"] :is(.edit-line, .edit-glyph, #hero-scene-no, .publication-links a[href]:hover) { color: var(--night-aqua); }
html[data-theme="light"] :is(.edit-caret, .hero-timeline i::before) { background: var(--night-aqua); }
html[data-theme="light"] .hero-timeline i { background: #bbcfc6; }
html[data-theme="light"] .intro .pill { color: var(--ink); background: #fff; border-color: var(--night-line); }
html[data-theme="light"] .intro .pill:hover { background: var(--mint-wash); border-color: var(--mint-line); }
html[data-theme="light"] .intro .pill.active { background: #164e43; border-color: #164e43; color: #fff; }
html[data-theme="light"] .intro .pill.active:hover { background: #0b3a32; border-color: #0b3a32; }

html[data-theme="light"] .screening-deck {
  color: var(--ink);
  background: #fff;
  border-color: var(--night-line);
  box-shadow: 0 16px 45px -30px #344f4b52;
}
html[data-theme="light"] .stage-well { background: #e9eeeb; }
html[data-theme="light"] :is(.deck-header h2, .deck-controls button) { color: var(--ink); }
html[data-theme="light"] :is(.stage-modes, .score-views, .toggle-group) { background: var(--night-raised); border-color: var(--line); }
html[data-theme="light"] #reel-clock,
html[data-theme="light"] :is(.stage-modes button, .scene-item small, .deck-caption, .scene-position) {
  color: var(--muted);
}
html[data-theme="light"] .stage-modes button:hover { color: var(--deep-green); }
html[data-theme="light"] .stage-modes button[aria-pressed=true] { color: #fff; background: #2d514b; }
html[data-theme="light"] :is(#scene-category, .deck-caption a) { color: var(--night-aqua); }
html[data-theme="light"] .scene-rail { scrollbar-color: #a4b3ab transparent; }
html[data-theme="light"] .scene-item { background: #f9fbf9; border-color: var(--line); color: var(--ink); }
html[data-theme="light"] .scene-item:hover { border-color: #749a91; }
html[data-theme="light"] .scene-item[aria-pressed=true] { color: #124d40; border-color: #558d7c; background: var(--mint-wash); }
html[data-theme="light"] .scene-item[aria-pressed=true] small { color: #345f52; }
html[data-theme="light"] :is(.scene-position, #reel-play, .deck-controls #loop-scene) { border-color: var(--night-line); }
html[data-theme="light"] .deck-controls button:hover { color: var(--deep-green); background: var(--mint-wash); }
html[data-theme="light"] #loop-scene[aria-pressed=true] { color: var(--deep-green); background: var(--mint-wash); }
html[data-theme="light"] #reel-seek {
  background-image: linear-gradient(to right, #187766 0 var(--played, 0%), #c4d1ca var(--played, 0%) 100%);
}
html[data-theme="light"] #reel-seek::-webkit-slider-thumb { background: var(--night-aqua); }
html[data-theme="light"] #reel-seek::-moz-range-thumb { background: var(--night-aqua); }

html[data-theme="light"] :is(.gallery, .results) { background: #fff; }
html[data-theme="light"] .abstract { background: linear-gradient(110deg, #e9f2ed, #f3f4f0 77%); }
html[data-theme="light"] :is(.trajectory, .benchmark, .citation) { background: var(--night-base); }
html[data-theme="light"] :is(.abstract-inner > div:last-child p:first-child, .method-notes article h3) { color: var(--ink); }
html[data-theme="light"] :is(.filter, .qual-choice, .qual-zoom, .gallery .pill, .section .button, dialog .button, .dismiss) {
  color: var(--ink); background: #fff; border-color: var(--night-line);
}
html[data-theme="light"] :is(.filter, .qual-choice, .qual-zoom, .gallery .pill, .section .button, dialog .button, .dismiss):hover {
  color: var(--deep-green); background: var(--mint-wash); border-color: var(--mint-line);
}
html[data-theme="light"] :is(.filter, .qual-choice)[aria-pressed=true] { color: #fff; background: #245447; border-color: #245447; }
html[data-theme="light"] :is(#gallery-count, .card-meta, .qual-metadata) { color: var(--muted); }
html[data-theme="light"] .gallery-card:is(:hover, :focus-visible) .gallery-action { color: #fff; background: #185b4c; }
html[data-theme="light"] .gallery-picture { outline-color: #1e413921; }

html[data-theme="light"] :is(.trajectory-card, .figure-card, .method-tour-toolbar) { background: #fff; border-color: var(--line); }
html[data-theme="light"] :is(.trajectory-steps button, .toggle-group button, .method-tour-stages button) { color: var(--muted); }
html[data-theme="light"] :is(.trajectory-steps button, .method-tour-stages button) { border-color: var(--line); background: #f5f8f4; }
html[data-theme="light"] :is(.trajectory-steps button, .toggle-group button, .method-tour-stages button):hover {
  background: var(--night-raised); color: var(--ink);
}
html[data-theme="light"] :is(.trajectory-steps button, .toggle-group button, .method-tour-stages button)[aria-pressed=true] {
  background: var(--mint-wash); border-color: var(--mint-line); color: var(--deep-green);
}
html[data-theme="light"] :is(.trajectory-steps button, .method-tour-stages button)::after { background: var(--night-aqua); }
html[data-theme="light"] :is(.trajectory-frames figcaption, .figure-card figcaption) { color: var(--muted); }
html[data-theme="light"] .method-notes article { border-top-color: var(--mint-line); }
html[data-theme="light"] .benchmark-stats dt { color: var(--night-aqua); }
html[data-theme="light"] .figure-card .zoom { background: #fff; border-color: var(--night-line); color: var(--ink); }

html[data-theme="light"] :is(.score-tour-head, .score-scroll thead th) { background: var(--night-raised); border-color: var(--line); }
html[data-theme="light"] .score-panel[data-view=chart] .score-tools { border-color: var(--line); }
html[data-theme="light"] :is(.score-tabs button, .score-views button, .score-tools label > span, .chart-metric,
  .score-name, .score-legend span, .score-scroll thead th, .cue-label, .score-scroll thead small, .score-scroll tbody td) {
  color: var(--muted);
}
html[data-theme="light"] .score-tour-head .score-tabs button[aria-selected=true] {
  color: #fff; background: #245447; border-color: #245447;
}
html[data-theme="light"] :is(.score-views button[aria-pressed=true], .qual-zoom[aria-pressed=true]) {
  color: #473965; background: var(--violet-wash); border-color: #c0b5d0;
}
html[data-theme="light"] .qual-zoom[aria-pressed=true]::before { box-shadow: inset 0 0 0 1px var(--violet-wash); }
html[data-theme="light"] :is(.score-explorer select, .score-explorer select option) {
  color: var(--ink); background: #fff; border-color: var(--night-line);
}
html[data-theme="light"] :is(#score-reading > span, #reading-unit, .score-panel[data-view=chart] #score-context, .result-highlights small) {
  color: var(--muted);
}
html[data-theme="light"] :is(#reading-score, #score-example-link) { color: var(--night-aqua); }
html[data-theme="light"] #score-tour { color: var(--deep-green); background: #fff; border-color: var(--mint-line); }
html[data-theme="light"] #score-tour:hover { background: var(--mint-wash); }
html[data-theme="light"] .score-scroll { scrollbar-color: #a4b3ab #fff; }
html[data-theme="light"] :is(.score-scroll tbody td strong, .result-highlights span:first-child) { color: var(--ink); }
html[data-theme="light"] .score-scroll tbody .reference-row > :is(th, td) { background: var(--mint-wash); border-color: var(--mint-line); }
html[data-theme="light"] .score-scroll tbody .reference-row :is(strong, .cue-label),
html[data-theme="light"] .score-scroll tbody .reference-row > :is(th, td) { color: var(--deep-green); }
html[data-theme="light"] :is(.score-foot a, #results noscript a) { color: var(--night-lavender); }
html[data-theme="light"] .result-highlights .gain-track { background: var(--night-rule); }
html[data-theme="light"] .gain-track i { background: linear-gradient(90deg, #157463, #5c9784); }
html[data-theme="light"] #metric-ranking .score-track {
  background-color: #ecf1ee;
  background-image: repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), #c8d3ce 0 25%);
}
html[data-theme="light"] #metric-ranking .score-track i { background: #7e8f96; }
html[data-theme="light"] #metric-ranking .box-guided-bar .score-track i { background: #84769f; }
html[data-theme="light"] #metric-ranking .instruction-bar .score-track i { background: #647e9d; }
html[data-theme="light"] #metric-ranking .reference-bar .score-track i { background: linear-gradient(90deg, #136952, #3b8971); }
html[data-theme="light"] #metric-ranking .ranking strong { color: var(--ink); }
html[data-theme="light"] #metric-ranking .reference-bar :is(.score-name, strong) { color: var(--deep-green); }
html[data-theme="light"] .key-instruction { --key: #647e9d; }
html[data-theme="light"] .key-box { --key: #84769f; }
html[data-theme="light"] .key-model { --key: #136952; }

html[data-theme="light"] #task-previews { color: var(--ink); background: #fff; border-color: var(--line); }
html[data-theme="light"] :is(.task-preview-copy h3, .task-preview-copy h4, .qual-name) { color: var(--ink); }
html[data-theme="light"] :is(.task-preview-copy p, .task-preview-figure figcaption) { color: var(--muted); }
html[data-theme="light"] .task-preview-figure input { accent-color: var(--night-aqua); }
html[data-theme="light"] :is(.task-preview-tabs button, #task-preview-play) { color: var(--ink); background: #fff; border-color: var(--night-line); }
html[data-theme="light"] :is(.task-preview-tabs button:hover, #task-preview-play:hover, .task-preview-tabs button[aria-pressed=true]) {
  color: var(--deep-green); background: var(--mint-wash); border-color: var(--mint-line);
}
html[data-theme="light"] .qual-ours .qual-name { color: var(--deep-green); background: var(--mint-wash); }
html[data-theme="light"] .qual-ours { border-color: var(--mint-line); }
html[data-theme="light"] .bib { background: #fff; }
html[data-theme="light"] .bib pre { color: var(--muted); }
html[data-theme="light"] .bib .copy { color: var(--night-lavender); }
html[data-theme="light"] dialog { color: var(--ink); background: #fff; border-color: var(--night-line); box-shadow: 0 24px 85px #152c2b40; }
html[data-theme="light"] dialog::backdrop { background: #19292e94; }
html[data-theme="light"] dialog .play-button { color: #fff; background: #185b4c; border-color: #185b4c; }
html[data-theme="light"] dialog .play-button:hover { color: #fff; background: #104638; border-color: #104638; }
