/* Appear wave. Blocks marked with .appear-wave-item and data-appear
   rise, unblur, and fade in together, each a short beat after the last. */

@keyframes appear-wave {
  0% {
    opacity: 0;
    filter: blur(var(--appear-wave-blur, 6px));
    transform: translate3d(0, var(--appear-wave-distance, 14px), 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.appear-wave-item {
  opacity: 0;
  will-change: opacity, transform, filter;
}

.appear-wave-item.is-appearing {
  animation-name: appear-wave;
  animation-duration: var(--appear-wave-duration, 0.72s);
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
  animation-delay: var(--appear-wave-delay, 0s);
}

.appear-wave-item.is-appeared {
  opacity: 1;
  filter: none;
  transform: none;
  will-change: auto;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .appear-wave-item,
  .appear-wave-item.is-appearing {
    opacity: 1;
    filter: none;
    transform: none;
    will-change: auto;
    animation: none;
  }
}

@media (scripting: none) {
  .appear-wave-item {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
