@media screen and (prefers-reduced-motion: no-preference) {
  /* Text keeps its normal contrast; only illustrations and meters fade. */
  .az-reveal-wait:not(:focus-within) :is(.ha-spot, .hc-shortcuts > a > svg, .hc-vps-symbol, .hc-meter) {
    opacity: 0;
  }

  .az-reveal-enter:not(:focus-within) {
    --az-reveal-x: -20px;
    --az-reveal-y: 0px;
    animation: az-scroll-enter 460ms cubic-bezier(.22, .7, .25, 1) var(--az-reveal-delay, 0ms) backwards;
  }

  .az-reveal-enter:not(:focus-within) :is(.ha-spot, .hc-shortcuts > a > svg, .hc-vps-symbol, .hc-meter) {
    animation: az-scroll-illustration 410ms ease-out var(--az-reveal-delay, 0ms) backwards;
  }

  :is(.ha-pricecard, .hc-shortcuts > a).az-reveal-enter {
    --az-reveal-x: 0px;
    --az-reveal-y: -14px;
  }

  :is(.ha-feature, .ha-pricecard, .hc-shortcuts > a).az-reveal-enter:nth-child(3n + 2) {
    --az-reveal-delay: 45ms;
  }

  :is(.ha-feature, .ha-pricecard, .hc-shortcuts > a).az-reveal-enter:nth-child(3n) {
    --az-reveal-delay: 90ms;
  }

  @keyframes az-scroll-enter {
    from {
      transform: translate(var(--az-reveal-x), var(--az-reveal-y));
    }
    to {
      transform: translate(0, 0);
    }
  }

  @keyframes az-scroll-illustration {
    from { opacity: 0; }
    to { opacity: 1; }
  }

}


/* Homepage entrances are deliberately enabled for every visitor. */
@media screen {
  .ha-home .az-home-reveal-wait:not(:focus-within) {
    opacity: 0;
    transform: translateY(12px);
  }
  .ha-home .az-home-reveal-enter:not(:focus-within) {
    animation: az-home-enter 420ms cubic-bezier(.22, .7, .25, 1) var(--az-home-delay, 0ms) both !important;
  }
  @keyframes az-home-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media print {
  .ha-home :is(.az-home-reveal-wait, .az-home-reveal-enter) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
