/* ===========================================================
   See The Good — Little Bardichevers
   =========================================================== */

@font-face {
  font-family: 'Tropicfun';
  src: url('assets/fonts/Tropicfun.otf') format('opentype');
  font-weight: normal;
  font-display: swap;
}

:root {
  --yellow:  #fdcd1b;
  --navy:    #001f3f;
  --indigo:  #2e3192;
  --blue:    #0f52ba;
  --white:   #ffffff;
  --font-display: 'Tropicfun', 'Raleway', sans-serif;
  --font-body:    'Raleway', sans-serif;

  /* ── Tunable layout values (live-editable via the tweak panel) ──
     After dragging sliders to taste, click "Copy values" and paste
     the numbers back in here to make them permanent. */

  /* Background pattern */
  --bg-opacity:            54;     /* 0–100 → opacity 0.0–1.0 */

  /* Header / logo */
  --logo-w:                57px;   /* Brand wordmark width */
  --topbar-pad-y:          18px;   /* Top/bottom padding of topbar */
  --topbar-pad-x:           4vw;   /* Left/right padding of topbar */

  /* Hero container */
  --hero-h:               104vh;   /* Hero section height */
  --hero-overlay-opacity:   75;    /* 0–100 → opacity 0.0–1.0 over the video */

  /* Roni image */
  --roni-max-h:           155vh;   /* Size cap */
  --roni-bottom:           -1vh;   /* Vertical offset (+ down) */
  --roni-left:              0vw;   /* Horizontal offset (+ right) */
  /* Crop = % chopped from each side via clip-path: inset(t r b l) */
  --roni-crop-top:           0%;
  --roni-crop-right:         0%;
  --roni-crop-bottom:        0%;
  --roni-crop-left:          0%;

  /* Hero CTA pill */
  --hero-cta-size:         15px;   /* Font size */
  --hero-cta-pad-y:        22px;   /* Vertical padding */
  --hero-cta-pad-x:        48px;   /* Horizontal padding */
  --hero-cta-x:             0px;   /* Move left (–) / right (+) — free */
  --hero-cta-y:          -234px;   /* Move up (–) / down (+) — free */
  --hero-cta-scale:          93;   /* Overall size, % (100 = default) */

  /* Hero logo (sits centered above the CTA) */
  --hero-logo-w:          848px;   /* Width (height auto) */
  --hero-logo-gap:         95px;   /* Space between logo and CTA */

  /* Yellow floor strip below the hero */
  --floor-h:               89px;

  /* ── Yellow section (live-editable via the tweak panel) ── */
  --stories-min-h:        173vh;   /* Min height of the yellow block */
  --stories-pad-bottom:     0px;   /* 0 = marquee flush at the bottom */

  /* Marquee */
  --marquee-pad-y:         22px;   /* Bar thickness (vertical padding) */
  --marquee-font:          22px;   /* Phrase font size */
  --marquee-gap:           90px;   /* Gap between phrases & logos */
  --marquee-logo-w:        30px;   /* Logo size */
  --marquee-speed:         30s;    /* Full loop duration */

  /* Hero ticker (its own values, independent of the yellow marquee) */
  --hero-ticker-pad-y:     22px;   /* Bar thickness */
  --hero-ticker-font:      22px;   /* Phrase font size */
  --hero-ticker-gap:       62px;   /* Gap between phrases & logos */
  --hero-ticker-logo-w:    30px;   /* Crown size */
  --hero-ticker-speed:    105s;    /* Full loop duration */

  /* Concept block (glass text + image stack) */
  --concept-top:           62px;   /* Space below the features row */
  --concept-side-pad:       5vw;   /* Container left/right padding */
  --concept-col-gap:       30px;   /* Gap between text card and image stack */
  --concept-bottom-gap:     0px;   /* Space between concept-block and the marquee below */
  --glass-pad:             48px;   /* Glass card inner padding */
  --glass-radius:          24px;   /* Glass card corner radius */
  --concept-title-size:    44px;   /* Glass card title font size */
  --concept-body-size:     19px;   /* Glass card body font size */
  --frame-gap:             18px;   /* Vertical gap between image frames */
  --frame-radius:          14px;   /* Image frame corner radius */

  /* Listen To Little Bardichevers (music platform links) */
  --listen-pad-y:          48px;
  --listen-card-radius:    24px;
  --listen-title-size:     38px;
  --listen-gap:            18px;

  /* Features row (3 logos + label/desc, top of yellow block) */
  --features-pad-top:       0px;
  --features-pad-bottom:   30px;
  --features-col-gap:      30px;
  --feature-icon-size:    140px;
  --feature-title-size:    32px;
  --feature-desc-size:     15px;

  /* Block 3 — Prizes / Contest */
  --prizes-header-pad-y:   32px;   /* Top + bottom padding of the gradient header */
  --prizes-title-size:     69px;
  --prizes-tile-gap:       47px;   /* Gap between tiles */
  --prizes-tile-radius:    14px;
  --prizes-speed:          50s;    /* Tile marquee scroll duration */
  --prizes-spacer-h:      648px;   /* Empty space between steps & merch */

  /* Wall of Good (paginated carousel of testimonial cards) */
  --wall-pad-y:            80px;
  --wall-title-size:       54px;
  --wall-card-pad:         24px;
  --wall-card-gap:         20px;   /* gap between cards in the page grid */
  --wall-autoplay-s:        5;     /* auto-advance interval (seconds) */

  /* Block 4 — TYHBOYS Music */
  --music-pad-y:          100px;   /* Top + bottom padding */
  --music-title-size:      49px;   /* Section title size */
  --music-title-gap:       51px;   /* Space between title and grid */
  --music-grid-gap:        32px;   /* Gap between video cards */

  /* Behind-The-Scenes card (yellow row above the music grid) */
  --bts-max-w:            575px;   /* Card width cap (centered) */
  --bts-pad:               24px;
  --bts-radius:            24px;
  --bts-title-size:        24px;
  --bts-col-gap:           24px;
  --bts-bottom-gap:        60px;   /* Space between BTS card and the music title */
}

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

