:root {
  --ink: #1d1d1f;
  --ink-2: #3f4a55;
  --page: #f3f3f1;
  --page-top: #ffffff;
  --card: #ffffff;
  --card-light: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Avenir Next", Inter, system-ui, sans-serif;
  --muted: #66717d;
  --line: #e4e4e0;
  --soft: #ffffff;
  --blue: #2469d8;
  --blue-dark: #174c9c;
  --blue-soft: #edf4ff;
  --green: #19734a;
  --amber: #a85c00;
  --section-gap: 5rem;
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

strong,
.content strong,
.content h1,
.content h2,
.content h3,
.title,
.subtitle {
  color: var(--ink);
}

.page-shell {
  width: min(1000px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.publication-header {
  background: linear-gradient(180deg, var(--page-top) 0%, var(--page) 100%);
}

.publication-header .hero-body {
  padding: 4rem 1.5rem 2.25rem;
}

.publication-header .page-shell {
  width: min(1100px, calc(100% - 2.5rem));
}

.publication-title {
  max-width: 1100px;
  margin: 0 auto 1.25rem !important;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.75rem, 2.7vw, 2rem) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.publication-title span {
  display: block;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.4rem;
  max-width: 850px;
  margin: 0 auto;
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
}

.publication-authors > span { white-space: nowrap; }
.publication-authors a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}
.publication-authors a:hover,
.publication-authors a:focus-visible { color: #b31b1b; text-decoration: none; }
.publication-authors a:focus-visible { outline: 2px solid #b31b1b; outline-offset: 3px; }

.publication-authors sup {
  margin-left: 0.12em;
  color: var(--muted);
  font-size: 0.65em;
}
.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 1rem;
}
.affiliation {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
}
.affiliation sup { color: var(--muted); font: 0.75rem Inter, sans-serif; align-self: flex-start; }
.affiliation img { display: block; object-fit: contain; mix-blend-mode: multiply; }
.affiliation--cornell { color: #b31b1b; font: 1.4rem Georgia, serif; }
.affiliation--cornell:hover { color: #b31b1b; }
.affiliation--cornell img { width: 32px; height: 32px; }
.affiliation--multiply img { width: 176px; height: auto; }
.affiliation:focus-visible { outline: 2px solid #b31b1b; outline-offset: 4px; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 1.5rem 0 0;
}

.hero-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px 0 15px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
  border: 0;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: var(--blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.84));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.1);
}

.hero-link:active {
  transform: translateY(0) scale(0.98);
}

.hero-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero-link__icon {
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
  flex: 0 0 auto;
}

.hero-link.is-pending {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09);
  cursor: default;
}

.hero-link.is-pending:hover {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09);
}

.teaser-block > figure {
  width: 100%;
  margin: 0 auto;
}

.teaser-media {
  overflow: hidden;
}

.teaser-image,
.method-video {
  mix-blend-mode: multiply;
}

.teaser-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  /* Clip the embedded bottom line, including fractional display pixels. */
  margin-bottom: -2px;
}

figcaption,
caption {
  text-align: left;
}

