@font-face {
  font-family: "Anthropic Serif";
  src: url("../assets/fonts/anthropic-serif-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Anthropic Serif";
  src: url("../assets/fonts/anthropic-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

/* WeMM-Video light theme with a mint wave background. */
:root {
  color-scheme: light;
  --bg-base: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f4f7f5;
  --border: #e4e9e5;
  --border-strong: #d3dbd6;

  --ink: #0e1a14;
  --ink-secondary: #3b4841;
  --ink-muted: #5b6a61;

  --emerald: #0b7d45;
  --emerald-deep: #086337;
  --emerald-soft: #e5f4eb;
  --line-accent: #a5d6bd;
  --hero-title: #059a4b;
  --shadow: 0 12px 36px -18px rgba(14, 26, 20, 0.18);

  --font-display: "Anthropic Serif", "Songti SC", "SimSun", serif;
  --font-sans: "Anthropic Serif", "Songti SC", "SimSun", serif;
  --font-mono: "Anthropic Serif", "Songti SC", "SimSun", serif;

  --max-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-base);
}

button, input, select, textarea {
  font-family: inherit;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg-base);
  overflow-x: hidden;
}

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

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--emerald-deep);
}

/* ---------- Persistent Full-Page WebGL Wave Background ---------- */
#ambient-wave-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.page-shell {
  position: relative;
  z-index: 1;
}

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

/* ---------- Instant-Visible Content (Zero Blank-Frame Risk) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Navigation (White Surface) ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 50px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-strong);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17.5px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-brand:hover {
  color: var(--ink);
}

.nav-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-base);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--emerald-deep);
}

.nav-links a.active {
  color: var(--emerald);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-divider {
  color: #aaaaaa;
  font-size: 17px;
  font-weight: 400;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lang-btn.active {
  color: var(--emerald);
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero Section (Full-Viewport Transparent Over Living Waves) ---------- */
.hero-cinema {
  position: relative;
  min-height: clamp(640px, 88vh, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 124px 0 88px;
  text-align: center;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero-org {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin: 0 auto 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: #444444;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, calc(7.6vw - 12px), 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--hero-title);
}

.hero-paper-title {
  margin: 0 auto 26px;
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(16px, calc(3.2vw - 8px), 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  max-width: 880px;
  margin: 0 auto 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.hero-authors span {
  white-space: nowrap;
}

.hero-author-break {
  flex-basis: 100%;
  height: 0;
}

.hero-authors sup,
.hero-org sup {
  color: var(--emerald);
  font-size: 0.7em;
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 880px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--emerald-deep);
  text-wrap: balance;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.btn:hover {
  background: #e9efeb;
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translate3d(0, -1px, 0);
}

.btn-solid {
  background: var(--emerald-soft);
  border-color: var(--line-accent);
  color: var(--emerald-deep);
}

.btn-solid:hover {
  background: var(--line-accent);
  border-color: var(--line-accent);
  color: var(--emerald-deep);
}

.btn-emerald {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--bg-base);
  font-weight: 700;
}

.btn-emerald:hover {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: var(--bg-base);
}

.hero-cta-row .btn {
  font-size: 16px;
}

.hero-cta-row .btn:hover {
  background: var(--line-accent);
  border-color: var(--line-accent);
  color: var(--emerald-deep);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--ink-muted);
}

.scroll-cue-bar {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, rgba(11, 125, 69, 0.65), transparent);
}

/* ---------- Unified Translucent Sections Over Living Waves ---------- */
.section-band {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.section-band.alt {
  background: rgba(246, 248, 247, 0.92);
}

.editorial-header {
  margin-bottom: 44px;
}

.editorial-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--emerald);
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--emerald);
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

/* ---------- Section 1: Capabilities ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.story-block {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.story-block h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.story-block p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.74;
  color: var(--ink-secondary);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 42px;
}

.cap-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.cap-item:hover {
  border-color: var(--line-accent);
  background: var(--surface-soft);
  transform: translate3d(0, -2px, 0);
}

.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cap-item h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.cap-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-muted);
}

/* ---------- Studio Exhibition Frames (Paper Figures) ---------- */
.figure-frame {
  position: relative;
}

