/* Research project page. System fonts only, no external requests. */
:root {
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --link: #0066cc;
  --dark-card: #161617;
  --dark-card-2: #1d1d1f;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --dark-link: #2997ff;
  --s1: #1f964e;
  --s2: #297ed3;
  --s3: #d58b17;
  --s4: #d74141;
  --grad: linear-gradient(92deg, #27b05e 0%, #2f8be6 38%, #e39a1e 70%, #e24b4b 100%);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
sup { font-size: .62em; line-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1068px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 22px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 253, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-inner { max-width: 1068px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; }
.nav-brand { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-right: auto; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12px; letter-spacing: -.01em; color: var(--ink); opacity: .82; transition: opacity .2s, color .2s; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; color: var(--blue); text-decoration: none; }
.nav-links .nav-reality { color: #b93624; opacity: 1; }
.nav-links .nav-reality:hover, .nav-links .nav-reality.is-active { color: #952b1c; }
.nav-toggle { display: none; width: 32px; height: 32px; border: 0; background: none; padding: 8px 6px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
.nav.is-dark { background: rgba(22, 22, 23, .82); }
.nav.is-dark.is-scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.nav.is-dark .nav-brand, .nav.is-dark .nav-links a { color: var(--dark-ink); }
.nav.is-dark .nav-links a:hover, .nav.is-dark .nav-links a.is-active { color: var(--dark-link); }
.nav.is-dark .nav-toggle span { background: var(--dark-ink); }

/* ---------- DriveRender project hero ---------- */
.hero { overflow: hidden; background: var(--bg); color: #172936; }
.hero-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  max-width: 1600px;
  min-height: clamp(540px, 44vw, 700px);
  margin-inline: auto;
}
.hero-scene {
  position: absolute;
  inset: 0 clamp(12px, 2vw, 32px) 0 auto;
  width: 64%;
  display: grid;
  align-items: center;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  -webkit-mask-image: linear-gradient(90deg, #000 34%, rgb(0 0 0 / .84) 40%, rgb(0 0 0 / .3) 49%, transparent 59%);
  mask-image: linear-gradient(90deg, #000 34%, rgb(0 0 0 / .84) 40%, rgb(0 0 0 / .3) 49%, transparent 59%);
  background: linear-gradient(90deg,
    #fff 0%, rgb(255 255 255 / .97) 20%, rgb(255 255 255 / .87) 30%,
    rgb(255 255 255 / .73) 37%, rgb(255 255 255 / .56) 42%,
    rgb(255 255 255 / .32) 48%, rgb(255 255 255 / .12) 54%, transparent 59%);
}
.hero-teaser { position: relative; width: 100%; margin: 0; }
.hero-teaser-scene { width: 100%; height: auto; aspect-ratio: 1280 / 626; }
.hero-motion-toggle {
  position: absolute; z-index: 2; right: 3%; top: 5%; width: 40px; height: 40px;
  display: grid; place-items: center; padding: 0; border: 1px solid rgb(255 255 255 / .65);
  border-radius: 50%; color: #fff; background: rgb(23 41 54 / .65); cursor: pointer;
}
.hero-motion-toggle[hidden] { display: none; }
.hero-motion-toggle:hover { background: rgb(23 41 54 / .85); }
.hero-motion-toggle .hero-play-icon, .hero-motion-toggle.is-paused .hero-pause-icon { display: none; }
.hero-motion-toggle.is-paused .hero-play-icon { display: block; }
.hero-head {
  position: relative;
  z-index: 1;
  width: 48%;
  padding: clamp(50px, 5.5vw, 88px) 0 clamp(52px, 6vw, 96px) clamp(32px, 5.7vw, 92px);
}
.hero-title { margin: 0; }
.wordmark {
  position: relative;
  display: block;
  margin-left: -.055em;
  font-size: clamp(58px, 5.8vw, 94px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.065em;
}
.hero-sub {
  display: block;
  max-width: 25ch;
  margin-top: 14px;
  font-size: clamp(25px, 2.25vw, 37px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.16;
  text-wrap: balance;
}
.hero-sub .term { white-space: nowrap; }
.authors { max-width: 59ch; text-wrap: balance; margin: 27px 0 0; color: #324552; font-size: clamp(15px, 1.13vw, 18px); line-height: 1.65; letter-spacing: -.01em; }
.authors span { display: inline-block; white-space: nowrap; }
.authors .corresponding-author { text-decoration: underline; text-underline-offset: .14em; }
.authors sup, .affiliations sup { color: #4b6574; }
.affiliations { margin-top: 13px; color: #52646d; font-size: clamp(13px, 1vw, 15px); letter-spacing: -.01em; line-height: 1.6; }
.affiliations p { margin: 0; }
.affiliation-logos { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); margin-top: 16px; }
.affiliation-logos img { width: auto; height: clamp(44px, 4vw, 58px); }
.affiliations .author-note { margin-top: 4px; font-size: .9em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 29px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 8px 17px; border: 1px solid transparent; border-radius: 99px; font-size: 14px; line-height: 1.2; font-weight: 550; letter-spacing: -.01em; }
.pill-primary { color: #fff; background: #213f50; transition: background .18s; }
.pill-primary:hover { color: #fff; background: #315d73; text-decoration: none; }
.pill-secondary[href] { color: #596971; background: rgb(255 255 255 / .72); border-color: #d6dee1; }
.pill-secondary[href]:hover { color: #213f50; background: #fff; border-color: #a9bac4; text-decoration: none; }
.pill-secondary:disabled { opacity: 1; color: #596971; -webkit-text-fill-color: #596971; background: rgb(255 255 255 / .72); border-color: #d6dee1; cursor: default; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.text-link { color: var(--link); font-size: 17px; }

/* camera widget in the players */
.camera-widget svg { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; }
.camera-key rect { fill: #fff; stroke: #c7c7cc; stroke-width: 1.2; transition: fill .12s, stroke .12s; }
.camera-key text { font: 600 13px var(--font); fill: var(--ink-3); transition: fill .12s; }
.camera-key.active rect { fill: var(--blue); stroke: var(--blue); }
.camera-key.active text { fill: #fff; }
.stick-ring { fill: none; stroke: #c7c7cc; }
.stick-ring.inner { stroke: #e5e5ea; }
.stick-ticks { fill: none; stroke: #c7c7cc; }
.stick-stem { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.stick-dot { fill: var(--blue); }
.camera-widget-dark .camera-key rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .28); }
.camera-widget-dark .camera-key text { fill: var(--dark-ink-2); }
.camera-widget-dark .camera-key.active rect { fill: var(--dark-link); stroke: var(--dark-link); }
.camera-widget-dark .camera-key.active text { fill: #000; }
.camera-widget-dark .stick-ring, .camera-widget-dark .stick-ticks { stroke: rgba(255, 255, 255, .3); }
.camera-widget-dark .stick-ring.inner { stroke: rgba(255, 255, 255, .14); }
.camera-widget-dark .stick-stem { stroke: var(--dark-link); }
.camera-widget-dark .stick-dot { fill: var(--dark-link); }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.dark { background: #0b0b0c; color: var(--dark-ink); }
.headline { margin: 0 0 56px; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }

/* abstract + highlights */
.abstract-section { background: var(--bg); }
.project-video-player { width: 100%; height: auto; border-radius: var(--radius); background: #000; }
.rv-wrap .headline.case-heading { margin-bottom: 12px; }
.case-caption {
  max-width: 80ch;
  margin: 0 0 clamp(24px, 3vw, 40px);
  color: var(--ink-2);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
}
.rv-section.efficiency-section { background: var(--bg); }
.efficiency-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.efficiency-layout figure { margin: 0; }
.efficiency-layout img { display: block; width: 100%; height: auto; }
.efficiency-layout figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.efficiency-copy { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.efficiency-copy p { margin: 0; }
.efficiency-copy p + p { margin-top: 1em; }
.efficiency-copy strong { color: var(--ink); }
@media (max-width: 820px) {
  .efficiency-layout { grid-template-columns: 1fr; gap: 22px; }
}
.abstract-text { margin: 0; max-width: 900px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; letter-spacing: -.016em; color: var(--ink-2); }
.kpis { margin-top: 72px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.kpi { padding: 40px 36px 38px; border-radius: var(--radius); background: var(--bg-alt); }
.kpi-value { margin: 0; font-size: clamp(64px, 8vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.kpi-label { margin: 18px 0 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.kpi-note { margin: 10px 0 0; max-width: 400px; font-size: 17px; line-height: 1.47; color: var(--ink-3); }

/* ---------- galleries: current example on the left, two-column candidates on the right ---------- */
.gallery-section { padding: 110px 0 100px; }
/* Demo: title, subsection headers and players share one left edge (the player width);
   each subsection opens with a thin rule, a smaller heading and its example count */
.demo-wrap { width: 100%; max-width: calc(1180px + 44px); margin: 0 auto; padding: 0 22px; }
.demo-wrap > .headline { margin-bottom: 48px; }
.demo-group + .demo-group { margin-top: 112px; }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.subhead { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--dark-ink); }
.demo-count { font-size: 14px; color: var(--dark-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-count:empty { display: none; }
.player { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.player-main { position: sticky; top: 76px; min-width: 0; }
.viewer { border-radius: 22px; overflow: hidden; background: var(--dark-card); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.compare { --split: 50%; position: relative; aspect-ratio: 16 / 9; background: #000; user-select: none; touch-action: pan-y; }
.compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare .layer-alt { clip-path: inset(0 0 0 var(--split)); visibility: hidden; }
.compare .layer-alt.is-shown { visibility: visible; }
.compare-tag { position: absolute; top: 12px; z-index: 3; padding: 4px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }
.compare-tag.left { left: 12px; }
.compare-tag.right { right: 12px; }
.divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.knob { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1d1d1f; display: grid; place-items: center; font-size: 14px; font-weight: 600; letter-spacing: 1px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.split { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.split:focus-visible ~ .divider .knob { box-shadow: 0 0 0 3px var(--dark-link), 0 6px 18px rgba(0, 0, 0, .35); }
.spinner { position: absolute; z-index: 5; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s; }
.viewer.is-loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.media-status { position: absolute; z-index: 6; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 980px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 13px; }
.transport { display: flex; align-items: center; gap: 12px 14px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap; }
.play { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--dark-ink); color: #000; transition: transform .15s; }
.play:hover { transform: scale(1.06); }
.play svg { width: 13px; height: 13px; fill: currentColor; }
.seek { flex: 1 1 160px; min-width: 100px; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--dark-ink) var(--p, 0%), #68686d var(--p, 0%)); cursor: pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.time { flex: none; font-size: 12px; color: var(--dark-ink-2); font-variant-numeric: tabular-nums; min-width: 70px; }
.tag-legend { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tag-legend i { width: 8px; height: 8px; border-radius: 2px; margin-left: 4px; }
.chunk-stats { margin-left: auto; display: flex; align-items: baseline; gap: 18px; padding-left: 4px; cursor: help; font-variant-numeric: tabular-nums; }
.chunk-stats[hidden] { display: none; }
.cs-item { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.cs-label { font-size: 12px; color: var(--dark-ink-2); }
.cs-item strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--dark-link); }

.details { padding: 22px 4px 0; }
.details-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.details-title { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.details-kicker { font-size: 14px; font-weight: 600; color: var(--dark-ink-2); }
.details-kicker:empty { display: none; }
.details-body { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.details-body.has-camera { grid-template-columns: minmax(0, 1fr) 210px; }
.ex-prompt { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--dark-card-2); min-width: 0; }
.ex-prompt[hidden] { display: none; }
.ex-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--dark-ink-2); }
.ex-prompt-text { margin: 0; font-size: 14px; line-height: 1.55; color: #d2d2d7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.ex-prompt-text.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.ex-more { margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 13px var(--font); color: var(--dark-link); }
.ex-more[hidden] { display: none; }
.camera-box { padding: 16px 14px; border-radius: var(--radius-sm); background: var(--dark-card-2); align-self: start; }
.camera-box[hidden] { display: none; }

.player-side { min-width: 0; }
.rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.thumb { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: var(--dark-ink); font: inherit; min-width: 0; }
.thumb-img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #1d1d1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .2s, transform .3s var(--ease); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .2s; }
.thumb:hover .thumb-img img, .thumb[aria-current="true"] .thumb-img img { opacity: 1; }
.thumb:hover .thumb-img { transform: translateY(-2px); }
.thumb[aria-current="true"] .thumb-img { box-shadow: 0 0 0 2px var(--dark-ink); }
.thumb-title { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.thumb-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--dark-ink-2); }

/* ---------- citation + footer ---------- */
.repository-citation { margin: 0 0 16px; color: var(--ink-2); }
.citation { padding: 110px 0 60px; background: var(--bg-alt); }
.bib { position: relative; border-radius: var(--radius); background: var(--bg); padding: 30px 32px; }
.bib pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.65 var(--mono); color: var(--ink-2); letter-spacing: 0; }
.copy { position: absolute; top: 18px; right: 18px; appearance: none; border: 0; cursor: pointer; padding: 6px 14px; border-radius: 980px; font: 500 13px var(--font); color: var(--blue); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.copy:hover { background: var(--blue); color: #fff; box-shadow: none; }
.back-to-top { margin: 56px 0 0; text-align: center; }
.footer { background: #ededf0; padding: 26px 0 34px; font-size: 12px; color: #5e5e63; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.footer p { margin: 0; }
.footer strong { color: var(--ink-2); font-weight: 600; }
.footer-links a { color: var(--ink-2); }
.noscript { margin: 0; padding: 16px; text-align: center; background: #fff3cd; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-wrap { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-wrap::after { display: none; }
  .hero-head { grid-row: 1; width: 100%; padding: 42px clamp(20px, 5vw, 40px) 0; }
  .hero-sub { max-width: 30ch; }
  .hero-scene { position: relative; inset: auto; grid-row: 2; width: 100%; margin-top: 10px; }
  .hero-teaser { max-width: 920px; margin-inline: auto; }
  .authors { margin-top: 21px; }
  .hero-actions { margin-top: 22px; }
}
@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; gap: 28px; max-width: 680px; }
  .demo-wrap { max-width: calc(680px + 44px); }
  .player-main { position: static; }
}
@media (max-width: 834px) {
  .nav-links { position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 22px 16px; background: var(--bg-soft); border-bottom: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .25); display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav.is-dark .nav-links { background: #161617; border-bottom-color: rgba(255, 255, 255, .08); }
  .nav.is-dark .nav-links a { border-bottom-color: #2c2c2e; }
  .nav-toggle { display: flex; }
}
@media (max-width: 734px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide { padding: 0 16px; }
  .section { padding: 84px 0; }
  .gallery-section { padding: 84px 0 76px; }
  .demo-wrap { max-width: calc(680px + 32px); padding: 0 16px; }
  .demo-wrap > .headline { margin-bottom: 36px; }
  .demo-group + .demo-group { margin-top: 80px; }
  .demo-head { margin-bottom: 22px; padding-top: 14px; }
  .subhead { font-size: 24px; }
  .details-title { font-size: 19px; }
  .headline { margin-bottom: 40px; }
  .kpis { grid-template-columns: 1fr; margin-top: 52px; gap: 12px; }
  .kpi { padding: 30px 24px; border-radius: 22px; }
  .viewer { border-radius: 18px; }
  .details-body.has-camera { grid-template-columns: 1fr; }
  .camera-box { justify-self: stretch; }
  .chunk-stats { flex: 1 1 100%; margin-left: 0; padding-left: 0; gap: 16px; }
  .bib { padding: 58px 18px 22px; }
}
@media (max-width: 500px) {
  .wordmark { font-size: clamp(42px, 13.2vw, 62px); }
  .hero-sub { margin-top: 10px; font-size: 24px; }
  .hero-actions { gap: 6px; }
  .pill { min-height: 36px; padding: 7px 12px; font-size: 13px; }
}
