/* Moving between pages (push two, 2026-11-16 night; from the design lab's page-morph). Only the moment between two
   pages: nothing here changes how a page looks at rest.
   1. No white flash: every page of the site opts in to the browser's page-to-page animation, so the old page stays on
      screen until the new one is ready and the two cross-fade. The opt-in itself (@view-transition{navigation:auto})
      is added by morph.js in Chrome-engine browsers only (Chrome, Edge, Samsung, Android): the Safari engine on our
      test PC crashed the page now and then on changing page at phone width with that one line alone (2026-11-16),
      so Safari changes page as it always has.
   2. The header and the phone's bottom bar keep still while the page under them cross-fades: they are the same pixels
      in the same place on both pages, and the browser's cross-fade adds the two pages up, so identical pixels never
      move or dim. (They are deliberately NOT given their own animation layer: naming them shifted the header's
      pixels very slightly at rest at 2140 wide, measured 2026-11-16.)
   3. The tapped bag flies and grows into the bag on its drip page's opening. morph.js names the two bags "hy-bag" only
      at the moment of changing page (pageswap on the tapped one, pagereveal on the arriving one), so two bags never
      share a name; Back flies it home again where the browser allows.
   Browsers without the page-to-page animation simply change page as before. Reduce Motion: no flying (morph.js never
   names a bag), a short soft cross-fade only. */

/* the page itself (header, bottom bar, an open dropdown or phone menu included): a soft cross-fade */
::view-transition-group(root){animation-duration:.34s}
::view-transition-old(root),::view-transition-new(root){animation-duration:.34s;animation-timing-function:cubic-bezier(.4,0,.2,1)}

/* the bag: glides and grows, over everything (the header and the phone menu included), easing into its place */
::view-transition-group(hy-bag){z-index:10;animation-duration:.72s;animation-timing-function:cubic-bezier(.3,.95,.3,1)}
::view-transition-old(hy-bag),::view-transition-new(hy-bag){height:100%;object-fit:contain;animation-duration:.3s;animation-timing-function:linear}

@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation-duration:.2s!important}
  ::view-transition-group(hy-bag){animation-duration:0s!important}
}
