/* Page transitions between pages of the site (Chrome / Edge 126+, others navigate normally).
   The page cross-fades with a small lift; a project card's image and title morph into the
   cover and heading of the case study (names set in project-card.php and single-project.php). */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out .35s var(--ease, ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease, ease) .05s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
::view-transition-image-pair(*) { isolation: auto; }

/* the sticky header stays put instead of fading */
.header-bar { view-transition-name: site-header; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* the loader and custom cursor never take part */
.loader, .cursor { view-transition-name: none; }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}