.figure-sheet {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.figure-sheet img {
  margin: 0 auto;
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.figure-sheet:hover .zoom-hint {
  opacity: 1;
}

.figure-meta {
  margin-top: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink-muted);
}

/* ---------- Architecture Points ---------- */
.arch-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.arch-point {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--line-accent);
}

.arch-point h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.arch-point p {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-secondary);
}

/* ---------- Data Section (Two Paper Figures Side-by-Side) ---------- */
.data-figures {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.data-fig-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.data-fig-card .figure-meta {
  justify-content: center;
  text-align: center;
}

.data-fig-card .figure-sheet {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.data-fig-card .figure-sheet img {
  max-height: 410px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.data-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.data-note-item {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.data-note-item h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.data-note-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section 4: Complete Paper Evaluation Explorer (5 Sections · 123 Benchmarks)
   ========================================================================== */
.arena-shell {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Top bar: 5 Paper Sections + View Switch */
.arena-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.section-tab:hover {
  background: #e9efeb;
  color: var(--ink);
}

.section-tab.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--bg-base);
}

.tab-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: #e9efeb;
  color: inherit;
}

.section-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.18);
}

.view-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
}

.view-mode-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-mode-btn.active {
  background: var(--emerald);
  color: var(--bg-base);
}

.arena-summary-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.arena-section-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-secondary);
  max-width: 740px;
}

/* Scale Filter (All / Flagship / Compact) */
.scale-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.scale-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.scale-btn.active {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

/* Dimension Pills (Level 2) */
.dimension-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.dim-pill {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dim-pill:hover {
  background: #e9efeb;
  color: var(--ink);
}

.dim-pill.active {
  background: var(--emerald-soft);
  border-color: var(--line-accent);
  color: var(--emerald-deep);
}

/* Benchmark Chips (Level 3) */
.bench-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.bench-chip {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-muted);
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.bench-chip:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.bench-chip.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald-deep);
}

.bench-chip.is-avg {
  border-color: var(--line-accent);
  color: var(--emerald-deep);
}

.bench-chip.is-avg.active {
  background: var(--emerald);
  color: var(--bg-base);
  font-weight: 700;
}

/* Legend & Metric Note Bar */
.arena-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.arena-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.ours { background: #08b85a; }
.legend-dot.closed { background: #888888; }
.legend-dot.open { background: #368fe0; }

.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: #fbf3e2;
  border: 1px solid #e6d2a8;
  color: #815211;
}

/* Ranked Comparison Bars */
.arena-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 30px 268px 1fr 94px;
  align-items: center;
  gap: 12px;
}

.bar-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
}

.bar-rank.top1 {
  color: #815211;
}

.bar-model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
}

.bar-model-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-model.ours {
  color: var(--ink);
  font-weight: 700;
}

.model-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 2px 6px;
  border-radius: 5px;
}

.tag-ours {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.tag-closed {
  background: var(--surface-soft);
  color: var(--ink-secondary);
}

.tag-open {
  background: #eaf1f5;
  color: #355b75;
}

.bar-track {
  position: relative;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 7px;
  transform-origin: left center;
  animation: benchmark-bar-grow 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--bg-base);
  font-weight: 700;
}

@keyframes benchmark-bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.bar-fill.ours {
  background: linear-gradient(90deg, #08b85a, #16ce6b);
}

.bar-fill.ours-sub {
  background: linear-gradient(90deg, #29c66b, #51dc82);
}

.bar-fill.closed {
  background: #888888;
  color: var(--bg-base);
}

.bar-fill.open {
  background: #368fe0;
  color: var(--bg-base);
}

.bar-fill[data-model^="Seed" i] {
  background: #368fe0;
}

.bar-fill[data-model^="MiniCPM" i] {
  background: #83c7f5;
}

.bar-fill[data-model^="WeMM-Video-35B"] {
  background: #009c49;
}

.bar-fill[data-model^="WeMM-Video-35B"][data-model*="Instruct"] {
  background: #00856a;
}

.bar-fill[data-model^="WeMM-Video-9B"] {
  background: #30c94b;
}

.bar-fill[data-model^="WeMM-Video-4B"] {
  background: #85d637;
}

.bar-fill[data-model^="WeMM-Video-2B"] {
  background: #82e5ad;
}

.bar-fill[data-model^="Qwen3.5-Omni" i] {
  background: #7340bb;
}

.bar-fill[data-model^="Qwen3-Omni" i] {
  background: #b59aeb;
}

.bar-fill[data-model^="Qwen3.6" i] {
  background: #915bd3;
}

.bar-fill[data-model^="Qwen3.5-9B" i] {
  background: #cdb8f4;
}

.bar-score {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.bar-score.ours {
  color: var(--emerald-deep);
}

.bar-subval {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ---------- Full Paper Table Mode ---------- */
.paper-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.table-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-group-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.table-group-btn.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald-deep);
}

.table-search-input {
  height: 36px;
  min-width: 220px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.table-search-input:focus {
  border-color: var(--emerald);
}

.paper-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 760px;
}

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

.paper-table th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-strong);
}

