/**
 * responsive.css — Phase 5 (§12)
 *
 * Desktop-first: the base styles target the wide 3-column hero. Here we
 * collapse it for tablet/phone. Loaded LAST so it overrides.
 *
 * Breakpoints:
 *   ≤1024px  — the 3-column console can't hold; stack it. Deck above tracklist.
 *   ≤680px   — phone: shrink the deck cassette, tighten spacing, single-column.
 */

/* ── ≤1024px: collapse the console ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Deck stacks above the tracklist; it no longer sticks (nothing to stick to
     once it's in normal flow above a short list). */
  .console {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .deck {
    position: static;
    order: 1;
  }
  .tracklist {
    order: 2;
  }
}

/* ── ≤680px: phone ───────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  :root {
    /* Tighter section rhythm on small screens. */
    --space-xl: 4.5rem;
    --space-lg: 2.5rem;
  }

  .section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  /* The rack row scrolls horizontally (already), just give the flick a bit
     more reach and momentum on touch. */
  .rack__shelf {
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  /* An open cassette + its slide-out description is wide; on a phone let the
     description sit under a slightly narrower panel and keep the gap modest. */
  .cassette.is-active {
    margin: 0 var(--space-sm);
  }
  :root {
    --desc-w: 200px;
  }

  /* Shrink the deck cassette so the rotating cube fits a narrow deck without
     clipping. Scaling the perspective stage keeps the 3D intact. */
  .deck {
    padding: var(--space-sm);
  }
  .deck__stage {
    min-height: 230px;
    transform: scale(0.82);
    transform-origin: center;
  }
  .deck__reels {
    gap: 64px;
  }

  /* Roomier tap targets for transport on touch. */
  .deck__btn {
    width: 48px;
    height: 48px;
  }
  .deck__btn--play {
    width: 64px;
    height: 64px;
  }

  /* Comfortable tap height for track rows. */
  .track {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  /* Landing: keep the scroll cue clear of the notch/edges. */
  .landing__scroll {
    bottom: var(--space-md);
  }
}

/* ── Coarse pointer (touch): remove hover-only affordances ───────────────── */
@media (hover: none) {
  .cassette:not(.is-active) .cassette__scene:hover {
    transform: none;
  }
}
