/* ========================================================
   ULTRASOUND-TO-SPEECH — STYLESHEET
   Minimalist / dark + light mode / micro-animations
   ======================================================== */

/* ── Reset & base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Dark mode tokens (default) ──────────────────────── */
:root {
  --bg: #0a0a0c;
  --bg-2: #111115;
  --bg-3: #18181e;
  --surface: #1e1e26;
  --surface-2: #252530;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  --text: #e8e8f0;
  --text-muted: #888898;
  --text-dim: #555568;

  --accent: #6c63ff;
  --accent-2: #9188ff;
  --accent-glow: rgba(108, 99, 255, 0.25);

  --green: #4ade80;
  --amber: #fbbf24;
  --rose: #f87171;

  --nav-bg: rgba(10, 10, 12, 0.80);
  --hero-h1-from: #ffffff;

  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Light mode tokens ────────────────────────────────── */
[data-theme="light"] {
  --bg: #f5f5f8;
  --bg-2: #ededf2;
  --bg-3: #e4e4eb;
  --surface: #ffffff;
  --surface-2: #f0f0f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.14);

  --text: #111118;
  --text-muted: #4b4b60;
  --text-dim: #55556c;

  --accent: #5148e8;
  --accent-2: #6c63ff;
  --accent-glow: rgba(81, 72, 232, 0.18);

  --green: #16a34a;
  --amber: #b45309;
  --rose: #dc2626;

  --nav-bg: rgba(245, 245, 248, 0.88);
  --hero-h1-from: #111118;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 2px;
}

/* ── Reveal animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Layout helpers ───────────────────────────────────── */
.container {
  max-width: 2000px;
  margin: auto;
  padding: 0 48px;
}

.section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 56px;
  max-width: 560px;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Theme toggle button ──────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

/* .theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
} */

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Show/hide icons based on theme */
.icon-moon {
  display: block;
}

.icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: block;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#waveCanvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 24px;
  background: rgba(108, 99, 255, 0.08);
  animation: badgePulse 3s ease infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 16px 4px var(--accent-glow);
  }
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--hero-h1-from) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.author-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.author-chip {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 5px 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.author-chip.highlight {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.5);
  color: var(--accent-2);
}

.divider {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 36px rgba(108, 99, 255, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-2);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollFade 2s ease infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollSlide 2s ease infinite;
}

@keyframes scrollFade {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes scrollSlide {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ════════════════════════════════════════════════════════
   ABSTRACT
   ════════════════════════════════════════════════════════ */
.abstract-section {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.abstract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .abstract-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.abstract-text h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.abstract-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.abstract-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-2);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════
   PIPELINE
   ════════════════════════════════════════════════════════ */
.pipeline-section {
  border-top: 1px solid var(--border);
}

.pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 12px 24px;
}

@media (max-width: 900px) {
  .pipeline-track {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

.pipeline-step {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  cursor: default;
}

.pipeline-step:hover {
  border-color: rgba(108, 99, 255, 0.4);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px var(--accent-glow);
}

.step-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.step-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pipeline-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.pipeline-arrow svg {
  width: 20px;
  height: 20px;
}

.arrow-label {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  white-space: nowrap;
  writing-mode: initial;
  letter-spacing: 0.06em;
}

.gpu-badge {
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
}

/* ════════════════════════════════════════════════════════
   ARCHITECTURE / MODELS
   ════════════════════════════════════════════════════════ */
.arch-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.arch-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  margin-bottom: 40px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
}

.tab-btn:not(.active):hover {
  color: var(--text);
}

.tab-panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stacked model sections */
.model-section {
  margin-bottom: 48px;
}

.model-section:last-child {
  margin-bottom: 0;
}

.model-section-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.model-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}


.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.model-card:hover::before {
  opacity: 1;
}

.model-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.card-highlight {
  border-color: rgba(108, 99, 255, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(108, 99, 255, 0.05) 100%);
}

.model-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 100px;
}

