/* One quiet transition for every public page. Native links/history stay native. */
@view-transition { navigation: auto; }
html { scrollbar-gutter: stable; }
html.navigation-arrival { scroll-behavior: auto !important; }
/* Backdrop blur cannot sample the previous page during a document snapshot. */
html.navigation-arrival body > header,
html.navigation-arrival .case-nav,
html.navigation-arrival .project-simple-nav {
  background: #191a18;
  backdrop-filter: none;
  transition: none !important;
}

/* Retire the legacy card-to-page morph, including names set by older templates. */
[data-vt], .stranka { view-transition-name: none !important; }
::view-transition-group(root) { animation: none; }
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  animation: l22-page-in 180ms cubic-bezier(.22,1,.36,1) both;
  mix-blend-mode: normal;
}
@keyframes l22-page-in { from { opacity: 0; } to { opacity: 1; } }

/* The L22 case used a second, delayed entrance after the page transition. */
.cs-hero .cs-znak .kus, .cs-hero .cs-lab, .cs-hero .cs-lead { animation: none; }

/* An anchor arrival should not replay an accordion entrance. */
html.navigation-arrival .project-panel,
html.navigation-arrival .project-panel-content { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}
