/* =========================================================
   Grab Knowledge — Motion
   Subtle, premium animations. All are disabled when the user
   prefers reduced motion.
   ========================================================= */

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-11px) rotate(3deg); }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes waPulse {
  0% { transform: scale(.92); opacity: .8; }
  80%, 100% { transform: scale(1.3); opacity: 0; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Individual box slide-in for the homepage learning snapshot */
.stat-slide.reveal { transform: translateX(-34px) translateY(14px); }
.stat-slide.reveal.is-visible { transform: translateX(0) translateY(0); }

.reveal-delay-1 { transition-delay: .09s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .27s; }
.reveal-delay-4 { transition-delay: .36s; }

.page-enter { animation: fadeIn .45s ease both; }
.hero-copy > * { animation: fadeUp .7s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: fadeUp .8s var(--ease) .18s both; }

.float-deco.bulb { animation-delay: .4s; }
.float-deco.book { animation-delay: 1s; }
.float-deco.star { animation-delay: 1.6s; }
.float-deco.pencil { animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