html { scroll-behavior: smooth; }

/* ── Gradient background ── */
body {
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── BG pattern overlay — fixed in the viewport, tiled to fill ──
   Stays put while the page scrolls past it; tile size clamps so
   the pattern density stays consistent on phone and desktop. */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: url('assets/images/BG%20design1.png');
  background-repeat: repeat;
  background-size: clamp(400px, 80vw, 1100px);
  opacity: calc(var(--bg-opacity) / 100);
  pointer-events: none;
}

/* Everything sits above the overlay */
.topbar, .hero, section, footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ===========================================================
   TOPBAR — scrolls with the page; only the hamburger stays fixed
   =========================================================== */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: var(--topbar-pad-y) var(--topbar-pad-x);
  background: transparent;
}

/* Wordmark = home button. */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-wordmark {
  width: var(--logo-w);
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.4));
  transition: transform .2s ease;
}
.brand:hover .brand-wordmark { transform: scale(1.06) rotate(-2deg); }

/* (CTA button removed — only the brand wordmark + the fixed
   hamburger live in the header now.) */

/* ===========================================================
   Hamburger menu (circular, fixed top-right on every viewport)
   =========================================================== */
.menu-toggle {
  position: fixed;
  top: 14px;
  right: 5vw;
  z-index: 102;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  border: 2.5px solid rgba(0,0,0,0.75);
  box-shadow: 0 0 0 3px rgba(253,205,27,0.3), 0 6px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, box-shadow .2s;
}
.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(253,205,27,0.5), 0 10px 28px rgba(0,0,0,0.35);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease;
}
/* Animate to an X when open */
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Dropdown menu — gradient glass to match the hero/marquee */
.menu-dropdown {
  position: fixed;
  top: 70px;
  right: 5vw;
  z-index: 99;
  min-width: 240px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.18),
    0 18px 44px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: top right;
  animation: menu-pop .18s ease-out;
}
.menu-dropdown[hidden] { display: none; }

@keyframes menu-pop {
  from { opacity: 0; transform: scale(0.92) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.menu-link:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateX(2px);
}

/* ===========================================================
   HERO — 2-column: kid left, video right
   =========================================================== */
.hero {
  position: relative;
  /* On standard/portrait viewports use --hero-h. On ultra-wide,
     scale up to match the Roni image's 16:9 aspect (2000×1125 →
     56.25vw) so the image fits inside the hero at full width
     without overflow:hidden cropping the top. */
  height: max(var(--hero-h), 56.25vw);
  overflow: hidden;
}

/* ── Full-width wave image anchored to the bottom of the hero ──
   Uses the image's natural aspect ratio (no cover/crop) so Roni
   isn't stretched to fill 100vh. The image is pinned to the bottom
   so the wave still meets the yellow-floor seamlessly, and the kid
   starts below the logo because the image is shorter than the hero. */
.hero-bg-image {
  position: absolute;
  bottom: var(--roni-bottom);
  left: var(--roni-left);
  right: 0;
  width: 100%;
  height: auto;
  /* The image's natural height at 100% width is 56.25vw (it's 16:9).
     Make sure max-height never drops below that, otherwise on very
     wide screens the image gets clamped shorter, which contain
     would render as a gap on the right. */
  max-height: max(var(--roni-max-h), 56.25vw);
  /* contain — now that .hero scales tall enough on ultra-wide,
     the image fits naturally at full width with no gap and no
     top-crop. cover would re-introduce cropping. */
  object-fit: contain;
  object-position: bottom left;
  /* Crops from each side without changing layout/size */
  clip-path: inset(var(--roni-crop-top) var(--roni-crop-right) var(--roni-crop-bottom) var(--roni-crop-left));
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* ── Looping video background — fills the entire hero ── */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* Translucent navy gradient sitting on top of the video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  opacity: calc(var(--hero-overlay-opacity) / 100);
  pointer-events: none;
}

/* ── Content floats over Roni — video overlaps the kid ── */
.hero-content {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 3;
  /* Center the logo + button cluster smack in the middle of the
     hero, horizontally and vertically. The cluster grows from
     the center outward as the logo width slider changes. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 5vw;
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--headline-size);
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 8px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--tagline-size);
  color: var(--yellow);
  margin: 0 0 var(--tagline-gap);
}

/* Hero logo — sits centered above the CTA pill, grows from
   the center outward via width var. */
.hero-logo {
  display: block;
  width: var(--hero-logo-w);
  max-width: 100%;
  height: auto;
  margin-bottom: var(--hero-logo-gap);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

/* Free-moving wrapper for the CTA: position (X/Y) + size live here, so
   the button can be placed independently of the logo. The pill inside
   keeps its own hop animation (transforms compose). */
.hero-cta-wrap {
  display: inline-flex;
  transform: translate(var(--hero-cta-x), var(--hero-cta-y))
             scale(calc(var(--hero-cta-scale) / 100));
  transform-origin: center;
  will-change: transform;
}

/* Hero CTA — clear liquid-glass pill, centered under the logo.
   Subtle continuous hop to catch the eye; pauses on hover so the
   hover lift can take over cleanly. */
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(12px, 1.4vw, var(--hero-cta-pad-y)) clamp(22px, 3vw, var(--hero-cta-pad-x));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(11px, 1.2vw, var(--hero-cta-size));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 14px 32px rgba(0, 0, 0, 0.3);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  animation: hero-cta-hop 1.8s ease-in-out infinite;
  cursor: pointer;
}
.hero-cta:hover {
  animation: none;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 20px 44px rgba(0, 0, 0, 0.4);
}

/* Subtle continuous zoom in/out — "just a tad" — to draw the eye */
@keyframes hero-cta-hop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta { animation: none; }
}

/* Solid yellow strip — continues the wave colour across the full page */
.yellow-floor {
  width: 100%;
  background: #fdcd1b;
  height: var(--floor-h);
  margin-top: -2px; /* close any 1px gap between hero and floor */
}

/* ===========================================================
   SECTIONS (below the fold)
   =========================================================== */
.stories, .join { padding: 90px 0; }
.stories {
  background: var(--yellow);
  color: var(--navy);
  min-height: var(--stories-min-h);
  padding: 0 0 var(--stories-pad-bottom);
  /* flex column lets the marquee child sit flush at the bottom regardless
     of how tall the section is forced to be by --stories-min-h */
  display: flex;
  flex-direction: column;
}
.stories > .marquee { margin-top: auto; }

/* Same marquee, pinned to the bottom of the hero over the video.
   (.marquee.hero-marquee outranks the base .marquee position rule.) */
.marquee.hero-marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: var(--hero-ticker-pad-y) 0;
}
/* Hero ticker uses its own size/speed vars (independent + slider-driven). */
.hero-marquee .marquee-track { animation-duration: var(--hero-ticker-speed); }
.hero-marquee .marquee-item { font-size: var(--hero-ticker-font); }
.hero-marquee .marquee-track > * { margin-right: var(--hero-ticker-gap); }
.hero-marquee .marquee-logo { width: var(--hero-ticker-logo-w); }

