:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1280px;
  --scene-tab-chip: 162px;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
}

img,
video {
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.title {
  padding: 72px 0 24px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 19px;
}

.authors {
  margin: 0 auto;
  max-width: 820px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.authors .author {
  display: inline-block;
  margin: 0 9px;
  white-space: nowrap;
}

.authors sup,
.affiliations sup,
.author-note sup {
  font-size: 0.7em;
  margin-left: 1px;
}

.affiliations {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.affiliations span {
  display: inline-block;
  margin: 0 10px;
}

.author-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

section {
  padding: 40px 0 56px;
}

h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.prose {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.prose p {
  margin: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.lede {
  margin: 0 0 24px;
  color: var(--muted);
}

.lede a,
.authors a,
.title a {
  color: var(--blue);
  text-decoration: none;
}

.lede a:hover,
.authors a:hover,
.title a:hover {
  text-decoration: underline;
}

.scrub-wrap {
  width: min(1440px, calc(100% - 32px));
}

.scrub-wrap .demo-shell {
  overflow: visible;
}

.scrub-body {
  padding: 8px 16px 20px;
}

.scrub-transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 8px 4px 14px;
}

.scrub-bar {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 36px;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  outline: none;
}

.scrub-bar:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.28);
  border-radius: 8px;
}

.scrub-bar.is-dragging {
  cursor: grabbing;
}

.scrub-bar-track,
.scrub-bar-fill {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 99px;
  background: #d2d2d7;
  pointer-events: none;
}

.scrub-bar-fill {
  right: auto;
  width: 0;
  background: var(--blue);
}

.scrub-bar-thumb {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.scrub-grid {
  display: grid;
  grid-template-columns: repeat(var(--scrub-cols, 5), minmax(0, 1fr));
  gap: 8px;
}

.scrub-cell {
  margin: 0;
  min-width: 0;
}

.scrub-cell .frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 1920 / 930;
}

.scrub-cell video,
.scrub-cell canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scrub-cell video {
  background: #000;
}

.scrub-cell canvas {
  z-index: 1;
  background: transparent;
}

.scrub-cell .scrub-hi {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  background: transparent;
}

.scrub-cell.has-strip:not(.is-playing) video {
  opacity: 0;
  pointer-events: none;
}

.scrub-cell.is-playing canvas,
.scrub-cell.is-playing .scrub-hi {
  display: none;
}

.scrub-cell figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.demo-wrap {
  width: min(var(--max), calc(100% - 48px));
}

.demo-shell {
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg-alt);
}

.demo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 16px 4px;
}

.scene-tab-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.scene-tab-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
}

.scene-tab-label {
  flex: 0 0 100%;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.scene-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.scene-tabs--grouped {
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.scene-tab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.scene-tab-row:last-child {
  border-bottom: 0;
}

.scene-tabs--grouped .scene-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 8px 10px 8px 0;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.scene-tabs--grouped .scene-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.scene-tabs--grouped .scene-group-label {
  margin: 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.scene-tabs--grouped .scene-group-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.page-public #coverage {
  padding: 28px 0 36px;
}

.page-public .demo-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.page-public .demo-heading h2 {
  margin: 0;
  font-size: 24px;
}

.page-public .demo-heading .lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.page-public .demo-shell {
  border-radius: 18px;
}

.page-public .demo-bar {
  padding: 4px 12px;
  border-bottom: 1px solid var(--line);
}

.page-public .scene-tab-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  grid-template-columns: none;
}

.page-public .scene-tab-row:first-child {
  border-bottom: 1px solid var(--line);
}

.page-public .scene-tabs--grouped .scene-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--line);
}

.page-public .scene-tab-row .scene-group:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-public .scene-tab-row .scene-group:last-child {
  padding-right: 0;
}

.page-public .scene-tabs--grouped .scene-group-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-public .scene-tabs--grouped .scene-group-tabs {
  flex-wrap: nowrap;
  gap: 5px;
}

