/* Genmodic's opening, ported unchanged from the product (dist/style.css, the #boot rules, 10 November 2026): a dark
   dawn, the horizon drawn across it, the mark, the sun rising into its gap, the name; then through the ring into what
   lies behind. One addition, from the brand source (motion M5): the name arrives light and wide and settles into the
   wordmark. The product's own opening does not do that yet. */
@property --portal { syntax: "<length>"; inherits: false; initial-value: 0px; }
#boot{position:fixed;inset:0;z-index:50;overflow:hidden;background:radial-gradient(140% 100% at 50% 60%,#10141b,#06070a 65%);--portal:0px;
 -webkit-mask:radial-gradient(circle at 50% 50%,transparent var(--portal),#000 calc(var(--portal) + 1.5px));mask:radial-gradient(circle at 50% 50%,transparent var(--portal),#000 calc(var(--portal) + 1.5px));
 transition:--portal 1.05s cubic-bezier(.55,0,.25,1);}
/* If startup never finishes, step aside after 30 s so the error message underneath can be read. */
@keyframes boot-giveup{to{opacity:0;visibility:hidden}}
#boot.done{--portal:150vmax;pointer-events:none}
.boot-dawn{position:absolute;inset:0;background:radial-gradient(70% 55% at calc(50% + 36px) calc(50% + 9px),rgba(255,176,110,.24),rgba(120,70,90,.10) 45%,transparent 75%),linear-gradient(transparent calc(50% - 40px),rgba(255,190,130,.07) calc(50% + 9px),transparent calc(50% + 60px));opacity:0;animation:boot-fade 2.2s .7s cubic-bezier(.3,.1,.2,1) forwards}
.boot-stars{position:absolute;inset:0;opacity:0;background:
 radial-gradient(1px 1px at 18% 22%,#fff,transparent),radial-gradient(1px 1px at 31% 12%,#fff,transparent),radial-gradient(1.5px 1.5px at 72% 18%,#fff,transparent),
 radial-gradient(1px 1px at 84% 31%,#fff,transparent),radial-gradient(1px 1px at 61% 8%,#fff,transparent),radial-gradient(1px 1px at 9% 38%,#fff,transparent),
 radial-gradient(1.5px 1.5px at 42% 27%,#fff,transparent),radial-gradient(1px 1px at 92% 11%,#fff,transparent),radial-gradient(1px 1px at 25% 41%,#fff,transparent);
 animation:boot-stars 5s 2.4s ease-in-out infinite}
.boot-horizon{position:absolute;left:0;right:0;top:calc(50% + 9px);height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5) 30%,rgba(255,238,210,.9) 50%,rgba(255,255,255,.5) 70%,transparent);transform:scaleX(0);animation:boot-horizon 2.6s .15s cubic-bezier(.65,0,.25,1) forwards}
.boot-mark{position:absolute;left:50%;top:50%;width:128px;height:128px;margin:-64px 0 0 -64px}
.boot-mark svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:0;transform:scale(.84) rotate(-28deg);animation:boot-settle 1.3s 1.35s cubic-bezier(.2,.8,.2,1) forwards}
.boot-mark .ring,.boot-mark .hill{fill:none;stroke:#fff;stroke-linecap:round}
.boot-mark .ring{stroke-width:8}
.boot-mark .hill{stroke-width:5}
.boot-mark .land{fill:#fff;stroke:none;opacity:.22}
/* The lamp rises from behind the horizon: its window ends at the horizon line. */
.boot-rise{position:absolute;left:51px;top:-60px;width:100px;height:133px;overflow:hidden}
.boot-sun{position:absolute;left:40.5px;top:98.7px;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 40% 36%,#fffaf0,#ffd59a 52%,#ffab5c);transform:translateY(36px);animation:boot-rise 1.25s .55s cubic-bezier(.2,.75,.25,1) forwards}
/* The lamp's glow follows it up outside the horizon window, so nothing ever clips it, then breathes. */
.boot-halo{position:absolute;left:100.5px;top:47.7px;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,220,165,.85),rgba(255,200,130,.35) 45%,transparent);opacity:0;transform:translateY(36px) scale(.6);animation:boot-halo 1.25s .75s cubic-bezier(.2,.75,.25,1) forwards,boot-breathe 2.6s 2.6s ease-in-out infinite}
.boot-bloom{position:absolute;left:100.5px;top:47.7px;width:640px;height:640px;margin:-320px 0 0 -320px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,206,140,.32),rgba(255,170,110,.08) 45%,transparent);opacity:0;transform:scale(.4);animation:boot-bloom 2s .7s cubic-bezier(.2,.7,.2,1) forwards,boot-glow 2.6s 2.7s ease-in-out infinite}
.boot-word{position:absolute;left:0;right:0;top:calc(50% + 92px);text-align:center;font:300 15px/1 'Onest',sans-serif;letter-spacing:.5em;padding-left:.5em;text-transform:uppercase;color:rgba(255,255,255,.78);opacity:0;transform:translateY(8px);animation:boot-word 1.2s 2s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes boot-fade{to{opacity:1}}
/* A hairline under the name that fills while a world takes longer than the dawn: it shows from 3.4 s, and fills over
   about as long as this kind of opening took last time (--boot-expect, set in index.html), slowing as it nears the
   end. Pure CSS animation, so it keeps moving while the page is busy loading. */
.boot-progress{position:absolute;left:50%;top:calc(50% + 122px);width:88px;height:1px;margin-left:-44px;background:rgba(255,255,255,.12);opacity:0;overflow:hidden;animation:boot-fade .8s 3.4s ease forwards}
.boot-progress i{position:absolute;inset:0;background:rgba(255,226,190,.85);transform-origin:left;transform:scaleX(0);animation:boot-progress var(--boot-expect,9s) cubic-bezier(.4,.45,.6,1) forwards}
@keyframes boot-progress{to{transform:scaleX(.94)}}
#boot.done .boot-progress{animation:none;transition:opacity .3s;opacity:0}
@keyframes boot-horizon{0%{transform:scaleX(0);opacity:.9}45%{transform:scaleX(1);opacity:1}70%{transform:scaleX(1);opacity:.85}100%{transform:scaleX(.035);opacity:0}}
@keyframes boot-rise{to{transform:none}}
@keyframes boot-settle{to{opacity:1;transform:none}}
@keyframes boot-bloom{to{opacity:1;transform:none}}
@keyframes boot-word{to{opacity:1;transform:none}}
@keyframes boot-halo{to{opacity:1;transform:none}}
@keyframes boot-breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.25)}}
@keyframes boot-glow{0%,100%{opacity:1}50%{opacity:.7}}
@keyframes boot-stars{0%,100%{opacity:.55}50%{opacity:.25}}
/* Through the ring: the mark rushes past and the backdrop opens from its centre onto the world. */
#boot.done .boot-mark{transition:transform 1.05s cubic-bezier(.6,0,.3,1),opacity .7s .35s ease;transform:scale(16);opacity:0}
#boot.done .boot-word,#boot.done .boot-horizon{transition:opacity .3s;opacity:0}
@media (prefers-reduced-motion:reduce){#boot *{animation:none!important;opacity:1!important}.boot-progress{display:none}.boot-horizon{opacity:0!important}.boot-sun{transform:none}.boot-mark svg{transform:none}.boot-word{transform:none}#boot{transition:opacity .4s}#boot.done{opacity:0}#boot.done .boot-mark{transform:none}}
/* the wordmark settles (brand/source/motion.md M5) */
.boot-word{animation:boot-word 1.2s 2s cubic-bezier(.2,.7,.2,1) forwards,boot-wm 2.2s 2s cubic-bezier(.2,.7,.2,1) forwards}
.boot-word sup{font-size:.6em;letter-spacing:0;margin-left:-.16em;vertical-align:.55em;opacity:.7}
@keyframes boot-wm{from{font-weight:300;letter-spacing:.5em;padding-left:.5em;color:rgba(255,255,255,.78)}to{font-weight:400;letter-spacing:.32em;padding-left:.32em;color:#fff}}
.boot-progress{display:none}
