/* ==========================================================
   Scroll reveal
   Add the attribute data-reveal to any section/element you want
   to fade & slide in as it enters the viewport.
   ========================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  /* optional stagger for a group of siblings: set an inline
     style="--reveal-i: 0 / 1 / 2 ..." on each child */
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