/* ===========================================================
   Scrolling marquee (top of yellow section) — liquid glass bar
   =========================================================== */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--marquee-pad-y) 0;
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  border-top: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(0,0,0,0.35);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.22),    /* top inner highlight */
    inset 0 -3px 8px rgba(0,0,0,0.4),        /* bottom inner shadow */
    0 14px 30px rgba(0,0,0,0.22);            /* outer lift */
}
/* Glossy sheen across the upper half */
.marquee::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.06) 55%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Soft highlight slick along the very top */
.marquee::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

.marquee-track {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
  will-change: transform;
}
/* Trailing margin on every child (instead of flex `gap`) so the
   period of the animation is exactly one set's width including its
   spacing — the -50% translate then lines up perfectly and the
   loop has no visible jump. */
.marquee-track > * {
  margin-right: var(--marquee-gap);
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);   /* Tropicfun */
  font-weight: 400;
  font-size: var(--marquee-font);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.phrase-recurring { color: var(--yellow); }
.phrase-tail      { color: var(--white); }

.marquee-logo {
  width: var(--marquee-logo-w);
  height: auto;
  display: block;
  flex-shrink: 0;
  /* brightness 0 → black silhouette, invert 1 → pure white */
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================================================
   BLOCK 3 — Prizes / Contest
   Layout (top → bottom):
     1. Gradient header (magenta → amber, same as top callout)
     2. Navy body with 3 numbered steps
     3. Scrolling marquee of prize tiles
   =========================================================== */
.prizes {
  position: relative;
  background: linear-gradient(180deg, #14206b 0%, #0a1240 100%);
  color: #fff;
  overflow: hidden;
}

/* ── Yellow gradient header band (matches the rest of the site) ── */
.prizes-header {
  padding: var(--prizes-header-pad-y) 5vw;
  text-align: center;
  background: linear-gradient(90deg,
    #ffe06a 0%,
    #fdcd1b 50%,
    #e0aa10 100%);
  color: var(--navy);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.prizes-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--prizes-title-size);
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Crown mark inline with the title — no disc, just the crown
   silhouette filled in navy via CSS mask so it matches the
   title text color exactly. */
.prizes-title-mark {
  display: inline-block;
  width: calc(var(--prizes-title-size) * 0.62);
  height: calc(var(--prizes-title-size) * 0.62);
  background-color: var(--navy);
  -webkit-mask: url('assets/logos/logo-mark.png') center / contain no-repeat;
          mask: url('assets/logos/logo-mark.png') center / contain no-repeat;
  vertical-align: middle;
}

.prizes-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--prizes-sub-size);
  line-height: 1.5;
  color: rgba(0, 31, 63, 0.78);
}

/* ── 3-step process ── */
.prizes-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: var(--prizes-steps-pad-y) 5vw;
  align-items: start;
  justify-items: center;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.step-number {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--prizes-step-num-size);
  line-height: 1;
  margin-bottom: 18px;
  color: #fff;
}

/* Pills auto-size to fit their content (two nowrap lines), so the
   text is locked to exactly 2 lines regardless of viewport width.
   On wider screens the columns get bigger and the pills naturally
   sit with more breathing room around them. */
.step-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 14px clamp(20px, 3vw, 36px);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

/* Each line stays on one line, no auto-wrapping */
.step-line {
  display: block;
  white-space: nowrap;
  font-size: clamp(11px, 1.2vw, 15px);
}

/* Band between the 3 steps and the merch marquee, hosting the
   "Share Your Good" yellow-glass card. Height controlled by
   --prizes-spacer-h. The card is centered vertically + horizontally. */
