
/* Scroll-driven motion: no timers or one-time scroll observers.
   Overrides previous entrance keyframes; elements are positioned by scroll events. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy>.eyebrow,.hero-copy>h1,.hero-copy>.intro,
  .hero-copy>.actions,.hero-copy>.hero-foot,.hero-visual{
    animation:none!important;
  }
  html.scroll-motion-enabled .scroll-scrub{
    opacity:var(--scroll-reveal-opacity,1);
    transform:translate3d(0,var(--scroll-reveal-shift,0px),0);
    transition-property:background-color,border-color,box-shadow,color!important;
    transition-duration:.25s!important;
  }
  html.scroll-motion-enabled .scroll-scrub:hover,
  html.scroll-motion-enabled .scroll-scrub:focus-within{
    opacity:1;
  }
  /* Keep interactive lift effects without overriding the scroll-linked motion. */
  html.scroll-motion-enabled .care-card.scroll-scrub:hover,
  html.scroll-motion-enabled .care-card.scroll-scrub:focus-within,
  html.scroll-motion-enabled .doctor-card.scroll-scrub:hover,
  html.scroll-motion-enabled .doctor-card.scroll-scrub:focus-within{
    transform:translate3d(0,calc(var(--scroll-reveal-shift,0px) - 6px),0);
  }
  html.scroll-motion-enabled .service-link.scroll-scrub:hover,
  html.scroll-motion-enabled .service-link.scroll-scrub:focus-visible,
  html.scroll-motion-enabled .specialist-entry.scroll-scrub:hover,
  html.scroll-motion-enabled .specialist-entry.scroll-scrub:focus-within{
    transform:translate3d(0,calc(var(--scroll-reveal-shift,0px) - 3px),0);
  }
  /* Decorative loops are frozen by default and run only during scrolling. */
  .floating-card,.hero .dot,.find-search-caret{
    animation-play-state:paused!important;
  }
  html.is-scrolling .floating-card,
  html.is-scrolling .hero .dot,
  html.is-scrolling .find-search-caret{
    animation-play-state:running!important;
  }
  /* The search-pill is scrubbed by JS. No time-based animation continues after scroll. */
  html.scroll-motion-enabled .find-search{
    transition:none!important;
  }
  html.scroll-motion-enabled .find-search-text,
  html.scroll-motion-enabled .find-search-enter{
    animation:none!important;transition:none!important;
  }
  html.scroll-motion-enabled .find-search.is-compact{
    padding-left:0;padding-right:0;gap:0;justify-content:center;
  }
  html.scroll-motion-enabled .find-search.is-compact .find-search-enter,
  html.scroll-motion-enabled .find-search.is-compact .find-search-text{
    display:none;
  }
  /* Old click-triggered glows should not run when the page is at rest. */
  .contact.contact-emphasis .contact-map-card,
  .contact.contact-emphasis .contact-information{
    animation:none!important;
  }
}
/* Visible, readable content is mandatory when visitors request reduced motion. */
@media(prefers-reduced-motion:reduce){
  .scroll-scrub{opacity:1!important;transform:none!important}
  .find-search{width:min(100%,620px)!important}
  .find-search-text,.find-search-enter{display:flex!important}
}
