:root {
  --ink: #1d2330;
  --ink-2: #4a5263;
  --ink-3: #7a8293;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --accent: #2a78d6;
  --accent-2: #eb6834;
  /* camera markers in the configuration viewer (2D plots + 3D view); each theme can override */
  --test-color: #ff2bd6;   /* magenta */
  --train-color: #2a78d6;
  --train-color-3d: #5aa9ff;
  --accent-3: #1baf7a;
  /* methods in the per-scene plots: same hues as the paper figures */
  --m-nerf: #9467bd; --m-dsnerf: #2ca02c; --m-adgs: #1f77b4; --m-3dgs: #ff7f0e; --m-dropgs: #d62728;
  --radius: 10px;
  --wide: 1180px;
  --text: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); }
img, video { display: block; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }

/* top navigation */
.topnav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 14px; height: 52px; overflow-x: auto;
}
.topnav .brand { font-weight: 700; white-space: nowrap; color: var(--ink); text-decoration: none; }
.topnav a.navlink { color: var(--ink-2); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.topnav a.navlink:hover, .topnav a.navlink.current { color: var(--accent); }

/* layout */
section { padding: 56px 20px; }
section:nth-of-type(even) { background: var(--bg-2); }
.wrap { max-width: var(--wide); margin: 0 auto; }
.prose { max-width: var(--text); margin: 0 auto; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: 1.85rem; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 30px 0 8px; }
.lead { color: var(--ink-2); font-size: 1.08rem; }
.small { font-size: 0.9rem; color: var(--ink-3); }

/* hero */
.hero { text-align: center; padding-top: 64px; }
.authors { font-size: 1.15rem; margin: 6px 0; }
.authors span { margin: 0 10px; white-space: nowrap; }
.affil { color: var(--ink-2); margin-bottom: 22px; }
.buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; cursor: pointer;
  font-family: inherit;
}
.btn.ghost { background: #fff; color: var(--ink); }
.btn.disabled { opacity: 0.45; pointer-events: none; }
.btn:hover { filter: brightness(1.15); }
.btn.small-btn { padding: 6px 14px; font-size: 14px; }
.teaser-caption { max-width: var(--text); margin: 14px auto 0; color: var(--ink-2); font-size: 0.98rem; }

/* video comparisons */
.vcomp { margin: 26px 0 40px; }
.vcomp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.vcomp-head h3 { margin: 0; }
.vcomp-grid { display: grid; gap: 8px; margin-top: 10px; }
.vcomp-grid.n2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.vcomp-grid.n3 { grid-template-columns: repeat(3, 1fr); max-width: 880px; }
.vcomp-grid.n4 { grid-template-columns: repeat(4, 1fr); }
.vcell { position: relative; border-radius: 6px; overflow: hidden; background: #111; }
.vcell video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.vcell .tag {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 13px; line-height: 1.5;
}
.vcell .score {
  position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums;
}
.vcell.gt .tag { background: rgba(27, 175, 122, 0.85); }
.vcomp-note { color: var(--ink-2); font-size: 0.95rem; margin: 6px 0 0; max-width: var(--text); }
.vcomp-side { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.vcomp-side figure { margin: 10px 0 0; }
.vcomp-side figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 6px; }
.disclosure { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; color: var(--ink-2); font-size: 0.95rem; max-width: var(--text); }
.playctl { font-size: 14px; color: var(--ink-3); }

/* dataset */
.figure-wide { margin: 18px 0 8px; }
.figure-wide img { width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.figure-wide figcaption { color: var(--ink-2); font-size: 0.93rem; margin-top: 8px; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.scene-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene-card img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.scene-card .meta { padding: 10px 14px 12px; }
.scene-card .meta b { font-size: 1.02rem; }
.scene-card .meta div { font-size: 0.86rem; color: var(--ink-2); }
.scene-card .meta div.sc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; font-size: 1rem; color: var(--ink); }
.scene-card .meta a.scene-cfg { font-size: 0.86rem; text-decoration: none; white-space: nowrap; }
.scene-card .meta a.scene-cfg:hover { text-decoration: underline; }
table.data { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.94rem; background: #fff; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data th { font-weight: 600; color: var(--ink-2); background: var(--bg-2); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.capture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.capture-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.capture-grid video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.capture-grid figcaption { padding: 8px 12px; font-size: 0.88rem; color: var(--ink-2); }

/* configuration viewer */
.viewer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 5px 13px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ctl-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.ctl-row > div { min-width: 180px; }
.ctl-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 4px; }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 8px; }
.plots { display: grid; gap: 10px; }
.plot-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 4px; }
.plot-card .plot-title { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.plot-card svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.info { border: 1px solid var(--line); border-radius: 8px; padding: 14px; align-self: start; }
.info .scene-name { font-weight: 700; font-size: 1.05rem; }
.info .cfg-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--bg-2); padding: 3px 7px; border-radius: 4px; display: inline-block; margin: 6px 0; word-break: break-all; }
.info .count { font-size: 2rem; font-weight: 700; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.info .count-sub { color: var(--ink-2); font-size: 0.9rem; }
.info .desc { font-size: 0.92rem; color: var(--ink-2); margin: 10px 0 12px; }
.info .actions { display: grid; gap: 8px; }
.info .actions .btn { justify-content: center; }
.info .names { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); max-height: 92px; overflow: auto; background: var(--bg-2); border-radius: 6px; padding: 6px 8px; margin-top: 10px; word-break: break-all; }
.tooltip {
  position: fixed; pointer-events: none; z-index: 50; background: var(--ink); color: #fff;
  padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
  opacity: 0; transition: opacity 0.08s;
}
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 14px; opacity: 0; transition: opacity 0.2s; z-index: 60; }
.toast.show { opacity: 1; }

