:root {
  --bg: #ffffff;
  --bg-soft: #eef7ef;
  --bg-tint: #f6fbf6;
  --bg-dark: #08130d;
  --paper: #ffffff;
  --text: #0f1a14;
  --muted: #5d6b62;
  --line: #dfe7e0;
  --line-dark: rgba(255, 255, 255, 0.10);
  --accent: #16a34a;
  --accent-deep: #0f7a37;
  --accent-soft: #bbf7d0;
  /* Display & body serif fallbacks tuned for Linux/Android too:
     try Apple's Iowan & Charter first, then high-quality Linux serifs,
     then Noto / Liberation / DejaVu before Times. */
  --serif-display: "Fraunces", "Source Serif 4", "Iowan Old Style", "Charter",
    "Noto Serif", "Liberation Serif", "DejaVu Serif", Georgia, "Times New Roman", serif;
  --serif-body: "Source Serif 4", "Fraunces", "Iowan Old Style", "Charter",
    "Noto Serif", "Liberation Serif", "DejaVu Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--serif-body);
  font-feature-settings: "ss01", "kern", "liga";
  font-optical-sizing: auto;
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { display: block; max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(12, 13, 16, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 62px;
  padding: 12px 0 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--serif-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.005em;
}
.brand .logo-link { display: inline-flex; align-items: center; line-height: 0; }
.brand .logo-link:hover { text-decoration: none; opacity: 0.85; }
.brand .logo-odl { height: 24px; width: auto; transition: opacity 0.2s ease; }
.brand-sep { opacity: 0.35; margin: 0 0.2rem; font-style: normal; }
.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff !important;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  font-style: italic;
  font-weight: 700;
}
.brand-title:hover { text-decoration: none; opacity: 0.85; color: #ffffff !important; }
.brand-emoji {
  display: inline-block;
  font-size: 1.05em;
  font-style: normal;
  transform: translateY(-0.04em);
  filter: drop-shadow(0 0 6px rgba(110, 231, 163, 0.45));
  animation: brand-spin 18s linear infinite;
}
@keyframes brand-spin {
  to { transform: translateY(-0.04em) rotate(360deg); }
}
.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.topnav a {
  position: relative;
  color: rgba(232, 244, 236, 0.62);
  font-family: var(--serif-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.52rem;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.topnav a:hover {
  color: #ffffff;
  text-decoration: none;
}
.topnav a.active {
  color: #ffffff;
}
.topnav a.active::after {
  background: var(--accent-soft);
  box-shadow: 0 0 12px rgba(187, 247, 208, 0.45);
}
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 60;
  background: rgba(8, 19, 13, 0.55);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.top-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,
    var(--accent-deep) 0%,
    var(--accent) 35%,
    #6ee7a3 70%,
    var(--accent-soft) 100%);
  box-shadow:
    0 0 18px rgba(110, 231, 163, 0.85),
    0 0 8px rgba(22, 163, 74, 0.65);
  transition: width 0.12s linear;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 110px 32px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% 38%, rgba(0,0,0,0.03), rgba(6,20,12,0.35) 60%, rgba(6,20,12,0.72)),
    linear-gradient(180deg, rgba(8,19,13,0.34) 0%, rgba(8,19,13,0.20) 38%, rgba(8,19,13,0.80) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
}

/* Subtle soccer-pitch markings layered over the hero — halfway line + center circle + center spot */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' preserveAspectRatio='xMidYMax slice'><g fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.8'><line x1='0' y1='480' x2='1600' y2='480'/><circle cx='800' cy='480' r='110'/></g><circle cx='800' cy='480' r='4' fill='rgba(255,255,255,0.7)'/></svg>");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  mix-blend-mode: screen;
}
.venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  border: 1px solid rgba(187, 247, 208, 0.45);
  background: rgba(22, 163, 74, 0.14);
  color: var(--accent-soft);
  border-radius: 999px;
  font-family: var(--serif-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.hero .paper-title {
  margin: 0 auto 0.9rem;
  max-width: 1000px;
  font-family: var(--serif-display);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 25;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 30, 12, 0.45);
}
.hero .paper-title .brand-name {
  color: #6ee7a3;
  font-weight: 700;
  text-shadow: 0 0 28px rgba(110, 231, 163, 0.55);
}
.hero .paper-title .colon {
  color: rgba(255, 255, 255, 0.72);
  margin-right: 0.18em;
}
.hero .paper-title .title-sub {
  display: block;
  margin-top: 0.2em;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
/* Resource links below the hero title — Paper · arXiv · YouTube */
.hero-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem auto 1.4rem;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(8, 30, 16, 0.45);
  border: 1px solid rgba(187, 247, 208, 0.45);
  color: #f1fdf4;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-link:hover {
  text-decoration: none;
  background: rgba(22, 163, 74, 0.32);
  border-color: rgba(110, 231, 163, 0.85);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(110, 231, 163, 0.35);
  transform: translateY(-1px);
}
.hero-link-ic {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent-soft);
}
.hero-link:hover .hero-link-ic {
  color: #6ee7a3;
}
/* Coming-soon (disabled) state */
.hero-link.is-soon {
  cursor: default;
  background: rgba(8, 30, 16, 0.30);
  border-color: rgba(187, 247, 208, 0.22);
  color: rgba(225, 245, 230, 0.55);
}
.hero-link.is-soon:hover {
  background: rgba(8, 30, 16, 0.30);
  border-color: rgba(187, 247, 208, 0.22);
  color: rgba(225, 245, 230, 0.55);
  box-shadow: none;
  transform: none;
}
.hero-link.is-soon .hero-link-ic {
  color: rgba(187, 247, 208, 0.55);
}
.hero-link-soon {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(110, 231, 163, 0.18);
  color: var(--accent-soft);
  font-family: var(--serif-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.one-liner {
  margin: 0 auto;
  max-width: 760px;
  font-family: var(--serif-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  color: #6ee7a3;
  line-height: 1.55;
  text-shadow: 0 0 18px rgba(110, 231, 163, 0.45), 0 1px 10px rgba(0, 20, 8, 0.45);
}
.paper-info {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
  text-align: center;
}
.authors {
  margin: 0 auto 0.6rem;
  max-width: 1040px;
  color: var(--text);
  font-family: var(--serif-body);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}
.author-row {
  display: block;
  text-align: center;
}
.author-row + .author-row { margin-top: 0.15rem; }
.authors a,
.authors > .author-row > span {
  color: var(--text);
}
.authors a {
  border-bottom: 1px solid rgba(22, 163, 74, 0.38);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.authors a:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
  text-decoration: none;
}
.authors sup { color: var(--accent-deep); }
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.8rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  font-style: italic;
}
.affiliations sup { color: var(--accent-deep); }
.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.6rem auto 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.cta:hover {
  text-decoration: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.cta.disabled {
  color: rgba(15, 26, 20, 0.38);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(15, 26, 20, 0.08);
  cursor: default;
  pointer-events: none;
}
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  animation: fade 2.4s ease-in-out infinite;
}
@keyframes fade { 0%,100%{opacity:0.3} 50%{opacity:0.85} }

/* ===== Highlight reel (full video) ===== */
.reel {
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(22, 163, 74, 0.10), transparent 70%),
    var(--bg-tint);
  color: var(--text);
  padding: 5rem 0 5.5rem;
  border-bottom: 1px solid var(--line);
}
.kicker.centered { display: block; text-align: center; margin-bottom: 1.4rem; }
.reel h2 {
  margin: 0 0 2.4rem;
  font-family: var(--serif-display);
  font-size: clamp(3.2rem, 7.2vw, 5.6rem);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 1100px;
}
.reel .story { margin: 0 0 2.4rem; }
.reel-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f1f1;
  box-shadow:
    0 28px 72px rgba(10, 40, 22, 0.18),
    0 0 0 1px rgba(22, 163, 74, 0.18);
  aspect-ratio: 16 / 9;
}
.hero-bg,
.reel-frame video,
.video-card video,
.video-mini video {
  transition: opacity 0.2s ease;
}
.reel-frame video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: transparent;
}
.reel-cap {
  margin: 1.4rem auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}
