/* 20260927-cover-flow-voices — restrained Cover Flow · idle still · center owns stage */
/* KEEP snap-deal S1 (voices-shuffle-motion) · one peek · one sheen on settle only */
/* HARD: no setInterval · no infinite breathe/pulse/glow · motion follows thumb */

/* Rail perspective — mild depth stage for both Home + House */
#voices-featured,
#week-guest-featured {
  perspective: 900px;
  perspective-origin: 50% 50%;
}

/* Idle base — static, no animation. Farther tiles quieter. */
#voices-featured:not(.voices-snap-dealing) .voice-tile,
#week-guest-featured:not(.voices-snap-dealing) .voice-tile {
  animation: none;
  will-change: auto;
  transform-origin: center center;
  transform: scale(0.82);
  opacity: 0.62;
  z-index: 1;
  border-color: rgba(242, 201, 76, 0.18);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

/* Neighbors ±1 — recessed depth */
#voices-featured:not(.voices-snap-dealing) .voice-tile.is-snap-near,
#week-guest-featured:not(.voices-snap-dealing) .voice-tile.is-snap-near {
  transform: scale(0.9) translateZ(-28px);
  opacity: 0.78;
  z-index: 2;
  border-color: rgba(242, 201, 76, 0.32);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

/* Center owns stage — larger / nearer / sharper · gold scarce on hero only */
#voices-featured:not(.voices-snap-dealing) .voice-tile.is-snap-center,
#week-guest-featured:not(.voices-snap-dealing) .voice-tile.is-snap-center {
  transform: scale(1.1) translateZ(0);
  opacity: 1;
  z-index: 5;
  border-color: rgba(254, 241, 5, 0.88);
  box-shadow:
    0 0 0 2px rgba(242, 201, 76, 0.72),
    0 12px 36px rgba(0, 0, 0, 0.55);
}

/* One sheen sweep on deal settle — not looping */
@keyframes voices-alive-sheen-sweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }
  18% { opacity: 0.55; }
  55% { opacity: 0.35; }
  100% {
    transform: translateX(220%) skewX(-18deg);
    opacity: 0;
  }
}

#voices-featured.voices-alive-sheen,
#week-guest-featured.voices-alive-sheen {
  position: relative;
}
#voices-featured.voices-alive-sheen::before,
#week-guest-featured.voices-alive-sheen::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 0;
  width: 28%;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(
    90deg,
    rgba(254, 241, 5, 0) 0%,
    rgba(254, 241, 5, 0.35) 45%,
    rgba(254, 241, 5, 0) 100%
  );
  animation: voices-alive-sheen-sweep 700ms ease-out both;
}

/* Reduced-motion: kill deal/peek/sheen motion · KEEP static Cover Flow (center larger) */
@media (prefers-reduced-motion: reduce) {
  #voices-featured:not(.voices-snap-dealing) .voice-tile,
  #week-guest-featured:not(.voices-snap-dealing) .voice-tile {
    animation: none !important;
    transition: none !important;
    will-change: auto;
    /* far base — do NOT wipe with transform:none */
    transform: scale(0.82);
    opacity: 0.62;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  }
  #voices-featured:not(.voices-snap-dealing) .voice-tile.is-snap-near,
  #week-guest-featured:not(.voices-snap-dealing) .voice-tile.is-snap-near {
    transform: scale(0.9);
    opacity: 0.78;
  }
  #voices-featured:not(.voices-snap-dealing) .voice-tile.is-snap-center,
  #week-guest-featured:not(.voices-snap-dealing) .voice-tile.is-snap-center {
    /* center still owns stage under RM */
    transform: scale(1.1) !important;
    opacity: 1;
    z-index: 5;
    border-color: rgba(254, 241, 5, 0.88);
    box-shadow:
      0 0 0 2px rgba(242, 201, 76, 0.72),
      0 12px 36px rgba(0, 0, 0, 0.55);
  }
  #voices-featured.voices-alive-sheen::before,
  #week-guest-featured.voices-alive-sheen::before {
    animation: none !important;
    display: none !important;
  }
}

/* 20261005-center-photo — iOS: kill perspective + translateZ on center tile (black card bug) */
#voices-featured,
#week-guest-featured {
  perspective: none;
}
#voices-featured:not(.voices-snap-dealing) .voice-tile.is-snap-center,
#week-guest-featured:not(.voices-snap-dealing) .voice-tile.is-snap-center {
  transform: scale(1.04);
  -webkit-transform: scale(1.04);
}