.prizes-spacer {
  min-height: var(--prizes-spacer-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5vw;
  box-sizing: border-box;
}

/* ── Share Your Good card — yellow liquid glass ── */
.share-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 28px;
  background: linear-gradient(145deg, #fdcd1b 0%, #d6a40a 100%);
  color: var(--navy);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),       /* top inner highlight */
    inset 0 -3px 10px rgba(120, 80, 0, 0.3),      /* bottom inner shadow */
    0 22px 50px rgba(0, 0, 0, 0.28);              /* outer drop */
  overflow: hidden;
  text-align: center;
}
/* Glossy upper sheen */
.share-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%);
  pointer-events: none;
}
/* Bright slick along the very top edge */
.share-card::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}
.share-card > * { position: relative; z-index: 1; }

.share-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.share-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(0, 31, 63, 0.78);
  margin-bottom: 26px;
}

.share-form { text-align: left; }
/* All form fields share the same vertical rhythm */
.share-form > input,
.share-form > textarea,
.share-form > .share-form-row {
  margin-top: 12px;
}
.share-form > :first-child { margin-top: 0; }

/* All boxes are multi-line so their hint text wraps and the box grows
   to fit (JS auto-sizes the height to the content / placeholder). */
.share-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 31, 63, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}
/* The big message box keeps a comfortable minimum height. */
#goodInput { min-height: 120px; }
/* Recipient + contact: look like the single-line pill fields, but as
   wrapping boxes so the full hint shows and they grow as needed. */
.share-form textarea.line-input {
  padding: 13px 18px;
  border-radius: 18px;
  font-size: 15px;
}
.share-form textarea::placeholder { color: rgba(0, 31, 63, 0.45); }
.share-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.15);
}
.share-form textarea:disabled {
  background: rgba(255, 255, 255, 0.32);
  color: rgba(0, 31, 63, 0.55);
  cursor: not-allowed;
}

.char-counter {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 31, 63, 0.6);
  text-align: right;
  min-height: 16px;
}
.char-counter--max { color: #c0392b; }

/* Single-line text inputs (contact, first name, city) share styling */
.share-form input[type="text"],
.share-form input[type="email"],
.share-form input[type="tel"] {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 31, 63, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  margin-top: 12px;
  box-sizing: border-box;
}
.share-form input::placeholder { color: rgba(0, 31, 63, 0.45); }
.share-form input:focus {
  outline: none;
  border-color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
}
.share-form input:disabled {
  background: rgba(255, 255, 255, 0.32);
  color: rgba(0, 31, 63, 0.55);
  cursor: not-allowed;
}

/* Row for First name + City (and any other side-by-side fields) */
.share-form-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.share-form-row input {
  flex: 1;
  min-width: 0;       /* allow them to shrink in narrow rows */
  margin-top: 0;       /* row provides the top spacing */
}

.btn-share {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2.5px solid rgba(0, 0, 0, 0.75);
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  background: var(--indigo);
}

.share-status {
  margin-top: 14px;
  color: var(--navy);
  font-weight: 700;
  min-height: 20px;
}

.share-fineprint {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 31, 63, 0.6);
}

/* ===========================================================
   Share-graphic modal — pops up after the user submits and
   shows the generated male + female canvases with save/share.
   =========================================================== */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;     /* anchor to top so the title is always visible */
  justify-content: center;
  padding: 16px;
}
.share-modal[hidden] { display: none; }
.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.share-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  max-height: 92dvh;          /* account for mobile browser chrome */
  overflow-y: auto;
  padding: 32px clamp(20px, 4vw, 44px);
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: share-modal-in .25s ease-out;
}
@keyframes share-modal-in {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.share-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.share-modal-close:hover { background: rgba(255, 255, 255, 0.22); }

.share-modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--yellow);
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.share-modal-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 26px;
}

.share-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.share-modal-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  background: #000;
}
.share-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.share-modal-actions button {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.55);
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  transition: transform .15s, background .2s, box-shadow .15s;
}
.share-modal-actions button:hover {
  transform: translateY(-2px);
  background: #ffe06a;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .share-modal-grid { grid-template-columns: 1fr; }
  .share-modal-content { padding: 26px 18px; }
}

/* ===========================================================
   Wall of Good — paginated carousel of approved entries
   - Desktop: 6 cards/page in a 2×3 grid
   - Mobile portrait: 3 cards/page in a 1×3 row
   - Auto-advances every --wall-autoplay-s seconds; arrows step
     manually and reset the timer.
   =========================================================== */
.wall {
  padding: var(--wall-pad-y) 0;
  text-align: center;
  overflow: hidden;
  background: var(--yellow);
  color: var(--navy);
}
.wall[hidden] { display: none; }

.wall-inner { width: 100%; }

.wall-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--wall-title-size);
  color: var(--navy);
  margin-bottom: 6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.wall-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(0, 31, 63, 0.78);
  margin-bottom: 32px;
}

/* Carousel = arrows on each side + a clipping viewport */
.wall-carousel {
  position: relative;
}
.wall-viewport {
  width: 100%;
  overflow: hidden;
}
.wall-track {
  display: flex;
  width: max-content;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each "page" is exactly one viewport wide and lays out its cards
   in a 3-column grid. Number of rows = cards per page / 3. */
.wall-page {
  flex-shrink: 0;
  width: 100vw;
  /* Extra top/bottom room so each card's drop shadow isn't clipped by
     the carousel viewport's overflow:hidden (esp. the bottom row). */
  padding: 14px 5vw 46px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Lock to 2 rows so a partial page (e.g. 7th entry alone in
     row 1, no fakes elsewhere) keeps the same height as a full
     page and the section doesn't jump. */
  grid-template-rows: repeat(2, minmax(140px, auto));
  gap: var(--wall-card-gap);
}

.wall-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: var(--wall-card-pad);
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  text-align: left;
  overflow: hidden;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35),
    0 14px 32px rgba(0, 0, 0, 0.28);
}
/* Glossy upper sheen */
.wall-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%);
  pointer-events: none;
}
/* Bright slick along the very top edge */
.wall-card::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}
.wall-card > * { position: relative; z-index: 1; }