/* findings */
.finding { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding img { width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.finding .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.finding h3 { margin: 4px 0 8px; font-size: 1.3rem; }
.finding p { margin: 0 0 8px; color: var(--ink-2); }
.lightbox { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.86); display: none; align-items: center; justify-content: center; z-index: 70; cursor: zoom-out; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; background: #fff; border-radius: 6px; }

/* how to use */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin: 0 0 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
pre.bib { background: #1d2330; color: #e8ebf2; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; position: relative; }
.copy-bib { float: right; }
.placeholder { background: #fff4d6; border-radius: 4px; padding: 0 4px; }
footer { text-align: center; color: var(--ink-3); font-size: 0.88rem; padding: 34px 20px 46px; }

@media (max-width: 900px) {
  .viewer-body { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 1fr; }
  .vcomp-grid.n4 { grid-template-columns: repeat(2, 1fr); }
  .vcomp-side { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vcomp-grid.n3 { grid-template-columns: repeat(3, 1fr); }
  body { font-size: 16px; }
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.data { min-width: 560px; }
@media (max-width: 560px) {
  .vcomp-head { flex-direction: column; gap: 6px; }
  .hero h1 { font-size: 2rem; }
  pre.bib { font-size: 12px; }
  table.data code { word-break: break-all; }
}
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.authors span { margin: 0; }
@media (max-width: 700px) {
  .topnav a.navlink { display: none; }
}

/* hero video, walkthroughs */
.hero-video { max-width: 1100px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #111; }
.hero-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.walk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 30px; }
.wide-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 10px 0 30px; }
.walk-grid figure, .wide-grid figure { margin: 0; border-radius: 8px; overflow: hidden; background: #111; position: relative; }
.walk-grid video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wide-grid video { width: 100%; height: auto; }
.walk-grid figcaption, .wide-grid figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 6px; }

/* valley chart */
.valley-chart { position: relative; margin: 6px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 10px; }
.valley-chart svg { width: 100%; height: auto; display: block; }
.valley-chart figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 6px; }
.valley-tip { position: absolute; background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 6px; pointer-events: none; min-width: 180px; }
.valley-tip i, .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* explore widgets */
.explore { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 10px 0 30px; }
.explore input[type=range] { width: 100%; max-width: 760px; display: block; margin: 14px auto 4px; accent-color: var(--accent); }
.caption-strong { text-align: center; font-weight: 600; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.tv-row { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 10px; align-items: end; max-width: 680px; margin: 0 auto; }
.tv-row figure { margin: 0; }
.tv-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; }
.tv-row figcaption { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 4px; }
.vcw-row { max-width: 380px; margin: 0 auto; }
.imgcmp { position: relative; overflow: hidden; border-radius: 6px; cursor: ew-resize; touch-action: none; user-select: none; }
.imgcmp img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; pointer-events: none; }
.imgcmp .imgcmp-top { position: absolute; inset: 0; }
.imgcmp-bar { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); transform: translateX(-1px); }
.imgcmp-bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.imgcmp .tag { position: absolute; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.imgcmp .tag.l { left: 8px; background: rgba(27,175,122,.85); }
.imgcmp .tag.r { right: 8px; }
@media (max-width: 900px) { .walk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .walk-grid { grid-template-columns: 1fr; }
  .tv-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tv-row .tv-center { grid-column: 1 / span 2; order: -1; max-width: 300px; justify-self: center; width: 100%; }
}

/* 3D configuration view */
.view3d { width: 100%; height: 460px; border-radius: 6px; overflow: hidden; background: #14161c; touch-action: none; }
/* the 3D view waits for a click (2026-12-01): the scene's photo, darkened, with a load button */
.view3d { position: relative; }
.view3d-gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  background-position: center; background-size: cover; background-repeat: no-repeat; z-index: 2; }
.view3d-gate .btn { background: #fff; color: #14161c; border-color: #fff; }
.view3d-gate .btn:disabled { opacity: .85; cursor: progress; }
.view3d-gate span { color: #e6e9f0; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.view3d canvas { display: block; width: 100% !important; height: 100% !important; }
.view3d-ctl { display: inline-flex; gap: 10px; align-items: center; }
.view3d-ctl label { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.view3d-ctl .chip { padding: 2px 10px; font-size: 12.5px; }
.plot-card .plot-title { flex-wrap: wrap; gap: 4px 10px; }
@media (max-width: 560px) { .view3d { height: 320px; } }

/* three-panel comparison crops */
.triple-list { display: grid; gap: 22px; margin: 14px 0 14px; }
.triple { margin: 0; }
.triple video { width: 100%; height: auto; display: block; border-radius: 8px; background: #111; }
.triple figcaption { font-size: 0.93rem; color: var(--ink-2); margin-top: 6px; max-width: var(--text); }
.disclosure.gen { border-left-color: #b05c12; background: #fff7ef; padding: 10px 14px; border-radius: 0 8px 8px 0; }

/* layout polish (2026-11-29) */
.hero-video { max-width: 980px; }
.scene-grid { grid-template-columns: repeat(3, 1fr); }
.capture-grid { grid-template-columns: repeat(3, 1fr); }
.vcomp.narrow { max-width: 880px; }
.vcomp.narrow .vcomp-grid.n3 { max-width: none; }
@media (max-width: 900px) { .scene-grid, .capture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scene-grid, .capture-grid { grid-template-columns: 1fr; } }
.swipe-hint { display: none; }
@media (max-width: 600px) {
  .triple-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  .triple-scroll video { min-width: 860px; border-radius: 0; }
  .swipe-hint { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
}
.triple-list { grid-template-columns: minmax(0, 1fr); }
.triple, .triple-scroll { min-width: 0; max-width: 100%; }

/* ---------- media control bar (2026-11-29) ---------- */
.mbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; height: 30px; padding: 0 10px; font: inherit; font-size: 13px; cursor: pointer; }
.mbtn svg { width: 16px; height: 16px; fill: currentColor; }
.mbtn.mplay { width: 30px; padding: 0; justify-content: center; }
.mbtn:hover { border-color: var(--ink-3); }
.mspeeds { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.mspeeds button { border: 0; background: transparent; font: inherit; font-size: 13px; padding: 0 10px; height: 28px; cursor: pointer; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mspeeds button + button { border-left: 1px solid var(--line); }
.mspeeds button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mfull { margin-left: auto; }
.hero-video .mbar { justify-content: center; padding: 0 0 10px; }
.hero-video { background: transparent; overflow: visible; }
.hero-video video { border-radius: 12px; background: #111; display: block; }
video { cursor: pointer; }

/* full screen: whatever group is full screen fills the screen on black, videos fit without cropping */
[data-media]:fullscreen { background: #0b0c10; padding: 24px; display: flex; flex-direction: column; justify-content: center; overflow: auto; max-width: none !important; }
[data-media]:-webkit-full-screen { background: #0b0c10; padding: 24px; display: flex; flex-direction: column; justify-content: center; overflow: auto; max-width: none !important; }
[data-media]:fullscreen h3, [data-media]:fullscreen figcaption, [data-media]:fullscreen .vcomp-note { color: #e8ebf2; }
[data-media]:fullscreen .vcomp-grid { max-width: none; width: 100%; margin: 0 auto; }
[data-media]:fullscreen .vcell video, [data-media]:fullscreen video { max-height: 82vh; object-fit: contain; }
[data-media]:fullscreen .mbar { justify-content: center; }
[data-media]:fullscreen .mbtn, [data-media]:fullscreen .mspeeds { background: #1c1f27; color: #e8ebf2; border-color: #333846; }
[data-media]:fullscreen .mspeeds button { color: #c9ced8; }
[data-media]:fullscreen .mspeeds button[aria-pressed="true"] { background: #e8ebf2; color: #111; }
[data-media]:fullscreen .triple-scroll video { min-width: 0; width: 100%; }

/* ---------- scene explorer ---------- */
.explorer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 10px 0 34px; }
.ex-stage { display: grid; grid-template-columns: 3fr 8fr; gap: 12px; align-items: start; margin-top: 4px; }
.ex-stage figure { margin: 0; }
.ex-stage video { width: 100%; display: block; border-radius: 8px; background: #111; }
.ex-real video { aspect-ratio: 2 / 3; object-fit: cover; }
.ex-fly video { aspect-ratio: 16 / 9; object-fit: cover; }
.ex-stage figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.explorer:fullscreen .ex-stage { width: 100%; }
.explorer:fullscreen .ex-real video, .explorer:fullscreen .ex-fly video { max-height: 80vh; }
@media (max-width: 700px) { .ex-stage { grid-template-columns: 1fr; } .ex-real { max-width: 360px; margin: 0 auto !important; } }

/* ---------- capture videos in their true shapes ---------- */
.capture-land { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.capture-port { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.capture-land figure, .capture-port figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.capture-land video { width: 100%; aspect-ratio: 900 / 584; object-fit: contain; background: #fff; display: block; border-radius: 6px; }
.capture-port video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 6px; background: #111; }
.capture-land figcaption, .capture-port figcaption { font-size: 0.86rem; color: var(--ink-2); margin-top: 8px; }
.capture-land .mfull span, .capture-port .mfull span { display: none; }
.capture-port .mspeeds button { padding: 0 6px; }
@media (max-width: 900px) { .capture-port { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .capture-land { grid-template-columns: 1fr; } }
[data-media]:fullscreen .vcomp-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-media]:fullscreen .vcomp-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 120vh; }

/* version switcher (review aid) */
.version-switch { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.94); border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 12.5px; }
.version-switch span { padding: 0 8px; color: #7a8293; }
.version-switch a { padding: 4px 10px; border-radius: 999px; color: #1d2330; text-decoration: none; }
.version-switch a[aria-current="page"] { background: #1d2330; color: #fff; }
/* six versions: letters only, plus the name of the current one (all names on hover) */
.version-switch .vs-name { display: none; }   /* letters only; names on hover (title) */
@media (max-width: 560px) { .version-switch span { display: none; } .version-switch { font-size: 12px; } }

.ex-fly figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ex-paths { margin: 0; gap: 4px; }
.ex-paths .chip { padding: 2px 10px; font-size: 12.5px; }
@media (max-width: 700px) {
  .version-switch a { padding: 3px 8px; }
  .ex-real { max-width: 250px; }
}

/* 3D viewer, 'views' mode (index_views.html): pre-rendered backdrop + camera overlay, 16:9 so both line up exactly */
.view3d.vmode { height: auto; position: relative; }
.v3d-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #14161c; border-radius: 6px; }
.v3d-stage canvas { position: absolute; inset: 0; cursor: grab; }
.v3d-stage canvas:active { cursor: grabbing; }
.v3d-bgwrap { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%); }
.v3d-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .12s linear; transform-origin: 50% 50%; user-select: none; pointer-events: none; }
.v3d-bg.on { opacity: 1; }
.v3d-photo { position: absolute; left: 10px; bottom: 10px; width: clamp(132px, 20%, 210px); background: rgba(14,16,22,.9); border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; padding: 6px; color: #e8ebf1; font-size: 11.5px; line-height: 1.35; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.v3d-photo img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: #222; }
.v3d-photo .v3d-cap { margin-top: 5px; }
.v3d-photo .v3d-cap b { display: block; font-size: 11px; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3d-photo .v3d-cap span { display: block; color: #b9c0cc; font-size: 10.5px; }
.v3d-photo .v3d-x { position: absolute; top: 2px; right: 4px; border: 0; background: rgba(0,0,0,.55); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 20px; }
.v3d-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.v3d-zoom button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(14,16,22,.75); color: #fff; font-size: 16px; cursor: pointer; }
.view3d.vmode:fullscreen { display: flex; align-items: center; justify-content: center; background: #14161c; }
.view3d.vmode:fullscreen .v3d-stage { width: min(100vw, 177.78vh); border-radius: 0; }
.view3d-ctl .view3d-mode { font-weight: 600; }

/* Videos section, last block: flights rendered from the 25 cm grid only (510 photos) */
.g25-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 14px 0; }
.g25 { margin: 0; min-width: 0; }
.g25 video { width: 100%; height: auto; display: block; border-radius: 8px; background: #111; aspect-ratio: 1280 / 854; }
.g25 figcaption { font-size: 0.93rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 860px) { .g25-list { grid-template-columns: minmax(0, 1fr); } }

/* Walkthroughs explorer: a full-screen button on each video */
.ex-stage figure { position: relative; }
.vfs { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(0,0,0,.55);
  color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .85; z-index: 2; }
.vfs:hover, .vfs:focus-visible { opacity: 1; background: rgba(0,0,0,.75); }
.vfs svg { width: 20px; height: 20px; fill: currentColor; }

/* SSIM valley chart: the playhead follows the theme's text colour (light on the dark Cinema theme) */
.valley-plot .valley-marker { stroke: var(--ink); }
/* Walkthroughs: a single rendered fly-through; Videos: real photographs of the dense test line */
.ex-stage.single { grid-template-columns: minmax(0, 1fr); }
.ex-stage.single-port { grid-template-columns: minmax(0, 360px); justify-content: center; }
/* nav with nine links: tighter spacing; the version switcher shows letters only (the 'Design' label is in its tooltip) */
.topnav-inner { gap: 12px; }
.topnav a.navlink { font-size: 14px; }
.version-switch > span:first-child { display: none; }
/* 3D viewer: which reconstruction (all photos / grid only) */
.view3d-srcs { display: inline-flex; gap: 4px; margin-right: 4px; }

/* Light / Dark toggle (index.html = light, the default; dark.html = dark) */
.theme-toggle { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--ink-3); }
.theme-toggle svg { width: 16px; height: 16px; fill: currentColor; }
/* figures carry width/height attributes (space reserved before loading); keep them responsive */
.figure-wide img, .finding img { height: auto; }

/* title video scene label (HTML, synced to the video; the glide reel has no burned-in names) */
.hero-video { position: relative; }
.hero-label { position: absolute; left: 22px; bottom: 64px; padding: 5px 14px; border-radius: 10px; background: rgba(0,0,0,.55);
  color: #fff; font-weight: 700; font-size: clamp(15px, 1.9vw, 24px); pointer-events: none; letter-spacing: .01em; }
.hero-label:empty { display: none; }
/* light page, full screen: the video (max 82vh tall, 16:9) sits centred above the control bar */
[data-media]:fullscreen .hero-label, [data-media]:-webkit-full-screen .hero-label { bottom: 104px; left: calc(50% - min(50% - 24px, 72.9vh) + 18px); font-size: 26px; }

/* ---------- heading hierarchy (2026-11-30): section title > sub-heading > clip/item title ---------- */
section h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; }
section h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.hero h2::before { display: none; }
/* sub-headings inside a section: a divider line above, clearly smaller than the section title */
.wrap > h3, .prose > h3 { font-size: 1.38rem; font-weight: 700; margin: 56px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.wrap > h2 + h3, .prose > h2 + h3, .wrap > h2 + p + h3, .prose > h2 + p + h3 { margin-top: 22px; padding-top: 0; border-top: 0; }
/* titles of individual clips / comparisons: small, quieter, they label the block right below them */
.vcomp-head h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.vcomp { margin: 18px 0 34px; }

/* numbered steps (How to use): accent circles, readable in both designs */
.steps li::before { background: var(--accent); color: #fff; font-weight: 700; }

/* "Request this configuration" menu: mail app / Gmail / Outlook.com / copy */
.req-menu { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg-2); }
.req-menu .req-to { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.req-menu .req-to b { overflow-wrap: anywhere; }
.req-menu .req-to b { color: var(--ink); }
.req-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.req-opts .btn { justify-content: center; }

/* ---------- per-scene analysis ---------- */
.ps .ps-controls { display: grid; gap: 2px; }
.ps .ps-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps .ps-row .chips { margin: 4px 0; }
.ps .ps-label { width: 120px; flex: none; font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.ps .ps-label b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; letter-spacing: 0; }
.ps .ps-param input[type=range] { flex: 1; max-width: 420px; margin: 8px 0; }
.ps .ps-val { font-variant-numeric: tabular-nums; min-width: 64px; }
.ps .ps-desc { margin: 12px 0 16px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.ps .ps-desc p { margin: 0; }
.ps .ps-q { color: var(--ink); }
.ps .ps-what { color: var(--ink-2); font-size: 0.93rem; margin-top: 4px !important; }
.ps-table { margin-top: 12px; }
table.ps-mean { width: auto; min-width: 420px; font-size: 0.9rem; margin: 0; }
table.ps-mean caption { text-align: left; font-size: 0.88rem; color: var(--ink-2); padding-bottom: 6px; }
table.ps-mean td i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
table.ps-mean th button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; padding: 0; }
table.ps-mean .on { background: var(--bg-2); }
table.ps-mean th.on button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* phones (2026-12-01): the table fits the screen instead of widening the page; if still too wide it scrolls inside its box */
.ps-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  table.ps-mean { min-width: 0; width: 100%; font-size: 0.8rem; }
  table.ps-mean th, table.ps-mean td { padding: 6px 4px; }
  table.ps-mean td i { width: 7px; height: 7px; margin-right: 4px; }
  table.ps-mean caption { font-size: 0.8rem; }
}
.ps figure { margin: 0; }
.ps .ps-head { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.ps .ps-head .small { font-weight: 400; }
.ps-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.ps-strip svg, .ps-plot svg { width: 100%; height: auto; display: block; }
.ps .ps-cam path { stroke-width: 1.5; }
.ps .ps-cam.train path { fill: var(--accent); stroke: var(--accent); }
.ps .ps-cam.test path { fill: var(--test-color); stroke: var(--test-color); }
.ps .ps-testline { stroke: var(--test-color); stroke-width: 3; }
.ps .ps-baseline { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 2 3; }
.ps .ps-tick, .ps .ps-zoomlink { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.ps .ps-zoomlink { stroke-dasharray: 3 3; }
.ps .ps-zoombox { fill: none; stroke: var(--ink-3); stroke-width: 1; rx: 4; }
.ps .ps-cursor { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 3 3; }
/* renders (scripts/build_per_scene_media.py): the playhead follows the videos, in the plot and on the camera strip */
.ps .ps-playhead, .ps .ps-playcursor { stroke: var(--ink); stroke-width: 2; }
.ps-media { margin: 0 0 18px; }
.ps-media .vcomp-grid { margin-top: 2px; }
.ps-media .mbar { margin-top: 6px; }
.ps-media-note { margin: 0; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-mrow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.ps-loc div { position: relative; }
.ps-loc img { width: 100%; display: block; border-radius: 6px; }
.ps-loc i { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .35); border-radius: 2px; }
.ps-loc figcaption { font-size: 12px; color: var(--ink-3); margin-top: 4px; text-align: center; }
.ps-mcells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ps-mcell .vcell video, .ps-mcell .imgcmp img { aspect-ratio: 1 / 1; }
.ps-mcell .imgcmp { aspect-ratio: 1 / 1; background: var(--bg-2); }
.ps-mcell .imgcmp .tag { font-size: 11px; padding: 1px 6px; top: 6px; }
.ps-mcell .imgcmp .tag.l { left: 6px; } .ps-mcell .imgcmp .tag.r { right: 6px; }
.ps-mcap { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13.5px; flex-wrap: wrap; }
.ps-mcap i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ps-mcap i.gt { background: var(--accent-3); }
.ps-mcap span { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.ps-mcap b { color: var(--ink); }
.ps-cmp-none { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.ps-mnote { margin: 8px 0 0; }
@media (max-width: 700px) {
  .ps-mrow { grid-template-columns: 1fr; }
  .ps-loc { display: flex; gap: 10px; align-items: end; }
  .ps-loc div { width: 70px; }
  .ps-mcells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ps svg text.ps-ax { font-size: 12px; fill: var(--ink-3); }
.ps svg text.ps-ax-title { font-size: 12.5px; fill: var(--ink-2); }
.ps .ps-gridline { stroke: var(--line); }
.ps .ps-guide { stroke: var(--accent); stroke-opacity: .28; stroke-dasharray: 2 4; }
.ps .ps-guide-cam { fill: var(--accent); }
.ps .ps-current { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ps .ps-hover { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.ps .ps-dot { stroke: var(--bg); stroke-width: 2; }
.ps-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ps-thumbs.two figure { width: 190px; }
.ps-thumbs.more figure { flex: 1 1 0; max-width: 118px; min-width: 0; }
.ps-thumbs figure { cursor: zoom-in; }
.ps-thumbs img { transition: transform .12s ease, box-shadow .12s ease; }
.ps-thumbs figure:hover img { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.ps .ps-cam.hl path { stroke: var(--ink); stroke-width: 3; }
/* large photo viewer */
.ps-lb { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 14, .88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ps-lb[hidden] { display: none; }
.ps-lb-box { position: relative; display: flex; align-items: center; gap: 14px; max-width: 100%; }
.ps-lb figure { margin: 0; text-align: center; }
.ps-lb img { display: block; height: min(80vh, 1080px); width: auto; max-width: 78vw; aspect-ratio: 2 / 3; object-fit: contain; border-radius: 8px; background: #111; }
.ps-lb figcaption { color: #e9ecf3; font-size: 14px; margin-top: 10px; }
.ps-lb figcaption b { color: #8fbcff; } .ps-lb figcaption b.t { color: #ff6be3; }
.ps-lb figcaption code { background: rgba(255,255,255,.1); color: #e9ecf3; }
.ps-lb figcaption span { color: #9aa3b5; margin-left: 8px; }
.ps-lb-nav, .ps-lb-x { border: 1px solid rgba(255,255,255,.3); background: rgba(20,23,32,.85); color: #fff; border-radius: 50%; cursor: pointer; font: inherit; }
.ps-lb-nav { width: 46px; height: 46px; font-size: 28px; line-height: 1; flex: none; }
.ps-lb-nav:disabled { opacity: .25; cursor: default; }
.ps-lb-x { position: absolute; top: -8px; right: 54px; width: 36px; height: 36px; font-size: 22px; line-height: 1; z-index: 1; }
@media (max-width: 600px) { .ps-lb-box { gap: 4px; } .ps-lb-nav { width: 34px; height: 34px; font-size: 22px; } .ps-lb img { max-width: 72vw; height: auto; } .ps-lb-x { right: 40px; } }
.ps-thumbs.line { display: block; position: relative; height: 0; }
.ps-thumbs.line figure { position: absolute; top: 0; transform: translateX(-50%); }
.ps-thumbs figure { text-align: center; }
.ps-thumbs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 5px; border: 2px solid var(--accent); background: var(--bg-2); }
.ps-thumbs figure.test img { border-color: var(--test-color); }
.ps-thumbs figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-thumbs.line figcaption { font-size: 10.5px; }
.ps-chart { position: relative; border-top: 1px solid var(--line); padding-top: 14px; }
.ps-chart .legend { margin: 0 0 6px; }
.ps-chart figcaption { margin-top: 6px; }
@media (max-width: 900px) { .ps .ps-label { width: 100%; } .ps-thumbs.line figcaption { display: none; } }
@media (max-width: 600px) { .ps-thumbs { gap: 4px; } .ps-thumbs.two figure { width: 31%; } .ps-thumbs.more figcaption { font-size: 9.5px; } }

/* ---------- full-bleed title video with the title over it: both pages (moved from theme_cinema.css, user 2026-11-30) ---------- */
/* full-bleed hero with the title over the fly-through */
.hero.cine { padding: 0; position: relative; background: var(--bg); }   /* page colour under the caption; the video has its own */
.hero.cine .hero-video video { background: #000; }
.hero.cine .wrap { max-width: none; padding: 0; }
.hero.cine .hero-video { max-width: none; margin: 0; border-radius: 0; position: relative; }
/* the title video fills the first screen below the menu bar (no caption under it, user 2026-12-01); at most 4:3, so tall windows do not crop the sides much */
.hero.cine .hero-video video { border-radius: 0; aspect-ratio: auto; width: 100%; height: min(calc(100vh - var(--nav-h, 53px)), 75vw); height: min(calc(100svh - var(--nav-h, 53px)), 75vw); object-fit: cover; }
.hero.cine .hero-video .mbar { position: absolute; right: 18px; bottom: 14px; margin: 0; padding: 0; }
.hero.cine .hero-video .mbtn, .hero.cine .hero-video .mspeeds { background: rgba(10, 12, 16, 0.6) !important; color: #fff; border-color: rgba(255,255,255,0.25) !important; }
.hero.cine .overlay { position: absolute; left: 0; right: 0; top: 0; padding: 12vh 20px 30px; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,0.62), rgba(0,0,0,0)); pointer-events: none; }
.hero.cine .overlay * { pointer-events: auto; }
.hero.cine h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.hero.cine .authors, .hero.cine .affil { color: #e6e9f0; }
.hero.cine .teaser-caption { color: var(--ink-2); padding: 12px 20px 26px; margin: 0 auto; }
.hero.cine .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.65); background: rgba(8,10,14,0.35); backdrop-filter: blur(2px); }
.hero.cine .btn.disabled { background: rgba(255,255,255,0.75); color: #222; opacity: 0.8; }
.hero.cine .placeholder { background: rgba(74,60,18,0.75); }
@media (max-width: 700px) {
  .hero.cine .overlay { position: static; background: none; padding: 18px 16px 4px; }
  .hero.cine .hero-video .hero-label { top: calc(56.25vw - 34px); bottom: auto; left: 8px; font-size: 12.5px; padding: 3px 10px; }   /* phones: on the video (16:9), not under the title text */
  .hero.cine h1 { font-size: 2.1rem; text-shadow: none; color: var(--ink); }
  .hero.cine .authors, .hero.cine .affil { color: var(--ink-2); }
  .hero.cine .hero-video video { height: auto; aspect-ratio: 16 / 9; }
  .hero.cine .hero-video .mbar { position: static; justify-content: center; padding: 8px 0 0; }
  .hero.cine .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
  .hero.cine .btn.disabled { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }
}
/* full screen: show the whole title video (no cropping), letterboxed on black */
.hero.cine .hero-video:fullscreen video, .hero.cine .hero-video:-webkit-full-screen video { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.hero.cine .hero-video:fullscreen, .hero.cine .hero-video:-webkit-full-screen { padding: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.hero.cine .hero-video:fullscreen .mbar, .hero.cine .hero-video:-webkit-full-screen .mbar { position: absolute; right: 18px; bottom: 14px; }
.hero.cine .hero-video:fullscreen .overlay, .hero.cine .hero-video:-webkit-full-screen .overlay { display: none; }   /* full screen = just the video */
/* no scene name over the title video, except in full screen (both pages, user 2026-11-30) */
/* scene name + "rendered fly-through" on the title video, both pages (user, 2026-12-01) */
.hero.cine .hero-label { display: block; left: 18px; bottom: 16px; font-size: 15px; }
.hero.cine .hero-label:empty { display: none; }
.hero.cine .hero-video:fullscreen .hero-label, .hero.cine .hero-video:-webkit-full-screen .hero-label { display: block; bottom: calc(50% - min(50vh, 28.125vw) + 24px); left: calc(50% - min(50vw, 88.9vh) + 28px); }
.hero.cine .hero-video:fullscreen .hero-label:empty { display: none; }
/* link from "The space between views" to the per-scene analysis (2026-12-01) */
.more-link { margin: 14px 0 0; font-size: 0.98rem; }
.more-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
/* e-mail request: a small text link under the viewer's buttons (the Drive download is the main way to get data, 2026-12-01) */
.info .actions .req-link { justify-self: center; background: none; border: 0; padding: 2px 0; margin-top: 2px; font: inherit; font-size: 13px;
  color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.info .actions .req-link:hover { color: var(--accent); }
.info .actions .req-link.disabled { opacity: .5; cursor: default; }
/* author and affiliation links in the title area (2026-12-01) */
.authors a, .affil a { color: inherit; text-decoration: underline; text-decoration-color: rgba(127,127,127,.6); text-underline-offset: 2px; }
.authors a:hover, .affil a:hover { text-decoration-color: currentColor; }

/* ---------- phones and tablets: menu button + dropdown, 2026-12-01. The full menu needs ~1,100 px; below that its links
   were cut off (and the Light/Dark toggle pushed off-screen on tablets), so they move into the dropdown. ---------- */
.nav-menu, .nav-panel { display: none; }
@media (max-width: 1100px) {
  .topnav-inner > a.navlink { display: none; }
  .nav-menu { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; padding: 6px 12px; min-height: 36px;
    border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
  .nav-menu svg { width: 16px; height: 16px; fill: currentColor; }
  .nav-menu[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .topnav .theme-toggle { margin-left: 0; min-height: 36px; }
  .topnav .nav-panel:not([hidden]) { display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 6px 0 10px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); max-height: calc(100vh - 60px); overflow-y: auto; }
  .topnav .nav-panel a.navlink { display: block; padding: 12px 20px; font-size: 16px; color: var(--ink); }
  .topnav .nav-panel a.navlink.current { color: var(--accent); }
}
@media (max-width: 480px) {
  .topnav-inner { gap: 8px; padding: 0 14px; }
  .topnav .brand { font-size: 15px; }
  .topnav .theme-toggle span { display: none; }   /* narrowest phones: Light/Dark as an icon, "Menu" keeps its word */
  .nav-menu, .topnav .theme-toggle { padding: 6px 10px; }
}

/* ---------- phones and tablets: content fixes (2026-12-01); desktop rules above are unchanged ---------- */
@media (max-width: 900px) {
  pre.bib { white-space: pre-wrap; overflow-wrap: anywhere; }   /* the BibTeX entry wraps instead of being cut off */
}
@media (max-width: 600px) {
  /* How to use tables: wrap inside the columns instead of running off the screen */
  .table-scroll table.data { min-width: 0; }
  .table-scroll table.data th, .table-scroll table.data td { padding: 7px 6px; }
  .table-scroll table.data td:first-child code { word-break: break-all; }
  /* the SSIM chart under "The space between views" is redrawn at the phone's width in main.js (initValleyChart), no scrolling */
}

/* full screen where the browser refuses it for a page element (iPhone Safari): the 3D view covers the window instead */
.view3d.v3d-max { position: fixed !important; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 90; border-radius: 0; }
html.v3d-max-open, html.v3d-max-open body { overflow: hidden; }
.v3d-close { display: none; position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(20,22,28,.75); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.view3d.v3d-max .v3d-close, .view3d:fullscreen .v3d-close { display: block; }

/* ---------- data access request form (2026-12-02) ---------- */
.req-form { display: grid; gap: 16px; margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.rf-field { display: grid; gap: 5px; font-size: 15px; font-weight: 600; color: var(--ink); }
.rf-opt { font-weight: 400; color: var(--ink-3); }
.req-form input:not([type="checkbox"]):not([type="radio"]), .req-form select, .req-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.req-form textarea { resize: vertical; min-height: 80px; }
.req-form input:focus-visible, .req-form select:focus-visible, .req-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.req-form ::placeholder { color: var(--ink-3); }
.rf-set { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.rf-set legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.rf-check { display: flex; gap: 8px; align-items: baseline; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.rf-check input { accent-color: var(--accent); flex: none; transform: translateY(1px); }
.rf-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; padding-left: 2px; }
.rf-note { margin: 4px 0 0; font-size: 14px; color: var(--ink); border-left: 3px solid var(--accent-2); padding: 2px 0 2px 10px; }
.rf-agree { font-size: 15px; color: var(--ink); }
.rf-send { border-top: 1px solid var(--line); padding-top: 14px; }
.rf-to { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.rf-to b { color: var(--ink); overflow-wrap: anywhere; }
.rf-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rf-foot { margin: 8px 0 0; }
@media (max-width: 700px) {
  .req-form { padding: 14px; }
  .rf-grid { grid-template-columns: 1fr; }
  .rf-scenes { grid-template-columns: 1fr 1fr; }
  .rf-opts { grid-template-columns: 1fr 1fr; }
}
