:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --hero-bg: #f3f8ff;
  --hero-border: #c5dcf8;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --accent: #0052c7;
  --accent-hover: #003e99;
  --accent-soft: #eaf2ff;
  --accent-ring: rgba(0, 82, 199, 0.16);

  /* Exact 4 semantic factor colors from paper preamble */
  --f1-agent: #2563eb;
  --f2-change: #cc4125;
  --f3-static: #64748b;
  --f4-appear: #b8860b;

  --success: #15803d;
  --success-bg: #dcfce7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.035);
  --shadow-md: 0 10px 32px rgba(15, 23, 42, 0.055);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-decoration: none !important;
  white-space: nowrap;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-ctas {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent);
}

/* Hugging Face yellow for the checkpoints links */
.nav-cta.is-hf {
  background: #ffd21e;
  color: #1f2937 !important;
}

.nav-cta.is-hf:hover {
  background: #ffc600;
}

/* Hero Section */
.hero-section {
  padding: 44px 0 56px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 34px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.1vw, 3.05rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-authors {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.hero-authors span {
  display: inline-block;
  margin: 0 8px;
}

/* author names link to their homepages: text colour, faint underline, accent colour on hover */
.hero-authors a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.hero-authors a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.hero-authors sup,
.hero-affiliations sup {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 1px;
}

.hero-affiliations {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.hero-tagline {
  margin: 0 auto 24px;
  max-width: 740px;
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 82, 199, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-hf {
  background: #ffd21e;
  color: #1f2937;
}

.btn-hf:hover {
  background: #ffc600;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-secondary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Hero Video Showcase */
.showcase-card {
  background: var(--surface);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-xl);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-md);
}

.showcase-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.showcase-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#world-model .showcase-card {
  margin-bottom: 24px;
}

.showcase-heading h2,
.showcase-heading h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 650;
  color: var(--ink);
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.init-frame-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.init-frame-pill img {
  width: 30px;
  height: 23px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.video-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.video-tile.is-source {
  background: #f8fafc;
  border-style: dashed;
  border-color: #94a3b8;
}

.video-tile.is-asl {
  background: var(--hero-bg);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0, 82, 199, 0.1);
}

.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.tile-title {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink);
}

.video-tile.is-asl .tile-title {
  color: var(--accent);
  font-weight: 700;
}

.tile-tag {
  font-size: 0.7rem;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink-secondary);
}

.video-tile.is-asl .tile-tag {
  background: var(--accent);
  color: #ffffff;
}

.video-frame {
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 4 / 3;
}

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

.tile-caption {
  margin: 8px 0 0;
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--muted);
}

/* tiles in a row share header, video and caption rows, so the videos line up when a header wraps */
.transfer-grid > .video-tile {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 8px;
}

.js-transfer-example > .video-tile {
  grid-row: span 2;
}

.transfer-grid > .video-tile > .tile-header {
  align-self: start;
  margin-bottom: 0;
}

.transfer-grid > .video-tile > .tile-caption {
  margin-top: 0;
}

.video-tile.is-asl .tile-caption {
  color: #1e3a8a;
  font-weight: 500;
}

.showcase-footnote {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

/* Metrics Strip */
.metrics-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 3px;
}