.teaser-caption {
  width: 100%;
  max-width: none;
  margin: 1rem 0 0 !important;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.95rem !important;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.teaser-caption strong {
  color: var(--ink);
  font-weight: 650;
}

.main-content {
  padding: 0.25rem 1.5rem 2rem;
}

.my-block {
  margin-bottom: var(--section-gap);
  scroll-margin-top: 2rem;
}

.abstract-block {
  margin-bottom: 2.5rem;
}

.abstract-block {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.my-block:last-child {
  margin-bottom: 2rem;
}

.my-block .title {
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.5rem !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.narrow-copy {
  max-width: 680px;
  margin-inline: auto;
}

.narrow-copy .content {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
}

.section-heading {
  width: 100%;
  margin-bottom: 2rem;
}

.section-heading .title {
  margin-bottom: 0.75rem !important;
}

.section-title--centered {
  text-align: center;
}

.section-heading > p + p {
  margin-top: 0.8rem;
}

.section-heading > p,
.section-intro {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.method-highlights {
  margin: 1.25rem 0 0;
  padding-left: 1.4rem;
  list-style: disc outside;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.method-highlights li + li {
  margin-top: 0.55rem;
}

.method-highlights strong {
  color: var(--ink);
  font-weight: 650;
}

.video-feature {
  width: 100%;
  margin: 0 auto;
}

.video-feature__frame {
  overflow: hidden;
  background: #090d12;
  border: 1px solid #1f2832;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(21, 34, 47, 0.16);
}

.video-feature__frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.section-intro {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.method-figure {
  width: 100%;
  max-width: 1000px;
  margin: 1.25rem auto 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.method-card {
  padding: 0;
}

.method-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.method-interactive {
  position: relative;
  isolation: isolate;
  background: var(--page);
}

.method-hotspots {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: 43.65% 29.1% 27.25%;
  pointer-events: none;
}

.method-hotspot {
  min-width: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition: background-color 160ms ease;
}

.method-hotspots:has(.method-hotspot:hover) .method-hotspot:not(:hover),
.method-hotspots:has(.method-hotspot:focus) .method-hotspot:not(:focus),
.method-hotspots:has(.method-hotspot.is-active) .method-hotspot:not(.is-active) {
  background: rgba(243, 243, 241, 0.48);
}

.method-hotspot:hover,
.method-hotspot:focus,
.method-hotspot.is-active {
  background: rgba(65, 112, 224, 0.025);
  outline: none;
}

.method-stage-description {
  display: block;
  min-height: 3.1rem;
  max-width: none;
  margin: 1rem auto 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.method-stage-description.is-default {
  text-align: center;
}

.method-stage-description strong {
  color: var(--ink);
  font-family: var(--font);
  font-weight: 650;
}

.method-stage-description strong::after {
  content: "\00a0";
}

.grounding-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.2rem;
}

.flow-card {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.comparison-card,
.metric-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(25, 40, 55, 0.06);
}

.flow-card__video,
.media-placeholder--flow {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.flow-card__video {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  border-radius: 10px;
}

.flow-card__video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-card__body {
  text-align: center;
  padding: 0.75rem 0.15rem 0;
}

.flow-card h3,
.task-card h3,
.comparison-card h3,
.deployment-card h3,
.metric-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.flow-card p,
.comparison-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.task-card {
  min-width: 0;
}

.task-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 10px;
}

.task-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.task-card__body {
  padding: 0.75rem 0 0;
  text-align: left;
}

.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(36, 105, 216, 0.045) 25%, transparent 25%) 0 0 / 18px 18px,
    #f6f8fa;
  border: 1.5px dashed #b9c3cc;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.media-placeholder strong {
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.media-placeholder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.2rem;
  color: var(--blue);
  background: #fff;
  border: 1px solid #d9e0e6;
  border-radius: 50%;
  font-size: 1rem;
}

.media-placeholder--landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.deployment-block {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.deployment-grid {
  display: grid;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.deployment-card {
  width: 100%;
}

.deployment-card__media {
  width: 100%;
  aspect-ratio: 8 / 9;
  overflow: hidden;
  border-radius: 10px;
}

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

.deployment-card h3 {
  margin-top: 0.65rem;
  text-align: left;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.annotated-result-media {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}

.annotated-result-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comparison-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 10px;
}

.comparison-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.baseline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.baseline-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(25, 40, 55, 0.06);
}

.baseline-card--primary {
  border-color: #9ebcf0;
  box-shadow: 0 10px 30px rgba(36, 105, 216, 0.11);
}

.baseline-card__media {
  width: 100%;
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: #111;
}

.baseline-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.baseline-card__body {
  padding: 1rem;
}

.baseline-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
}

.baseline-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.comparison-card--primary {
  border-color: #9ebcf0;
  box-shadow: 0 10px 30px rgba(36, 105, 216, 0.11);
}

.comparison-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.result-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.5rem;
  color: var(--muted);
  background: #edf0f2;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-tag--good {
  color: var(--green);
  background: #e7f5ed;
}

.result-tag--warning {
  color: var(--amber);
  background: #fff0df;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.mini-metrics div {
  min-width: 0;
}

.mini-metrics dt {
  color: var(--muted);
  font-size: 0.65rem;
}

.mini-metrics dd {
  margin: 0.1rem 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.evaluation-figures {
  display: grid;
  gap: 2.75rem;
  width: 100%;
  margin-inline: auto;
}

.evaluation-figure {
  margin: 0;
  padding: 0;
}

.evaluation-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.section-heading > p,
.evaluation-figure figcaption,
.teaser-caption,
.method-stage-description,
.narrow-copy .content {
  text-wrap: pretty;
}

.evaluation-figure figcaption {
  width: 100%;
  max-width: none;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

.metric-card {
  padding: 1.25rem;
}

.metric-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card header p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.metric-card header > strong {
  color: var(--blue-dark);
  font-family: var(--font);
  font-size: 1.45rem;
  white-space: nowrap;
}

.metric-card header small {
  font-size: 0.65rem;
  font-weight: 500;
}

.bar-list {
  display: grid;
  gap: 0.65rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) 2.8rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.bar-row i {
  display: block;
  width: max(4px, var(--bar));
  height: 0.45rem;
  background: #b8c0c7;
  border-radius: 999px;
}

.bar-row b {
  text-align: right;
}

.bar-row.is-ours {
  color: var(--blue-dark);
  font-weight: 700;
}

.bar-row.is-ours i {
  background: var(--blue);
}

.results-note {
  max-width: 850px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 950px) {
  .task-grid,
  .deployment-grid,
  .baseline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .comparison-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .comparison-card__media {
    height: 100%;
    min-height: 240px;
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --section-gap: 3rem;
  }

  .page-shell {
    width: min(100% - 1.25rem, 1000px);
  }

  .publication-header .hero-body {
    padding: 2.75rem 0.75rem 1.75rem;
  }

  .publication-title {
    font-size: 2.15rem !important;
  }

  .publication-title span {
    display: inline;
  }

  .teaser-image {
    width: 100%;
  }

  .teaser-caption {
    font-size: 0.98rem !important;
    text-align: left;
  }

  .main-content {
    padding: 3.5rem 0.75rem 1rem;
  }

  .grounding-flow {
    grid-template-columns: 1fr;
  }

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

  .method-figure {
    overflow-x: auto;
  }

  .method-interactive {
    min-width: 720px;
  }

}

@media (max-width: 520px) {
  .hero-links { gap: 10px; }
  .hero-link { min-height: 38px; padding: 0 16px 0 12px; font-size: 0.95rem; }

  .task-grid,
  .deployment-grid,
  .baseline-grid {
    grid-template-columns: 1fr;
  }

  .task-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .comparison-card {
    display: block;
  }

  .comparison-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .bar-row {
    grid-template-columns: 4.7rem minmax(0, 1fr) 2.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- custom clip controls (muted looping clips) ---------- */
.task-card__media,
.deployment-card__media,
.flow-card__video,
.annotated-result-media {
  position: relative;
}

[data-speed]::after {
  content: attr(data-speed) "\00D7";
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  padding: 0.32rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.ctl video { cursor: pointer; }

.vc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1.8rem 0.55rem 0.4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ctl:hover .vc,
.ctl:focus-within .vc,
.ctl.paused .vc { opacity: 1; }

@media (hover: none) {
  .ctl .vc { opacity: 1; }
}

.vc button {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: none;
  color: inherit;
  cursor: pointer;
}

.vc button:hover { background: rgba(255, 255, 255, 0.14); }

.vc button:focus-visible,
.vc-seek:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.ctl .i-pause,
.ctl.paused .i-play { display: block; }

.ctl .i-play,
.ctl.paused .i-pause { display: none; }

.vc-time {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.vc-seek {
  flex: 1;
  min-width: 0;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.vc-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.32) var(--p, 0%));
}

.vc-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.vc-seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); }
.vc-seek::-moz-range-progress { height: 3px; border-radius: 2px; background: #fff; }
.vc-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }

.ctl:fullscreen { border-radius: 0; background: #000; }
.ctl:fullscreen video { object-fit: contain; }
.ctl:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; background: #000; }
.ctl:-webkit-full-screen video { object-fit: contain; }

/* Separate comparison clips with one shared timeline per section. */
.comparison-panels {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.comparison-panels--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.comparison-panels--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison-panels figure { margin: 0; min-width: 0; }
.comparison-panels figcaption {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
}
.comparison-panels video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #111;
}
.group-controls:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.25rem 0.4rem;
  background: linear-gradient(180deg, #fff, #f8f8f7);
  border: 1px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
}
.group-controls button {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #444;
  border-radius: 50%;
  background: #333;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.group-controls button:hover:not(:disabled) { background: #4a4a4a; }
.group-controls [data-group-play] .i-pause { display: none; }
.group-controls [data-group-play][data-playing="true"] .i-play { display: none; }
.group-controls [data-group-play][data-playing="true"] .i-pause { display: block; }
.group-controls input {
  flex: 1;
  min-width: 0;
  height: 30px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.group-controls input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #555 var(--progress, 0%), #e3e3e3 var(--progress, 0%));
}
.group-controls input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fafafa);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.group-controls input::-moz-range-track { height: 6px; border-radius: 999px; background: #e3e3e3; }
.group-controls input::-moz-range-progress { height: 6px; border-radius: 999px; background: #555; }
.group-controls input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fafafa);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.group-controls output { color: #666; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.group-controls :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.group-controls :disabled { opacity: 0.5; cursor: wait; }
.group-status { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
.group-status:empty { display: none; }
@media (max-width: 700px) {
  .comparison-panels--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-panels { gap: 0.65rem; }
  .comparison-panels figcaption { font-size: 0.8rem; min-height: 2.5em; }
  .group-controls:not([hidden]) { gap: 0.65rem; padding: 0.25rem 0.35rem; }
  .group-controls button { width: 32px; height: 32px; }
  .group-controls output { font-size: 0.75rem; }
}
@media (max-width: 420px) {
  .comparison-panels--three { grid-template-columns: 1fr; }
}

/* ---------- evaluation bar charts (inline SVG, paper palette) ---------- */
.chart__title {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-align: left;
}

.chart__grid {
  display: grid;
  gap: 0 1.25rem;
}

.chart--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart--three { grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(75% - 0.3125rem); }

.bc {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font);
}

.bc-title { font-size: 11.5px; font-weight: 500; fill: #1d1d1f; }
.bc-tick { font-size: 9.5px; fill: #6b7079; }
.bc-label { font-size: 9.5px; fill: #3a3f46; }
.bc-value { font-size: 10px; fill: #1d1d1f; }
.bc-grid { stroke: #dedfdc; stroke-width: 1; }
.bc-axis { stroke: #1d1d1f; stroke-width: 1; }
.bc-bar { stroke: rgba(0, 0, 0, 0.55); stroke-width: 0.75; }

@media (max-width: 900px) {
  .chart--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart--three { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
