/* =========================================================
   HumanoidMimicGen — Apple/Tesla-style design
   NVIDIA accent palette
   ========================================================= */

:root {
  --nv-green: #76b900;
  --nv-green-dark: #5a8e00;
  --nv-green-light: #a0d400;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --hairline: #d2d2d7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* ----- Layout primitives ----- */

.nv-section {
  padding: 7rem 1.5rem;
  position: relative;
}

.nv-section.tight     { padding: 4rem 1.5rem; }
.nv-section.compact   { padding: 5rem 1.5rem; }

.nv-section.dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}

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

.nv-container {
  max-width: 980px;
  margin: 0 auto;
}

.nv-container.wide   { max-width: 1280px; }
.nv-container.narrow { max-width: 720px; }

.nv-rule {
  width: 56px;
  height: 3px;
  background: var(--nv-green);
  border: 0;
  margin: 0 0 2rem;
}

.nv-rule.center { margin-left: auto; margin-right: auto; }

/* ----- Typography ----- */

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nv-green);
  margin: 0 0 1rem;
}

.dark .eyebrow { color: var(--nv-green-light); }

.display-1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}

.display-2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.display-3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0 0 1rem;
}

.dark .lede { color: #d1d1d6; }

.body-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.body-text p { margin: 0 0 1.1rem; }
.body-text p:last-child { margin-bottom: 0; }

.body-text strong { color: var(--ink); font-weight: 600; }
.dark .body-text  { color: #c7c7cc; }
.dark .body-text strong { color: #fff; }

/* ----- Hero ----- */

.nv-hero {
  background: var(--bg-dark);
  color: #fff;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nv-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.65;
}

.nv-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.85) 100%);
}

.nv-hero .nv-container {
  position: relative;
  z-index: 2;
}

.nv-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--nv-green);
  z-index: 3;
}

.nv-hero .display-1 .accent { color: var(--nv-green); }

