/* ============================================================================
   hs-motion.css — room-to-room transitions for the back office (7 Nov 2026).

   One job: opt the member rooms into Chrome's native cross-document view
   transition, so moving from Today to People cross-fades instead of jumping.
   It has to be a stylesheet in <head>: the browser decides whether a page takes
   part at the moment it first draws, before any script has run. The rest of
   the motion (cards rising, numbers counting, depth) lives in hs-membernav.js.

   Both pages of a navigation must carry this file; pages that don't (the public
   site, the presentation) simply navigate as before. Anyone whose device asks
   for reduced motion gets no transition at all.
   ============================================================================ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  /* The rail (desktop) and tab bar (phone) stay put while the room changes. */
  .hs-mnav { view-transition-name: hs-rail; }
  .hs-shell-top { view-transition-name: hs-top; }

  ::view-transition-old(root) { animation: hs-vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: hs-vt-in .42s cubic-bezier(.16, 1, .3, 1) both; }
  ::view-transition-group(hs-rail), ::view-transition-group(hs-top) { animation-duration: 0s; }

  @keyframes hs-vt-out { to { opacity: 0; transform: scale(.992); } }
  @keyframes hs-vt-in { from { opacity: 0; transform: translateY(10px) scale(1.004); } }
}
