/* Page to page transitions between the site's pages: E, the sign-up page and F2 (the owner, 2026-12-02: "when go to
   sign up button to sign up page, smooth tranisiion animation"). pagefx.js does the rest.
   - Browsers with cross-document view transitions (Chrome / Edge 126+, Safari 18.2+): the old page fades back and
     blurs, the new one rises in, the logo stays put, and the sign-up link that was clicked opens into the sign-up
     card (and the card shrinks back into it on the way back).
   - Other browsers (Firefox): a short fade through the site's dark with the client's orange line, and the new page
     fades in. Reduced motion: none of it. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: ro-pg-out .34s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: ro-pg-in .52s cubic-bezier(.2, .7, .2, 1) .08s both; }
@keyframes ro-pg-out { to { opacity: 0; transform: scale(.985); filter: blur(3px); } }
@keyframes ro-pg-in { from { opacity: 0; transform: translateY(22px); } }

/* the logo: the same picture at the top left of every page */
header .brand > img { view-transition-name: ro-logo; }
::view-transition-group(ro-logo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* the sign-up link clicked grows into the sign-up card: a dark panel with an ice rim, the link fading out of it and
   the card fading in (the card is named on the sign-up page, the link by pagefx.js) */
::view-transition-group(ro-signup) { animation-duration: .58s; animation-timing-function: cubic-bezier(.2, .75, .15, 1);
  background: #0a1222; box-shadow: 0 0 0 1px rgba(169, 220, 255, .55), 0 0 46px rgba(63, 127, 255, .32); }
/* both pictures at their own size, not stretched with the panel: the link's words fade where they are, and the card
   is uncovered as the panel opens (cut to it), like a window opening */
::view-transition-old(ro-signup), ::view-transition-new(ro-signup) { width: 100%; height: 100%; object-fit: none; }
::view-transition-old(ro-signup) { object-position: center; animation: ro-pg-fade-out .16s linear both; }
::view-transition-new(ro-signup) { object-position: left top; animation: ro-pg-fade-in .3s linear .1s both; }
@keyframes ro-pg-fade-out { to { opacity: 0; } }
@keyframes ro-pg-fade-in { from { opacity: 0; } }

/* without view transitions: the veil on the page being left, and the new page fading in */
.ro-pg-veil { position: fixed; inset: 0; z-index: 2147483000; background: #03050a; opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.ro-pg-veil.on { opacity: 1; }
.ro-pg-veil::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #e89600 30%, #ffb43a 50%, #e89600 70%, transparent);
  transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1) .04s; }
.ro-pg-veil.on::after { transform: scaleX(1); }
html.ro-pg-enter body { animation: ro-pg-fade-in .42s ease both; }      /* opacity only: E's bar and rail are fixed */

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .ro-pg-veil { display: none; }
  html.ro-pg-enter body { animation: none; }
}