.page-public .scene-tabs--grouped .scene-tab {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.page-public .scene-tabs--grouped .scene-tab.has-thumb {
  width: var(--scene-tab-chip);
  min-width: var(--scene-tab-chip);
  max-width: var(--scene-tab-chip);
  padding: 2px 2px 3px;
  gap: 3px;
  border-radius: 8px;
}

.page-public .scene-tabs--grouped .scene-tab-thumb {
  border-radius: 6px;
}

.page-public .scene-tabs--grouped .scene-tab-label-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.4em;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.page-public .scene-tabs--grouped .scene-tab.on {
  background: var(--ink);
  box-shadow: none;
}

.page-public {
  /* Shrink thumbnails just enough that the 8 Singing + Dance + Cartoons tabs share one row. */
  --scene-tab-chip: clamp(112px, calc((min(100vw - 48px, 1280px) - 200px) / 8), 150px);
}

.page-public .demo-grid {
  gap: 0;
  align-items: stretch;
}

.page-public .monitor,
.page-public .plot {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page-public .monitor {
  padding: 10px 6px 10px 14px;
}

.page-public .monitor-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
}

.page-public .plot {
  padding: 10px 14px 12px 6px;
}

.page-public .plot svg {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
}

.page-public .monitor-caption,
.page-public .demo-legend {
  font-size: 11px;
}

.page-public .screen {
  border-radius: 14px;
}

.scene-tab {
  border: 0;
  border-radius: 980px;
  background: #fff;
  color: var(--muted);
  min-height: 32px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.scene-tab.has-thumb {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  width: var(--scene-tab-chip);
  min-width: var(--scene-tab-chip);
  max-width: var(--scene-tab-chip);
  padding: 5px 5px 7px;
  border-radius: 12px;
  text-align: center;
  vertical-align: top;
  box-sizing: border-box;
}

.scene-tab-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.06);
}

.scene-tab-label-text {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.scene-tab.on .scene-tab-thumb {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.scene-tab.on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.demo-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding-top: 6px;
  text-align: right;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.88fr);
  align-items: stretch;
}

.monitor-stack {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.monitor {
  padding: 12px 8px 12px 20px;
  display: flex;
  flex-direction: column;
}

.demo-transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.mode-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 980px;
  background: #fff;
}

.mode-btn {
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--muted);
  min-height: 26px;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mode-btn.on {
  background: var(--ink);
  color: #fff;
}