/* Empty slots until enough real submissions come in */
.wall-card--placeholder {
  background: transparent;
  border: 2px dashed rgba(0, 31, 63, 0.38);
  box-shadow: none;
}
.wall-card--placeholder::before,
.wall-card--placeholder::after { display: none; }
.wall-card--placeholder .wall-card-quote {
  color: rgba(0, 31, 63, 0.5);
  font-style: italic;
}
.wall-card--placeholder .wall-card-meta {
  color: rgba(0, 31, 63, 0.45);
}

/* Prev / Next arrow buttons — navy on yellow for high contrast */
.wall-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.15s;
}
.wall-nav:hover {
  background: var(--indigo);
  transform: translateY(-50%) scale(1.08);
}
.wall-nav:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.wall-nav[hidden] { display: none; }
.wall-nav--prev { left: 12px; }
.wall-nav--next { right: 12px; }

.wall-card-quote {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 14px;
  /* Greeting + message share the same 4-line cap so a longer
     recipient name eats into the visible message space. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Hanging opening quote: the &ldquo; sits in this left margin so
     "Dear" and every wrapped line of the message body align flush. */
  position: relative;
  padding-left: 0.55em;
}
.wall-card-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: 0;
}
/* Placeholders are empty slots — no hanging quote needed */
.wall-card--placeholder .wall-card-quote {
  padding-left: 0;
}
.wall-card--placeholder .wall-card-quote::before {
  content: none;
}

/* "<Recipient> is awesome because:" line above the message. */
.wall-card-greeting {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: var(--yellow);
}

.wall-card-meta {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ===========================================================
   BLOCK 4 — TYHBOYS Music
   Transparent background — inherits the page navy gradient.
   =========================================================== */
.music {
  padding: var(--music-pad-y) 5vw;
  text-align: center;
}

.music-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Behind-The-Scenes feature card (yellow, on the dark music
   section). Title on the left, video frame on the right. ── */
.bts-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: var(--bts-col-gap);
  padding: var(--bts-pad);
  max-width: var(--bts-max-w);
  margin: 0 auto var(--bts-bottom-gap);
  background: linear-gradient(145deg, #fdcd1b 0%, #d6a40a 100%);
  color: var(--navy);
  border-radius: var(--bts-radius);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(120, 80, 0, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.28);
}
.bts-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--bts-title-size);
  line-height: 1.1;
  color: var(--navy);
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 16:9 video container — accepts either an <iframe> or the
   .bts-placeholder div until the real embed link arrives. */
.bts-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  background: var(--navy);
}
.bts-video iframe,
.bts-video .bts-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bts-placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0 12px,
      transparent 12px 24px
    );
}

.music-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--music-title-size);
  line-height: 1.05;
  color: var(--yellow);
  margin-bottom: var(--music-title-gap);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 across × 2 rows on desktop */
  gap: var(--music-grid-gap);
}

/* Wraps a title + its card so the title sits ABOVE the thumbnail
   (top, left-aligned, full text — never truncated) */
.music-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.music-item-title {
  font-family: var(--font-body);   /* Raleway — cleaner than Tropicfun */
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--white);
  text-align: left;
  margin: 0;
  padding: 0 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Glass video card — same recipe as the hero video card */
.music-card {
  /* Push the card to the bottom of its cell so videos in a row stay
     bottom-aligned even when a neighbour's title wraps to two lines. */
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 44px rgba(0, 0, 0, 0.45);
}

.music-wrap {
  position: relative;
  padding-bottom: 56.25%;   /* 16:9 */
  height: 0;
}
.music-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* "Shop See The Good Merch" button below the video grid */
.music-shop {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 6vw, 60px);
}
.shop-btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2.5px solid rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(253, 205, 27, 0.3), 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(253, 205, 27, 0.5), 0 14px 32px rgba(0, 0, 0, 0.4);
}

/* "Try The Glasses" button between the concept text and its video */
.concept-cta {
  display: flex;
  justify-content: center;
  margin: 22px 0 28px;
}

/* ── Lite-youtube preview: shows the YouTube thumbnail with a
   custom play button. The real iframe is only injected on click,
   which (a) hides YouTube's share/clock/Watch-on-YouTube overlay
   in the preview state and (b) avoids loading 6 iframes upfront. */
.lite-yt {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}
.lite-yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
  transition: filter .25s ease, transform .35s ease;
}
.lite-yt:hover .lite-yt-thumb,
.lite-yt:focus-visible .lite-yt-thumb {
  filter: brightness(1.05);
  transform: scale(1.02);
}

/* Brand-yellow circle with navy triangle play button */
.lite-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid rgba(0, 0, 0, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, box-shadow .2s ease;
  pointer-events: none;
  z-index: 2;
}
.lite-yt-play::before {
  /* Triangle */
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-left: 17px solid var(--navy);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  transform: translate(-50%, -50%);
}
.lite-yt:hover .lite-yt-play,
.lite-yt:focus-visible .lite-yt-play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.lite-yt:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ── Scrolling prize tiles ── */
.prizes-marquee {
  width: 100%;
  overflow: hidden;
  padding: 18px 0 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.prizes-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--prizes-speed) linear infinite;
  will-change: transform;
}
/* Trailing margin on every child (matches the top marquee's
   seamless-loop technique) */
