/* ==========================================================
   mickeychallenge.com — The Dossier
   Palette: pitch black, ember red-orange, antique gold, cream
   Mobile-first. Cinematic. Animated.
   ========================================================== */

:root {
  --black: oklch(0.05 0 0);
  --ink: oklch(0.12 0.01 30);
  --ember: oklch(0.65 0.22 30);          /* fiery red-orange */
  --ember-bright: oklch(0.72 0.24 32);
  --gold: oklch(0.78 0.13 78);           /* antique gold */
  --gold-bright: oklch(0.86 0.15 80);
  --cream: oklch(0.96 0.02 80);
  --muted: oklch(0.65 0.04 30);
  --border: oklch(0.32 0.03 30);

  --radius: 0.625rem;
  --maxw: 64rem;

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--black);
}

html, body {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: transparent;
  position: relative;
}

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

a { color: var(--gold-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ember-bright); }

/* ==========================================================
   BACKGROUND STAGE — full-viewport image that crossfades
   ========================================================== */

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--black);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* ==========================================================
   TABLE OF CONTENTS — fixed top-right index, mobile-friendly
   ========================================================== */

.toc {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  max-width: 18rem;
}

.toc-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.toc-toggle:hover { border-color: var(--ember-bright); color: var(--ember-bright); }
.toc-toggle .toc-icon {
  display: inline-block;
  width: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.toc-toggle[aria-expanded="true"] .toc-icon { transform: rotate(45deg); }

.toc-list {
  list-style: none;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.3s ease;
}
.toc.open .toc-list {
  max-height: 70vh;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}

.toc-list li { counter-increment: toc; margin: 0.375rem 0; }
.toc-list a {
  display: block;
  font-size: 0.8125rem;
  color: var(--cream);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
}
.toc-list a:hover {
  color: var(--ember-bright);
  border-bottom-color: var(--ember);
  padding-left: 0.25rem;
}

/* ==========================================================
   SECTIONS / FRAMES
   ========================================================== */

.frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

.frame-hero { padding-top: 5rem; padding-bottom: 5rem; }
.frame-end { min-height: 80vh; min-height: 80dvh; }

/* When a count is expanded, allow more vertical space. */
.frame.count { min-height: auto; padding-top: 5rem; padding-bottom: 5rem; }

.content {
  max-width: 36rem;
  width: 100%;
  padding: 1.5rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.content.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--cream);
}

h1.hero-title {
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 0.95;
}

.hero-line { display: block; }
.hero-line.accent { color: var(--ember-bright); }

h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem;
}

.lede {
  font-size: 1.0625rem;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

p { margin-bottom: 1rem; color: var(--cream); }
p:last-child { margin-bottom: 0; }

p.quiet {
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: italic;
}
p.quiet.small { font-size: 0.8125rem; }

strong { color: var(--gold-bright); font-weight: 600; }
sup { font-size: 0.75em; vertical-align: super; line-height: 0; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
  max-width: 28rem;
}

.countdown-cell {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.25rem;
  text-align: center;
}

.countdown-cell .num {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--ember-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown-cell .lbl {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.375rem;
}

.hashtag {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.big-hashtag {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 800;
  color: var(--ember-bright);
  letter-spacing: -0.02em;
  margin: 1rem 0;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn-primary {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: var(--ember);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--ember-bright);
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: var(--ember-bright);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 60, 30, 0.3);
}

.scroll-hint {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ==========================================================
   DOSSIER STATS — subject file lookup
   ========================================================== */

.dossier-stats {
  list-style: none;
  margin: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.dossier-stats li {
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  color: var(--cream);
}
.dossier-stats strong {
  display: inline-block;
  min-width: 9rem;
  color: var(--gold);
  font-weight: 600;
}

/* ==========================================================
   CASE-FILE TOGGLES — click to expand evidence
   ========================================================== */

.case-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1.125rem;
  background: transparent;
  color: var(--ember-bright);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.case-toggle::after {
  content: "+";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.case-toggle:hover {
  background: var(--ember);
  color: var(--black);
}
.case-toggle[aria-expanded="true"] {
  background: var(--ember);
  color: var(--black);
}
.case-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.case-file {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  animation: caseOpen 0.45s ease both;
}

@keyframes caseOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.receipt {
  border-left: 3px solid var(--ember);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
  background: rgba(255, 60, 30, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.receipt p { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.receipt p:first-child { font-weight: 500; color: var(--cream); }
.receipt cite {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

.tweet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin: 0.75rem 0 1rem;
}
.tweet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  background: rgba(0,0,0,0.4);
}
.tweet p {
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  font-style: italic;
  color: var(--cream);
}
.tweet cite {
  display: block;
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tweet-receipt {
  margin: 1rem 0 1.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.tweet-receipt:hover {
  border-color: var(--accent, #c8504a);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.tweet-receipt img {
  display: block;
  width: 100%;
  height: auto;
}
.tweet-receipt figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}
.tweet-receipt figcaption a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.tweet-receipt figcaption a:hover { text-decoration: underline; }
.tweet-receipt figcaption .quiet { color: var(--muted); }

.source-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.source-links li { margin: 0.375rem 0; }
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gold-bright);
  padding: 0.375rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.yt-link::before {
  content: "▶";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  line-height: 1;
  font-size: 0.75rem;
  color: var(--ember-bright);
  text-align: center;
}
.yt-link:hover {
  color: var(--ember-bright);
  border-bottom-color: var(--ember);
}

/* ==========================================================
   COMPARE TABLE — Panel Mickey vs Solo Mickey
   ========================================================== */

table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 0.5rem;
  overflow: hidden;
}
table.compare thead th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream, #f5f0e8);
  text-align: left;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.12));
}
table.compare tbody td {
  padding: 0.625rem 0.875rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.45;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody td:first-child {
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.65));
  width: 22%;
  white-space: nowrap;
}
@media (max-width: 720px) {
  table.compare,
  table.compare thead,
  table.compare tbody,
  table.compare tr,
  table.compare td,
  table.compare th { display: block; width: 100%; }
  table.compare thead { display: none; }
  table.compare tbody tr {
    margin-bottom: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
  }
  table.compare tbody td { border: none; padding: 0.25rem 0; }
  table.compare tbody td:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, rgba(255, 255, 255, 0.55));
    width: auto;
  }
}

/* ==========================================================
   TIMELINE — "what happened that night"
   ========================================================== */

ol.timeline {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding-left: 0;
  position: relative;
}

ol.timeline::before {
  content: "";
  position: absolute;
  left: 6.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ember) 12%, var(--ember) 88%, transparent);
}

