:root {
  --bg: #ffffff;
  --surface: #f7faf9;
  --surface-2: #eef6f4;
  --card: #ffffff;
  --ink: #1e252b;
  --ink-2: #40505c;
  --ink-3: #6c7a86;
  --line: #dce5e8;
  --teal: #007a78;
  --teal-2: #0a9a90;
  --blue: #2e5aac;
  --amber: #d49b00;
  --coral: #c95f3d;
  --ghost: #e9f5f2;
  --grad: linear-gradient(96deg, #007a78 0%, #2e5aac 56%, #d49b00 112%);
  --nav-bg: rgba(255, 255, 255, .78);
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 30px rgba(15, 23, 42, .07);
  --shadow-soft: 0 1px 3px rgba(15, 23, 42, .08);
  --radius: 8px;
  --font-display: "Google Sans", "Google Sans Text", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Google Sans Text", "Google Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
}

html[data-theme="dark"] {
  --bg: #12171b;
  --surface: #182027;
  --surface-2: #1c2a2f;
  --card: #172027;
  --ink: #edf4f5;
  --ink-2: #c8d5d9;
  --ink-3: #9dafb7;
  --line: #33424a;
  --teal: #59d2c6;
  --teal-2: #66e1d6;
  --blue: #9db8ff;
  --amber: #f1ca55;
  --coral: #f09a7d;
  --ghost: rgba(89, 210, 198, .13);
  --nav-bg: rgba(18, 23, 27, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px rgba(0, 0, 0, .26);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, .3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(10, 154, 144, .2);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(830px, calc(100% - 48px));
}

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2000;
  height: 3px;
  width: 0;
  background: var(--grad);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: var(--nav-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: border-color .2s ease;
}

.nav.is-scrolled {
  border-color: var(--line);
}

.nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav-brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.nav-links {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--teal);
  background: var(--ghost);
  text-decoration: none;
}

.icon-btn {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--card);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--teal);
  background: var(--ghost);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-sun {
  display: none;
}

html[data-theme="dark"] .theme-sun {
  display: inline-block;
}

html[data-theme="dark"] .theme-moon {
  display: none;
}

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 42px) 0 44px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(233, 245, 242, .92), rgba(255, 255, 255, 0) 74%),
    radial-gradient(1.4px 1.4px at 50% 50%, rgba(46, 90, 172, .15) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
}

