@view-transition { navigation: auto; }

.brand img, .site-nav .logo img {
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 93%, transparent),
              linear-gradient(to bottom, transparent, #000 15%, #000 89%, transparent),
              radial-gradient(ellipse 36% 55% at top left, transparent 4%, rgb(0 0 0 / .45) 48%, #000 100%);
  mask-composite: intersect;
}

/* Keep the current page in frame while the destination opens over it. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-depart .3s ease-out both; }
  ::view-transition-new(root) { animation: page-arrive .36s cubic-bezier(.2,.72,.25,1) both; }
  @keyframes page-depart { to { opacity: .64; transform: scale(.993); } }
  @keyframes page-arrive { from { opacity: 0; transform: translateY(.45rem); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .001s; }
}