ol.timeline li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.875rem;
  position: relative;
  padding-left: 0;
}

ol.timeline li::before {
  content: "";
  position: absolute;
  left: 6.25rem;
  top: 0.5rem;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--ember-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 60, 30, 0.18);
}

.t-mark {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  padding-top: 0.25rem;
  white-space: nowrap;
}

.t-event {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--cream);
  padding-left: 1rem;
}

/* ==========================================================
   VIDEO CARD — inline morph videos inside count case-files
   File-system based: <video data-src-key="count_05_watchtower"> auto-loads
   from /assets/videos/count_05_watchtower.mp4 if present.
   ========================================================== */

.video-card {
  position: relative;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-card.fullbleed {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  border: 0;
  margin: 0;
  aspect-ratio: auto;
  pointer-events: none;
}

.video-card.fullbleed video,
.video-card.fullbleed canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;            /* show entire source frame, never crop the "Factz" sides */
  object-position: center;
  background: transparent;
}

/* Push the canvas image to the side opposite the content card so the card
   sits over bg-stage (altar/count bg), not over the source frame. Full
   "Factz" text reads clearly. */
.scrub-stage:has(.content-left) > .video-card.fullbleed canvas,
.scrub-stage:has(.content-left) > .video-card.fullbleed video {
  object-position: right center;
}
.scrub-stage:has(.content-right) > .video-card.fullbleed canvas,
.scrub-stage:has(.content-right) > .video-card.fullbleed video {
  object-position: left center;
}

/* ==========================================================
   SCROLL-SCRUB SECTIONS
   The section is tall (runway). Inside, .scrub-stage sticks to the
   top of the viewport at 100vh. As the user scrolls through the
   runway, JS advances video.currentTime in lockstep. The video is
   the floor; the content card floats over it.
   ========================================================== */

.frame.scroll-scrub {
  display: block;             /* override flex layout */
  align-items: stretch;
  min-height: 200vh;          /* runway = 100vh of scroll past the pin (slower scrub) */
  padding: 0;
  position: relative;
  overflow: visible;
}


.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* default: content right-justified */
  padding: 4rem 3rem;          /* extra horizontal padding so card never touches viewport edge */
  overflow: hidden;
}

/* Soft left-to-right vignette so content stays readable over video. */
.scrub-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

/* When the inner content is left-justified (hero), flip the stage AND the vignette
   so text gets the dark overlay and the visual stays clear on the right. */
.scrub-stage:has(.content-left) {
  justify-content: flex-start;
}
.scrub-stage:has(.content-left)::after {
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.15) 100%);
}

.scrub-stage > .content {
  position: relative;
  z-index: 2;
  margin: 0;            /* override content-left/-right margins inside scrub */
  max-width: 100%;
  overflow: visible;    /* no inner scrollbox by default */
}

/* Only when the section's case-file is actually open AND its content would overflow
   the pinned 100vh stage, allow the inner content to scroll. Hero never matches. */
.scrub-stage:has(.case-file:not([hidden])) > .content {
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Hide the static frame bg image when a scroll-scrub is active —
   the video is the floor now. */
.frame.scroll-scrub { background: transparent; }

/* Desktop: canvas fills the FULL viewport width so the source frames
   (e.g., "Factz" text on hero) read edge-to-edge. The content card sits
   on top as a narrow tile that doesn't blur the visible image. */
.scrub-stage > .video-card.fullbleed {
  inset: 0;
  width: 100%;
}

/* ----------------------------------------------------------
   MORPH HERO — text transforms with the scroll-scrub canvas
   MICKEY FACTZ (frame 0) → BAMBAATAA (frame 96)
   ---------------------------------------------------------- */

#hero.morph-hero { background: transparent; }
#hero.morph-hero .scrub-stage {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

/* The content layer sits OVER the canvas, no card chrome. */
#hero.morph-hero .scrub-stage > .content.content-morph {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  pointer-events: none;        /* canvas-first; only the scroll hint is clickable */
}

.morph-overline {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 24px rgba(0,0,0,0.7);
  margin: 0;
}

.morph-name-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  align-self: center;
  pointer-events: none;
  gap: 0;
  line-height: 0.85;
}

/* The swap row: FACTZ ↔ BAMBAATAA share the same grid cell, cross-fade in place. */
.morph-name-swap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.morph-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--cream);
  font-size: clamp(2.5rem, 11vw, 7.25rem);
  text-shadow:
    0 0 1px rgba(0,0,0,0.9),
    0 4px 18px rgba(0,0,0,0.85),
    0 0 60px rgba(0,0,0,0.55);
  white-space: nowrap;
  transition: transform 0.15s ease;
  will-change: opacity, transform, letter-spacing;
  max-width: 100%;
  overflow-wrap: normal;
}

/* MICKEY — persistent top line. Subtle scale lift as the surname swaps. */
.morph-name-fixed {
  display: block;
  transform: scale(calc(1 + var(--morph-progress, 0) * 0.02));
}

/* Swap children share the same grid cell so they cross-fade in place. */
.morph-name-before,
.morph-name-after {
  grid-area: 1 / 1;
}

/* FACTZ — visible at start, fades out and shrinks slightly. */
.morph-name-before {
  opacity: clamp(0, calc((0.6 - var(--morph-progress, 0)) / 0.5), 1);
  transform: translateY(calc(var(--morph-progress, 0) * -1.2rem))
             scale(calc(1 - var(--morph-progress, 0) * 0.06));
}

/* BAMBAATAA — invisible at start, slams in red as the demon resolves. */
.morph-name-after {
  color: var(--ember-bright);
  letter-spacing: -0.04em;
  opacity: clamp(0, calc((var(--morph-progress, 0) - 0.4) / 0.5), 1);
  transform: translateY(calc((1 - var(--morph-progress, 0)) * 1.2rem))
             scale(calc(0.94 + var(--morph-progress, 0) * 0.06));
  text-shadow:
    0 0 1px rgba(0,0,0,0.95),
    0 4px 18px rgba(0,0,0,0.9),
    0 0 80px oklch(0.65 0.22 30 / 0.55);
}