html[data-theme="dark"] .hero-bg {
  background:
    linear-gradient(180deg, rgba(28, 42, 47, .88), rgba(18, 23, 27, 0) 74%),
    radial-gradient(1.4px 1.4px at 50% 50%, rgba(157, 184, 255, .15) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 28px 28px;
}

.venue {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 6px 15px;
  border: 1px solid rgba(10, 154, 144, .3);
  border-radius: 999px;
  color: var(--teal);
  background: var(--ghost);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1180px;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.05vw, 3rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.06;
}

.title-line {
  display: block;
}

.mobile-only {
  display: none;
}

.grad-text {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 780px;
  margin: 0 auto 24px;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.authors {
  display: flex;
  max-width: 920px;
  margin: 0 auto 10px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 13px;
  color: var(--ink);
  font-size: 1rem;
}

.authors span {
  white-space: nowrap;
}

.authors a {
  color: var(--ink);
  font-weight: 500;
}

.authors a:hover {
  color: var(--teal);
  text-decoration: none;
}

sup {
  color: var(--teal);
  font-weight: 700;
}

.affiliations,
.author-note {
  margin: 0 auto 6px;
  color: var(--ink-3);
  font-size: .93rem;
}

.author-note {
  margin-bottom: 24px;
  font-size: .86rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 154, 144, .55);
  background: var(--ghost);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-primary {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.btn-primary:hover {
  border-color: var(--teal-2);
  color: #fff;
  background: var(--teal-2);
}

.btn-muted {
  color: var(--blue);
}

.btn-disabled {
  color: var(--ink-3);
  background: var(--surface);
  cursor: default;
}

.btn-disabled:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.hero-teaser,
.figure-card,
.table-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.hero-teaser {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: clamp(8px, 1.3vw, 14px);
}

.hero-teaser img,
.figure-card img {
  width: 100%;
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
}

figcaption {
  max-width: 76ch;
  margin: 12px auto 0;
  color: var(--ink-3);
  font-size: .9rem;
  text-align: center;
}

figcaption b {
  color: var(--ink-2);
}

.real-video-strip {
  margin: 0 auto 28px;
  text-align: left;
}

.strip-head {
  max-width: 820px;
  margin: 0 auto 18px;
  text-align: center;
}

.strip-head .eyebrow {
  margin-bottom: 10px;
}

.strip-head h2 {
  max-width: 780px;
  margin: 0 auto 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.strip-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

.real-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.real-video-card {
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 1.4vw, 14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.real-video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 6px;
  background: #05080a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
}

.real-video-card figcaption {
  max-width: 64ch;
  margin-top: 10px;
  font-size: .86rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.stat {
  min-width: 0;
  padding: 21px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.stat span {
  display: block;
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.35;
}

.section {
  padding: 64px 0;
}

.section:not(.band) + .section:not(.band) {
  padding-top: 34px;
}

.band {
  background: var(--surface-2);
}

.section-head {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.18;
  overflow-wrap: break-word;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.45vw, 2.75rem);
}

h3 {
  color: var(--ink);
  font-size: 1.16rem;
}

.lead,
.section-copy {
  color: var(--ink-2);
  font-size: 1.08rem;
}

.lead {
  margin: 0;
}

.lead + .lead {
  margin-top: 18px;
}

.section-copy {
  max-width: 780px;
  margin: 0;
}

.figure-card {
  margin-bottom: 18px;
  padding: clamp(12px, 1.8vw, 22px);
}

.video-head {
  max-width: 820px;
}

.video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(292px, .8fr);
  gap: 18px;
  align-items: start;
}

.video-frame,
.video-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-frame {
  margin: 0;
  padding: clamp(10px, 1.5vw, 14px);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
}

.video-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 2.5vw, 30px);
  background:
    linear-gradient(180deg, rgba(233, 245, 242, .64), rgba(255, 255, 255, .88)),
    var(--card);
}

html[data-theme="dark"] .video-panel {
  background:
    linear-gradient(180deg, rgba(28, 42, 47, .68), rgba(23, 32, 39, .92)),
    var(--card);
}

.video-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.32rem, 2.1vw, 1.72rem);
}

.video-panel p {
  margin: 0;
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.58;
}

.video-points {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.video-point {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.video-point:first-child {
  border-top: 0;
  padding-top: 0;
}

.video-point:last-child {
  padding-bottom: 0;
}

.video-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid rgba(10, 154, 144, .28);
  border-radius: 8px;
  color: var(--teal);
  background: var(--ghost);
}

.video-icon svg {
  width: 19px;
  height: 19px;
}

.video-point strong,
.video-point span {
  display: block;
}

.video-point strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .96rem;
}

.video-point span {
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.45;
}

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

.feature-card {
  min-width: 0;
  min-height: 235px;
  padding: 23px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.feature-index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid rgba(10, 154, 144, .35);
  border-radius: 999px;
  color: var(--teal);
  background: var(--ghost);
  font-family: var(--font-display);
  font-weight: 700;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: .95rem;
}

.annotation-carousel {
  margin: 20px 0 22px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.carousel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.carousel-head h3 {
  margin-bottom: 9px;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
}

.carousel-head p {
  max-width: 790px;
  margin: 0;
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.55;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.carousel-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 154, 144, .5);
  color: var(--teal);
  background: var(--ghost);
}

.carousel-btn svg {
  width: 19px;
  height: 19px;
}

.carousel-count {
  min-width: 42px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: .86rem;
  text-align: center;
}

.annotation-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(238, 246, 244, .72), rgba(255, 255, 255, .92)),
    var(--surface);
}

html[data-theme="dark"] .annotation-stage {
  background:
    linear-gradient(180deg, rgba(28, 42, 47, .72), rgba(23, 32, 39, .92)),
    var(--surface);
}

.annotation-slide {
  display: none;
  margin: 0;
  padding: clamp(12px, 1.6vw, 18px);
}

.annotation-slide.is-active {
  display: block;
}

.annotation-slide video {
  width: 100%;
  height: min(68vh, 520px);
  object-fit: contain;
  border-radius: 6px;
  background: #070b0d;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.result-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.result-metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.result-metric.is-primary {
  border-color: rgba(10, 154, 144, .35);
  background:
    linear-gradient(180deg, rgba(233, 245, 242, .9), rgba(255, 255, 255, .96)),
    var(--card);
}