.tag-baseline {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tag-variant {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.tag-proposed {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(108, 99, 255, 0.4);
}

.model-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: -10px;
}

.model-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Conference badge + arXiv link row (baseline cards only) */
.model-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conf-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

.arxiv-link {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.arxiv-link:hover {
  border-bottom-color: var(--accent-2);
  color: var(--accent);
}


.model-arch {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.arch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.arch-block {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}

.arch-block small {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.arch-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.arch-row.compact .arch-block {
  font-size: 0.65rem;
  padding: 4px 6px;
}

.model-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-details li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.model-details li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.model-details li>span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.72rem;
}

.model-details em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.78em;
  text-align: right;
}

/* ════════════════════════════════════════════════════════
   RESULTS
   ════════════════════════════════════════════════════════ */
.results-table-wrapper {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.results-table thead tr {
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
}

.results-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.results-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.results-table tbody tr {
  transition: background var(--transition);
}

.results-table tbody tr:hover {
  background: var(--surface);
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.row-baseline {
  opacity: 0.82;
}

.row-best td {}

.row-top {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.row-top:hover {
  background: color-mix(in srgb, var(--accent) 9%, transparent) !important;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78em;
}

.best-name {
  color: var(--accent-2);
}

.star {
  color: var(--accent);
  font-size: 0.9rem;
}

.badge-type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}

.badge-type.baseline {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
}

.badge-type.variant {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
}

.badge-type.proposed {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-2);
}

.col-metric {
  min-width: 140px;
}

.col-mse {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Results stacked sections */
.results-section {
  margin-bottom: 52px;
}

.results-section:last-child {
  margin-bottom: 0;
}

/* Section label — matches the model-section-heading style */
.results-section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.results-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Sub-section label (Generalized / Personalization) */
.results-sub-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.results-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4px;
}


.bar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar {
  height: 5px;
  width: var(--pct);
  max-width: 200px;
  background: var(--surface-2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.6), rgba(251, 191, 36, 0.9));
  border-radius: 3px;
  width: 100%;
}

.bar.bar-top::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.bar-cell span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.table-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 12px 20px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ════════════════════════════════════════════════════════
   AUDIO SAMPLES
   ════════════════════════════════════════════════════════ */
.samples-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.samples-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.sample-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}

.sample-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}

/* ── Card header ────────────────────────────────────────── */
.sample-card-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sample-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.sample-transcript {
  font-size: 0.88rem;
  color: var(--text);
  font-style: italic;
  margin: 0;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

/* ── Two-column body: video | audio rows ────────────────── */
.sample-card-body {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 24px;
  align-items: start;
}


/* ── Video column ───────────────────────────────────────── */
.sample-video-col {
  position: sticky;
  top: 80px;
  /* stays visible while scrolling audio list */
}

.sample-media {
  position: relative;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
}

.sample-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.42);
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition);
}

.video-overlay:hover .play-icon {
  transform: scale(1.12);
}

/* ── Audio rows column ──────────────────────────────────── */
.sample-audio-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}


.audio-row:hover {
  border-color: var(--border-2);
  background: var(--surface);
}

.audio-model-badge {
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom audio controls */
.custom-audio-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aud-play-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.aud-play-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.aud-progress-wrap {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 8px 0;
  /* larger hit target */
}

.aud-progress-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.aud-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.aud-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 30px;
  text-align: right;
}

/* Responsive: stack on narrow screens */
@media (max-width: 680px) {
  .sample-card-body {
    grid-template-columns: 1fr;
  }

  .sample-video-col {
    position: static;
  }

  .audio-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: 1rem;
}

.footer-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 12px;
}

.footer-right {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .pipeline-track {
    gap: 8px;
  }

  .pipeline-arrow {
    padding: 4px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .model-grid,
  .model-grid-4 {
    grid-template-columns: 1fr;
  }

  .abstract-stats {
    grid-template-columns: 1fr;
  }
}