/* Homepage splash (website-first-load-opening#44, R4-11). The head snippet sets html[data-splash="A"] before the first
   paint on a full load of the homepage (not on a section anchor or a back/forward visit, not under reduced motion, only
   with WebGL). splash.js then runs A (white splash) → T (about 1.15 s into the hero) → B (the page; the attribute is
   removed) and R (back to A). The splash's place, type and look are the homepage's own (the [data-home-splash] mount and
   its rules, website-home-restyle#59); this sheet only adds what the controller needs. The hero underneath is painted
   from the first frame and only covered, never hidden. */
/* The mount shows from the first paint while html[data-splash] is set (the homepage's rule). Until splash.js takes over;
   if it never runs, the splash lifts by itself. */
html[data-splash]:not(.splash-ready) [data-home-splash] {
  animation: splash-failsafe var(--motion-fast, 250ms) var(--motion-ease, ease) calc(var(--motion-slow, 900ms) * 6) forwards;
}
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
/* The page holds still while the splash is up or moving; a scroll is read as "enter". */
html.splash-ready:is([data-splash="A"], [data-splash="T"], [data-splash="R"]) { overflow: hidden; }
/* The headline's word and underline wait for the flying word to land on them; the hero's other parts wait to rise. */
html.splash-ready[data-splash] :is([data-intro-word], [data-intro-underline]) { visibility: hidden; }
html.splash-ready[data-splash] [data-intro-rise]:not(:has([data-intro-word])) { translate: 0 var(--splash-rise, 14px); }

/* Nothing shows on the white until the renderer has drawn its first frame (with the heading font in): then the glass and
   its word fade in, with the button. The DOM word shows only once it takes over from the glass and flies. */
[data-home-splash]:not(.is-drawn) :is([data-orlino-drops="splash"], [data-splash-enter]) { opacity: 0; }
[data-home-splash] [data-splash-word] { opacity: 0; }
[data-home-splash] [data-splash-word].is-flying { opacity: 1; }