/* CHALLENGE — the stamp. Slams in red after BAMBAATAA resolves. */
.morph-name-stamp {
  display: block;
  color: var(--ember-bright);
  font-size: clamp(2rem, 8.5vw, 5.75rem);
  letter-spacing: calc(-0.03em + var(--morph-progress, 0) * 0.04em);
  margin-top: 0.25rem;
  opacity: clamp(0, calc((var(--morph-progress, 0) - 0.7) / 0.25), 1);
  transform-origin: center center;
  transform: scale(calc(0.85 + clamp(0, (var(--morph-progress, 0) - 0.7) / 0.25, 1) * 0.16));
  text-shadow:
    0 0 1px rgba(0,0,0,0.95),
    0 6px 22px rgba(0,0,0,0.9),
    0 0 80px oklch(0.65 0.22 30 / 0.65);
  filter: drop-shadow(0 0 calc(var(--morph-progress, 0) * 14px) oklch(0.65 0.22 30 / 0.4));
}

.morph-tagline {
  margin: 0.5rem 0 0;
  color: var(--cream);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
  opacity: clamp(0, calc((var(--morph-progress, 0) - 0.75) / 0.2), 0.92);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.morph-tagline a {
  color: var(--ember-bright);
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

#hero.morph-hero .scroll-hint {
  pointer-events: auto;
  margin: 0.75rem 0 0;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

/* ----------------------------------------------------------
   THE CHALLENGE — still hero with countdown + CTA
   Now lives in its own section so the morph above stays clean.
   ---------------------------------------------------------- */

.frame-challenge {
  position: relative;
  z-index: 2;
}

.frame-challenge .content.challenge-card {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.55),
    inset 0 0 0 1px oklch(0.78 0.13 78 / 0.08);
}

.frame-challenge .overline { color: var(--gold-bright); }
.frame-challenge h1.hero-title { margin-bottom: 1.5rem; }
.frame-challenge .countdown { margin: 1rem auto 1.25rem; }
.frame-challenge .hashtag { margin-bottom: 1.25rem; }
.frame-challenge .btn-primary { display: inline-flex; }

/* Same treatment for the other scrub-scrub sections — narrow card, no blur. */
.scrub-stage > .content {
  max-width: 26rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 640px) {
  .frame.scroll-scrub { min-height: 160vh; }
  /* Mobile scrub: canvas full-width again (no side-anchor), content card at bottom. */
  .scrub-stage > .video-card.fullbleed,
  .scrub-stage:has(.content-right) > .video-card.fullbleed {
    inset: 0;
    width: 100%;
  }
  .scrub-stage {
    padding: 1rem;
    align-items: flex-end;        /* bottom of viewport */
    justify-content: stretch;
  }
  .scrub-stage:has(.content-left) { justify-content: stretch; }
  .scrub-stage > .content {
    width: 100%;
    background: rgba(0,0,0,0.45);  /* lighter so transformation reads through */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem;
    margin-bottom: 0.5rem;
  }
  /* Mobile morph hero — keep canvas dominant, let the names breathe. */
  #hero.morph-hero .scrub-stage > .content.content-morph {
    padding: 1.75rem 1rem 1.25rem;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 70%,
      rgba(0,0,0,0.55) 100%
    );
  }
  .morph-overline { font-size: 0.625rem; letter-spacing: 0.28em; }
  .morph-name { font-size: clamp(2.5rem, 14vw, 4.5rem); }
  .morph-name-stamp { font-size: clamp(1.875rem, 11vw, 3.75rem); }
  .morph-tagline { font-size: 0.8rem; }

  /* Mobile challenge card — full width with breathing room. */
  .frame-challenge .content.challenge-card {
    padding: 1.5rem 1.125rem;
    max-width: none;
  }
  .frame-challenge .countdown-cell { padding: 0.5rem 0.125rem; }
  .frame-challenge .countdown-cell .num { font-size: 1.5rem; }
}

/* ==========================================================
   COUPON CODE — Director's Palette CTA
   ========================================================== */

.coupon-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.coupon-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.coupon-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px dashed var(--ember);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s;
}
.coupon-code:hover,
.coupon-code:focus-visible {
  background: rgba(255, 92, 0, 0.12);
  border-color: var(--ember-bright);
  outline: none;
}
.coupon-code .coupon-text {
  font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ember-bright);
}
.coupon-code .coupon-action {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted, #888);
  font-weight: 600;
}
.coupon-code.copied {
  background: rgba(74, 222, 128, 0.15);
  border-color: #4ade80;
}
.coupon-code.copied .coupon-action::before {
  content: "✓ ";
}
.coupon-code.copied .coupon-action {
  color: #4ade80;
}

/* ==========================================================
   VERSE PROMPTS — angles for entrants
   ========================================================== */

.prompts-head {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}

ul.verse-prompts {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

ul.verse-prompts li {
  position: relative;
  padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: border-left-color 0.2s, transform 0.2s, background 0.2s;
}

ul.verse-prompts li::before {
  content: "✎";
  position: absolute;
  left: 0.75rem;
  top: 0.625rem;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.45;
}

ul.verse-prompts li:hover {
  border-left-color: var(--ember-bright);
  background: rgba(255, 60, 30, 0.05);
  transform: translateX(2px);
}

ul.verse-prompts li strong { color: var(--gold-bright); }

.parallels {
  list-style: none;
  counter-reset: para;
  margin: 0.75rem 0 1rem;
}
.parallels li {
  counter-increment: para;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.parallels li::before {
  content: counter(para);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ember);
  color: var(--black);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   RULES LIST
   ========================================================== */

ol.rules {
  list-style: none;
  counter-reset: rule;
  margin: 1rem 0 1.5rem;
}

ol.rules li {
  counter-increment: rule;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

ol.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: -2px;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ember);
  color: var(--black);
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Angle for the Booth — strategist brief inside each case file */
.rapper-angle {
  margin-top: 1.5rem;
  padding: 1rem 1.125rem 1.125rem;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.08), rgba(0, 0, 0, 0.45));
  border-left: 3px solid var(--ember);
  border-radius: 0.375rem;
}

.rapper-angle h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-bright);
  font-weight: 800;
}

.rapper-angle p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.rapper-angle p:first-of-type {
  font-weight: 600;
}

.rapper-angle .hook {
  display: block;
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0.25rem;
  font-style: italic;
  color: var(--cream);
  font-size: 0.9rem;
}

/* Pick Your Count — replaces generic prompts list */
.count-picker {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.625rem;
}

.count-picker li a {
  display: block;
  padding: 0.625rem 0.875rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--ember);
  border-radius: 0.375rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.count-picker li a:hover {
  background: rgba(255, 26, 26, 0.12);
  border-left-color: var(--ember-bright);
  transform: translateX(2px);
}

