@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition { pointer-events: none; }
::view-transition-group(*) {
  animation-duration: 230ms;
  animation-timing-function: cubic-bezier(.22,.68,.25,1);
}
/* Keep the page opaque on both sides of a short, soft-edged reveal. */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  mix-blend-mode: normal;
  mask-image: linear-gradient(93deg, transparent 43%, black 57%);
  mask-size: 280% 100%;
  mask-repeat: no-repeat;
  animation: ict-sheet-in 230ms cubic-bezier(.2,.64,.27,1) both;
}
html.ict-nav-back::view-transition-new(root) {
  mask-image: linear-gradient(93deg, black 43%, transparent 57%);
  animation-direction: reverse;
  animation-timing-function: cubic-bezier(.73,0,.8,.36);
}
@keyframes ict-sheet-in {
  from { mask-position: 0% 0; }
  to { mask-position: 100% 0; }
}

::view-transition-group(ict-work),
::view-transition-group(ict-category) {
  z-index: 1;
  overflow: clip;
  animation-duration: 300ms;
}
::view-transition-group(ict-work) { border-radius: 12px; }
::view-transition-old(ict-work),
::view-transition-new(ict-work) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
::view-transition-old(ict-category) { z-index: 1; animation: ict-label-out 100ms ease-out both; }
::view-transition-new(ict-category) { mix-blend-mode: normal; animation: ict-label-in 160ms ease-out both; }
@keyframes ict-label-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ict-label-in { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(ict-work):only-child,
::view-transition-new(ict-work):only-child { animation-duration: 150ms; }
