/* ==========================================================================
   96M.today — animations.css
   Keyframes, utility animation classes, scroll-reveal, reduced motion
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); }
}
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-20px, -14px, 0); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.08); }
}

.text-shimmer {
  background: var(--gold-shine);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-gold { animation: pulse-gold 2.4s ease-in-out infinite; }

/* Hero entrance */
.hero-content > * { animation: fadeInUp 0.7s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }
.hero-content > :nth-child(5) { animation-delay: 0.32s; }
.hero-content > :nth-child(6) { animation-delay: 0.40s; }
.page-hero-inner > * { animation: fadeInUp 0.6s var(--ease) both; }
.page-hero-inner > :nth-child(2) { animation-delay: 0.06s; }
.page-hero-inner > :nth-child(3) { animation-delay: 0.12s; }
.page-hero-inner > :nth-child(4) { animation-delay: 0.18s; }
.page-hero-inner > :nth-child(5) { animation-delay: 0.24s; }

/* Scroll reveal — only hides content once JS has confirmed IntersectionObserver */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready .reveal.in-view { opacity: 1; transform: none; }

.pulse-cta { animation: pulse-gold 2.4s ease-in-out infinite; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
