@view-transition { navigation: auto; }
/* Disable named header/card snapshots during a whole-site swap. Otherwise
   they float independently above the root image instead of travelling with it. */
html[data-enclave-swap] * { view-transition-name: none !important; }
html[data-enclave-swap]::view-transition-group(root) { animation: none !important; }
html[data-enclave-swap]::view-transition-old(root),
html[data-enclave-swap]::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: var(--motion-panel-swap, 480ms) !important;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
  animation-fill-mode: both !important;
}
html[data-enclave-swap='forward']::view-transition-old(root) { animation-name: enclave-slide-out !important; }
html[data-enclave-swap='forward']::view-transition-new(root) { animation-name: enclave-slide-in !important; }
html[data-enclave-swap='back']::view-transition-old(root) { animation-name: enclave-return-out !important; }
html[data-enclave-swap='back']::view-transition-new(root) { animation-name: enclave-return-in !important; }
@keyframes enclave-slide-out { from { transform: translateX(0); } to { transform: translateX(-100vw); } }
@keyframes enclave-slide-in { from { transform: translateX(100vw); } to { transform: translateX(0); } }
@keyframes enclave-return-out { from { transform: translateX(0); } to { transform: translateX(100vw); } }
@keyframes enclave-return-in { from { transform: translateX(-100vw); } to { transform: translateX(0); } }
html[data-enclave-fallback][data-enclave-swap='forward'] body { animation: enclave-slide-in 480ms cubic-bezier(.22, 1, .36, 1) both; }
html[data-enclave-fallback][data-enclave-swap='back'] body { animation: enclave-return-in 480ms cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: reduce) {
  html[data-enclave-swap]::view-transition-old(root),
  html[data-enclave-swap]::view-transition-new(root),
  html[data-enclave-fallback] body { animation-duration: .01ms !important; }
}
