/* =========================================================
   HOT LATIN FEST — animations.css
   Keyframes + scroll reveal + ambient motion
   ========================================================= */

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a section slightly */
.artist-grid .artist-card:nth-child(1) {
  transition-delay: 0s;
}
.artist-grid .artist-card:nth-child(2) {
  transition-delay: 0.1s;
}
.artist-grid .artist-card:nth-child(3) {
  transition-delay: 0.2s;
}

.video-grid .video-thumb:nth-child(1) {
  transition-delay: 0s;
}
.video-grid .video-thumb:nth-child(2) {
  transition-delay: 0.1s;
}
.video-grid .video-thumb:nth-child(3) {
  transition-delay: 0.2s;
}

.countdown__grid .countdown__unit:nth-child(1) {
  transition-delay: 0s;
}
.countdown__grid .countdown__unit:nth-child(3) {
  transition-delay: 0.08s;
}
.countdown__grid .countdown__unit:nth-child(5) {
  transition-delay: 0.16s;
}
.countdown__grid .countdown__unit:nth-child(7) {
  transition-delay: 0.24s;
}

/* ---------- Hero entrance ---------- */
.hero__eyebrow.reveal,
.hero__title.reveal,
.hero__subtitle.reveal,
.hero__actions.reveal {
  transform: translateY(18px);
  transition-duration: 1s;
}
.hero__eyebrow.is-visible {
  transition-delay: 0.05s;
}
.hero__title.is-visible {
  transition-delay: 0.18s;
}
.hero__subtitle.is-visible {
  transition-delay: 0.34s;
}
.hero__actions.is-visible {
  transition-delay: 0.48s;
}

/* ---------- Ambient blob drift ---------- */
@keyframes blobDrift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 30px) scale(1.08);
  }
}
@keyframes blobDrift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, -25px) scale(1.05);
  }
}
@keyframes blobDrift3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(20px, -35px) scale(1.15);
    opacity: 0.5;
  }
}
.hero__blob--1 {
  animation: blobDrift1 14s ease-in-out infinite;
}
.hero__blob--2 {
  animation: blobDrift2 16s ease-in-out infinite;
}
.hero__blob--3 {
  animation: blobDrift3 12s ease-in-out infinite;
}

/* ---------- Scroll indicator ---------- */
@keyframes scrollLine {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

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

/* ---------- Countdown tick pulse ---------- */
@keyframes countPulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
.countdown__number.is-ticking {
  animation: countPulse 0.5s var(--ease-out);
}

/* ---------- Video modal ---------- */
.video-modal {
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.video-modal.is-open {
  opacity: 1;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