.nv-hero .lede {
  color: #e8e8ed;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.nv-hero .display-1 {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-title-detail {
  display: inline-block;
  max-width: 1280px;
  font-size: clamp(1.55rem, 3vw, 2.95rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.nv-hero .meta {
  font-size: 1rem;
  color: #a1a1a6;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

.nv-hero .meta strong { color: var(--nv-green); font-weight: 600; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(47,47,47,0.96);
  color: #fff;
  font-size: clamp(0.78rem, 1.45vw, 1.05rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 12px rgba(0,0,0,0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-pill:not(.disabled):hover {
  background: rgba(118,185,0,0.95);
  color: #101010;
  transform: translateY(-1px);
}

.hero-pill.disabled {
  cursor: default;
}

.hero-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 0.65rem;
}

.hero-pill-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-authors {
  max-width: 980px;
  margin: 1.05rem auto 1.1rem;
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.92rem, 1.55vw, 1.15rem);
  line-height: 1.45;
}

.hero-authors p {
  margin: 0;
}

.hero-authors a {
  color: inherit;
  text-decoration-color: rgba(118,185,0,0.78);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.hero-authors a:hover {
  color: var(--nv-green);
}

.hero-affiliations {
  margin-top: 0.35rem !important;
  color: rgba(255,255,255,0.72);
  font-size: 0.86em;
}

/* ----- Media ----- */

.media-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #000;
}

.media-bleed video,
.media-bleed img {
  display: block;
  width: 100%;
  height: auto;
}

.media-block { margin: 3rem 0; }

.media-block video,
.media-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.method-video-block {
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.method-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.method-overlay-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem 1.5rem;
  background: rgba(245,245,247,0.82);
  color: #111;
  font-size: clamp(1.35rem, 2.6vw, 2.55rem);
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
}

.method-overlay-title .term {
  transition: opacity 0.25s ease, color 0.25s ease;
}

.method-overlay-title .locomotion,
.method-step.locomotion span {
  color: #2f80c7;
}

.method-overlay-title .manipulation,
.method-step.manipulation span {
  color: #00a6b4;
}

.method-overlay-title .skill {
  color: #c9731f;
}

.method-video-block[data-method-phase="locomotion"] .method-overlay-title .term:not(.locomotion),
.method-video-block[data-method-phase="manipulation"] .method-overlay-title .term:not(.manipulation),
.method-video-block[data-method-phase="skill"] .method-overlay-title .term:not(.skill) {
  opacity: 0.4;
}

.method-flow {
  position: absolute;
  right: 1.5rem;
  top: 27%;
  width: min(16rem, 20vw);
  display: grid;
  gap: 0.8rem;
}

.method-step {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 0.85rem;
  border: 1px solid rgba(0,0,0,0.75);
  border-radius: 1rem;
  background: rgba(235,235,238,0.72);
  color: #1d1d1f;
  box-shadow: 0 1px 10px rgba(0,0,0,0.24);
  opacity: 0.42;
  transform: scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.method-step span {
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  font-weight: 500;
  line-height: 1.15;
}

.method-step.skill span {
  color: #c9731f;
}

.method-step img {
  display: block;
  flex: 0 0 auto;
  max-width: 3rem;
  max-height: 3.2rem;
  object-fit: contain;
}

.method-step.skill img {
  max-width: 4.8rem;
}

.method-video-block[data-method-phase="locomotion"] .method-step.locomotion,
.method-video-block[data-method-phase="manipulation"] .method-step.manipulation,
.method-video-block[data-method-phase="skill"] .method-step.skill {
  background: rgba(245,245,247,0.92);
  opacity: 1;
  transform: scale(1);
}

.method-video-block[data-method-phase="locomotion"] .method-step.locomotion {
  border-color: rgba(47,128,199,0.9);
}

.method-video-block[data-method-phase="manipulation"] .method-step.manipulation {
  border-color: rgba(0,166,180,0.9);
}

.method-video-block[data-method-phase="skill"] .method-step.skill {
  border-color: rgba(201,115,31,0.9);
}

.method-flow-arrow {
  width: 2px;
  height: 2.2rem;
  justify-self: center;
  background: rgba(255,255,255,0.9);
  position: relative;
  opacity: 0.88;
}

.method-flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.05rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid rgba(255,255,255,0.9);
  border-bottom: 2px solid rgba(255,255,255,0.9);
  transform: translateX(-50%) rotate(45deg);
}

.media-caption {
  font-size: 0.95rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 1rem;
}

.dark .media-caption { color: #d1d1d6; }

.rollout-heading {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-align: center;
}

.planning-demo-block {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.planning-demo-copy {
  max-width: 960px;
  margin: 0 auto 2rem;
  text-align: center;
}

.planning-demo-copy h3 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

.planning-demo-copy p {
  color: var(--ink-mute);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

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

.planning-demo-card {
  margin: 0;
  min-width: 0;
}

.planning-demo-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
}

.planning-demo-card figcaption {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.8rem;
  text-align: center;
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 0;
}

.rollout-card {
  margin: 0;
  min-width: 0;
  position: relative;
}

.rollout-card::before {
  content: "Autonomous | 2x speed";
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  color: #f5f5f7;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.38rem 0.55rem;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.rollout-card video,
.rollout-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
}

.rollout-card figcaption {
  margin-top: 0.75rem;
  text-align: center;
}

.rollout-title {
  display: block;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
}

.rollout-rate {
  display: block;
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-top: 0.25rem;
}

.baseline-compare-block {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

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

.baseline-compare-card {
  margin: 0;
  min-width: 0;
}

.baseline-compare-card figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 5rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  text-align: center;
}

.baseline-compare-card figcaption small {
  color: var(--ink-mute);
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.baseline-compare-card figcaption .baseline-success {
  color: var(--ink);
  font-weight: 600;
}

.baseline-compare-card figcaption a {
  color: inherit;
  text-decoration-color: rgba(118,185,0,0.7);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.baseline-compare-card figcaption a:hover {
  color: var(--nv-green-dark);
}

.baseline-video-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}

.baseline-video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
}

.baseline-video-wrap span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  color: #f5f5f7;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.38rem 0.55rem;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* ----- Numbered rows (replaces contribution cards) ----- */

.nv-list {
  border-top: 1px solid var(--hairline);
}

.dark .nv-list { border-top-color: #2c2c2e; }

.nv-list .row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.dark .nv-list .row { border-bottom-color: #2c2c2e; }

.nv-list .row .num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-green);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.nv-list .row h4 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.dark .nv-list .row h4 { color: #fff; }

.nv-list .row p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.dark .nv-list .row p { color: #c7c7cc; }

/* Two-column split */
.nv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

.nv-split.reverse > :first-child { order: 2; }

.nv-split video,
.nv-split img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .nv-split { grid-template-columns: 1fr; gap: 2rem; }
  .nv-split.reverse > :first-child { order: 0; }
}

/* ----- Benchmark task grid ----- */

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

.benchmark-task-figure {
  margin: 0;
  min-width: 0;
}

.benchmark-task-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  background: #eef3f8;
  border-radius: 6px;
}

.benchmark-task-figure figcaption {
  display: block;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  text-align: left;
}

.benchmark-task-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nv-green);
  letter-spacing: 0.1em;
  line-height: 1;
}

.benchmark-task-title {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.4rem 0 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.benchmark-task-desc {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-mute);
}

@media (max-width: 768px) {
  .benchmark-task-grid { grid-template-columns: 1fr; }
}

/* ----- Results table ----- */

.nv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  font-variant-numeric: tabular-nums;
}

.nv-table thead th {
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.75rem 0.6rem 0.85rem;
  border-bottom: 1px solid var(--ink);
}

.nv-table thead th:first-child { text-align: left; }

.nv-table tbody td {
  padding: 0.95rem 0.6rem;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  color: var(--ink-soft);
}

.nv-table tbody td:first-child {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
}

.nv-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }

.nv-table .summary td {
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--ink);
}

.nv-table .best {
  font-weight: 700;
  color: var(--ink);
}

.dark .nv-table tbody td,
.dark .nv-table tbody td:first-child,
.dark .nv-table .summary td,
.dark .nv-table .best {
  color: #fff;
}

.nv-table .best::after {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--nv-green);
  margin: 0.25rem auto 0;
}

/* ----- Comparison grid: cotrain vs real-only ----- */

.real-carousel {
  margin: 3rem 0 0;
}

.real-carousel-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 32 / 10.2;
  background: #000;
  border: 1px solid rgba(255,255,255,0.16);
}

