:root {
  --bg: #ffffff;
  --surface-1: #f9fafb;
  --surface-2: #f3f4f6;
  --surface-3: #e5e7eb;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.07);
  --accent-soft-2: rgba(37, 99, 235, 0.16);
  --border: #e8eaed;
  --border-strong: #d5d8dd;
  --radius: 8px;
  --radius-sm: 5px;
  --maxw: 1120px;
  --shadow-soft: 0 1px 3px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.2vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--text); }
em, i { font-style: normal; font-weight: 600; color: var(--text); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
a:hover { border-bottom-color: var(--accent); }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-brand .accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
}

/* ---------- header ---------- */
.header {
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.header h1 { max-width: 920px; margin-bottom: 18px; }
.header h1 .accent { color: var(--accent); font-weight: 500; }
.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: var(--text-2);
  max-width: 760px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 32px;
  max-width: 920px;
}
.highlight {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface-1);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
}
.highlight strong { color: var(--accent); font-weight: 600; }

/* ---------- sections ---------- */
section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
section h2 { margin-bottom: 8px; }
.section-intro {
  color: var(--text-2);
  max-width: 760px;
  margin-bottom: 40px;
  font-size: 16px;
}

/* ---------- overview / capability table ---------- */
.cap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
  background: var(--surface-1);
}
.cap-table th, .cap-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cap-table th {
  background: var(--surface-2);
  font-weight: 500;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cap-table tr:last-child td { border-bottom: none; }
.cap-table tr.ours td {
  background: var(--accent-soft);
  font-weight: 500;
}
.cap-table tr.ours td:first-child { color: var(--accent); }
.cap-table .pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
}
.cap-table .yes { color: #4a7c2a; background: rgba(74, 124, 42, 0.08); border-color: rgba(74, 124, 42, 0.25); }
.cap-table .no  { color: var(--text-3); background: var(--surface-2); }
.cap-table .partial { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft-2); }
.model-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* ---------- prompt boxes ---------- */
.prompt-box {
  border: 1px solid var(--border);
  background: var(--surface-1);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
}
.prompt-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.prompt-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- comparison / video grid ---------- */
.sample-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.sample-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}
.sample-controls {
  display: flex;
  gap: 8px;
}
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn.primary {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn.primary:hover { background: var(--accent-soft-2); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  border-color: var(--accent-soft-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.video-card.ours {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  display: block;
  object-fit: cover;
}
.video-card .video-meta {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.video-card .model-name { color: var(--text); }
.video-card.ours .model-name { color: var(--accent); font-weight: 600; }

/* conditioning badges (what each system was given) */
.cond-badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}
.cond-video   { color: var(--text-3); background: var(--surface-2); }
.cond-generic { color: var(--text-2); background: var(--surface-2); border-style: dashed; }
.cond-ref     { color: #4a7c2a; background: rgba(74, 124, 42, 0.08); border-color: rgba(74, 124, 42, 0.25); }
.cond-vt      { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft-2); }

/* comparison samples */
.cmp-sample {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.cmp-sample .sample-header { margin-bottom: 14px; }
.cmp-sample .prompt-box { margin-bottom: 12px; }
.cmp-note {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 4px;
  line-height: 1.55;
}
.cmp-sample .video-grid { margin-top: 18px; }

/* comparison hero: big VIBE generation + caption on the right, others below */
.cmp-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 20px;
}
.cmp-hero-card .video-card { max-width: 300px; }
.cmp-caption .prompt-text {
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  max-width: 560px;
  color: var(--text-2);
}
.cap-hi { font-weight: 600; color: var(--accent); font-size: 1.26em; }
.video-grid.cmp-others {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  margin-top: 4px;
}

/* mel-spectrogram strip (one row per sample: VIBE + the five others) */
.mel-block { margin-top: 22px; }
.mel-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.mel-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.mel-item { margin: 0; }
.mel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.mel-item figcaption {
  font-size: 10.5px;
  text-align: center;
  color: var(--text-3);
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.mel-item.ours img { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.mel-item.ours figcaption { color: var(--accent); font-weight: 600; }

/* logo + architecture (replaces the capability table) */
.arch-wrap { padding-top: 44px; padding-bottom: 8px; text-align: center; }
.vibe-logo { width: 112px; height: auto; margin: 0 auto 26px; display: block; }
.vibe-arch {
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

@media (max-width: 720px) {
  .cmp-hero { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .cmp-hero-card .video-card { max-width: 240px; }
  .video-grid.cmp-others { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .mel-strip { grid-template-columns: repeat(3, 1fr); }
}
.ours-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft-2);
}

/* ---------- mel-spectrograms ---------- */
.mel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.mel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 18px;
}
.mel-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 12px;
}
.mel-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: block;
}

/* ---------- instruction following ---------- */
.muted-note {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.if-sample {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 28px;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.if-source-col { position: sticky; top: 76px; }
.if-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.if-source-col video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}
.if-scene {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text);
  margin-top: 12px;
}
.if-sub {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.if-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
  gap: 16px;
}
.if-variant {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .25s;
}
.if-variant:hover {
  border-color: var(--accent-soft-2);
  box-shadow: var(--shadow-soft);
}
.if-variant video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: var(--radius-sm);
  display: block;
}
.if-variant .prompt-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.emotion-chip {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 12px;
  border-radius: 100px;
}
.chip-sad          { background: #5b8def; }
.chip-love         { background: #e9619e; }
.chip-happy        { background: #e0a52a; }
.chip-motivational { background: #e8533f; }
.chip-tempo        { background: var(--accent); }

/* requested tempo highlighted inline in the prompt (measured value is on the pill) */
.bpm-hl { color: var(--accent); font-weight: 700; }

@media (max-width: 760px) {
  .if-sample { grid-template-columns: 1fr; gap: 18px; }
  .if-source-col { position: static; max-width: 320px; }
}

/* ---------- rhythm ---------- */
.rhythm-stage {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.rhythm-stage video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.rhythm-caption {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text);
  margin-top: 18px;
  font-size: 16px;
}

/* ---------- gallery ---------- */
.gallery-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-1);
  margin-bottom: 32px;
}
.gallery-tabs button {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.gallery-tabs button.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.gallery-tabs button:hover:not(.active) { color: var(--text); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-card {
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
}
.gallery-card:hover {
  border-color: var(--accent-soft-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.gallery-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  display: block;
}
.gallery-card .meta {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-2);
}

.t2m-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t2m-card .prompt-text {
  font-size: 14.5px;
  min-height: 56px;
}
.t2m-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: block;
}
.t2m-card audio {
  width: 100%;
  height: 36px;
}

/* ---------- footer ---------- */
footer {
  padding: 36px 0 56px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .header { padding: 64px 0 56px; }
  .nav-links { display: none; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  body { font-size: 14.5px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .cap-table th, .cap-table td { padding: 10px 12px; font-size: 13px; }
}

/* hero: big logo, full title on its right (may wrap to two lines) */
.hero-row { display: flex; align-items: center; gap: 34px; flex-wrap: nowrap; }
.hero-logo { width: 190px; height: 190px; flex: 0 0 auto; display: block; }
.hero-row h1 { font-size: clamp(26px, 3vw, 40px); margin: 0; max-width: none; line-height: 1.2; flex: 1 1 auto; }

/* mel-spectrogram comparison: one column per model (video + axed mel) */
.mel-sub { color: var(--text-2); font-size: 15px; max-width: 760px; margin: -4px 0 34px; }
.mel-compare-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: start;
}
.mel-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 12px;
}
.mel-col.ours {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.mel-col-label { font-family: monospace; font-size: 12px; color: var(--text); }
.mel-col.ours .mel-col-label { color: var(--accent); font-weight: 600; }
.mel-col video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: var(--radius-sm);
  display: block;
}
.mel-col img {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  display: block;
}

@media (max-width: 640px) {
  .hero-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-logo { width: 104px; height: 104px; }
  .hero-row h1 { font-size: 24px; }
}

/* ---------- looping preview videos + click-to-unmute ---------- */
.loopvid-wrap { position: relative; display: block; width: 100%; line-height: 0; }
.video-card.ours video, .mel-row.ours .mel-row-video, .if-variant video[data-loop] { cursor: pointer; }
.sound-badge {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 4;
  width: 28px; height: 28px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: rgba(20, 18, 15, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s;
}
.sound-badge:hover { background: rgba(20, 18, 15, 0.82); }
.loopvid-wrap.audio-on {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- mel-spectrogram comparison: one row per model ---------- */
.mel-rows { display: flex; flex-direction: column; gap: 16px; }
.mel-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 14px 18px;
}
.mel-row.ours {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.mel-row-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 12px;
}
.mel-row.ours .mel-row-label { color: var(--accent); font-weight: 600; }
.mel-row-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
}
.mel-row-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: var(--radius-sm);
  display: block;
}
.mel-row-img {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  display: block;
}
@media (max-width: 640px) {
  .mel-row-body { grid-template-columns: 110px 1fr; gap: 12px; }
}

/* ============================================================
   MOBILE POLISH — additive only; desktop (≥ 901px) is untouched.
   Every rule below lives inside a max-width query.
   ============================================================ */
@media (max-width: 900px) {
  /* restore in-page navigation as a compact, horizontally-scrollable strip */
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 0;
    margin-left: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
            mask-image: linear-gradient(to right, #000 90%, transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-inner  { gap: 10px; }
  .nav-brand  { flex: 0 0 auto; }
  .nav-links a { padding: 6px 12px; font-size: 12px; white-space: nowrap; }

  /* reclaim horizontal space inside cards on smaller screens */
  .cmp-sample { padding: 16px; }
  .if-sample  { padding: 16px; }
  .mel-row    { padding: 14px 16px; }
}

@media (max-width: 560px) {
  section { padding: 52px 0; }

  /* long chord/prompt strings must never force horizontal page scroll */
  .prompt-text,
  .cmp-caption .prompt-text,
  .if-scene { overflow-wrap: break-word; word-break: break-word; }

  /* comparison: two tall portrait clips read fine side-by-side; tighten gaps */
  .video-grid,
  .video-grid.cmp-others { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-card .video-meta { padding: 9px 10px; gap: 5px; }
  .cmp-hero-card .video-card { max-width: 200px; }
  .cmp-caption .prompt-text { font-size: 15px; line-height: 1.62; }
  .cap-hi { font-size: 1.12em; }

  /* instruction-following variants: one clear column instead of squeezed pairs */
  .if-variants { grid-template-columns: 1fr; }

  /* mel comparison: stack the clip above a full-width, more legible spectrogram */
  .mel-row-body { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
  .mel-row-video { max-width: 128px; }
  .mel-row-img { width: 100%; }
}