.demo-transport input[type="range"] {
  width: 100%;
  height: 36px;
  margin: 0;
  accent-color: var(--blue);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.demo-transport input[type="range"]:disabled {
  opacity: 0.4;
  cursor: default;
}

.demo-frame {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.screen.is-scrub .screen-play {
  opacity: 0;
}

.screen.is-scrub {
  cursor: default;
}

.lede kbd,
.subtitle kbd {
  display: inline-block;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--bg-alt);
  color: var(--ink);
  font: inherit;
  font-size: 0.86em;
  font-weight: 600;
}

.plot {
  padding: 12px 20px 16px 8px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plot svg {
  flex: 1;
  width: 100%;
  height: auto;
}

.monitor-caption,
.demo-legend {
  width: 100%;
  margin: auto 0 0;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.47;
}

.demo-legend strong {
  color: var(--ink);
  font-weight: 600;
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 1920 / 930;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.screen video,
.screen img,
.screen-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.screen video {
  z-index: 1;
}

.screen img,
.screen-placeholder {
  z-index: 0;
  pointer-events: none;
}

.screen-placeholder svg {
  width: 100%;
  height: 100%;
}

.screen-hud {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.screen-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.screen-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.screen.is-paused .screen-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.plot svg {
  display: block;
  width: 100%;
  height: auto;
}

.cone {
  stroke: rgba(0, 113, 227, 0.5);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}

.cone.show {
  opacity: 1;
}

.cam {
  cursor: pointer;
}

.cam .cam-hit {
  fill: transparent;
  stroke: none;
}

.cam .cam-body {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cam.source-cam .cam-body {
  fill: var(--ink);
}

.cam.active .cam-body,
.cam.source-cam.active .cam-body,
.cam:hover .cam-body {
  fill: var(--blue);
  stroke: var(--blue);
}

.cam text {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  fill: var(--muted);
  pointer-events: none;
}

.cam.active text,
.cam:hover text {
  fill: var(--ink);
}

.stats,
.media-grid {
  display: grid;
  gap: 12px;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}

.stat,
.media-slot {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.stat .value {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat p,
.media-slot p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.media-grid {
  grid-template-columns: 1fr 1fr;
}

.media-slot {
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
}

.media-slot.wide {
  grid-column: 1 / -1;
  min-height: 280px;
}

.media-slot code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  color: var(--ink);
}

.media-slot:has(video) {
  padding: 0;
}

.media-slot video {
  width: 100%;
  min-height: 200px;
  object-fit: cover;
}

.wrap.wide {
  width: min(var(--max), calc(100% - 48px));
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.compare-meta {
  min-width: 0;
}

.compare-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.compare-credit {
  display: block;
  margin-top: 3px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}

.compare-credit:hover {
  text-decoration: underline;
}

.play-row {
  flex-shrink: 0;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.play-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 96px;
}

.play-row[aria-pressed="true"] {
  background: #1d1d1f;
}

.play-row.is-loading {
  cursor: progress;
}

.play-row.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: play-row-spin 0.7s linear infinite;
}

@keyframes play-row-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-row.is-loading::before {
    animation-duration: 1.6s;
  }
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.compare-grid:has(.zoom-cell) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Zoomed source view and the matching box on the source */
.zoom-cell {
  margin: 0;
  min-width: 0;
}

.zoom-cell .frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #1d1d1f;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 2px #f2b705;
}

.zoom-cell canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.zoom-cell figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.zoom-box {
  position: absolute;
  z-index: 3;
  border: 2px solid #f2b705;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.compare-cell {
  margin: 0;
  min-width: 0;
}

.compare-cell .frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #1d1d1f;
  aspect-ratio: 16 / 9;
}

.compare-cell video,
.compare-cell img,
.compare-cell canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1d1d1f;
}

.compare-cell video,
.compare-cell canvas {
  position: absolute;
  inset: 0;
}

.compare-cell canvas {
  z-index: 1;
  background: transparent;
}

.compare-cell .scrub-hi {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  background: transparent;
}

.compare-cell.has-strip:not(.is-playing) video {
  opacity: 0;
  pointer-events: none;
}

.compare-cell.is-playing canvas,
.compare-cell.is-playing .scrub-hi {
  display: none;
}

.compare-cell figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.compare-cell.ours figcaption {
  color: var(--ink);
}

.disclaimer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 1100px) {
  .scrub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mobile-shot-bar {
  display: none;
}

@media (max-width: 800px) {
  .wrap,
  .demo-wrap,
  .wrap.wide {
    width: min(var(--max), calc(100% - 24px));
  }

  .title {
    padding: 48px 0 16px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  section {
    padding: 28px 0 36px;
  }

  .demo-grid,
  .stats,
  .scrub-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid,
  .compare-grid:has(.zoom-cell) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .compare-list {
    gap: 28px;
  }

  .compare-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .play-row {
    align-self: flex-start;
    min-height: 44px;
    padding: 0 18px;
  }

  .demo-transport {
    grid-template-columns: 1fr auto;
  }

  .demo-transport .mode-toggle {
    grid-column: 1 / -1;
  }

  .scrub-transport {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .scrub-transport .play-row {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .monitor,
  .plot {
    padding: 8px 10px 12px;
  }

  .screen {
    border-radius: 12px;
  }

  .screen-play {
    width: 56px;
    height: 56px;
  }

  .screen.is-paused .screen-play {
    opacity: 1;
  }

  .mobile-shot-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-shot-bar::-webkit-scrollbar {
    display: none;
  }

  .mobile-shot {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 0;
    border-radius: 980px;
    background: #fff;
    color: var(--muted);
    min-height: 44px;
    padding: 0 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  .mobile-shot.on {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
  }

  .plot svg {
    max-height: 240px;
    margin-inline: auto;
  }

  .monitor-caption,
  .demo-legend {
    font-size: 11px;
  }

  .scene-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .scene-tabs::-webkit-scrollbar {
    display: none;
  }

  .scene-tab.has-thumb {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .page-public #coverage {
    padding: 20px 0 28px;
  }

  .page-public .demo-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }

  .page-public .demo-heading h2 {
    font-size: 22px;
  }

  .page-public .demo-bar {
    padding: 6px 8px 4px;
    overflow: hidden;
  }

  .page-public .scene-tabs--grouped {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
  }

  .page-public {
    --scene-tab-chip: 112px;
  }

  .page-public .scene-tab-row {
    display: contents;
  }

  .page-public .scene-tabs--grouped .scene-group,
  .page-public .scene-tab-row .scene-group:first-child,
  .page-public .scene-tab-row .scene-group:last-child {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 8px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-public .scene-tab-row:last-child .scene-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .page-public .scene-tabs--grouped .scene-group-label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .page-public .scene-tabs--grouped .scene-group-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 -2px;
    padding: 0 2px 2px;
  }

  .page-public .scene-tabs--grouped .scene-group-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Keep two columns on phones so source, ours and baselines stay side by side */
  .compare-grid,
  .compare-grid:has(.zoom-cell) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bibtex-copy {
    padding: 7px 14px;
    font-size: 12px;
  }

  .compare-head h3 {
    font-size: 14px;
  }
}

/* Interactive demo as a grid: input take left, generated shots right */
/* Both columns carry one caption row (INPUT / GENERATED) of height --cap; below it the input frame spans the
   generated frames, so its width is W = 2w + ar*g for a 2x2 block of width 2w+g (ar = source width/height). */
.shot-grid {
  --ar: 1.7778;
  --cap: 20px;
  --g: 10px;
  --k: calc((100% - var(--ar) * var(--g) - 2 * var(--g)) / 2);
  display: grid;
  grid-template-columns: calc(var(--k) + var(--ar) * var(--g)) calc(var(--k) + var(--g));
  gap: var(--g);
  align-items: start;
  padding: 16px 20px 6px;
  cursor: pointer;
}

.shot-grid[data-count="2"] {
  --k: calc((100% - var(--ar) * var(--g) - var(--g)) / 3);
  grid-template-columns: calc(2 * var(--k) + var(--ar) * var(--g)) var(--k);
}

.shot-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.shot-gen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--g);
}

.shot-gen[data-count="1"],
.shot-gen[data-count="2"] {
  grid-template-columns: minmax(0, 1fr);
}

.shot-cell {
  margin: 0;
}

.shot-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  aspect-ratio: var(--ar);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.shot-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-gen-col {
  min-width: 0;
}

.shot-gen-head,
.shot-input figcaption {
  display: flex;
  align-items: flex-start;
  height: var(--cap);
  margin: 0;
  line-height: 1;
}

.shot-tag {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-tag--input {
  background: rgba(29, 29, 31, 0.78);
}

.shot-tag--gen {
  background: var(--blue);
}

/* Shot name inside each generated frame, bottom left */
.shot-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.shot-grid .screen-play {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.shot-grid.is-paused .screen-play {
  opacity: 1;
}


.shot-caption {
  margin: 0;
  padding-top: 8px;
  line-height: 1.3;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

/* Abbreviation key sits directly under the generated shots */
.shot-gen-col .demo-legend {
  margin: 0;
  padding-top: 8px;
  line-height: 1.3;
  padding-bottom: 14px;
}

@media (max-width: 800px) {
  .shot-grid,
  .shot-grid[data-count="1"],
  .shot-grid[data-count="2"] {
    --g: 8px;
    --cap: 18px;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 12px 4px;
  }

  .shot-gen,
  .shot-gen[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-tag,
  .shot-label {
    font-size: 9px;
    padding: 2px 5px;
  }

  .shot-label {
    left: 6px;
    bottom: 6px;
  }

}

/* Author names link to personal pages but stay in the text color */
.authors .author a {
  color: var(--ink);
  text-decoration: none;
}

.authors .author a:hover {
  text-decoration: underline;
}

/* Method section */
.method-prose h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
}

.method-prose p + p {
  margin-top: 12px;
}

.method-figure {
  margin: 24px 0 8px;
}

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.method-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.method-figure figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

.method-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.method-figure--arch {
  margin-top: 28px;
}

@media (max-width: 800px) {
  .method-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .method-prose h3 {
    font-size: 19px;
  }
}

/* Paper / Code buttons under the authors */
.link-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px 8px 14px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.title .link-btn,
.title .link-btn:hover {
  color: #fff;
  text-decoration: none;
}

.link-btn:hover {
  background: #000;
}

.link-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.link-btn.is-soon {
  cursor: default;
  pointer-events: none;
}

.link-btn.is-soon::after {
  content: "soon";
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 500;
}

/* Subtitles on the input take: burned-in film look (no box, off-white text with a thin dark edge), sized to the frame */
.shot-input .shot-frame {
  container-type: inline-size;
}

.shot-subtitle {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  z-index: 2;
  transform: translateX(-50%);
  width: 86%;
  color: #f5f3ea;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(12px, 3.1cqw, 26px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 1px #000, 0 0 2px #000, 1px 1px 0 rgba(0, 0, 0, 0.9), -1px -1px 0 rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.shot-subtitle[hidden] {
  display: none;
}

/* BibTeX block */
.bibtex {
  position: relative;
  border-radius: 12px;
  background: #f5f5f7;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bibtex pre {
  margin: 0;
  padding: 16px 70px 16px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bibtex-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 0;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