html[data-theme="dark"] .result-metric.is-primary {
  background:
    linear-gradient(180deg, rgba(28, 42, 47, .76), rgba(23, 32, 39, .95)),
    var(--card);
}

.result-metric span,
.result-metric small {
  display: block;
  color: var(--ink-3);
  line-height: 1.3;
}

.result-metric span {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-metric strong {
  display: block;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1;
}

.result-metric small {
  margin-top: 6px;
  font-size: .86rem;
}

.result-dashboard {
  display: grid;
  gap: 18px;
}

.result-panel {
  min-width: 0;
  padding: clamp(20px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.planning-panel,
.simulation-panel,
.rmbench-panel {
  display: grid;
  gap: 20px;
}

.simulation-panel {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.simulation-panel .panel-head,
.rmbench-panel .panel-head {
  grid-column: 1 / -1;
}

.rmbench-native-grid {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  gap: 18px;
}

.panel-head {
  max-width: 860px;
}

.panel-kicker {
  margin: 0 0 7px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-head h3 {
  max-width: 760px;
  margin-bottom: 9px;
  font-size: clamp(1.42rem, 2.2vw, 1.9rem);
}

.panel-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: .98rem;
}

.paired-bar-chart {
  display: grid;
  gap: 12px;
}

.paired-row {
  display: grid;
  grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.paired-row.ours {
  border-color: rgba(10, 154, 144, .36);
  background: var(--ghost);
}

.method-name strong,
.method-name span {
  display: block;
}

.method-name strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.method-name span {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: .84rem;
}

.paired-bars {
  display: grid;
  gap: 8px;
}

.score-line,
.ranked-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.score-line span,
.ranked-row span {
  color: var(--ink-2);
  font-size: .86rem;
}

.score-line i,
.ranked-row i {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(108, 122, 134, .16);
}

.score-line b,
.ranked-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.score-line.episode b {
  background: var(--amber);
}

.score-line em,
.ranked-row em {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .86rem;
  font-style: normal;
  text-align: right;
}

.score-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.score-chip-grid span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  background: var(--surface);
  font-size: .9rem;
}

.score-chip-grid b {
  display: block;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.benchmark-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.benchmark-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.benchmark-title strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.benchmark-title span {
  color: var(--ink-3);
  font-size: .82rem;
}

.ranked-bars {
  display: grid;
  gap: 10px;
}

.ranked-row {
  grid-template-columns: minmax(110px, .33fr) minmax(0, 1fr) 44px;
}

.ranked-row.ours span,
.ranked-row.ours em {
  color: var(--teal);
  font-weight: 700;
}

.ranked-row:not(.ours) b {
  background: #8b98a4;
}

.ranked-bars.compact {
  gap: 9px;
}

.robowin-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.robowin-row {
  display: grid;
  grid-template-columns: minmax(96px, 1.25fr) repeat(3, minmax(0, .75fr));
  background: var(--card);
}

.robowin-row + .robowin-row {
  border-top: 1px solid var(--line);
}

.robowin-row span {
  padding: 10px 11px;
  color: var(--ink-2);
  font-size: .9rem;
  text-align: center;
}

.robowin-row span:first-child {
  text-align: left;
}

.robowin-row.head span {
  color: var(--ink-3);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.robowin-row.ours span {
  color: var(--teal);
  background: var(--ghost);
  font-weight: 700;
}

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

.task-score {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.task-score.is-strong {
  border-color: rgba(10, 154, 144, .32);
  background: var(--ghost);
}

.task-score span,
.task-score small {
  display: block;
}

.task-score span {
  min-height: 34px;
  color: var(--ink-2);
  font-size: .84rem;
  line-height: 1.25;
}

.task-score strong {
  display: block;
  margin: 9px 0 5px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1;
}

.task-score small {
  color: var(--ink-3);
  font-size: .75rem;
  line-height: 1.25;
}

.split-grid > *,
.table-grid > * {
  min-width: 0;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0 18px;
}

.table-card {
  padding: 22px;
}

.table-card h3 {
  margin-bottom: 16px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--card);
  font-size: .94rem;
}

th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

thead th {
  color: var(--ink-2);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tr.ours {
  color: var(--ink);
  background: var(--ghost);
  font-weight: 700;
}

tr.ours td:last-child {
  color: var(--teal);
}

.bibtex-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: #20262b;
  box-shadow: var(--shadow);
}

.bibtex-card pre {
  margin: 0;
  overflow-x: auto;
  color: #eef4f4;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.footer {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg);
  font-size: .92rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(8, 12, 16, .9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  max-width: min(82ch, calc(100% - 48px));
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.2, .6, .2, 1), transform .65s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0ms);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  .video-showcase {
    grid-template-columns: 1fr;
  }

  .real-video-grid {
    grid-template-columns: 1fr;
  }

  .video-panel {
    display: block;
  }

  .video-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .video-point,
  .video-point:first-child,
  .video-point:last-child {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 0 0 0 15px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .video-icon {
    margin-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulation-panel,
  .rmbench-native-grid {
    grid-template-columns: 1fr;
  }

  .annotation-stage {
    min-height: 520px;
  }

  .annotation-slide video {
    height: min(62vh, 430px);
  }

}

@media (max-width: 820px) {
  .wrap,
  .wrap-narrow {
    width: min(1120px, calc(100% - 32px));
  }

  .nav-inner {
    width: min(1120px, calc(100% - 20px));
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 28px);
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7.1vw, 2.1rem);
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hero-sub {
    max-width: 32ch;
    font-size: .98rem;
  }

  .strip-head {
    max-width: 34rem;
    text-align: center;
  }

  .strip-head h2,
  .strip-head p {
    margin-left: auto;
    margin-right: auto;
  }

  .authors {
    max-width: 33ch;
    gap: 3px 9px;
    font-size: .9rem;
  }

  .affiliations,
  .author-note {
    max-width: 34ch;
  }

  .split-grid,
  .table-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    padding: 18px;
  }

  .paired-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .score-chip-grid {
    grid-template-columns: 1fr;
  }

  .rmbench-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carousel-head {
    display: grid;
    gap: 16px;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .annotation-stage {
    min-height: 450px;
  }

  .annotation-slide video {
    height: min(58vh, 360px);
  }

  .video-points {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .video-point,
  .video-point:first-child,
  .video-point:last-child {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .video-point:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .video-point:last-child {
    padding-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  h2 {
    font-size: clamp(1.48rem, 6vw, 1.72rem);
    line-height: 1.22;
  }

  .lead,
  .section-copy {
    font-size: .98rem;
  }

  .nav-brand span:last-child {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat {
    padding: 17px 14px;
  }

  .stat span {
    font-size: .82rem;
    overflow-wrap: break-word;
  }

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

  .result-metric {
    padding: 16px;
  }

  .panel-head h3 {
    font-size: 1.22rem;
  }

  .score-line,
  .ranked-row {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .ranked-row {
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr) 42px;
  }

  .robowin-row {
    grid-template-columns: minmax(86px, 1.2fr) repeat(3, minmax(42px, .75fr));
  }

  .robowin-row span {
    padding: 9px 7px;
    font-size: .8rem;
  }

  .rmbench-task-grid {
    grid-template-columns: 1fr;
  }

  .task-score span {
    min-height: 0;
  }

  .annotation-carousel {
    padding: 14px;
  }

  .annotation-stage {
    min-height: 360px;
  }

  .annotation-slide {
    padding: 10px;
  }

  .annotation-slide video {
    height: min(52vh, 270px);
  }

  .video-panel {
    padding: 20px;
  }

  .video-panel h3 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .video-panel p {
    font-size: .92rem;
  }

  .video-point strong {
    font-size: .9rem;
  }

  .video-point span {
    font-size: .84rem;
  }

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

  .feature-card {
    min-height: auto;
  }

  .button-row {
    gap: 9px;
  }

  .real-video-strip {
    margin-bottom: 22px;
    overflow: hidden;
  }

  .strip-head {
    max-width: 100%;
  }

  .strip-head h2 {
    max-width: min(100%, 18rem);
    font-size: clamp(1.48rem, 6vw, 1.7rem);
    line-height: 1.18;
  }

  .strip-head p {
    max-width: 31ch;
    font-size: .94rem;
  }

  .real-video-card {
    max-width: 100%;
    padding: 9px;
  }

  .real-video-card figcaption {
    max-width: 30ch;
    font-size: .82rem;
  }

  .btn {
    padding: 9px 14px;
    font-size: 13.5px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .bibtex-card {
    padding: 56px 18px 20px;
  }
}