.reel-cap em { color: var(--accent-deep); font-style: italic; }

/* ===== Sections ===== */
.section { padding: 6.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker {
  display: inline-block;
  color: var(--accent);
  font-family: var(--serif-body);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 1rem;
}
.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 900px;
}
.section h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.lede {
  max-width: 760px;
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
  font-style: italic;
}
/* Wider, larger narrative paragraphs used in Overview & Experiments */
.overview .lede,
#experiments > .container > .lede {
  max-width: 1080px;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--text);
}
.pipeline .lede,
#real-robot > .container > .lede {
  max-width: 1080px;
}
/* Mint-highlight numeric strong inside narrative paragraphs */
.lede strong,
.story strong {
  background: linear-gradient(180deg, transparent 65%, rgba(187, 247, 208, 0.55) 65%);
  padding: 0 0.1em;
  border-radius: 1px;
  white-space: nowrap;
}

/* ===== Demo video grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.video-card {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f1f1;
  aspect-ratio: 16 / 9;
  box-shadow: 0 14px 32px rgba(20, 24, 31, 0.08);
  border: 1px solid var(--line);
}
.video-card.span-2 { grid-column: span 2; aspect-ratio: 21 / 9; }
.video-card video,
.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  z-index: 1;
}
.video-card figcaption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 14px;
  color: #fff;
  font-family: var(--serif-body);
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  background: rgba(8, 30, 16, 0.78);
  border: 1px solid rgba(110, 231, 163, 0.35);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.tag {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--accent-soft);
  color: var(--accent-soft);
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--serif-body);
  font-size: 0.7rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== Section backgrounds ===== */
