/* Compound selector keeps the specificity needed to override component transition durations. */
.u-fade.u-fade--up {
  transition-duration: var(--duration-400);
  transition-delay: var(--duration-200);
  transition-timing-function: var(--ease-in-out-sine);
}

/* Hidden start state applies only when JS has opted in (html.has-reveal), and never in print. */
.has-reveal .u-fade.u-fade--up {
  @media screen {
    opacity: 0;
    transform: translate3d(0, 5rem, 0);
  }

  @media screen and (width < 768px) {
    transform: translate3d(0, 2.5rem, 0);
  }
}

.has-reveal .u-fade.u-fade--up.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
