@view-transition { navigation: auto; }

::view-transition { background: #101114; }
::view-transition-group(root) { animation-duration: .92s; animation-timing-function: cubic-bezier(.35, 0, 0, 1); }
::view-transition-old(root) { animation: ideal-route-old .72s cubic-bezier(.35, 0, 0, 1) both; }
::view-transition-new(root) { animation: ideal-route-new .92s cubic-bezier(.16, 1, .3, 1) both; }

::view-transition-group(ideal-route-surface) {
  z-index: 2;
  overflow: hidden;
  animation-duration: 1.05s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
::view-transition-image-pair(ideal-route-surface) { isolation: isolate; overflow: hidden; }
::view-transition-old(ideal-route-surface),
::view-transition-new(ideal-route-surface) {
  width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; backface-visibility: hidden;
}
::view-transition-old(ideal-route-surface) { animation: ideal-surface-old .88s cubic-bezier(.35, 0, 0, 1) both; }
::view-transition-new(ideal-route-surface) { animation: ideal-surface-new 1.05s cubic-bezier(.16, 1, .3, 1) both; }

::view-transition-group(ideal-rf-scene),
::view-transition-group(ideal-rf-content) { animation-duration: .82s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-image-pair(ideal-rf-scene),
::view-transition-image-pair(ideal-rf-content) { overflow: hidden; isolation: isolate; }
::view-transition-old(ideal-rf-scene) { animation: ideal-rf-scene-old .68s cubic-bezier(.35, 0, 0, 1) both; }
::view-transition-new(ideal-rf-scene) { animation: ideal-rf-scene-new .82s cubic-bezier(.16, 1, .3, 1) both; }
::view-transition-old(ideal-rf-content) { animation: ideal-rf-content-old .48s cubic-bezier(.35, 0, 0, 1) both; }
::view-transition-new(ideal-rf-content) { animation: ideal-rf-content-new .72s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes ideal-route-old { to { opacity: 0; transform: scale(1.018); filter: brightness(.72); } }
@keyframes ideal-route-new { from { opacity: .18; clip-path: inset(100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes ideal-surface-old { from { opacity: 1; transform: scale(1); } to { opacity: .24; transform: scale(1.08); filter: brightness(.68); } }
@keyframes ideal-surface-new { from { opacity: .2; transform: scale(1.1); clip-path: inset(10% 8%); } to { opacity: 1; transform: scale(1); clip-path: inset(0); } }
@keyframes ideal-rf-scene-old { to { opacity: .28; transform: scale(1.08); filter: brightness(.7); } }
@keyframes ideal-rf-scene-new { from { opacity: .2; transform: scale(1.12); clip-path: inset(12% 10%); } to { opacity: 1; transform: scale(1); clip-path: inset(0); } }
@keyframes ideal-rf-content-old { to { opacity: 0; transform: translate3d(-7vw, 0, 0); } }
@keyframes ideal-rf-content-new { from { opacity: 0; transform: translate3d(9vw, 0, 0); clip-path: inset(0 0 0 22%); } to { opacity: 1; transform: none; clip-path: inset(0); } }

@media (max-width: 700px) {
  ::view-transition-group(root) { animation-duration: .78s; }
  ::view-transition-group(ideal-route-surface) { animation-duration: .9s; }
  ::view-transition-new(root) { animation-duration: .78s; }
  ::view-transition-new(ideal-route-surface) { animation-duration: .9s; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
