/* ═══════════════════════════════════════════════════════════════
   Sound Sparks Motion — Website Stylesheet
   Dark & cinematic theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --bg:            #07070f;
  --surface:       #0d0d1c;
  --card:          #12122a;
  --card-hover:    #161633;
  --border:        rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 255, 255, 0.14);

  --orange:        #f59e0b;
  --orange-dim:    rgba(245, 158, 11, 0.15);
  --orange-glow:   rgba(245, 158, 11, 0.08);
  --purple:        #8b5cf6;
  --purple-dim:    rgba(139, 92, 246, 0.12);

  --text-1:        #f1f5f9;
  --text-2:        #94a3b8;
  --text-3:        #475569;

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;

  --nav-h:         60px;
  --section-gap:   120px;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

sup {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}

/* ── Utility ─────────────────────────────────────────────────── */
.container {
  width: min(1100px, 100% - 48px);
  margin-inline: auto;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  border-radius: 2px;
}

.section-lead {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ── Navigation ──────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 7, 15, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  width: min(1100px, 100% - 48px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  background: linear-gradient(90deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-1); opacity: 1; }

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
              var(--bg);
}

#waveform-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeUp 0.9s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Venue badge */
.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  animation: fadeUp 0.9s 0.05s var(--ease-out) both;
}

/* Title */
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
  animation: fadeUp 0.9s 0.1s var(--ease-out) both;
}

.word-sound  { color: var(--text-1); }
.word-sparks {
  background: linear-gradient(135deg, var(--orange), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.word-motion {
  background: linear-gradient(135deg, var(--purple), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-2);
  font-weight: 400;
  max-width: 520px;
  animation: fadeUp 0.9s 0.15s var(--ease-out) both;
}

/* Authors */
.authors-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 0.9s 0.2s var(--ease-out) both;
}

.authors-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem 0.6rem;
  font-size: 0.95rem;
}

.author {
  color: var(--text-1);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.author:hover { color: var(--orange); opacity: 1; }

.sep {
  color: var(--text-3);
  user-select: none;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: fadeUp 0.9s 0.25s var(--ease-out) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border-hover);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-disabled {
  color: var(--text-3);
  background: transparent;
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline {
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-hint span {
  display: block;
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--border-hover);
  border-radius: 100px;
  position: relative;
}
.scroll-hint span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  80%  { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* ── Teaser ──────────────────────────────────────────────────── */
#teaser {
  padding-block: var(--section-gap);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.teaser-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.teaser-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.teaser-img.loaded { opacity: 1; }

figcaption {
  font-size: 0.875rem;
  color: var(--text-3);
  max-width: 680px;
  text-align: center;
  line-height: 1.6;
}

/* ── Abstract ────────────────────────────────────────────────── */
#abstract {
  padding-block: var(--section-gap);
}

.abstract-text {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.abstract-text p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.85;
}

.abstract-text strong { color: var(--text-1); font-weight: 600; }
.abstract-text em     { color: var(--orange); font-style: normal; }

/* ── Method ──────────────────────────────────────────────────── */
#method {
  padding-block: var(--section-gap);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.method-steps {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.method-step {
  flex: 1;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.method-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.step-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}
.step-body em { color: var(--orange); font-style: normal; }

.method-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 2.5rem;
  align-self: flex-start;
}

.method-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.method-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.method-figure img.loaded { opacity: 1; }

/* ── Results carousel ────────────────────────────────────────── */
#results {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

#results .container {
  margin-bottom: 2.5rem;
}

/* wrapper provides the fade edges + arrow positioning */
.carousel-wrapper {
  position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.results-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem calc((100vw - min(1100px, 100% - 48px)) / 2 + 24px) 1.5rem;
  /* hide scrollbar visually but keep it functional */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  -webkit-overflow-scrolling: touch;
}

.results-carousel::-webkit-scrollbar {
  height: 4px;
}
.results-carousel::-webkit-scrollbar-track { background: transparent; }
.results-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Carousel navigation arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(13, 13, 28, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s;
}
.carousel-arrow:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.25);
  background: rgba(13, 13, 28, 0.95);
}
.carousel-arrow.hidden { opacity: 0; pointer-events: none; }
.arrow-left  { left: 16px; }
.arrow-right { right: 16px; }

