@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-content > * {
    animation: ag-rise-in 600ms both;
  }

  .hero-content > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-content > :nth-child(3) {
    animation-delay: 150ms;
  }

  .hero-content > :nth-child(4) {
    animation-delay: 220ms;
  }

  .hero-media__image {
    animation: ag-image-reveal 900ms 100ms both;
  }

  .site-header {
    transition: box-shadow var(--ag-transition), background var(--ag-transition);
  }

  .site-header.is-scrolled {
    box-shadow: 0 6px 24px rgb(0 0 0 / 7%);
  }

  .button:active,
  .floating-appointment:active {
    transform: translateY(1px);
  }
}

@keyframes ag-rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ag-image-reveal {
  from {
    opacity: 0.75;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