.real-carousel-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

.real-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  background: #000;
}

.real-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}

.real-carousel-slide video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.real-carousel-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.real-carousel-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.real-carousel-cell + .real-carousel-cell {
  border-left: 1px solid rgba(255,255,255,0.22);
}

.real-carousel-cell-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.9rem;
  row-gap: 0.25rem;
  align-items: center;
  min-height: 4.3rem;
  padding: 0.8rem 1rem;
  background: #0b0b0d;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: #f5f5f7;
}

.real-carousel-cell-heading strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.real-carousel-cell-heading small {
  display: block;
  grid-column: 1 / 2;
  color: #d1d1d6;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.real-carousel-cell-heading em {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.42rem 0.62rem;
  text-transform: uppercase;
}

.real-carousel-cell-heading.success em {
  background: var(--nv-green);
  color: #101010;
}

.real-carousel-cell-heading.fail em {
  background: rgba(255, 69, 58, 0.92);
  color: #fff;
}

.real-carousel-cell video {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.real-carousel-slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}

.real-carousel-slide figcaption span {
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  font-weight: 650;
  line-height: 1;
}

.real-carousel-meta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #f5f5f7;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  backdrop-filter: blur(8px);
}

.real-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(0,0,0,0.34);
  color: #fff;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.real-carousel-arrow::before {
  content: "";
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  border-top: 0.22rem solid currentColor;
  border-right: 0.22rem solid currentColor;
}

.real-carousel-arrow.prev::before {
  transform: translateX(0.08rem) rotate(-135deg);
}

.real-carousel-arrow.next::before {
  transform: translateX(-0.08rem) rotate(45deg);
}

.real-carousel-arrow:hover {
  background: rgba(118, 185, 0, 0.55);
  border-color: var(--nv-green);
}

.real-carousel-arrow.prev { left: 0.9rem; }
.real-carousel-arrow.next { right: 0.9rem; }

.real-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.real-carousel-dots button {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.34);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.real-carousel-dots button:hover,
.real-carousel-dots button.active {
  background: var(--nv-green);
  transform: scale(1.2);
}

.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 3rem;
}

