/* =========================================================
   12-animations.css — ANIMATIONS & MOTION
   Depends on: 01-tokens.css
   ========================================================= */

/* Floating dust particles (DOM nodes from script-particles.js) */
.particle {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  opacity: 0; animation: anim-float-up linear infinite;
}
@keyframes anim-float-up {
  0%   { transform: translateY(0)       scale(1);   opacity: 0;   }
  10%  {                                            opacity: 1;   }
  90%  {                                            opacity: .55; }
  100% { transform: translateY(-105vh)  scale(.2);  opacity: 0;   }
}

/* Scroll reveal — IntersectionObserver adds .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Optional stagger delays */
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .particle           { animation: none; }
  .reveal             { opacity: 1; transform: none; transition: none; }
}
