/* The reveal layer: opacity and transform for the blocks tagged data-reveal in the screens;
   motion.js adds `reveal-in` when a group scrolls in. `up` travels, `fade` only fades, and
   the per-screen numbers are in motion.js's table.

   The easing is cubic-bezier(0, 0, 0.58, 1) - CSS's own `ease-out`, so no custom curve. */

/* Content stays visible without JavaScript or while the enhancement is loading. */
.motion-ready [data-reveal] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: var(--reveal-up, 0.45s);
  transition-timing-function: ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

.motion-ready [data-reveal="fade"] {
  transition-duration: var(--reveal-fade, 0.4s);
}

.motion-ready [data-reveal="up"] {
  transform: translateY(var(--reveal-y, 20px));
}

.motion-ready [data-reveal].reveal-in {
  opacity: 1;
  transform: none;
}

/* Nothing moves for someone who has asked for that. */
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* The header's mobile menu: the panel under the header while it is open. No transition of
   its own - it appears and disappears; the links carry the animation. */
[data-mobile-menu] {
  border-top-width: 1px;
}