.count-picker .cp-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-bright);
  font-weight: 800;
  margin-right: 0.5rem;
}

.count-picker .cp-name {
  font-weight: 700;
}

/* Announcement video block — top of #how */
.announcement-video {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.125rem 1.125rem;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.14), rgba(0, 0, 0, 0.55));
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 0.5rem;
}

.announcement-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-bright);
  font-weight: 800;
}

.announcement-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0.375rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.announcement-link:hover {
  background: rgba(255, 26, 26, 0.18);
  transform: translateX(2px);
}

.announcement-link .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ember);
  color: var(--black);
  font-size: 0.875rem;
  padding-left: 3px;
  flex-shrink: 0;
}

.announcement-video .quiet {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

/* Hero rules — three-step entry block */
ol.rules.rules-hero li {
  font-size: 1.125rem;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

ol.rules.rules-hero li::before {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.125rem;
  top: -4px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.4);
}

.hashtag-inline {
  color: var(--ember);
  letter-spacing: 0.01em;
}

ul.rules-detail {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding-left: 0;
}

ul.rules-detail li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.85;
}

ul.rules-detail li::before {
  content: "·";
  position: absolute;
  left: 0.375rem;
  top: -2px;
  color: var(--ember);
  font-weight: 800;
  font-size: 1.25rem;
}

/* ==========================================================
   END TITLE
   ========================================================== */

.end-title {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {
  .content {
    padding: 1.25rem;
    max-width: 100%;
  }
  .content-left, .content-right { margin: 0; }

  .frame { padding: 3rem 1rem; }
  .frame.count { padding: 4rem 1rem; }

  .countdown { gap: 0.375rem; }
  .countdown-cell { padding: 0.625rem 0.125rem; }

  ol.rules li { padding-left: 2.25rem; }
  .parallels li { padding-left: 2rem; font-size: 0.9rem; }

  ol.timeline::before { left: 4.5rem; }
  ol.timeline li { grid-template-columns: 4rem 1fr; gap: 0.625rem; }
  ol.timeline li::before { left: 4.25rem; }
  .t-mark { font-size: 0.625rem; }
  .t-event { font-size: 0.875rem; padding-left: 0.75rem; }

  ul.verse-prompts li { font-size: 0.875rem; padding-left: 2rem; }
  ul.verse-prompts li::before { left: 0.625rem; }

  .toc { top: 0.625rem; right: 0.625rem; max-width: calc(100% - 1.25rem); }
  .toc-list { padding: 0.625rem 0.875rem; }
  .toc-list a { font-size: 0.875rem; padding: 0.5rem 0; }

  .dossier-stats strong { display: block; min-width: 0; margin-bottom: 0.125rem; }

  /* Tweet receipt — stack the caption row on mobile, larger tap target on the link */
  .tweet-receipt { margin: 0.875rem 0 1rem; }
  .tweet-receipt figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
  }
  .tweet-receipt figcaption a {
    padding: 0.25rem 0;
    font-size: 0.875rem;
  }
}

/* ==========================================================
   WEIRDO WALL — Public Verdict
   ========================================================== */

.ember-word {
  color: var(--ember-bright);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.weirdo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.875rem;
  margin: 1.75rem 0 1.5rem;
}

.weirdo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.125rem 1.125rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.weirdo-tile:hover {
  border-color: var(--ember-bright);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.weirdo-tile.lead {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.55));
  border-color: var(--ember);
}

.weirdo-tile.lead .tile-quote {
  font-size: 1.25rem;
  line-height: 1.35;
}

.tile-likes {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ember-bright);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ember);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
}
.tile-likes span {
  margin-left: 0.2rem;
  color: var(--cream);
  opacity: 0.7;
}

.tile-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--cream);
  font-style: italic;
  border-left: 2px solid var(--ember);
  padding-left: 0.75rem;
}

.tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.tile-handle {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.tile-channel {
  font-size: 0.75rem;
  color: var(--muted);
}
.tile-verify {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  transition: color 0.2s, opacity 0.2s;
}
.weirdo-tile:hover .tile-verify {
  color: var(--ember-bright);
  opacity: 1;
}

.caption-block {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--ember);
  background: rgba(0,0,0,0.4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--cream);
}

/* ==========================================================
   VOCAB WALL — Count 10 tweet thumbnails inside weirdo-tiles
   ========================================================== */

.vocab-thumb {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0a0a;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.vocab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s, filter 0.25s;
}
.weirdo-tile.vocab-tile:hover .vocab-thumb img {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.weirdo-tile.vocab-tile.lead .vocab-thumb {
  aspect-ratio: 16 / 9;
}
.weirdo-tile.vocab-tile .tile-quote em {
  color: var(--ember-bright);
  font-style: italic;
  font-weight: 600;
}

/* ==========================================================
   WATCH RECEIPT BUTTONS — YouTube deep-links per case file
   ========================================================== */

.watch-receipt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.55);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.watch-receipt:hover {
  background: var(--ember);
  color: #000;
  transform: translateY(-1px);
}
.watch-receipt::before {
  content: "▶";
  font-size: 0.7rem;
  color: var(--ember-bright);
  transition: color 0.2s;
}
.watch-receipt:hover::before { color: #000; }
.watch-receipt .src {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.25rem;
}
.watch-receipt:hover .src { color: rgba(0,0,0,0.65); }

/* ==========================================================
   HERO EMBED — Click-to-play YouTube above Count 1
   ========================================================== */

.hero-embed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 0;
}

.hero-embed {
  margin: 1rem 0 0;
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.hero-embed:hover {
  border-color: var(--ember-bright);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.hero-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.hero-embed:hover img { opacity: 0.85; }
.hero-embed .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
  pointer-events: none;
  padding: 1rem;
  text-align: center;
}
.hero-embed .play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--ember);
  color: #000;
  font-size: 1.6rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  transition: transform 0.2s, background 0.2s;
}
.hero-embed:hover .play-btn {
  background: var(--ember-bright);
  transform: scale(1.06);
}
.hero-embed .embed-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember-bright);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  padding: 0.25rem 0.6rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--ember);
  border-radius: 999px;
}
.hero-embed .embed-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  max-width: 28rem;
  line-height: 1.35;
}
.hero-embed .embed-sub {
  font-size: 0.7rem;
  color: var(--cream);
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  letter-spacing: 0.02em;
}
.hero-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .hero-embed-split {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .weirdo-wall { gap: 0.625rem; }
  .weirdo-tile { padding: 0.875rem; }
  .weirdo-tile.lead .tile-quote { font-size: 1.05rem; }
  .tile-quote { font-size: 0.95rem; }
  .hero-embed .play-btn { width: 52px; height: 52px; font-size: 1.3rem; }
  .hero-embed .embed-caption { font-size: 0.8125rem; }
  .hero-embed .embed-tag { font-size: 0.65rem; }
  .hero-embed .embed-sub { font-size: 0.65rem; }
}