.metric-sub {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Generic Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section.alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Abstract Card */
.abstract-box {
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  margin-bottom: 48px;
}

.abstract-box h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.abstract-box p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* Problem / 4 Factors Split */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.problem-figure {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 680;
  color: var(--ink);
}

.card-subtitle {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.figure-caption {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Factor Badges */
.fbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: -1px;
  flex-shrink: 0;
}

.f1 { background: var(--f1-agent); }
.f2 { background: var(--f2-change); }
.f3 { background: var(--f3-static); }
.f4 { background: var(--f4-appear); }

/* Interactive Factor Explorer */
.factor-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.factor-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.factor-tab:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.factor-tab.is-active {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* the two columns share a label row and a clip row, so the clips stay level when one label wraps */
.factor-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 12px;
  margin-bottom: 14px;
}

.factor-vid-col {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.factor-vid-label {
  display: block;
  align-self: end;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-secondary);
}

.factor-vid-col video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  background: #0f172a;
}

.factor-insight {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.factor-insight strong {
  color: var(--ink);
}

/* Four visual factors: Figure 1 or a factor's clips, chosen by a row of tabs */
.factor-viewer .factor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.factor-viewer .factor-videos {
  max-width: 760px;
  margin: 0 auto 14px;
}

.factor-viewer .factor-insight {
  max-width: 760px;
  margin: 0 auto;
}

.factor-caption {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Method: each panel of Figure 2 with its explanation */
.method-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.method-block + .method-block {
  margin-top: 24px;
}

.method-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.method-panel {
  margin: 0;
}

.method-panel img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.method-panel-a img {
  max-width: 440px;
}

.method-panel-b {
  margin: 18px 0 24px;
}

.method-panel-b img {
  max-width: 880px;
}

.method-text h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.method-text p,
.method-substep p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.method-intro {
  max-width: 860px;
}

.method-substeps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.method-substep h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 680;
  color: var(--ink);
}

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

.method-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.eq-box {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  overflow-x: auto;
  text-align: center;
  font-size: 0.9rem;
}

.method-stat {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.81rem;
  color: var(--muted);
}

.method-stat strong {
  color: var(--ink);
}

/* World Model Section */
/* One-line result with a link to the paper's table (world model, DCS) */
.result-note {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--hero-bg);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.wm-result-note {
  margin: 0 0 28px;
}

/* Pill Tabs */
.pill-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pill-tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-tab:hover {
  color: var(--ink);
}

.pill-tab.is-active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Qualitative Filmstrip Viewer */
.filmstrip-viewer {
  margin-top: 8px;
}

.filmstrip-Stage {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.filmstrip-Stage img {
  margin: 0 auto;
  max-height: 760px;
  width: auto;
  border-radius: 6px;
}

/* Interactive Bar Chart in Benchmarks */
.bench-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.bar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.bar-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.bar-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.bar-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}


.mini-row {
  display: grid;
  grid-template-columns: 112px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.77rem;
}

.mini-row:last-child {
  margin-bottom: 0;
}

.mini-label {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row.is-asl .mini-label {
  color: var(--accent);
  font-weight: 700;
}

.mini-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  background: #94a3b8;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mini-row.is-asl .mini-fill {
  background: var(--accent);
}

.mini-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
}

.mini-row.is-asl .mini-val {
  color: var(--accent);
  font-weight: 700;
}

/* Pose Retrieval Section */
.pose-gallery-card {
  margin-top: 18px;
}

.dcs-pose-layout {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}

.pose-col {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.pose-col.is-asl {
  background: var(--hero-bg);
  border-color: var(--hero-border);
}

.pose-col-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.pose-col.is-asl .pose-col-label {
  color: var(--accent);
}

.pose-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pose-tile {
  margin: 0;
}

.pose-tile video {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 8px;
  background: #0f172a;
}

.pose-tile figcaption {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.pose-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
}

/* Real-robot arm-state retrieval: source episode and the frame each model retrieves, three synced clips */
.rv-video-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  max-width: 860px;
  margin: 16px auto 0;
}

.rv-video-layout .pose-tile video {
  max-width: 224px;
}

@media (max-width: 600px) {
  .rv-video-layout {
    grid-template-columns: 1fr;
  }
}

/* Citation Box */
.bibtex-wrap {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  overflow-x: auto;
}

.bibtex-wrap pre {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.65;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Footer */
.footer {
  padding: 36px 0 48px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hidden {
  display: none !important;
}

/* Overview video */
/* overview video under the title and links */
.hero-video {
  margin-top: 32px;
}

.hero-video-note {
  max-width: 1000px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.overview-video-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-md);
}

.overview-video-card video {
  width: 100%;
  border-radius: var(--radius-md);
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.chapter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.chapter-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chapter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Rollout viewer */
.rollout-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rollout-figure {
  grid-column: 1 / -1;
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 760px;
  border-radius: 6px;
}

.rollout-tile {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
}

.rollout-tile.is-ref {
  border-style: dashed;
  border-color: #94a3b8;
}

.rollout-tile.is-asl {
  background: var(--hero-bg);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0, 82, 199, 0.1);
}

.rollout-img {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background: #0f172a;
}


.rollout-tile figcaption {
  margin-top: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
}

.rollout-tile.is-asl figcaption {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 960px) {
  .rollout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .transfer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .bar-grid,
  .bar-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dcs-pose-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .transfer-grid,
  .metrics-strip,
  .bar-grid,
  .bar-grid.is-four,
  .factor-tabs {
    grid-template-columns: 1fr;
  }
  .abstract-box {
    padding: 20px;
  }
  .showcase-card {
    padding: 16px;
  }
  .nav-cta {
    display: none;
  }
}

/* Clips in the rollout viewer and the transfer examples */
[hidden] {
  display: none !important;
}

.rollout-img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.js-transfer-example {
  margin-bottom: 14px;
}

.eq-box .katex-display {
  margin: 0;
}

.eq-box .katex {
  font-size: 1.02em;
}

/* Grid items may shrink below their content width */
.card,
.problem-grid > *,
.method-split > *,
.method-substeps > *,
.navbar-inner {
  min-width: 0;
}

.nav-links {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}
