/* Page transitions between full page loads, using the browser's cross-document view transitions: no JS animation, and
   navigation is never held back. page-transition.js tags navigations into or out of the jersey maker ("maker"), which
   get the wipe; any other full page load gets a short crossfade.
   A static, render-blocking file in each page head, so the opt-in is in place before first render in dev and production.
   Browsers without cross-document view transitions (Firefox today) navigate as usual.
   Curves and durations mirror src/client/tokens.css (--ease-out, --ease-in-out, --d-page); the fallbacks apply until it loads. */
@view-transition {
  navigation: auto;
}
::view-transition-group(root) {
  animation-duration: var(--d-ui, 250ms);
  animation-timing-function: var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}
/* while a maker wipe runs, the incoming page sits on obsidian, so a page still loading (the home's React shell) reads as the
   dark hero arriving instead of a white flash */
html:active-view-transition-type(maker) {
  background: var(--obsidian, #000);
}
@media (prefers-reduced-motion: no-preference) {
  /* the new page rises over the old one, bottom up; the old page lifts and dims under it */
  html:active-view-transition-type(maker)::view-transition-old(root) {
    animation: pt-lift var(--d-page, 700ms) var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1)) both;
  }
  html:active-view-transition-type(maker)::view-transition-new(root) {
    animation: pt-wipe var(--d-page, 700ms) var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1)) both;
  }
}
@keyframes pt-wipe {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}
@keyframes pt-lift {
  to { transform: translateY(-6%); opacity: 0.4; }
}