.paper-table th.col-bench,
.paper-table td.col-bench {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  font-weight: 500;
  color: var(--ink);
  border-right: 1px solid var(--border);
}

.paper-table th.col-bench {
  background: var(--surface-soft);
  z-index: 3;
}

.paper-table th.col-ours {
  color: var(--emerald-deep);
  background: var(--emerald-soft);
}

.paper-table td.col-ours {
  background: #f5faf7;
}

.paper-table th.col-ref,
.paper-table td.col-ref {
  color: var(--ink-muted);
  background: var(--surface-soft);
}

.paper-table tr.dim-divider td {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  padding: 8px 14px;
}

.paper-table tbody tr:hover:not(.dim-divider) td {
  background: var(--surface-soft);
}

.paper-table tbody tr:hover:not(.dim-divider) td.col-bench {
  background: var(--surface-soft);
}

.paper-table td.cell-best {
  font-weight: 800;
  color: var(--emerald-deep);
}

.paper-table td.cell-best-nonours {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(64, 86, 72, 0.55);
  text-underline-offset: 3px;
}

.paper-table-footnotes {
  white-space: pre-line;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Overview Figures Block (Above Explorer, Both Stacked Full-Width) */
.glance-block {
  margin-bottom: 56px;
}

.subblock-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.subblock-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subblock-header p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.glance-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.figure-label-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--emerald);
}

/* ---------- Models Table ---------- */
.models-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 860px;
}

.models-table th,
.models-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.models-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ink-muted);
  background: var(--surface-soft);
  white-space: nowrap;
}

.models-table td:nth-child(1),
.models-table td:nth-child(2),
.models-table td:nth-child(3),
.models-table td:nth-child(5) {
  white-space: nowrap;
}

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

.models-table tbody tr:hover {
  background: var(--surface-soft);
}

.model-name-cell {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.badge-flagship {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  border: 1px solid var(--line-accent);
  color: var(--emerald-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hf-btn:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--bg-base);
}

/* ---------- Demo Portal Banner ---------- */
.demo-portal {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 68px 40px;
  text-align: center;
  background: linear-gradient(125deg, #eaf6ed, #ffffff 60%, #f1f8f3);
  border: 1px solid var(--line-accent);
  box-shadow: var(--shadow);
}

.demo-portal h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.demo-portal p {
  margin: 0 auto 28px;
  max-width: 580px;
  font-size: 17.5px;
  color: var(--ink-secondary);
}

/* ---------- BibTeX & Footer ---------- */
.bibtex-box {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  padding: 24px 26px;
  overflow-x: auto;
}

.bibtex-box pre {
  margin: 0;
  padding-right: 112px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: #e9efeb;
}

.site-footer {
  padding: 40px 0 52px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--ink-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--emerald-deep);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(14, 26, 20, 0.80);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  cursor: zoom-out;
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================================================
   Demos Page (demos.html) — Unified Living Wave Screening Room
   ========================================================================== */
.demos-hero {
  padding: 124px 0 42px;
}

.demos-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.demos-hero p {
  margin: 0 0 28px;
  max-width: 660px;
  color: var(--ink-secondary);
}

.demo-track-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.demo-track-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  gap: 4px;
}

.demo-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.demo-track-btn:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.demo-track-btn.active {
  background: var(--emerald);
  color: var(--bg-base);
}

.demo-track-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: #e9efeb;
  color: inherit;
}

.demo-track-btn.active .demo-track-count {
  background: rgba(255, 255, 255, 0.18);
}

