html {
  scroll-behavior: smooth;
}

.scroll-motion-ready .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition-property: opacity, transform;
  transition-duration: 620ms;
  transition-delay: var(--reveal-delay, 0ms);
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.scroll-motion-ready .scroll-reveal.scroll-reveal--media {
  transform: translate3d(0, 26px, 0) scale(.985);
  transition-duration: 760ms;
}

.scroll-motion-ready .scroll-reveal:not(.is-visible) {
  will-change: opacity, transform;
}

.scroll-motion-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

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

  .scroll-motion-ready .scroll-reveal,
  .scroll-motion-ready .scroll-reveal.scroll-reveal--media,
  .scroll-motion-ready .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