.prizes-track > * {
  margin-right: var(--prizes-tile-gap);
}

.prize-item {
  position: relative;
  /* Always exactly 6 tiles visible on screen, regardless of
     viewport width (standard desktop, ultra-wide, anything).
     Each tile + its trailing gap = 100vw/6, so 6 fit perfectly.
     Mobile portrait drops this to 100vw/3 (see media query). */
  width: calc(100vw / 6 - var(--prizes-tile-gap));
  height: calc(100vw / 6 - var(--prizes-tile-gap));
  flex-shrink: 0;
  /* No background, border, or shadow — let the transparent PNG
     float on the navy backdrop. */
  background: transparent;
}

/* Placeholder label still works for empty slots, just on transparent */
.prize-item:not(:has(img))::before {
  content: 'Prize ' attr(data-slot);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.prize-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* keep aspect, no cropping of products */
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.prizes-marquee:hover .prizes-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===========================================================
   Features row (3 logos + title + description)
   =========================================================== */
.features {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--features-pad-top) var(--concept-side-pad) var(--features-pad-bottom);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--features-col-gap);
  align-items: start;
  position: relative;
}

/* Dotted connector behind the icons (like the reference image) */
.features-grid::before {
  content: '';
  position: absolute;
  top: calc(var(--feature-icon-size) / 2);
  left: 16%;
  right: 16%;
  border-top: 2px dashed rgba(0, 31, 63, 0.22);
  z-index: 0;
}

.feature {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: var(--feature-icon-size);
  height: var(--feature-icon-size);
  margin-bottom: 18px;
  background: var(--yellow);              /* covers the dotted line behind it */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Placeholder label until a logo is dropped in */
.feature-icon:not(:has(img))::before {
  content: 'Logo ' attr(data-slot);
  font-family: var(--font-body);
  font-weight: 800;
  color: rgba(0, 31, 63, 0.45);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-icon:not(:has(img)) {
  border: 2px dashed rgba(0, 31, 63, 0.3);
  box-shadow: none;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-family: var(--font-display);   /* Tropicfun */
  font-weight: 400;
  font-size: var(--feature-title-size);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.feature-desc {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--feature-desc-size);
  color: rgba(0, 31, 63, 0.78);
  max-width: 260px;
  line-height: 1.5;
}

/* ===========================================================
   Concept block (glass text card + 4 image frames)
   =========================================================== */
.concept-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--concept-col-gap);
  align-items: stretch;
  max-width: 1280px;
  margin: var(--concept-top) auto var(--concept-bottom-gap);
  padding: 0 var(--concept-side-pad);
}

/* Liquid-glass text card — same gradient + sheen as the marquee.
   Flex column so the video can be pinned to the bottom of the card. */
.concept-text {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--glass-radius);
  padding: var(--glass-pad);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.22),
    inset 0 -3px 8px rgba(0,0,0,0.4),
    0 18px 44px rgba(0,0,0,0.22);
  overflow: hidden;
}
.concept-text::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  border-radius: var(--glass-radius) var(--glass-radius) 0 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.05) 60%,
    transparent 100%);
  pointer-events: none;
}
.concept-text::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}
.concept-text > * { position: relative; z-index: 1; }

.concept-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--concept-title-size);
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--yellow);
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.concept-text p {
  font-size: var(--concept-body-size);
  line-height: 1.65;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.92);
}
.concept-text p:last-child { margin-bottom: 0; }

/* Embedded video at the bottom of the concept card (moved here
   from the old hero). Locks 16:9 via padding-bottom. */
.concept-video {
  position: relative;
  margin-top: auto;             /* push the embed to the bottom of the card */
  padding-bottom: 56.25%;       /* 16:9 */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.concept-video iframe,
.concept-video .concept-video-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}
/* Poster shown over the embed until the player is ready, then faded out */
.concept-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;        /* never block the player underneath */
  opacity: 1;
  transition: opacity 0.55s ease-in-out;
}
.concept-video.is-loaded .concept-video-poster {
  opacity: 0;
}

/* Right column: 4 stacked 16:9 image frames. The column stretches to
   the blue card's height, so distribute the frames evenly — top frame
   flush to the top, bottom frame flush to the bottom, even gaps between. */
.image-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--frame-gap);
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--frame-radius);
  overflow: hidden;
  background: rgba(0, 31, 63, 0.08);
  border: 2px dashed rgba(0, 31, 63, 0.28);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Empty-frame placeholder label (only shows when no <img> child) */
.image-frame:not(:has(img))::before {
  content: 'Image ' attr(data-slot);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 31, 63, 0.45);
}

/* ===========================================================
   Listen To Little Bardichevers — navy liquid-glass card with
   yellow text pills. Sits inside the yellow .stories block,
   between the concept block and the marquee.
   =========================================================== */
.listen-block {
  padding: var(--listen-pad-y) 5vw;
  max-width: 1280px;
  margin: 0 auto;
}

/* Navy → indigo → blue glass card wrapping the title + pills */
.listen-card {
  position: relative;
  background: linear-gradient(145deg, var(--navy) 0%, var(--indigo) 55%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--listen-card-radius);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 8px rgba(0, 0, 0, 0.4),
    0 18px 44px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
/* Glossy upper sheen */
.listen-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  border-radius: var(--listen-card-radius) var(--listen-card-radius) 0 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%);
  pointer-events: none;
}
.listen-card::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}
.listen-card > * { position: relative; z-index: 1; }

.listen-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--listen-title-size);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.listen-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--listen-gap);
  flex-wrap: wrap;
}

