/*
 * animation.css — Scroll reveal and reduced-motion safety net
 * Grailsome Design System — Section 7 (motion tokens live in tokens.css)
 */

/* -------------------------------------------------------
   Scroll reveal
------------------------------------------------------- */

.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease;
}

.reveal.in,
.reveal.revealed {
  opacity: 1;
  transform: none;
}

.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; }
.rd4 { transition-delay: 0.32s; }
.rd5 { transition-delay: 0.40s; }

/* -------------------------------------------------------
   Reduced motion — all decorative animations must pause
------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Reveal elements visible immediately — no hidden state */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .ticker__track,
  .ticker-track,
  .mkt-ticker__track,
  .marquee-row,
  .mkt-marquee-row {
    animation: none;
    overflow-x: auto;
  }
}