.compare-tabs button {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dark .compare-tabs button { color: #d1d1d6; }

.compare-tabs button:hover { border-color: var(--nv-green); color: #fff; }

.compare-tabs button.active {
  background: var(--nv-green);
  border-color: var(--nv-green);
  color: #000;
}

.compare-panel { display: none; }
.compare-panel.active { display: block; }

.compare-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.compare-headers .h {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.5rem 0;
}

.dark .compare-headers .h { color: #d1d1d6; }

.compare-headers .h.cotrain { color: var(--nv-green); }
.dark .compare-headers .h.cotrain { color: var(--nv-green-light); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare-cell {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.compare-cell .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.compare-cell::after {
  content: "Autonomous | 1x speed";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  color: #f5f5f7;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.38rem 0.55rem;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare-cell .badge.success {
  background: rgba(118, 185, 0, 0.92);
  color: #000;
}

.compare-cell .badge.fail {
  background: rgba(255, 69, 58, 0.92);
  color: #fff;
}

.compare-cell.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #d1d1d6;
  font-size: 0.92rem;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  .method-overlay-title {
    padding: 0.65rem 0.85rem;
    font-size: clamp(1rem, 4.8vw, 1.45rem);
  }
  .method-flow {
    right: 0.6rem;
    top: 34%;
    width: 30vw;
    gap: 0.45rem;
  }
  .method-step {
    min-height: 2.75rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.55rem;
  }
  .method-step span {
    font-size: 0.68rem;
  }
  .method-step img {
    max-width: 1.8rem;
    max-height: 2rem;
  }
  .method-step.skill img {
    max-width: 2rem;
  }
  .method-flow-arrow {
    height: 1.1rem;
  }
  .real-carousel-viewport { aspect-ratio: 16 / 20; }
  .real-carousel-pair { grid-template-columns: 1fr; }
  .real-carousel-cell + .real-carousel-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,0.22); }
  .real-carousel-cell-heading { min-height: 3.9rem; padding: 0.7rem 0.8rem; }
  .real-carousel-cell-heading strong { font-size: 0.78rem; }
  .real-carousel-cell-heading small { font-size: 0.7rem; }
  .real-carousel-cell-heading em { font-size: 0.65rem; padding: 0.36rem 0.5rem; }
  .real-carousel-slide figcaption { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .real-carousel-arrow { width: 2.25rem; height: 2.25rem; }
  .real-carousel-arrow::before { width: 0.5rem; height: 0.5rem; border-width: 0.18rem; }
  .compare-headers, .compare-grid { grid-template-columns: 1fr; }
  .compare-grid { gap: 0.75rem; }
  .compare-headers .h { text-align: left; padding: 0; }
}

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

/* ----- BibTeX ----- */

.bibtex pre {
  background: #0b0b0c;
  color: #e6e6e6;
  padding: 1.75rem 2rem;
  border-radius: 6px;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  overflow-x: auto;
  border-left: 3px solid var(--nv-green);
  margin: 0;
}

/* ----- Sticky nav ----- */

.nv-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nv-nav .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  padding: 0.85rem 1.5rem;
}

.nv-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nv-nav a:hover { color: var(--nv-green-dark); }

@media (max-width: 640px) {
  .nv-nav .inner { gap: 1.1rem; font-size: 0.85rem; overflow-x: auto; justify-content: flex-start; }
}

/* ----- Footer ----- */

.nv-footer {
  background: #000;
  color: #d1d1d6;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.nv-footer a {
  color: var(--nv-green);
  text-decoration: none;
}

.nv-footer a:hover { color: var(--nv-green-light); }

/* ----- Reveal-on-scroll ----- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */

@media (max-width: 768px) {
  .nv-section { padding: 4rem 1.25rem; }
  .nv-hero { padding: 5rem 1.25rem 3.5rem; }
  .benchmark-task-grid { grid-template-columns: 1fr; }
  .baseline-compare-grid { grid-template-columns: 1fr; }
  .baseline-compare-card figcaption { flex-direction: column; gap: 0.2rem; align-items: center; }
  .planning-demo-grid { grid-template-columns: 1fr; }
  .rollout-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .nv-list .row { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.5rem 0; }
  .nv-list .row h4 { font-size: 1.2rem; }
  .nv-table { font-size: 0.85rem; }
  .nv-table thead th, .nv-table tbody td { padding: 0.6rem 0.35rem; }
}