/* Yellow pill button — same recipe as the existing CTAs */
.listen-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(110px, 14vw, 200px);
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  border: 2px solid rgba(0, 0, 0, 0.55);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.listen-pill:hover {
  transform: translateY(-2px);
  background: #ffe06a;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
}

/* "Coming soon" platforms — washed out + non-clickable until links exist */
.listen-pill--soon {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(0, 31, 63, 0.55);
  border-color: rgba(0, 31, 63, 0.2);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.listen-pill--soon .soon {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 31, 63, 0.16);
  color: rgba(0, 31, 63, 0.7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin: 0 auto 44px;
  max-width: 500px;
}

/* Glass cards */
.glass-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 32px rgba(0,0,0,0.3);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  background: rgba(253,205,27,0.12);
  border-color: rgba(253,205,27,0.3);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card-emoji { font-size: 34px; margin-bottom: 12px; }
.card-text  { font-weight: 600; font-size: 17px; line-height: 1.4; margin-bottom: 14px; }
.card-meta  { font-size: 12px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.05em; }

/* (Old .join-card / .join-form / .form-row / .btn-submit / .form-status
   styles removed — the form now lives inside the prizes block as
   .share-card / .share-form / .share-form-row / .btn-share / .share-status.) */

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 44px 0 36px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.footer-logo {
  width: auto;
  height: 56px;
  display: block;
  margin: 0 auto 14px;
  opacity: 0.85;
}
.footer-mini { font-size: 12px; margin-top: 4px; }

/* Bottom social row */
.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.footer-social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s, border-color .2s;
}
.footer-social:hover {
  background: var(--yellow);
  border-color: rgba(0, 0, 0, 0.5);
  color: var(--navy);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}

/* (Old responsive block removed — see the unified responsive
   section at the bottom of this file.) */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===========================================================
   TWEAK PANEL — live layout adjustment (dev tool)
   =========================================================== */
.tweak-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  border: 2px solid rgba(0,0,0,0.7);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform .15s;
}
.tweak-toggle:hover { transform: scale(1.08); }

.tweak-panel {
  position: fixed;
  bottom: 78px;
  right: 18px;
  z-index: 9999;
  width: 340px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(15, 18, 38, 0.96);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.tweak-panel[hidden] { display: none; }

.tweak-panel h3 {
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tweak-section {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  margin-top: 12px;
}
.tweak-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.tweak-section h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

/* Group header (Hero Block / Yellow Block) — bigger break than a section */
.tweak-group {
  margin-top: 22px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(253, 205, 27, 0.14);
  border-left: 3px solid var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.tweak-group:first-of-type { margin-top: 4px; }
.tweak-group + .tweak-section { border-top: none; padding-top: 0; margin-top: 12px; }

.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.85);
}
.tweak-row .val {
  color: var(--yellow);
  font-weight: 700;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
}
.tweak-row input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
}

.tweak-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.tweak-actions button {
  flex: 1;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.tweak-actions button.primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: rgba(0,0,0,0.7);
}
.tweak-status {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  min-height: 14px;
}

/* ===========================================================
   RESPONSIVE
   ─ Mobile (≤768px): vertical hero per spec
   ─ Tablet (769–1100px): mostly desktop, lighter spacing
   ─ Ultra-wide (≥1600px): cap content so it stops drifting
   =========================================================== */

/* ── Mobile (portrait phones / narrow portrait tablets) ──
   Scoped to orientation:portrait so a phone rotated to landscape
   falls through to the tablet/desktop rules and gets a scaled-down
   desktop layout instead of the stacked mobile one. */
