/* Push choreography adapted from Codrops PageTransitions, cases 38–41.

   https://github.com/codrops/PageTransitions */

@view-transition { navigation: auto; }

html[data-push="up"] { --push-x: 0px; --push-y: 100vh; --push-rx: -90deg; --push-ry: 0deg; --push-origin: 50% 0%; }

html[data-push="down"] { --push-x: 0px; --push-y: -100vh; --push-rx: 90deg; --push-ry: 0deg; --push-origin: 50% 100%; }

html[data-push="left"] { --push-x: 100vw; --push-y: 0px; --push-rx: 0deg; --push-ry: 90deg; --push-origin: 0% 50%; }

html[data-push="right"] { --push-x: -100vw; --push-y: 0px; --push-rx: 0deg; --push-ry: -90deg; --push-origin: 100% 50%; }



html[data-push]::view-transition-group(root) { animation: none; }

html[data-push]::view-transition-old(root) {

  animation: page-push-away .8s ease both;

  transform-origin: var(--push-origin);

  mix-blend-mode: normal;

}

html[data-push]::view-transition-new(root) {

  animation: page-push-enter .6s ease both;

  mix-blend-mode: normal;

}

@keyframes page-push-away {

  from { opacity: 1; transform: perspective(1200px) rotateX(0deg) rotateY(0deg); }

  to { opacity: 0; transform: perspective(1200px) rotateX(var(--push-rx)) rotateY(var(--push-ry)); }

}

@keyframes page-push-enter {

  from { transform: translate3d(var(--push-x), var(--push-y), 0); }

  to { transform: translate3d(0, 0, 0); }

}



/* Older browsers use the same direction for the outgoing and incoming documents. */

html[data-push-out] body { animation: page-push-fallback .42s ease-in both; pointer-events: none; }

html[data-push-in] body { animation: page-push-enter .6s ease both; }

@keyframes page-push-fallback {

  to { opacity: 0; transform: translate3d(calc(var(--push-x) * -.2), calc(var(--push-y) * -.2), 0) scale(.96); }

}

@media (prefers-reduced-motion: reduce) {

  @view-transition { navigation: none; }

  html::view-transition-old(root), html::view-transition-new(root),

  html[data-push-in] body, html[data-push-out] body { animation: none; }

}


/* The brand loader covers the wait before the page push begins. */
html[data-route-loading]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: all;
  background: url("/wp-content/uploads/2026/07/Logo.svg") center / clamp(84px, 11vmin, 128px) auto no-repeat, #0b1415;
  animation: route-logo-in .18s ease both;
}
@keyframes route-logo-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html[data-route-loading]::before { animation: none; }
}