/* ── Comparison cards ────────────────────────────────────────── */
.comparison-card {
  flex: 0 0 min(960px, calc(100vw - 100px));
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.comparison-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.07),
              0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

/* Transfer card accent */
.comparison-card.is-transfer {
  border-color: rgba(139, 92, 246, 0.2);
}
.comparison-card.is-transfer:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08),
              0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Card header row */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  min-height: 48px;
}

.card-prompt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.4;
}

/* Transfer badge on card header */
.transfer-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Inline badge in section lead text */
.transfer-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1px 7px;
  border-radius: 100px;
  vertical-align: middle;
}

/* ── Video comparison slider ─────────────────────────────────── */
.vc-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #000;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

/* Right video (ours) — base layer, fills full container */
.vc-r {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Clip container for left (source) video */
.vc-l-clip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%; /* controlled by JS */
  overflow: hidden;
  z-index: 1;
}

/* Left video — must span full container width (set by JS), not the clip width */
.vc-l {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  /* width set by JS */
}

/* Source / Ours labels */
.vc-tag {
  position: absolute;
  top: 10px;
  z-index: 4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vc-tag-l {
  left: 10px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}
.vc-tag-r {
  right: 10px;
  color: var(--orange);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(245,158,11,0.35);
}
.vc-tag-r.transfer {
  color: #a78bfa;
  border-color: rgba(167,139,250,0.35);
}

/* Divider line */
.vc-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* controlled by JS */
  transform: translateX(-50%);
  width: 3px;
  background: rgba(255,255,255,0.85);
  z-index: 5;
  cursor: col-resize;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.vc-line.transfer { background: rgba(167,139,250,0.9); }

/* Drag handle */
.vc-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20,20,40,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.65);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  /* guarantee touch target */
  min-width: 44px;
  min-height: 44px;
}
.vc-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #fff;
}
.vc-line.transfer .vc-btn {
  border-color: rgba(167,139,250,0.85);
  color: #a78bfa;
}

/* Loading skeleton (on top, hidden once videos ready) */
.vc-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card) 0%, var(--card-hover) 50%, var(--card) 100%);
  background-size: 200% 200%;
  animation: shimmer 1.8s linear infinite;
  z-index: 6;
  transition: opacity 0.5s;
}
.vc-skeleton.hidden { opacity: 0; pointer-events: none; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge in venue label */
.badge-review {
  font-size: 0.85em;
  opacity: 0.75;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ── BibTeX ──────────────────────────────────────────────────── */
#bibtex {
  padding-block: var(--section-gap);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.bibtex-wrapper {
  position: relative;
  max-width: 700px;
}

#bibtex-code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
}

#bibtex-code code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.825rem;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.copy-btn:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.2);
  background: var(--card-hover);
}
.copy-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.bibtex-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  max-width: 460px;
  padding: 2.5rem 2rem;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.bibtex-pending-icon {
  color: var(--text-3);
  opacity: 0.6;
}

.bibtex-pending-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.bibtex-pending-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-3);
}

.footer-credit a { color: var(--text-3); }
.footer-credit a:hover { color: var(--text-2); opacity: 1; }

/* ── Scroll-reveal animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --section-gap: 72px; }

  .nav-links { display: none; }

  .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }

  .method-steps { flex-direction: column; }
  .method-arrow { display: none; }

  .comparison-card { flex: 0 0 calc(100vw - 32px); }

  .vc-wrap { aspect-ratio: 3/4; }   /* taller on small screens — shows more of portrait video */

  .vc-btn { width: 52px; height: 52px; } /* bigger touch target on mobile */

  .carousel-arrow { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #waveform-canvas { display: none; }
}
