/* =============================================
   MASTER 272 — Animations
   ============================================= */

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero load animations */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) forwards;
}
.anim-fade[data-delay="0"] { animation-delay: 0.1s; }
.anim-fade[data-delay="1"] { animation-delay: 0.25s; }
.anim-fade[data-delay="2"] { animation-delay: 0.4s; }
.anim-fade[data-delay="3"] { animation-delay: 0.6s; }
.anim-fade[data-delay="4"] { animation-delay: 0.8s; }
.anim-fade[data-delay="5"] { animation-delay: 1.2s; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger support for reveal */
.reveal[data-delay] { transition-delay: var(--reveal-delay, 0s); }

/* Counter animation handled by JS */
.stat-number.counted { }

/* Insertion chart animation */
.insertion-fill {
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s var(--ease-out) 0.3s;
}
.insertion-card.visible .insertion-fill {
  stroke-dashoffset: calc(314 - (314 * var(--percent)) / 100);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-fade { opacity: 1; transform: none; animation: none; }
  .hero-orb { animation: none; }
  .scroll-wheel { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
