/* ==========================================================================
   SONICWAVE — Keyframes & motion
   ========================================================================== */

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scrollDrop {
  0% { top: -100%; }
  100% { top: 100%; }
}

@keyframes pulseBar {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.audio-player__wave.is-playing i { animation: pulseBar 0.9s ease-in-out infinite; }
.audio-player__wave i:nth-child(1) { animation-delay: 0s; }
.audio-player__wave i:nth-child(2) { animation-delay: 0.15s; }
.audio-player__wave i:nth-child(3) { animation-delay: 0.3s; }
.audio-player__wave i:nth-child(4) { animation-delay: 0.45s; }

/* Respect reduced motion: kill decorative loops, keep functional transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none !important; transform: none !important; }
}
