/* Paint-only motion: no changes to layout, dimensions or content. */
@media (prefers-reduced-motion: no-preference) {
  /* Fallback for browsers and local file previews without cross-document transitions. */
  html:not(.z-native-transition) #frame,
  html:not(.z-native-transition) #z-mobile { animation: zeta-page-in 200ms ease-out both; }
  @keyframes zeta-page-in { from { opacity: .88; } to { opacity: 1; } }
  .hot, .mobile-nav a, .service-footer a, .dynamic-tabs button, .product-demo,
  .service-tile, .client-tile, .product-features > div, .field, summary {
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
      box-shadow 220ms ease, filter 220ms ease, transform 220ms ease;
  }
  .service-tile:hover, .product-features > div:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #15374320; }
  .product-demo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #15374335; }
  .product-demo:active, .dynamic-tabs button:active { transform: scale(.98); }
  .field:not([type=checkbox]):focus { border-color: #427887; box-shadow: 0 0 0 3px #42788722; }
  .field::file-selector-button { transition: background-color 180ms ease; }
  .field::file-selector-button:hover { background-color: #245968; }
  .enter { animation: zeta-panel-in 320ms ease-out; }
  @keyframes zeta-panel-in { from { opacity: .45; } to { opacity: 1; } }
  .client-list details[open] > .client-gallery, .project-detail[open] > .project-grid { animation: zeta-panel-in 260ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  #frame, .enter, .dynamic-panel .service-details article:not([hidden]), .client-cloud span { animation: none !important; }
  .hot, .mobile-nav a, .service-footer a, .dynamic-tabs button, .product-demo, .service-tile, .client-tile, .product-features > div, .field, summary { transition: none !important; }
  .service-tile:hover, .client-tile:hover, .dynamic-panel .service-summary a:hover { transform: none; }
}

/* Native same-origin page crossfade: no click interception, overlay loader or wait timer. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 200ms;
    animation-timing-function: ease-in-out;
  }
  ::view-transition { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  #frame, #z-mobile { animation: none !important; }
}

/* Company: avoid compositing a full-height scaled page or running two entry animations. */
.z-company-page #design .client-list[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  html.z-company-page #frame, html.z-company-page #z-mobile { animation: none; }
  .z-company-page:not(.z-native-transition) .sharp-company,
  .z-company-page:not(.z-native-transition) #z-mobile > .z-hero {
    animation: zeta-company-in 220ms ease-out both;
  }
  @keyframes zeta-company-in { from { opacity: .90; } to { opacity: 1; } }
  .z-company-page::view-transition-old(root),
  .z-company-page::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease-in-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .z-company-page .sharp-company, .z-company-page #z-mobile > .z-hero { animation: none !important; }
}