.overview { background: var(--bg); }
.demo-block { background: var(--bg); }
.results-section { background: var(--bg); }
.abstract { background: var(--bg-tint); }
.glance { background: var(--bg); }

/* "At a Glance" narrative paragraph */
.story {
  max-width: 920px;
  margin: 0;
  font-family: var(--serif-body);
  font-size: clamp(1.15rem, 1.55vw, 1.32rem);
  line-height: 1.7;
  color: var(--text);
}
.story em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}
.story strong {
  color: var(--accent-deep);
  font-weight: 700;
}

/* Abstract body type */
.abstract-body {
  max-width: 1140px;
  margin: 0;
  font-family: var(--serif-body);
  font-size: clamp(0.93rem, 1.08vw, 1.02rem);
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
}
.abstract-body strong {
  color: var(--accent-deep);
  font-weight: 700;
}
.kw {
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 65%, rgba(187, 247, 208, 0.55) 65%);
  padding: 0 0.08em;
  border-radius: 1px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .kw { white-space: normal; }
}

/* Inline "Stage N" emphasis in narratives */
.stage-ref {
  font-family: var(--serif-display);
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 8px rgba(110, 231, 163, 0.25);
}

/* Overview · 3-stage video trio */
.stages-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 2.6rem 0 0.6rem;
}
.stage-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 6px 20px rgba(10, 40, 22, 0.05);
}
.stage-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.stage-card-head .stage-num {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  background: rgba(22, 163, 74, 0.10);
  font-family: var(--serif-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}
.stage-card-head h4 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.stage-card .video-mini {
  position: relative;
  margin: 0 0 0.9rem;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}
.stage-card .video-mini video,
.stage-card .video-mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.stage-card figcaption {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif-body);
  font-size: 0.96rem;
  line-height: 1.55;
  font-style: italic;
  text-align: left;
}
.stage-card figcaption em {
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 600;
}
@media (max-width: 860px) {
  .stages-row { grid-template-columns: 1fr; }
}