/* ==========================================================
   PRIZE TEASE (hero) + SECONDARY BUTTON
   ========================================================== */

.prize-tease {
  margin: 1.25rem auto 1.25rem;
  max-width: 38rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--cream);
  background: oklch(0.18 0.02 30 / 0.7);
  border: 1px solid oklch(0.32 0.05 80 / 0.6);
  border-radius: var(--radius);
  letter-spacing: 0.01em;
}

.prize-tease-amount {
  color: #00D632;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.prize-tease strong { color: var(--gold-bright); }

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ==========================================================
   PRIZES SECTION
   ========================================================== */

.frame-prizes {
  min-height: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.prizes-headline {
  margin-bottom: 1rem;
}

.prizes-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  padding: 0;
}

.prize-tile {
  position: relative;
  padding: 1.25rem 1.125rem 1.125rem;
  background: oklch(0.13 0.015 30 / 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.prize-tile:hover {
  transform: translateY(-3px);
  border-color: var(--ember-bright);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.prize-tile.prize-1 {
  border-color: oklch(0.78 0.13 78 / 0.8);
  background: linear-gradient(160deg, oklch(0.18 0.04 78 / 0.6), oklch(0.13 0.015 30 / 0.85) 60%);
}

.prize-tile.prize-2 {
  border-color: oklch(0.55 0.04 80 / 0.6);
}

.prize-tile.prize-3 {
  border-color: oklch(0.45 0.08 30 / 0.6);
}

.prize-tile.prize-hm {
  border-color: oklch(0.32 0.03 30);
  background: oklch(0.11 0.01 30 / 0.85);
}

.prize-rank {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0;
}

.prize-tile.prize-1 .prize-rank { color: #FFD700; }
.prize-tile.prize-2 .prize-rank { color: var(--gold); }
.prize-tile.prize-3 .prize-rank { color: var(--ember-bright); }
.prize-tile.prize-hm .prize-rank { color: var(--muted); letter-spacing: 0.12em; }

.prize-amount-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.25rem 0 0.125rem;
}

.cashapp-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 214, 50, 0.25);
}

.prize-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1;
}

.prize-tile.prize-1 .prize-amount { color: #FFE680; font-size: 2.5rem; }
.prize-tile.prize-2 .prize-amount { color: var(--cream); }
.prize-tile.prize-3 .prize-amount { color: var(--ember-bright); }
.prize-tile.prize-hm .prize-amount { color: var(--cream); font-size: 1.875rem; }

.prize-amount-credits {
  align-items: baseline;
  gap: 0.5rem;
}

.prize-credits-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.prize-payout {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.prize-bonus {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.prize-bonus li {
  font-size: 0.8125rem;
  color: var(--cream);
  line-height: 1.45;
}

.prize-bonus strong { color: var(--ember-bright); }

.grand-prize-callout {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, oklch(0.2 0.08 30 / 0.9), oklch(0.16 0.04 30 / 0.9));
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 0 0 1px oklch(0.65 0.22 30 / 0.15), 0 12px 36px rgba(0,0,0,0.4);
}

.grand-prize-callout .overline {
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.grand-prize-line {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--cream);
  margin: 0.25rem 0 0.625rem;
}

.grand-prize-line strong {
  color: var(--ember-bright);
}

@media (max-width: 720px) {
  .prizes-grid { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .prize-tile { padding: 1rem 0.875rem; gap: 0.5rem; }
  .prize-amount { font-size: 1.75rem; }
  .prize-tile.prize-1 .prize-amount { font-size: 2rem; }
  .cashapp-logo { width: 32px; height: 32px; }
  .grand-prize-line { font-size: 1.25rem; }
  .prize-tease { font-size: 0.8125rem; padding: 0.5rem 0.75rem; }
  .prize-tease-amount { font-size: 0.95rem; }
  .hero-ctas { gap: 0.5rem; }
  .btn-secondary { padding: 0.75rem 1.125rem; font-size: 0.8125rem; }
}

@media (max-width: 480px) {
  .prizes-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   HERO LOGO
   ========================================================== */

.hero-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}
.hero-logo-link:hover { opacity: 0.85; transform: translateY(-1px); }

.hero-logo {
  width: 88px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

@media (max-width: 720px) {
  .hero-logo { width: 64px; }
  .hero-logo-link { margin-bottom: 0.625rem; }
}

/* ==========================================================
   PRIZE TILE — +ANIMATION EXTRA
   ========================================================== */

.prize-amount-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0.25rem;
  align-self: center;
  line-height: 1;
}

.prize-amount-add {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ember-bright);
  text-transform: uppercase;
  max-width: 6.5rem;
  align-self: center;
}

@media (max-width: 720px) {
  .prize-amount-plus { font-size: 1.25rem; }
  .prize-amount-add { font-size: 0.75rem; max-width: 5rem; }
}

/* ==========================================================
   ORIGINAL SONG SECTION
   ========================================================== */

.frame-original-song {
  min-height: auto;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.song-embed-wrap {
  max-width: 42rem;
  margin: 1.5rem auto 1.25rem;
}

.song-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.song-embed:hover {
  border-color: var(--ember-bright);
  transform: translateY(-2px);
}

.song-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.25s, transform 0.25s;
}

.song-embed:hover img { filter: brightness(0.75); transform: scale(1.02); }

.play-btn-big {
  width: 84px !important;
  height: 84px !important;
  font-size: 2rem !important;
}

.song-downloads {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 42rem;
  margin: 0 auto;
}

.download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
  padding: 0.875rem 1.25rem;
  text-align: center;
  min-width: 220px;
  text-transform: none;
  letter-spacing: 0;
}

.download-btn .dl-icon {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.download-btn .dl-meta {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-width: 480px) {
  .download-btn { min-width: 0; width: 100%; }
}

/* ==========================================================
   AI STACK CALLOUT (in AI demo section)
   ========================================================== */

.ai-stack-callout {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  padding: 1.125rem 1.25rem;
  background: oklch(0.13 0.01 30 / 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.ai-stack-callout .overline {
  color: var(--gold-bright);
  margin-bottom: 0.625rem;
}

.ai-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ai-stack-list li {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--cream);
}

.ai-stack-list strong { color: var(--ember-bright); }

/* ==========================================================
   CASE-FILE FOLDERS (count picker redesign)
   ========================================================== */

.case-folders {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
  padding: 0;
  margin: 1.5rem 0 1rem;
}

.case-folder {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.2s, filter 0.2s;
  position: relative;
}

.case-folder:hover {
  transform: translateY(-4px);
  color: var(--cream);
}
.case-folder:hover .folder-body {
  border-color: var(--ember-bright);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

/* the visible folder tab at top */
.folder-tab {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(0.22 0.04 78);
  color: var(--cream);
  padding: 0.3125rem 0.875rem 0.5rem;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  margin-left: 0.75rem;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}
.folder-tab::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 20px;
  height: 10px;
  background: oklch(0.22 0.04 78);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  border-right: 1px solid var(--border);
}

.folder-tab-hot {
  background: linear-gradient(135deg, var(--ember), oklch(0.55 0.18 30));
  color: var(--cream);
  border-color: var(--ember-bright);
}
.folder-tab-hot::after { background: oklch(0.55 0.18 30); border-color: var(--ember-bright); }

.folder-tab-mission {
  background: linear-gradient(135deg, oklch(0.45 0.08 280), oklch(0.32 0.12 280));
  color: var(--cream);
  border-color: oklch(0.55 0.15 280);
}
.folder-tab-mission::after { background: oklch(0.32 0.12 280); border-color: oklch(0.55 0.15 280); }

.folder-tab-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.folder-tab-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.0625rem 0.375rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: #FFEE00;
}

.folder-tab-mission .folder-tab-badge {
  color: oklch(0.85 0.15 80);
  background: rgba(0,0,0,0.45);
}

/* the folder body */
.folder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, oklch(0.22 0.04 78 / 0.95), oklch(0.18 0.03 78 / 0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 22px, oklch(0.32 0.03 30 / 0.18) 22px, oklch(0.32 0.03 30 / 0.18) 23px);
  border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px;
  padding: 0.875rem 0.9375rem 1rem;
  position: relative;
  box-shadow: inset 0 1px 0 oklch(0.45 0.06 78 / 0.4), 0 4px 14px rgba(0,0,0,0.3);
  transition: border-color 0.2s, box-shadow 0.25s;
  min-height: 130px;
  gap: 0.375rem;
}

.case-folder-pin .folder-body {
  background:
    linear-gradient(165deg, oklch(0.24 0.06 30 / 0.95), oklch(0.18 0.04 30 / 0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 22px, oklch(0.32 0.03 30 / 0.22) 22px, oklch(0.32 0.03 30 / 0.22) 23px);
  border-color: var(--ember);
}

.case-folder-mission .folder-body {
  background:
    linear-gradient(165deg, oklch(0.21 0.06 280 / 0.95), oklch(0.16 0.04 280 / 0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 22px, oklch(0.32 0.05 280 / 0.22) 22px, oklch(0.32 0.05 280 / 0.22) 23px);
  border-color: oklch(0.55 0.15 280);
}

.folder-stamp {
  position: absolute;
  top: 0.5rem;
  right: 0.625rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: oklch(0.6 0.15 30 / 0.55);
  border: 1px solid oklch(0.6 0.15 30 / 0.45);
  padding: 0.125rem 0.3125rem;
  border-radius: 3px;
  text-transform: uppercase;
  transform: rotate(-3deg);
  pointer-events: none;
  user-select: none;
}

.folder-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: oklch(0.13 0.01 30 / 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

/* a slot for transparent-PNG count symbols Robert provides later */
.folder-symbol-placeholder { line-height: 1; }
.folder-symbol img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.folder-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--cream);
}

.case-folder-pin .folder-name { color: #FFE680; }
.case-folder-mission .folder-name { color: oklch(0.88 0.1 280); }

.folder-angle {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 720px) {
  .case-folders { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .folder-symbol { width: 40px; height: 40px; font-size: 1.25rem; }
  .folder-body { min-height: 116px; padding: 0.75rem 0.8125rem 0.875rem; }
  .folder-name { font-size: 0.9375rem; }
  .folder-angle { font-size: 0.75rem; }
}

@media (max-width: 420px) {
  .case-folders { grid-template-columns: 1fr; }
}

/* ==========================================================
   AI ASSIST DEMO (fake chat, typewriter)
   ========================================================== */

.frame-ai-demo {
  min-height: auto;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.ai-demo-headline {
  margin-bottom: 0.75rem;
}

.ai-chat {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  background: oklch(0.13 0.01 30 / 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px oklch(0.65 0.22 30 / 0.08);
  text-align: left;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: oklch(0.16 0.015 30);
  border-bottom: 1px solid var(--border);
}

.ai-chat-dots {
  display: flex;
  gap: 0.3125rem;
}
.ai-chat-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: oklch(0.35 0.05 30);
  box-shadow: inset 0 0 0 1px oklch(0.45 0.05 30);
}
.ai-chat-dots span:nth-child(1) { background: #ff5f57; box-shadow: none; }
.ai-chat-dots span:nth-child(2) { background: #febc2e; box-shadow: none; }
.ai-chat-dots span:nth-child(3) { background: #28c840; box-shadow: none; }

.ai-chat-title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.ai-chat-model {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.ai-chat-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 14rem;
}

.ai-msg {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  animation: aiFadeIn 0.35s ease-out;
}

.ai-msg-user { flex-direction: row-reverse; }

.ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.ai-avatar-user {
  background: oklch(0.32 0.05 30);
  color: var(--cream);
}

.ai-avatar-bot {
  background: linear-gradient(135deg, var(--ember), oklch(0.78 0.13 78));
  color: var(--black);
}

.ai-bubble {
  max-width: calc(100% - 50px);
  padding: 0.75rem 0.9375rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--cream);
  word-wrap: break-word;
}

.ai-bubble-user {
  background: oklch(0.22 0.04 30);
  border: 1px solid oklch(0.32 0.05 30);
  border-bottom-right-radius: 4px;
}

.ai-bubble-bot {
  background: oklch(0.15 0.02 30);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.ai-bubble-final {
  font-style: italic;
  color: var(--gold-bright);
}

.ai-cursor {
  display: inline-block;
  color: var(--ember-bright);
  font-weight: 400;
  animation: aiBlink 1s steps(2, start) infinite;
}

.ai-msg.is-done .ai-cursor { display: none; }

.ai-typed { white-space: pre-wrap; }

.ai-thinking {
  display: flex;
  gap: 4px;
  padding: 0.25rem 0;
}
.ai-thinking span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: aiDot 1.2s ease-in-out infinite;
}
.ai-thinking span:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.3s; }
.ai-msg.is-thinking-done .ai-thinking { display: none; }

.ai-verse {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--cream);
  white-space: pre-wrap;
  margin: 0;
}

.ai-verse-cursor {
  margin: 0;
  display: inline;
}

.ai-msg.is-done .ai-verse-cursor { display: none; }

.ai-chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: oklch(0.11 0.01 30);
  flex-wrap: wrap;
}

.ai-replay {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.ai-replay:hover { color: var(--cream); border-color: var(--gold); }

.ai-cta {
  margin-top: 0;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
}

@keyframes aiFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aiBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes aiDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .ai-chat-body { padding: 1rem 0.75rem; min-height: 12rem; }
  .ai-bubble { font-size: 0.875rem; padding: 0.625rem 0.8125rem; }
  .ai-verse { font-size: 0.875rem; line-height: 1.55; }
  .ai-chat-footer { padding: 0.625rem 0.75rem; }
  .ai-cta { font-size: 0.75rem; padding: 0.5rem 0.8125rem; }
}

/* ==========================================================
   AI DEMO CYCLER — 3 variations (ChatGPT / Claude / Suno)
   ========================================================== */

.ai-cycler {
  position: relative;
  max-width: 46rem;
  margin: 1.5rem auto 0;
  text-align: left;
  display: grid;
}

.ai-card {
  grid-row: 1;
  grid-column: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.ai-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.ai-card.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  z-index: 1;
}

.ai-card[hidden] { display: none; }

.ai-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--border);
}

.ai-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ai-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ai-brand-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.ai-brand-url {
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ai-brand-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.ai-card-body {
  padding: 1.25rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.ai-msg-user-line,
.ai-msg-bot-line {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.ai-msg-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-msg-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: oklch(0.85 0.02 50);
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  background: oklch(0.18 0.02 30);
  border: 1px solid var(--border);
}

.ai-style-prompt {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--gold-bright);
}

.ai-output {
  border-radius: 10px;
  padding: 1rem 1rem 1.125rem;
  background: oklch(0.13 0.015 30);
  border: 1px solid var(--border);
}

.ai-output-title {
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px dashed var(--border);
}

.ai-output-title h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0.25rem 0 0;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.ai-output-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.ai-output-meta {
  margin-top: 0.4375rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ai-output-block {
  margin-top: 0.875rem;
}
.ai-output-block:first-of-type { margin-top: 0; }

.ai-output-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 0.4375rem;
}

.ai-lyrics {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--cream);
  white-space: pre-wrap;
  margin: 0;
  padding: 0;
}

.ai-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-top: 1px solid var(--border);
  background: oklch(0.11 0.01 30);
}

.ai-cta {
  margin-top: 0;
  padding: 0.625rem 1.125rem;
  font-size: 0.8125rem;
}

/* === Variant 1: ChatGPT skin === */
.ai-card-chatgpt {
  background: #0F0F0F;
  border: 1px solid oklch(0.28 0.04 160);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(16, 163, 127, 0.12);
}
.ai-header-chatgpt {
  background: linear-gradient(180deg, oklch(0.16 0.03 160), oklch(0.13 0.02 160));
  border-bottom-color: oklch(0.25 0.04 160);
}
.ai-mark-chatgpt { background: rgba(16, 163, 127, 0.14); }
.ai-card-chatgpt .ai-output-tag { color: #10A37F; }
.ai-card-chatgpt .ai-cta {
  background: #10A37F;
  border-color: #10A37F;
  color: white;
}
.ai-card-chatgpt .ai-cta:hover { background: #0E8C6C; border-color: #0E8C6C; }

/* === Variant 2: Claude skin === */
.ai-card-claude {
  background: #1A1411;
  border: 1px solid oklch(0.32 0.06 35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(217, 119, 87, 0.14);
}
.ai-header-claude {
  background: linear-gradient(180deg, oklch(0.18 0.04 35), oklch(0.14 0.025 35));
  border-bottom-color: oklch(0.28 0.05 35);
}
.ai-mark-claude { background: rgba(217, 119, 87, 0.16); }
.ai-pill-claude { background: rgba(217, 119, 87, 0.2); color: #F4A582; }
.ai-tag-claude { color: #D97757 !important; }
.ai-label-claude { color: #D97757 !important; }
.ai-card-claude .ai-output { background: oklch(0.15 0.025 35); border-color: oklch(0.26 0.04 35); }
.ai-card-claude .ai-output-title { border-bottom-color: oklch(0.26 0.04 35); }
.ai-output-claude { background: oklch(0.15 0.025 35); }
.ai-cta-claude { background: #D97757; border-color: #D97757; color: white; }
.ai-cta-claude:hover { background: #C26542; border-color: #C26542; }

/* === Variant 3: Suno skin === */
.ai-card-suno {
  background: #120B1F;
  border: 1px solid oklch(0.32 0.12 320);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(168, 85, 247, 0.16);
}
.ai-header-suno {
  background: linear-gradient(180deg, oklch(0.18 0.08 320), oklch(0.14 0.05 310));
  border-bottom-color: oklch(0.28 0.1 320);
}
.ai-mark-suno { background: rgba(168, 85, 247, 0.2); }
.ai-pill-suno {
  background: linear-gradient(135deg, #A855F7, #EC4899);
  color: white;
}
.ai-tag-suno { color: #EC4899 !important; }
.ai-label-suno { color: #C084FC !important; }
.ai-card-suno .ai-output { background: oklch(0.14 0.04 320); border-color: oklch(0.26 0.08 320); }
.ai-card-suno .ai-output-title { border-bottom-color: oklch(0.26 0.08 320); }
.ai-output-suno { background: oklch(0.14 0.04 320); }
.ai-cta-suno {
  background: linear-gradient(135deg, #A855F7, #EC4899);
  border: none;
  color: white;
}
.ai-cta-suno:hover { filter: brightness(1.1); }

/* Suno song-card layout */
.ai-suno-songcard {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}
.ai-suno-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, #A855F7, #EC4899);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ai-suno-glyph {
  font-size: 1.875rem;
  color: white;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ai-suno-waves {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}
.ai-suno-waves span {
  flex: 1;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: sunoWave 1.4s ease-in-out infinite;
}
.ai-suno-waves span:nth-child(1) { animation-delay: 0s; height: 35%; }
.ai-suno-waves span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.ai-suno-waves span:nth-child(3) { animation-delay: 0.2s; height: 90%; }
.ai-suno-waves span:nth-child(4) { animation-delay: 0.3s; height: 50%; }
.ai-suno-waves span:nth-child(5) { animation-delay: 0.4s; height: 75%; }
.ai-suno-waves span:nth-child(6) { animation-delay: 0.5s; height: 40%; }
.ai-suno-waves span:nth-child(7) { animation-delay: 0.6s; height: 65%; }
.ai-suno-waves span:nth-child(8) { animation-delay: 0.7s; height: 30%; }

@keyframes sunoWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* === Dot navigation === */
.ai-cycler-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  max-width: 46rem;
  margin: 1.125rem auto 0;
}

.ai-dot {
  background: oklch(0.14 0.01 30);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6875rem 0.75rem;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: all 0.2s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.625rem;
  row-gap: 0.125rem;
  align-items: center;
}

.ai-dot:hover {
  border-color: oklch(0.45 0.08 30);
  color: var(--cream);
}

.ai-dot.is-active {
  background: oklch(0.2 0.05 30);
  border-color: var(--ember);
  color: var(--cream);
  box-shadow: 0 0 0 1px var(--ember);
}

.ai-dot-num {
  grid-row: 1 / 3;
  grid-column: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ember-bright);
  padding: 0.1875rem 0.4375rem;
  border-radius: 999px;
  background: rgba(255, 87, 51, 0.12);
  align-self: center;
}

.ai-dot-label {
  grid-row: 1;
  grid-column: 2;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ai-dot-sub {
  grid-row: 2;
  grid-column: 2;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .ai-cycler-nav {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .ai-card-body { padding: 1rem 0.875rem; gap: 0.875rem; }
  .ai-output { padding: 0.875rem; }
  .ai-output-title h3 { font-size: 1.25rem; }
  .ai-lyrics { font-size: 0.875rem; line-height: 1.55; }
  .ai-msg-text { font-size: 0.875rem; padding: 0.625rem 0.75rem; }
  .ai-card-header { padding: 0.75rem 0.875rem; }
  .ai-card-footer { padding: 0.75rem 0.875rem; }
  .ai-brand-tag { display: none; }
  .ai-suno-songcard { gap: 0.625rem; }
  .ai-suno-art { width: 56px; height: 56px; }
  .ai-suno-glyph { font-size: 1.5rem; }
}

/* ==========================================================
   SHARE — inline row, floating FAB, toast
   ========================================================== */

.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5rem 0.875rem;
  background: oklch(0.16 0.02 30);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--cream);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.share-btn:hover {
  background: oklch(0.22 0.04 30);
  border-color: oklch(0.45 0.1 30);
  transform: translateY(-1px);
}

.share-btn svg { flex-shrink: 0; }

.share-x:hover { color: #fff; border-color: #fff; background: #000; }
.share-copy.is-copied {
  background: oklch(0.32 0.18 145);
  border-color: oklch(0.55 0.2 145);
  color: white;
}

/* Floating FAB — mobile + tablet */
.share-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.625rem 1rem;
  background: var(--ember);
  border: none;
  border-radius: 999px;
  color: white;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 87, 51, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.share-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 87, 51, 0.6);
}

.share-fab:active { transform: translateY(0); }

@media (max-width: 900px) {
  .share-fab { display: inline-flex; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%) translateY(20px);
  background: oklch(0.18 0.02 30);
  color: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6875rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .share-row { gap: 0.375rem; }
  .share-btn { padding: 0.4375rem 0.75rem; font-size: 0.75rem; }
  .share-label { width: 100%; text-align: center; margin-bottom: 0.25rem; }
}

/* ==========================================================
   JUDGE REVEAL TOGGLE
   ========================================================== */

body.judge-mystery .j-revealed { display: none !important; }
body.judge-revealed .j-mystery { display: none !important; }

/* ==========================================================
   WHY IT'S ELITE — editorial breakdown
   ========================================================== */

.frame-why-elite {
  min-height: auto;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.elite-content {
  max-width: 68rem;
}

.elite-headline {
  font-size: clamp(1.75rem, 4.2vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0.5rem auto 1rem;
  max-width: 28ch;
}

.elite-lede {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.elite-hero {
  margin: 0 auto 2.5rem;
  max-width: 56rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.elite-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.elite-hero:has(img[style*="display:none"]),
.elite-hero:has(img[style*="display: none"]) {
  display: none;
}

.elite-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.125rem;
  text-align: left;
}

.elite-card {
  background: oklch(0.13 0.015 30 / 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.375rem 1.625rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.elite-card:hover {
  border-color: oklch(0.45 0.1 30);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.elite-num {
  position: absolute;
  top: 1.125rem;
  right: 1.25rem;
  font-family: var(--font-display, var(--font-body));
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: oklch(0.32 0.08 30);
  line-height: 1;
  opacity: 0.55;
}

.elite-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin: 0;
  padding-right: 3rem;
}

.elite-card h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--cream);
  padding-right: 0.5rem;
}

.elite-quote {
  margin: 0.25rem 0 0;
  padding: 0.75rem 0.875rem;
  border-left: 3px solid var(--ember);
  background: oklch(0.16 0.025 30);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gold-bright);
  font-style: normal;
}

.elite-quote em {
  font-style: italic;
  color: var(--cream);
}

.elite-card p:not(.elite-tag) {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: oklch(0.82 0.02 50);
  margin: 0;
}

.elite-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 1.625rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.elite-thesis {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cream);
  max-width: 38rem;
  margin: 0 auto 0.5rem;
}

.elite-byline {
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .elite-grid { grid-template-columns: 1fr; gap: 0.875rem; }
  .elite-card { padding: 1.25rem 1.125rem 1.375rem; }
  .elite-num { font-size: 1.875rem; top: 0.9375rem; right: 1rem; }
  .elite-card h3 { font-size: 1.125rem; }
  .elite-quote { font-size: 0.875rem; padding: 0.625rem 0.75rem; }
  .elite-card p:not(.elite-tag) { font-size: 0.875rem; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-hint { animation: none; }
}
