/* ENG-HOUSE-APPLE-FLUID-MOTION-V1
   Motion-only layer. Intentionally contains no brand color/background overrides. */

:root{
  --eh-fluid-response: .34s;
  --eh-fluid-fast: .105s;
  --eh-fluid-ease: cubic-bezier(.16,1,.3,1);
}

html{
  scroll-behavior:smooth;
}

/* Keep the site's existing visual design, but make its current motion settle
   more naturally. These rules change timing only — never color values. */
:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn,
  .card,
  .catalog-card,
  .pn-project-card,
  .location-card,
  .showroom-card,
  .contact-detail-card,
  .contact-location-card,
  .contact-hours-card,
  .pd-related-card,
  .catalog-card-media img,
  .card-media img,
  .pn-project-media img,
  .location-thumb img,
  .card-arrow,
  .loc-arrow
){
  transition-timing-function:var(--eh-fluid-ease) !important;
}

/* Controls that are not already covered by ENG HOUSE's richer shared button
   motion get immediate physical response on pointer-down / keyboard-down. */
.eh-fluid-control{
  touch-action:manipulation;
  transform-origin:center center;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:scale,translate;
  transition-property:scale,translate !important;
  transition-duration:var(--eh-fluid-response) !important;
  transition-timing-function:var(--eh-fluid-ease) !important;
}

.eh-fluid-control.eh-fluid-pressed{
  scale:.965;
  transition-duration:var(--eh-fluid-fast) !important;
}

@media (hover:hover) and (pointer:fine){
  .eh-fluid-control.eh-fluid-hoverable:hover{
    translate:0 -1px;
  }
}

/* Let images and arrows settle instead of snapping at the end of the site's
   existing hover states. */
:where(
  .catalog-card-media img,
  .card-media img,
  .pn-project-media img,
  .location-thumb img,
  .card-arrow svg,
  .loc-arrow svg,
  .pd-image-arrow svg,
  .pd-thumb-nav svg,
  .gallery-nav svg,
  .gallery-close svg
){
  transition-timing-function:var(--eh-fluid-ease) !important;
}

/* Respect accessibility preferences without stopping unrelated site animation.
   Only this added motion layer is softened. */
@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto !important;
  }

  .eh-fluid-control{
    translate:0 !important;
    scale:1 !important;
    transition-duration:.08s !important;
  }

  .eh-fluid-control.eh-fluid-pressed{
    scale:.985 !important;
  }
}
/* /ENG-HOUSE-APPLE-FLUID-MOTION-V1 */