/* Smooth page switches (all three pages).
   The browser keeps the page you are leaving on screen until the next one has painted, then cross-fades into it —
   no blank frame, no flash, however many times you go back and forth (Chrome, Edge, Safari 18+; other browsers just
   switch as before). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Home: the cloud canvas fades in when it is ready instead of appearing in one frame */
.js .hero .hero-gl { transition: opacity .6s ease; }
.js .hero:not(.gl-ready):not(.gl-failed) .hero-gl { opacity: 0; }

/* Home, repeat visit in the same tab: no opening screen and no waiting — the name and copy are simply there from the
   first frame (the cross-fade is the arrival; no second entrance that could restart), the clouds fade in behind them */
html.seen:not(.deep) .loader{display:none}
html.seen.js .hero:not(.hero-in) .name,html.seen.js .hero:not(.hero-in) .hero-intro,html.seen.js .hero:not(.hero-in) .hero-meta,
html.seen.js .hero:not(.hero-in) .hero-foot,html.seen.js .hero:not(.hero-in) .hero-reg{opacity:1}