/* All motion is opt-in: nothing moves for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Page-load choreography for the hero */
  [data-load] {
    animation: rise var(--dur-slow) var(--ease-expo) both;
    animation-delay: calc(var(--i, 0) * 110ms);
  }

  .mascot[data-load] {
    animation-name: pop;
    animation-duration: 1100ms;
  }

  .mascot__img {
    animation: bob 5.5s ease-in-out 1.2s infinite;
  }

  .mascot:hover .mascot__img {
    animation-play-state: paused;
  }

  /* Scroll reveals, only when JS is there to undo them */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-10deg);
  }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