.demo-track-hint {
  font-size: 15px;
  color: var(--ink-muted);
}

.demo-case-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 20px;
  padding-bottom: 8px;
}

.demo-case-tabs .demo-track-btn {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 12px 0 96px;
}

.demo-card {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  box-shadow: var(--shadow);
}

.demo-video-col {
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--emerald-deep);
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.demo-tag.audio {
  background: #fbf3e2;
  border-color: #e6d2a8;
  color: #815211;
}

.demo-player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.demo-placeholder {
  text-align: center;
  padding: 24px;
}

.demo-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--emerald-soft);
  border: 1px solid var(--line-accent);
  color: var(--emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-placeholder-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.demo-placeholder-sub {
  font-size: 14px;
  color: var(--ink-muted);
}

.demo-video-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.demo-io-col {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.demo-prompt-box {
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.demo-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.demo-prompt-text {
  font-size: 15.5px;
  color: var(--ink);
}

.demo-mode-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-model-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  border: 1px solid var(--line-accent);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

/* Inline Thought Process Toggle Pill + Scrollable Muted Panel */
.demo-thinking-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.demo-thinking-toggle:hover,
.demo-thinking-toggle.open {
  color: var(--ink-secondary);
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.demo-thinking-chevron {
  display: inline-block;
  transition: transform 0.18s ease;
  font-size: 11px;
}

.demo-thinking-toggle.open .demo-thinking-chevron {
  transform: rotate(90deg);
}

.demo-thinking-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 2.5px solid var(--border-strong);
  color: var(--ink-muted);
}

.demo-thinking-content {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-muted);
}

.demo-answer-box {
  padding: 6px 12px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  color: var(--ink);
}

.demo-answer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--emerald-deep);
  margin-bottom: 2px;
}

/* Compact Scrollable Panes for Both Thinking & Final Response */
.demo-scroll-pane {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(64, 86, 72, 0.34) transparent;
}

.demo-scroll-pane::-webkit-scrollbar {
  width: 6px;
}

.demo-scroll-pane::-webkit-scrollbar-track {
  background: transparent;
}

.demo-scroll-pane::-webkit-scrollbar-thumb {
  background: rgba(64, 86, 72, 0.28);
  border-radius: 999px;
}

.demo-scroll-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(64, 86, 72, 0.48);
}

/* Rich Markdown Typography inside Prompt, Thinking, and Answer */
.md-body {
  font-size: 16px;
  line-height: 1.72;
}

.demo-io-col .md-body {
  line-height: 1.55;
}

.demo-io-col .md-body p {
  margin-bottom: 6px;
}

.demo-thinking-content.md-body {
  font-size: 15px;
  color: var(--ink-muted);
}

.md-body > :first-child {
  margin-top: 0;
}

.md-body > :last-child {
  margin-bottom: 0;
}

.md-body p {
  margin: 0 0 10px;
}

.md-body strong {
  color: var(--ink);
  font-weight: 600;
}

.demo-thinking-content.md-body strong {
  color: var(--ink-secondary);
}

.md-body ul,
.md-body ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.md-body ul.md-sublist {
  margin: 4px 0 10px 16px;
}

.md-body li {
  margin: 4px 0;
}

.md-body blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 2px solid var(--line-accent);
  background: var(--surface-soft);
  color: var(--ink-secondary);
}

.md-body code {
  font-family: var(--font-mono);
  font-size: 14.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--emerald-deep);
}

.demo-thinking-content.md-body code {
  color: var(--ink-secondary);
}

.md-code-block {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.md-code-block code {
  padding: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

.md-heading {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.md-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.md-table th,
.md-table td {
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  text-align: left;
}

.md-table th {
  background: var(--surface-soft);
  color: var(--ink);
}

.md-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .data-figures { grid-template-columns: 1fr; }
  .demo-card { grid-template-columns: 1fr; }
  .demo-video-col { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 820px) {
  .story-grid, .arch-points, .data-notes { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 24px 190px 1fr 72px; gap: 8px; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section-band { padding: 68px 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .arena-shell { padding: 18px; }
  .bar-row { grid-template-columns: 1fr 64px; gap: 6px; }
  .bar-rank { display: none; }
  .bar-model { grid-column: 1 / -1; }
}
