/* Final motion: interaction-only overrides; dimensions, crops and text are untouched. */
body[data-route] { --dp-ease: cubic-bezier(.22,1,.36,1); }
body[data-route] .global-header {
  position: fixed;
  animation: none;
  transition: background-color 280ms var(--dp-ease), color 240ms var(--dp-ease);
}
body[data-route] .global-header.is-scrolled { padding: 25px 36px; }
body[data-route] .global-reve-dropdown {
  /* The hit box never moves away from its trigger, including during the fade. */
  transform: none;
  transition: opacity 220ms var(--dp-ease), visibility 220ms step-end;
}
body[data-route] .global-reve-menu:is(:hover, :focus-within) .global-reve-dropdown {
  transform: none;
  transition: opacity 220ms var(--dp-ease);
}
body[data-route] .global-reve-menu[data-dismissed] .global-reve-dropdown { opacity: 0; visibility: hidden; pointer-events: none; }
body[data-route] .global-nav a:not([aria-current]):hover { border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
body[data-route] .global-reve-dropdown a:not([aria-current]):hover { padding: 7px 0; }
body[data-route] .global-nav a,
body[data-route] .global-footer a,
body[data-route] .staging-reve-subnav a,
body[data-route] main a.link,
body[data-route] main a.cta,
body[data-route] main a.action { transition: opacity 220ms var(--dp-ease), text-decoration-color 220ms var(--dp-ease); }
body[data-route] .global-mobile-menu:not([hidden]) nav a { animation: none; }
body[data-route] .global-mobile-menu { overscroll-behavior: contain; }
body[data-route] .global-footer { opacity: 1; }
body[data-route] .home-visual-link img { transition: transform 260ms var(--dp-ease), opacity 240ms var(--dp-ease); }
body[data-route] .home-visual-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
/* Native details keep their semantic and keyboard behavior. */
body[data-route] details[open] > :not(summary) { animation: dp-detail-fade 260ms var(--dp-ease); }
@keyframes dp-detail-fade { from { opacity: .35; } to { opacity: 1; } }
/* Intrinsic-size interpolation is optional; older browsers use the native toggle + fade. */
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  body[data-route] details { interpolate-size: allow-keywords; }
  body[data-route] details::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition: block-size 280ms var(--dp-ease), opacity 220ms var(--dp-ease), content-visibility 280ms allow-discrete;
  }
  body[data-route] details[open]::details-content { block-size: auto; opacity: 1; }
}
body[data-route='/contact-access'] main .service { transition: background-color 220ms var(--dp-ease), color 220ms var(--dp-ease); }
body[data-route='/contact-access'] main .service:not([aria-pressed='true']):hover { padding-left: 0; }
body[data-route='/contact-access'] main .service span:last-child { transition: translate 220ms var(--dp-ease); }
body[data-route='/contact-access'] main .service:is(:hover, :focus-visible) span:last-child { translate: 3px 0; }
body[data-route='/contact-access'] main :is(.form-shell, .confirm, .success).active { animation: dp-contact-fade 260ms var(--dp-ease); }
@keyframes dp-contact-fade { from { opacity: .45; } to { opacity: 1; } }
@media (max-width: 767px) { body[data-route] .global-header.is-scrolled { padding: 20px; } }
/* Cross-document enhancement only. Links/history still navigate natively, with no JS delay. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: dp-page-out 220ms ease-out both; }
  ::view-transition-new(root) { animation: dp-page-in 480ms cubic-bezier(.22,1,.36,1) both; }
  ::view-transition-group(root) { animation: none; }
  ::view-transition-image-pair(root) { isolation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
}
@keyframes dp-page-out { to { opacity: 0; } }
@keyframes dp-page-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body[data-route] *, body[data-route] *::before, body[data-route] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body[data-route] .home-visual-link:hover img { transform: none; }
  body[data-route='/contact-access'] main .service span:last-child { translate: none !important; }
  body[data-route] details::details-content { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

