/* Entrances and the reduced-motion override. Load it last. */

/* ---------- Motion: entrances only when motion is welcome; the page is complete without them ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }

  .js .reveal:not(.in) {
    opacity: 0;
    transform: translateY(26px);
  }

  .hero h1 span,
  .hero-copy,
  .demo-in {
    animation: rise 900ms var(--ease-out) both;
  }

  .hero h1 span + span {
    animation-delay: 90ms;
  }

  .hero-copy {
    animation-delay: 180ms;
  }

  .demo-in {
    animation-delay: 260ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
