@view-transition{navigation:auto}
::view-transition{background:#f6f2e9}
html[data-scene="cards"]::view-transition{background:#fcfaf6}
html[data-scene="cards"] #motion-brand{view-transition-name:scene-brand}
html[data-scene="cards"] #spread-toggle{view-transition-name:scene-controls}
::view-transition-group(*){animation:none}
::view-transition-old(*){animation:ux-scene-hold 4s linear both;mix-blend-mode:normal}
::view-transition-new(*){animation:ux-scene-wait 4s linear both;mix-blend-mode:normal}
.route-revealed::view-transition-old(*){animation:ux-scene-out 300ms cubic-bezier(.45,0,.2,1) both}
.route-revealed::view-transition-new(*){animation:ux-scene-in 550ms cubic-bezier(.22,.61,.36,1) both}
.route-revealed::view-transition-new(scene-brand),
.route-revealed::view-transition-new(scene-controls){animation:ux-scene-in 450ms 80ms cubic-bezier(.22,.61,.36,1) both}
@keyframes ux-scene-hold{from,to{opacity:1}}
@keyframes ux-scene-wait{from,to{opacity:0}}
@keyframes ux-scene-out{from{opacity:1}to{opacity:0}}
@keyframes ux-scene-in{from{opacity:0}to{opacity:1}}
/* The outgoing bird stays live until it has faded away. The outline is an
   independent, single-stroke SVG: no scale, filter, duplicate player or canvas. */
.route-outline{position:fixed;inset:0;width:100%;height:100%;z-index:10000;pointer-events:none;opacity:.8;overflow:visible}
.route-outline-leaving .hero{animation:ux-scene-out 650ms cubic-bezier(.45,0,.2,1) both;pointer-events:none}
.route-outline-leaving .route-outline{animation:ux-outline-appear 220ms linear both}
.route-outline-leaving .route-outline rect{animation:ux-outline-draw-out 650ms cubic-bezier(.22,.61,.36,1) both}
.route-first-outline .route-outline rect{stroke-dashoffset:.25}
.route-first-outline.route-revealed .route-outline rect{animation:ux-outline-draw-in 350ms cubic-bezier(.22,.61,.36,1) both}
.route-first-outline.route-revealed .route-outline{animation:ux-outline-leave 550ms linear both}
@keyframes ux-outline-appear{from{opacity:0}to{opacity:.8}}
@keyframes ux-outline-draw-out{from{stroke-dashoffset:1}to{stroke-dashoffset:.25}}
@keyframes ux-outline-draw-in{from{stroke-dashoffset:.25}to{stroke-dashoffset:0}}
@keyframes ux-outline-leave{0%,25%{opacity:.8}100%{opacity:0}}
/* Also cover skipped native transitions, not just unsupported browsers. */
.route-fallback-arrival:not(.route-native) body{opacity:0}
.route-fallback-arrival.route-revealed:not(.route-native) body{opacity:1;transition:opacity 550ms cubic-bezier(.22,.61,.36,1)}
.route-first-outline.route-fallback-arrival:not(.route-native) body{opacity:1}
.route-first-outline.route-fallback-arrival:not(.route-native) body>:not(.route-outline){opacity:0}
.route-first-outline.route-fallback-arrival.route-revealed:not(.route-native) body>:not(.route-outline){opacity:1;animation:ux-scene-in 550ms cubic-bezier(.22,.61,.36,1) both}
.route-fallback-leaving body{opacity:0;transition:opacity 180ms cubic-bezier(.4,0,1,1)}
.route-leaving .studio-cursor,.route-leaving .studio-cursor-ink{visibility:hidden!important}
/* Both live scenes share this document until the single stroke is complete.
   Fixed staging has no scale/filter: the card renderer can remain asleep. */
.route-live-home{position:fixed!important;inset:0!important;width:100%!important;height:100svh!important;margin:0!important;z-index:10}
.route-live-cards{position:fixed;inset:0;z-index:20;opacity:0;pointer-events:none;background:#fcfaf6}
.route-live-preparing .route-live-home{opacity:1}
.route-live-running .studio-cursor,.route-live-running .studio-cursor-ink{visibility:hidden!important}
