@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #19211f;
  --muted: #59625b;
  --paper: #f4f4eb;
  --rule: #d5d8cd;
  --road: #19201f;
  --road-light: #26312e;
  --signal: #d6ed58;
  --motion: #ed7955;
  --display: "Space Grotesk", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
img, video { display: block; width: 100%; height: auto; }
h1, h2, h3, figure, p { margin: 0; }
h1, h2, h3, .brand, .film-name { font-family: var(--display); font-weight: 700; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 5; padding: 8px 15px; background: white; }
.skip:focus { top: 4px; }
.mast { position: sticky; top: 0; z-index: 3; color: #f4f4eb; background: #151b1a; border-bottom: 1px solid #343b36; }
.mast-inner { max-width: 1216px; width: 90%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 21px; letter-spacing: -.065em; }
.mark { display: inline-flex; align-items: flex-end; gap: 2px; transform: skew(-18deg); }
.mark i { width: 4px; height: 8px; background: var(--signal); }
.mark i:nth-child(2) { height: 13px; }
.mark i:last-child { height: 18px; }
nav { display: flex; gap: clamp(10px,2vw,30px); }
nav a, footer a { font-size: 13px; color: #e3e8dc; }
nav a:hover, footer a:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 4px; }
.container { width: min(92%,1200px); margin-inline: auto; }
.opening { position: relative; isolation: isolate; overflow: hidden; padding: clamp(34px,4.6vw,66px) 0 clamp(30px,3.8vw,56px); color: #19211f; background: #f4f4eb url("assets/hero-road.webp") center 54% / cover no-repeat; }
.opening::before { position: absolute; z-index: -1; inset: 0; content: ""; background: #131c1bd9; }
.hero { width: 92%; margin: 0 auto 30px; text-align: center; }
.hero-kicker { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 18px; color: #4f5b52; font: 400 13px/1.5 var(--mono); text-transform: uppercase; }
.hero-kicker::before, .hero-kicker::after { flex: 0 0 clamp(20px,4vw,48px); border-top: 1px dashed #6f7a6c99; content: ""; }
.hero-kicker span { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--motion); box-shadow: 0 0 0 3px #ed795526; }
.wordmark { display: block; font-size: clamp(64px,7.8vw,108px); line-height: .99; letter-spacing: -.084em; }
.wordmark > span { color: var(--signal); }
.subtitle { display: block; max-width: 32em; margin: 12px auto 0; color: #e7e9df; font-size: clamp(22px,2.4vw,35px); line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
.resources { margin-top: 21px; display: flex; justify-content: center; gap: 9px; }
.resources a { display: inline-flex; align-items: center; gap: 11px; border: 1px solid #abb2a3; border-radius: 3px; background: #18211fcf; padding: 8px 17px; color: white; font-size: 14px; }
.resource-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.github-icon { fill: currentColor; stroke: none; }
.resources .primary { background: var(--signal); border-color: var(--signal); color: #1a2119; font-weight: 650; }
.resources a:hover { box-shadow: 0 0 0 2px #e3f8a0; }
.film { max-width: 1120px; overflow: hidden; border: 1px solid #72776c; border-radius: 5px; background: #101615; box-shadow: 0 18px 55px #090d0d85; }
.film figcaption, .scene-head { padding: 9px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.film figcaption { color: #e9eee4; background: #202926; border-bottom: 1px solid #424a43; }
.film-name { font-size: 14px; }
.film video { background: black; aspect-ratio: 16 / 10; }
.chapter { padding-block: clamp(42px,5vw,76px); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding-bottom: 13px; border-bottom: 1px solid var(--rule); }
.section-title::after { content: ""; flex: 0 0 52px; height: 6px; background: repeating-linear-gradient(90deg, var(--motion) 0 10px, transparent 10px 17px); }
.eyebrow { margin-bottom: 3px; color: #68715d; font: 400 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-left: 6px; padding: 1px 5px; color: #a95b3d; background: #e8e8db; }
h2 { font-size: clamp(29px,3.5vw,48px); line-height: 1.08; letter-spacing: -.06em; }
.tldr { max-width: 1200px; }
.tldr .section-title { justify-content: center; text-align: center; }
.tldr .section-title::after { display: none; }
.tldr-copy { max-width: 850px; margin: 0 auto 24px; text-align: center; color: var(--muted); font-size: 18px; line-height: 1.55; text-wrap: balance; }
.tldr-figure { margin-inline: auto; }
.tldr-figure a { display: block; }
.method-band { background: #e9eee5; border-block: 1px solid #d5dbd0; }
.plate { padding: clamp(14px,2vw,26px); background: #fffefa; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 8px 24px #1d2a2110; }
.plate + .plate { margin-top: 22px; }
.plate a { display: block; cursor: zoom-in; }
.plate figcaption { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #e4e6dc; font-size: 15.5px; line-height: 1.58; color: var(--muted); }
.plate figcaption strong { color: var(--ink); }
.method-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 24px; border-block: 1px solid #d5dbd0; }
.method-point { min-width: 0; padding: 22px 26px 24px 0; }
.method-point + .method-point { padding-left: 26px; border-left: 1px solid #d5dbd0; }
.method-index { display: flex; align-items: center; gap: 9px; color: #a95b3d; font: 400 11px/1.4 var(--mono); }
.method-index span { color: #68715d; font-size: 9px; }
.method-point h3 { margin-top: 11px; font-size: 20px; line-height: 1.2; letter-spacing: -.035em; }
.method-point p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.group-title { margin: 32px 0 14px; font-size: 23px; line-height: 1.2; letter-spacing: -.045em; }
.results-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.results-pair .plate { margin: 0; }
.bibtex-band { background: #e8e9dd; border-top: 1px solid #d1d4c6; }
.bibtex-band .chapter { padding-block: 38px 50px; }
.citation-window { max-width: 880px; margin-inline: auto; overflow: hidden; border: 1px solid #353e36; border-radius: 5px; background: #17211e; box-shadow: 0 12px 30px #15201821; }
.citation-bar { min-height: 42px; padding: 0 16px; display: flex; align-items: center; gap: 9px; background: #dfe3d5; border-bottom: 1px solid #c7cdbd; color: #394238; font: 11px/1 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.citation-symbol { color: #4e704b; font: 700 16px/1 var(--display); }
.citation-status { margin-left: auto; color: #7f563f; font-size: 10px; }
.citation-window pre { overflow-x: auto; margin: 0; padding: 23px clamp(16px,3vw,30px) 27px; background: #17211e; color: #edf1e5; font: 13px/1.85 var(--mono); tab-size: 2; }
.citation-window code { font: inherit; }
.bib-field { color: #d6ed58; }
.bib-pending { color: #ffab7f; }
footer { border-top: 1px solid #343b36; background: #151b1a; }
footer .mast-inner { min-height: 74px; }
@media (max-width: 760px) {
  .results-pair { grid-template-columns: 1fr; }
  .method-details { grid-template-columns: 1fr; }
  .method-point, .method-point + .method-point { padding: 20px 0; }
  .method-point + .method-point { border-top: 1px solid #d5dbd0; border-left: 0; }
}
@media (max-width: 520px) {
  .container, .mast-inner { width: 92%; }
  .brand { font-size: 17px; gap: 6px; }
  .mast-inner { min-height: 46px; }
  .mast > .mast-inner { flex-wrap: wrap; padding-block: 8px; }
  .mast nav { width: 100%; justify-content: space-between; gap: 5px; }
  nav a { font-size: 11px; }
  .hero { margin-bottom: 24px; }
  .hero-kicker { gap: 7px; margin-bottom: 15px; font-size: 10px; }
  .hero-kicker::before, .hero-kicker::after { flex-basis: 8px; }
  .tldr-copy { font-size: 16px; }
  .scene-head { flex-wrap: wrap; gap: 8px 10px; }
  .film figcaption, .scene-head { padding-inline: 12px; }
  .plate figcaption { font-size: 14px; }
  .citation-window pre { font-size: 11px; }
}
.opening::before { background: #f4f4ebd9; }
.subtitle { color: #344139; }
.resources a { color: #19211f; border-color: #7c8678; background: #f4f4ebed; }
.resources .primary { color: #1a2119; background: #d6ed58; border-color: #d6ed58; }

/* The final package uses only local assets and native video controls. */
[hidden] { display: none !important; }
.resources .resource-unavailable { display: inline-flex; align-items: center; gap: 11px; padding: 8px 17px; border: 1px solid #b9bfb2; border-radius: 3px; background: #f4f4ebba; color: #59625b; font-size: 14px; }
.resource-unavailable small { margin-left: 5px; font-size: 11px; }
.scene { overflow: hidden; border: 1px solid #414c42; border-radius: 8px; color: #f6f8ed; background: var(--road); box-shadow: 0 16px 36px #10171426; }
.visualization-description { margin: -10px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.visualization-description strong { color: var(--ink); }
.scene-head { min-height: 64px; padding: 10px 22px; background: #252e29; border-bottom: 1px solid #414c42; }
.scene-title { font: 700 18px/1.3 var(--display); letter-spacing: -.025em; }
.scene-navigation { display: flex; align-items: center; gap: 16px; }
.scene-navigation button { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; color: #f6f8ed; border: 1px solid #66705e; border-radius: 50%; background: transparent; cursor: pointer; transition: background .15s, color .15s; }
.scene-navigation button:hover { background: var(--signal); border-color: var(--signal); color: var(--road); }
.scene-navigation svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#scene-count { min-width: 62px; text-align: center; color: #d5dfcb; font: 12px/1 var(--mono); }
.scene-stage { position: relative; background: #0e1513; }
.scene-stage video { width: 100%; max-height: 72vh; max-height: 72svh; aspect-ratio: 16 / 9; object-fit: contain; background: #0e1513; }
.scene-buffering { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; pointer-events: none; }
.scene-buffering[hidden] { display: none; }
.scene-buffering span { width: 11px; height: 11px; border-radius: 50%; background: #46514be6; animation: scene-buffer-pulse 1s ease-in-out infinite; }
.scene-buffering span:nth-child(2) { animation-delay: .16s; }
.scene-buffering span:nth-child(3) { animation-delay: .32s; }
@keyframes scene-buffer-pulse { 0%, 60%, 100% { opacity: .48; transform: scale(.78); } 30% { opacity: .96; transform: scale(1); } }
.scene-speed-label { position: absolute; bottom: 14px; left: 14px; z-index: 1; padding: 5px 9px; border: 1px solid #f6f8ed45; border-radius: 3px; color: #f6f8ed; background: #101615a6; font: 11px/1.2 var(--mono); letter-spacing: .035em; pointer-events: none; }
.scene-error { padding: 14px 22px; font-size: 14px; background: #252e29; color: #f6f8ed; }
.scene-error a { color: var(--signal); text-decoration: underline; }
.scene-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 20px; border-top: 1px solid #414c42; }
.scene-choice { display: block; min-width: 0; padding: 5px; border: 1px solid #4c574c; border-radius: 5px; background: #232c27; transition: border-color .18s, background .18s; }
.scene-choice:hover { border-color: #a9bb9c; background: #303b31; }
.scene-choice.is-active { border-color: var(--signal); background: #d6ed5812; box-shadow: 0 0 0 1px var(--signal); }
.scene-thumbnail { position: relative; display: block; overflow: hidden; border-radius: 2px; }
.scene-thumbnail img { aspect-ratio: 16 / 7; object-fit: cover; }
.scene-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff80; border-radius: 50%; transform: translate(-50%,-50%); color: white; background: #151b1ab8; transition: background .18s; }
.scene-play svg { width: 18px; height: 18px; fill: currentColor; }
.scene-choice:hover .scene-play, .scene-choice.is-active .scene-play { background: var(--signal); color: var(--road); border-color: var(--signal); }
.scene-choice-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 9px 6px; font: 700 15px/1.4 var(--display); }
.scene-choice-state { color: #c1ccba; font: 11px/1.4 system-ui, sans-serif; }
.is-active .scene-choice-state { color: var(--signal); }
.scene-hint { margin-top: 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .mast > .mast-inner { flex-wrap: wrap; padding-block: 10px; }
  .mast nav { width: 100%; justify-content: space-between; }
  html { scroll-padding-top: 110px; }
  .scene-picker { gap: 10px; padding: 14px; }
  .scene-choice-label { padding: 9px 3px 4px; font-size: 13px; }
  .scene-choice-state { display: none; }
}
@media (max-width: 520px) {
  .scene-head { padding-inline: 14px; }
  .scene-picker { gap: 8px; padding: 12px; }
  .scene-choice { padding: 3px; }
  .scene-thumbnail img { aspect-ratio: 4 / 3; }
  .scene-play { width: 28px; height: 28px; }
  .scene-play svg { width: 14px; height: 14px; }
  .scene-choice-label { justify-content: center; font-size: 12px; }
  .resources { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Author order and affiliation numbering follow the paper author list. */
.author-block { max-width: 960px; margin: 26px auto 0; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 auto; padding: 0; list-style: none; font-size: clamp(16px,1.4vw,19px); font-weight: 500; line-height: 1.7; }
.authors li { white-space: nowrap; }
.authors a { color: #304d40; text-decoration: underline; text-decoration-color: #84988a80; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.authors a:hover { color: #1b3024; text-decoration-color: #1b3024; }
.author-block sup { position: relative; top: -.1em; margin-left: 2px; color: #526249; font-size: .65em; line-height: 0; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 24px; margin-top: 14px; color: #4c5a50; font-size: 13px; line-height: 1.65; }
.affiliations p:first-child { flex-basis: 100%; }
.affiliations sup { margin-right: 3px; }
@media (max-width: 520px) {
  .author-block { margin-top: 22px; }
  .authors { gap: 4px 16px; font-size: 15px; }
  .affiliations { gap: 4px 14px; margin-top: 13px; font-size: 12px; }
}

@media (min-width: 761px) {
  .authors { display: grid; grid-template-columns: repeat(4,max-content); column-gap: 25px; }
}
.authors li > span { color: #304d40; }
