/* Jalnix — page-to-page transition (homepage ⇄ product pages).
   Cross-document View Transitions: no JavaScript, ignored by browsers without
   support, switched off for reduced motion. The old page drops away like a
   played card; the new one is dealt up from below. */
@view-transition { navigation: auto; }

@keyframes jx-out { to { opacity: 0; transform: translateY(-18px) scale(.985); } }
@keyframes jx-in  { from { opacity: 0; transform: translateY(46px) rotate(.6deg); clip-path: inset(0 0 0 0 round 44px); } }

::view-transition-old(root) { animation: jx-out .18s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: jx-in .42s cubic-bezier(.2, .9, .25, 1) .08s both; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