/* Perception block sits inside Experiments — image figure not a video grid */
.perception-block .paper-figure {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Results section: keep both figures the same width within their cards */
.results-section .stage-block .paper-figure {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Short narrative paragraph inside a stage-head */
.block-narrative {
  margin: 0.8rem 0 0;
  max-width: 820px;
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.block-narrative em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}

/* ===== Stage blocks (inside merged Experiments) ===== */
.stage-block {
  margin-top: 1.6rem;
  padding: 2.6rem clamp(1.2rem, 3vw, 2.6rem);
  border-radius: 10px;
  background: var(--bg-tint);
}
.stage-block:nth-of-type(even) {
  background: var(--bg-soft);
}
.stage-block:first-of-type {
  margin-top: 1.2rem;
}
.stage-head { margin-bottom: 0.8rem; max-width: 880px; }
.stage-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  background: rgba(22, 163, 74, 0.08);
  font-family: var(--serif-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
}
.stage-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif-display);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.stage-head p { margin: 0; color: var(--muted); font-style: italic; font-size: 1.02rem; }

/* ===== Demo subgroups & mini-video grids ===== */
.subgroup { margin-top: 2.6rem; }
.subgroup:first-of-type { margin-top: 1.4rem; }
.cluster-break {
  margin: 3.4rem auto 2.4rem;
  max-width: 70%;
  height: 0;
  border-top: 1px dashed var(--accent-soft);
  background: none;
}
.cluster-break + .subgroup { margin-top: 0; }
.sub-title {
  margin: 0 0 0.25rem;
  font-family: var(--serif-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}
.sub-title em { color: var(--accent-deep); font-style: italic; font-weight: 600; }
.sub-cap {
  margin: 0 0 1rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.96rem;
}
.vg-3, .vg-2 {
  display: grid;
  gap: 14px;
}
.vg-3 { grid-template-columns: repeat(3, 1fr); }
.vg-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.video-mini {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f1f1;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(10, 40, 22, 0.08);
}
.video-mini video,
.video-mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  z-index: 1;
}
@media (dynamic-range: high), (video-dynamic-range: high) {
  video.hdr-dim {
    filter: brightness(0.62);
  }
}
.video-mini figcaption {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 11px;
  color: #ffffff;
  font-family: var(--serif-body);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: right;
  background: rgba(8, 30, 16, 0.78);
  border: 1px solid rgba(110, 231, 163, 0.35);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.paper-figure {
  margin: 2rem 0;
  text-align: center;
}
.paper-figure.compact {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.results-section .paper-figure.compact {
  max-width: 980px;
}
.paper-figure img {
  width: 100%;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
}
.paper-figure figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2rem;
}
.card {
  position: relative;
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(20, 24, 31, 0.04);
}
.card .num {
  display: inline-block;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.7rem;
  font-variation-settings: "opsz" 144;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ===== Experiments ===== */
.exp-block { margin: 2.8rem 0 1.4rem; }
.exp-head {
  max-width: 880px;
  margin-bottom: 0.5rem;
}
.exp-head h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.exp-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* labeled overlays */
.image-wrap { position: relative; }
.panel-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--serif-display);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}
.preview-labels .label-a { top: 2%; left: 1%; }
.preview-labels .label-b { top: 51%; left: 1%; }
.trial-labels .label-c,
.trial-labels .label-d,
.trial-labels .label-e,
.trial-labels .label-f { top: 2%; }
.trial-labels .label-c { left: 1%; }
.trial-labels .label-d { left: 26%; }
.trial-labels .label-e { left: 51%; }
.trial-labels .label-f { left: 76%; }

/* ===== BibTeX ===== */
.bib { background: var(--bg-soft); }
.bibtex-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  margin-top: 0.6rem;
}
.bibtex-box button {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.4rem 0.85rem;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bibtex-box button:hover { border-color: var(--accent); color: var(--accent); }
.bibtex-box button.copied { color: #fff; background: var(--accent); border-color: var(--accent); }
pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  white-space: pre;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* ===== Footer ===== */
footer {
  position: relative;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.4rem 0 2rem;
  font-family: var(--serif-body);
}
/* Mowed-pitch turf band at top of footer + thin touchline */
footer::before {
  content: "";
  display: block;
  height: 16px;
  margin-bottom: 1.6rem;
  background:
    repeating-linear-gradient(90deg,
      rgba(110, 231, 163, 0.06) 0 90px,
      rgba(110, 231, 163, 0.14) 90px 180px);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand.small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 600;
  font-style: italic;
  gap: 0.5rem;
}
.brand.small img { height: 24px; width: auto; }
.copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.86rem;
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .reel { padding: 3.5rem 0 4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .vg-3 { grid-template-columns: 1fr; }
  .vg-2 { grid-template-columns: 1fr; }
  .video-card.span-2 { grid-column: span 1; aspect-ratio: 16/9; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .hero { min-height: 88vh; padding-top: 90px; }
  .topbar-inner {
    justify-content: center;
    gap: 0.8rem;
  }
  .topnav {
    width: 100%;
    justify-content: center;
    gap: 0.85rem 1rem;
  }
  .topnav a {
    font-size: 0.9rem;
  }
}
@media (max-width: 540px) {
  .hero h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .brand-title { display: none; }
  .topbar-inner {
    width: min(var(--max), calc(100% - 24px));
    padding: 10px 0 8px;
  }
  .topnav {
    display: none;
  }
}
