/* ---------- Motion and reveal ---------- */

/* ---------- Reveal on load ---------- */

[data-reveal] {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

html.loading [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- Reveal on scroll ---------- */

/* Only armed when JS is there to un-hide them again. */
.js-reveal [data-inview] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