@media (max-width: 768px) and (orientation: portrait) {
  /* Mobile-specific overrides for tunable values. Everything else
     inherits the :root desktop defaults above. */
  :root {
    --logo-w:               38px;
    --topbar-pad-y:         12px;
    --hero-h:               66vh;
    --hero-logo-w:         432px;
    --hero-logo-gap:        79px;
    --hero-cta-y:         -151px;
    --hero-cta-scale:         85;
    --floor-h:              55px;
    --concept-bottom-gap:   19px;
  }


  /* Topbar + brand inherit their padding / width from the var-
     based desktop rules so the panel sliders work on mobile too;
     the mobile :root block above just supplies different defaults. */

  /* Hamburger stays fixed in the top-right corner — smaller so
     it doesn't dominate the screen. */
  .menu-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    box-shadow: 0 0 0 2px rgba(253,205,27,0.3), 0 4px 12px rgba(0,0,0,0.3);
  }
  .menu-toggle .hamburger { width: 16px; gap: 3px; }
  .menu-toggle .hamburger span { height: 2px; }
  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Menu dropdown anchors to the fixed hamburger */
  .menu-dropdown {
    top: 56px;
    right: 12px;
    min-width: min(280px, calc(100vw - 24px));
  }

  /* Hero stays full-bleed on mobile — the centered logo + CTA
     pattern works on every screen size without restructure. The
     only tweak is the CTA padding so it's a comfy tap target. */
  .hero-cta { justify-content: center; padding: 14px 22px; }

  /* ── Yellow block adjustments ── */

  .stories { min-height: auto; }

  /* Features row: KEEP 3 columns on one line, just shrink everything
     so the labels (Love Yidden / Defend Yidden / See The Good) fit. */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .features-grid::before { display: none; } /* dotted line off on mobile */
  .feature-icon {
    width: clamp(56px, 19vw, 110px);
    height: clamp(56px, 19vw, 110px);
    margin-bottom: 8px;
  }
  .feature-title {
    font-size: clamp(11px, 3vw, 20px);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* Concept block: single column, text on top, images below */
  .concept-block { grid-template-columns: 1fr; gap: 26px; }
  .concept-text {
    padding: clamp(22px, 6vw, var(--glass-pad));
    border-radius: clamp(14px, 4vw, var(--glass-radius));
  }
  .concept-title { font-size: clamp(28px, 7.5vw, var(--concept-title-size)); }
  .concept-text p { font-size: clamp(14px, 4vw, var(--concept-body-size)); }
  /* Stacked single-column: card hugs its content, so keep a fixed gap
     above the video instead of pinning it to the bottom. */
  .concept-video { margin-top: 24px; }

  /* Image stack: 2×2 grid */
  .image-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: clamp(10px, 3vw, var(--frame-gap));
  }

  /* Marquee: smaller font + tighter gap */
  .marquee-item { font-size: clamp(14px, 4.2vw, var(--marquee-font)); }
  .marquee-track > * { margin-right: clamp(28px, 10vw, var(--marquee-gap)); }
  .marquee-logo { width: clamp(20px, 6vw, var(--marquee-logo-w)); }

  /* Join form fits the screen */
  .share-form-row { flex-direction: column; }
  .share-form-row input, .btn-share { width: 100%; }

  /* Tweak panel doesn't dominate mobile */
  .tweak-panel { width: calc(100vw - 24px); right: 12px; bottom: 70px; max-height: 70vh; }
  .tweak-toggle { right: 12px; bottom: 12px; }

  /* Prizes block: stack the 3 steps and shrink tiles */
  .prizes-title {
    /* Stack "Share The Good" on top, "Win Swag" below; the
       crown mark in between is hidden on mobile. */
    font-size: clamp(28px, 8vw, 48px);
    flex-direction: column;
    gap: 0;
  }
  .prizes-title-mark { display: none; }
  /* Each phrase forced to its own line — anonymous flex text
     items aren't reliable across browsers when one of the flex
     children is display:none, so the spans make the stack
     deterministic. */
  .prizes-title-text { display: block; }

  /* Listen card: shrink everything for mobile so it doesn't
     dominate the screen */
  .listen-card { padding: 22px 16px; }
  .listen-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 18px;
  }
  /* 5 streaming links → exactly 2 rows (3 + 2, centered) on mobile */
  .listen-links { gap: 8px; justify-content: center; align-items: stretch; }
  .listen-pill {
    flex: 0 1 calc(33.333% - 8px);
    min-width: 0;
    padding: 9px 6px;
    font-size: 13px;
    letter-spacing: 0.01em;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
  .prizes-sub   { font-size: clamp(14px, 4vw, 18px); }
  .prizes-steps {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: clamp(36px, 9vw, 60px) 5vw;
  }
  .step-number  { font-size: clamp(36px, 10vw, 56px); }
  /* Step pills: collapse the two-span layout into a single
     wrapping paragraph so each step reads as one line where it
     fits, instead of forced 2-line via spans. */
  .step-pill    {
    max-width: min(var(--prizes-step-pill-w), 320px);
    display: block;
    text-align: center;
  }
  .step-line    {
    display: inline;
    white-space: normal;
  }
  /* Mobile portrait: 3 tiles visible instead of 6 */
  .prize-item {
    width: calc(100vw / 3 - var(--prizes-tile-gap));
    height: calc(100vw / 3 - var(--prizes-tile-gap));
  }

  /* Music: 2 across on mobile (scaled-down embeds) */
  .music-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .music-item-title { font-size: 14px; }
  /* A video that's been opened grows to a full row so it's easy to tap */
  .music-grid .music-item.is-playing { grid-column: 1 / -1; }
  .music-title { font-size: clamp(28px, 8vw, 52px); }

  /* BTS card: stack title above the video frame on mobile */
  .bts-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    text-align: center;
  }
  .bts-title { font-size: clamp(22px, 6.5vw, 30px); }

  /* Mobile portrait: 1 full-width card per page so the message has
     room to breathe (narrow 2-up cards only fit a handful of words). */
  .wall-title { font-size: clamp(28px, 8vw, 54px); }
  .wall-card  { padding: 18px 20px; }
  .wall-page  {
    padding: 14px 52px 42px;                    /* room for arrows + shadow */
    gap: 12px;
    grid-template-columns: 1fr;                 /* single column */
    grid-template-rows: minmax(140px, auto);    /* single card */
  }
  /* The reference limit is sized to a wider desktop card, so allow more
     lines here so a full-length message shows without clipping. */
  .wall-card-quote { -webkit-line-clamp: 7; }
  .wall-nav   { width: 36px; height: 36px; }
  .wall-nav--prev { left: 8px; }
  .wall-nav--next { right: 8px; }
}

/* ── Tablet + landscape phones ──
   - 769–1100px: tablet (any orientation)
   - 569–768px in landscape only: covers small phones rotated to
     landscape, so they get a scaled-down desktop layout instead of
     the stacked mobile one (which only applies in portrait above). */
@media (min-width: 769px) and (max-width: 1100px),
       (min-width: 569px) and (max-width: 1100px) and (orientation: landscape) {
  .concept-block { grid-template-columns: 3fr 2fr; }
  .features-grid { gap: 18px; }
  .feature-title { font-size: clamp(22px, 3.6vw, var(--feature-title-size)); }
  .concept-title { font-size: clamp(28px, 4.8vw, var(--concept-title-size)); }
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .music-grid .music-item.is-playing { grid-column: 1 / -1; }
}

/* ── Ultra-wide cap ── */
@media (min-width: 1600px) {
  /* Cap horizontal width on enormous content blocks so they don't
     pull apart. Hero is left alone — its left/right vw+% values
     scale fine on their own and overriding them broke the layout. */
  .features, .concept-block { max-width: 1500px; }
}
