@font-face {
  font-family: "Source Serif 4";
  src: url("assets/editorial/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/editorial/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #202d37;
  --muted: #51616b;
  --accent: #314f65;
  --line: #d6dddf;
  --panel: #f1f4f4;
  --display: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", Helvetica, Arial, sans-serif;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.wrap { width: min(1200px, calc(100% - clamp(40px, 10vw, 144px))); }
.masthead { min-height:58px; height:auto; border:0; justify-content:center; }
.masthead nav { gap:clamp(14px, 2.5vw, 34px); }
.masthead nav a { color:#35444f; }
.masthead nav a:hover { text-decoration:underline; text-underline-offset:5px; }
.cover {
  border-block:1px solid var(--line);
  background:#fff;
}
.cover-layout { padding-block:clamp(30px,4vw,60px) 38px; }
.cover-copy { text-align:center; }
.cover h1 { max-width:980px; margin:0 auto; font:500 clamp(29px,3.5vw,48px)/1.16 var(--display); letter-spacing:-.035em; text-wrap:balance; }
.cover .project-name { display:inline; margin:0; font:inherit; font-weight:650; color:var(--ink); }
.byline { margin:22px auto 0; font-family:var(--sans); }
.byline ul { display:flex; justify-content:center; flex-wrap:wrap; list-style:none; gap:4px 22px; padding:0; margin:0; }
.byline li { white-space:nowrap; line-height:1.55; font-size:clamp(15px,1.4vw,18px); }
.byline sup { margin-left:1px; }
.byline p { margin:8px auto 0; font-size:16px; color:var(--muted); }
.byline .author-note { margin-top:4px; font-size:13px; }
.cover-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px 22px; margin-top:18px; }
.cover-tagline { max-width:680px; margin:24px auto 0; font:400 clamp(16px,1.5vw,20px)/1.5 var(--display); color:var(--muted); }
.primary-link, .text-link { display:inline-flex; gap:14px; align-items:center; min-height:44px; font-size:14px; font-weight:500; }
.primary-link { padding:9px 19px; background:var(--ink); color:white; border-radius:4px; }
.primary-link:hover { background:#385669; color:white; }
.text-link:hover { text-decoration:underline; text-underline-offset:5px; }
.cover-experiment { width:min(100%,540px); margin:22px auto 0; }
.cover-media { display:grid; grid-template-columns:minmax(0,1fr) minmax(50px,15%); gap:12px; align-items:start; }
.cover-stage { position:relative; }
.cover-media video { width:100%; aspect-ratio:1; object-fit:contain; background:#e2ddce; border-radius:4px; }
.frame-rail { display:grid; gap:clamp(4px,1vw,14px); }
.frame-rail button { width:100%; display:grid; gap:1px; padding:0; text-align:left; color:#47535b; font-size:11px; font-variant-numeric:tabular-nums; }
.frame-rail img { width:100%; aspect-ratio:1.32; object-fit:cover; border-radius:2px; opacity:.78; }
.frame-rail button:hover img, .frame-rail button[aria-pressed="true"] img { opacity:1; }
.frame-rail button[aria-pressed="true"] img { outline:2px solid var(--ink); outline-offset:2px; }
.cover-experiment figcaption { display:flex; justify-content:space-between; gap:12px; margin-top:12px; font-size:12px; color:#47545c; }
.cover-experiment figcaption strong { color:var(--ink); font-weight:550; }
h2 { font:500 clamp(28px,3.1vw,40px)/1.17 var(--display); letter-spacing:-.02em; }
.section-heading { display:grid; grid-template-columns:1.08fr 1fr; align-items:end; gap:clamp(30px,7vw,100px); max-width:none; margin:0 0 32px; text-align:left; }
.section-heading h2 { max-width:21ch; }
.section-heading > p { max-width:62ch; margin:0; font-size:16px; line-height:1.65; color:var(--muted); }
.demo, .method, .appearance, .regimes, .results { padding-block:clamp(52px,6vw,92px); }
.demo-intro h2 { font:500 clamp(28px,3.1vw,40px)/1.17 var(--display); }
.scene-tabs { margin:0 0 20px; }
.scene-tab { border-radius:4px; min-height:50px; }
.scene-tab[aria-pressed="true"] { background:#e9eff0; border-color:#617784; color:var(--ink); }
.demo-stage { gap:10px; }
.input-stack { gap:10px; }
.demo-stage figure { border-radius:4px; }
.demo figcaption { font-size:13px; font-weight:550; }
.demo .time { color:var(--muted); font-size:11px; font-weight:400; }
.demo-info { padding-inline:2px; }
.synthesis-band { background:#fff; border-block:1px solid var(--line); }
.appearance { border:0; }
.appearance .section-heading { margin-bottom:32px; }
.enhance-tabs { justify-content:flex-start; gap:5px 8px; margin:25px 0 18px; }
.enhance-tabs button { min-height:44px; border:1px solid var(--line); color:var(--ink); background:white; border-radius:4px; padding:7px 12px; }
.enhance-tabs button:hover { border-color:#667984; }
.enhance-tabs button[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:white; }
.enhance-context { border-block:1px solid var(--line); padding:15px 0; margin:22px 0 15px; }
.enhance-context img { width:46px; height:46px; }
.enhance-mode select { background:white; color:var(--ink); border-color:#acb7bc; }
.enhance-grid figcaption { border:0; padding:2px 0 10px; min-height:55px; }
.enhance-grid figcaption span { color:var(--muted); }
.enhance-controls input { accent-color:var(--accent); }
.comparison-metrics { width:100%; margin:30px 0 14px; }
.comparison-metrics caption { text-align:left; }
.comparison-metrics th,.comparison-metrics td { padding:10px 8px; }
.benchmark-scope, .metric-note { max-width:85ch; font-size:14px; line-height:1.7; color:var(--muted); }
.metrics-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
.metrics-scroll:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.metrics-scroll .comparison-metrics { min-width:980px; font-size:14px; }
.comparison-metrics td:nth-child(2) { text-align:left; }
.comparison-metrics th:first-child { min-width:150px; }
.comparison-metrics small { display:block; color:var(--muted); }
.ablation-study .comparison-metrics { min-width:590px; margin-top:12px; }
.benchmark-links { display:flex; flex-wrap:wrap; gap:8px 24px; margin:12px 0 24px; font-size:14px; }
.benchmark-links a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
#vace-guidance[hidden] { display:none; }
/* Group the collection controls together and leave a single rule at the footer. */
#gallery { padding-bottom:32px; }
.library-head { justify-content:flex-start; gap:24px 40px; border-bottom:0; margin-top:36px; padding:24px 0 0; }
.library-head > div { max-width:64ch; }
.library-head h3 { line-height:1.3; text-wrap:balance; }
.library-head p { max-width:60ch; line-height:1.6; margin-top:6px; }
.library-head button { flex-shrink:0; }
#library { padding-top:24px; }
#search-count { margin:16px 0; }
.library-card { min-width:0; align-self:start; }
@media(max-width:700px) {
  #gallery { padding-bottom:24px; }
  .library-head { margin-top:28px; padding-top:20px; }
  .library-head button { margin-top:16px; }
  #library { padding-top:20px; }
  .enhance-options .enhance-mode { flex-basis:auto; }
  .enhance-options { gap:8px 20px; }
  .enhance-options select { max-width:none; }
}
.abstract-section { display:grid; grid-template-columns:1fr minmax(0,2.2fr); gap:8%; max-width:none; border:0; padding-block:clamp(46px,5vw,76px); }
.abstract-section h2 { margin:0; text-align:left; font:500 clamp(28px,3.1vw,40px)/1.17 var(--display); }
.abstract-section>p { max-width:76ch; font-size:16px; line-height:1.8; }
.method { background:#fff; border-block:1px solid var(--line); }
.method-points { gap:28px; }
.method-points article { border-top:1px solid #b5c0c1; padding-top:15px; }
.figure-switch { display:flex; flex-wrap:wrap; gap:18px; border-bottom:1px solid #c4cccf; margin-top:36px; }
.figure-switch button { min-height:46px; border-bottom:2px solid transparent; padding:6px 2px; color:var(--muted); }
.figure-switch button[aria-pressed="true"] { border-color:var(--accent); color:var(--ink); }
.research-figure { margin-top:18px; }
.research-figure>a { background:#fff; border:1px solid var(--line); padding:clamp(6px,1.8vw,24px); }
.research-figure img { max-height:70vh; object-fit:contain; }
.research-figure figcaption, .paper-plate figcaption { max-width:87ch; margin:13px 0 0; }
.figure-link { white-space:normal; }
.regimes { border:0; }
.filters { justify-content:flex-start; }
.filters button { border-radius:4px; }
.card-media { border-radius:3px; }
.result-card h3 { font:500 23px/1.25 var(--display); }
.paper-resources { display:grid; grid-template-columns:minmax(130px,210px) minmax(0,600px); justify-content:center; align-items:center; gap:clamp(24px,7vw,105px); text-align:left; }
.report-cover img { width:100%; height:auto; border:1px solid var(--line); box-shadow:2px 4px 12px #1e2c3810; }
.paper-resource-title { max-width:44ch; margin:14px 0 10px; }
.report-resources>p:not(.paper-resource-title) { font-size:14px; color:var(--muted); }
.paper-resources .resource-links { justify-content:flex-start; }
.resource-links a { border-radius:4px; }
@media(max-width:900px) {
  .cover-media { grid-template-columns:minmax(0,1fr); }
  .frame-rail { display:flex; gap:8px; }
  .frame-rail button { width:calc((100% - 24px)/4); }
  .frame-rail img { aspect-ratio:2; }
  .cover-experiment figcaption { flex-wrap:wrap; gap:1px 10px; }
}
@media(max-width:700px) {
  .wrap { width:calc(100% - 36px); }
  .masthead { min-height:50px; padding:0; align-items:center; }
  .masthead nav { justify-content:center; flex-wrap:wrap; gap:0 12px; }
  .cover-media { grid-template-columns:minmax(0,1fr) 16%; gap:9px; }
  .frame-rail { display:grid; gap:4px; }
  .frame-rail button { width:100%; }
  .frame-rail img { aspect-ratio:1.25; }
  .cover-experiment figcaption { margin-top:9px; }
  .section-heading, .abstract-section { display:block; }
  .section-heading { margin-bottom:22px; }
  .section-heading>p { margin-top:13px; }
  .abstract-section>p { margin-top:20px; }
  .scene-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .scene-tab { display:block; padding:5px 4px; text-align:center; }
  .scene-tab img { display:none; }
  .scene-tab span { font-size:12px; }
  .enhance-tabs { margin-top:18px; }
  .enhance-tabs button { font-size:13px; padding:7px 10px; }
  .enhance-grid figcaption { min-height:64px; }
  .comparison-metrics { font-size:13px; }
  .comparison-metrics th, .comparison-metrics td { padding:9px 4px; }
  .paper-resources { grid-template-columns:minmax(86px,23%) minmax(0,1fr); align-items:start; gap:16px; }
  .report-resources h2 { font-size:34px; }
  .paper-resource-title { font-size:16px; }
  .paper-resources .resource-links { gap:7px; margin-top:16px; }
}
#cover-start { position:absolute; inset:0; width:100%; padding:0; border-radius:4px; overflow:hidden; }
#cover-start img { width:100%; height:100%; object-fit:contain; }
#cover-start span { position:absolute; left:14px; bottom:14px; font-size:13px; padding:7px 13px; border-radius:3px; background:#f9faf5f5; color:#24323c; }
#cover-start:hover span { background:white; }

.abstract-section > p, .section-heading > p, .method-points p { font-family:var(--display); }
@media(max-width:700px) {
  .byline ul { max-width:440px; margin-inline:auto; gap:5px 15px; }
  .cover h1 { line-height:1.2; }
}
@media(max-width:370px) {
  .masthead nav { flex-wrap:wrap; justify-content:center; column-gap:5px; row-gap:0; }
}

/* Keep the byline centered on the viewport and reserve a separate margin for the index. */
.page-index {
  position: fixed;
  z-index: 5;
  top: 70px;
  left: max(18px, calc((100vw - 1530px) / 2));
  width: 146px;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  background: white;
  font-family: var(--sans);
}
.contents-menu summary {
  cursor: pointer;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.contents-links { display: grid; gap: 0; margin-top: 7px; border-left: 1px solid var(--line); }
.contents-links a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  white-space: normal;
}
.contents-links a[aria-current="location"] { box-shadow: inset 2px 0 var(--accent); color: var(--ink); font-weight: 650; }
.contents-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 980px) {
  main .wrap, footer.wrap { width: min(1200px, calc(100% - 220px)); margin-left: max(194px, calc((100% - 1530px) / 2 + 182px)); margin-right: auto; }
  main .cover-layout { width: min(1200px, calc(100% - 360px)); margin-inline: auto; }
}
@media (max-width: 979px) {
  html { scroll-padding-top: 62px; }
  .page-index {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }
  .contents-menu { position: relative; }
  .contents-menu summary { padding: 13px 18px; min-height: 46px; }
  .contents-links {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: 4px 18px 12px;
    max-height: calc(100dvh - 50px);
    overflow-y: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 8px 14px #202d370a;
  }
  .contents-links a { min-height: 44px; }
}

/* All-scene synthesis collection: compact previews and a four-stage explorer. */
.preview-modes { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 20px; }
.preview-modes > span { color:var(--muted); font-size:12px; margin-right:6px; }
.preview-modes button { min-height:40px; padding:8px 12px; border:1px solid var(--line); border-radius:5px; background:transparent; font:inherit; font-size:12px; cursor:pointer; }
.preview-modes button[aria-pressed="true"] { color:#fff; background:#252b2b; border-color:#252b2b; }
.collection-media { display:block; position:relative; width:100%; aspect-ratio:1; overflow:hidden; border-radius:5px; background:#f1f2ee; }
.collection-media img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.collection-media video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; pointer-events:none; }
.preview-playing .collection-media video { opacity:1; }
.library-card .collection-media, .library-card .collection-media span { margin:0; }
.collection-badge { position:absolute; bottom:8px; left:8px; padding:4px 6px; border-radius:3px; background:rgba(255,255,255,.94); color:#303a38; font-size:10px; line-height:1.3; font-weight:600; }
.collection-play { position:absolute; top:10px; right:10px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,.94); font-size:10px; color:#303a38; }
.library-card .collection-name { display:block; margin-top:9px; }
#detail-dialog .detail-media { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
#detail-dialog .detail-media figure { min-width:0; max-width:none; grid-column:auto; }
#detail-dialog .detail-media img, #detail-dialog .detail-media video { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:#f1f2ee; }
#detail-dialog .detail-media figcaption { font-size:12px; line-height:1.5; margin-top:8px; }
.detail-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; }
.detail-controls button { min-height:42px; padding:8px 12px; background:#fff; border:1px solid var(--line); border-radius:5px; font:inherit; font-size:12px; cursor:pointer; }
.detail-controls button[aria-pressed="true"] { background:#252b2b; color:#fff; }
.detail-seek-label { flex:1; min-width:140px; font-size:11px; color:var(--muted); }
.detail-seek-label input { display:block; width:100%; accent-color:#425b51; }
#detail-time { font-size:11px; font-variant-numeric:tabular-nums; }
#detail-status { margin:8px 0 16px; font-size:11px; color:var(--muted); }
@media(max-width:900px) { #detail-dialog .detail-media { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  #detail-dialog { width:96vw; padding:18px; }
  #detail-dialog .detail-media { gap:14px 12px; }
  .preview-modes { gap:5px; margin-bottom:16px; }
  .preview-modes > span { width:100%; }
  .preview-modes button { padding:7px 9px; font-size:11px; }
  .collection-badge { bottom:5px; left:5px; font-size:8px; padding:3px 4px; }
  .collection-play { top:5px; right:5px; width:22px; height:22px; }
  .detail-seek-label { order:1; flex-basis:70%; }
  #detail-time { order:2; }
  .detail-controls { gap:7px; }
}
.library-card .collection-play { display:grid; font-size:10px; }
.library-card .collection-badge { font-size:10px; }
@media(max-width:700px) { .library-card .collection-badge { font-size:8px; } }
