/* ============================================================
   MOTION — keyframes + prefers-reduced-motion overrides.
   Transitions live on the components themselves (tokens.css
   holds the durations and easings). This file is strictly
   for shared animations and the reduced-motion safety net.
   ============================================================ */

/* -------- Floating idle (collab jar subtle drift) --------- */
/* Animates the individual `translate` property, not `transform`,
   so it composes with any centring transform on the element. */
@keyframes floatIdle {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* -------- Soft pulse (eyebrow accent dots) ---------------- */
@keyframes softPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* -------- Entrance fade-up (fallback for Anime.js miss) --- */
/* to-only: starts from whatever is currently rendered. If Anime.js
   already revealed the element this is a no-op; if Anime.js never
   ran (CDN miss, file://), it fades the hidden start state in.
   Use with `forwards`, never `both` — a backwards fill would
   override Anime.js's inline styles during the delay. */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* -------- Reduced-motion override ------------------------- */
@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  html { scroll-behavior: auto; }
}
