/* The opening is the loading screen. This sheet is the only one in <head>, so the Λ lift-off paints and plays
   while the platform's stylesheets, scripts, fonts and data are still arriving; startup-ui.js opens the cover
   once one full cycle has played and the first room has rendered. Colours are literal: no tokens exist yet.
   Every intro animation moves only transform or opacity, so the compositor keeps it smooth while the page
   is busy parsing and rendering underneath; reveals are covers in the cover colour sliding away. */
html,body{background:#0A0B0D}
#startup-wordmark{position:fixed;inset:0;z-index:100;display:grid;place-items:center;width:100%;height:100%;margin:0;padding:24px;background:#0A0B0D;border:0;border-radius:0;color:#F2F2EF;cursor:pointer;-webkit-tap-highlight-color:transparent;animation:startup-fallback .3s 15s forwards}
#startup-wordmark[hidden]{display:none}
#startup-wordmark:focus{outline:none}
#startup-wordmark .lift{position:relative;display:grid;place-items:center;width:min(560px,calc(100vw - 48px));height:340px}
#startup-wordmark .lift>*{grid-area:1/1}
#startup-wordmark .lift-ring{position:relative;z-index:1;width:168px;height:168px;animation:lift-ring-out .45s 1.05s cubic-bezier(.4,0,1,1) forwards}
#startup-wordmark .lift-ring svg{display:block;width:100%;height:100%;fill:none;stroke:#F2F2EF;stroke-width:1;overflow:visible}
/* The ring draws clockwise from three o'clock, as an SVG stroke does: a half-ring cover turns out of each half
   (the halves are turned a quarter so they split along the horizontal), lower then upper. */
#startup-wordmark .lift-ring b{position:absolute;top:0;width:50%;height:100%;overflow:hidden;transform:rotate(90deg)}
#startup-wordmark .lift-ring b.r{left:50%;transform-origin:0 50%}
#startup-wordmark .lift-ring b.l{left:0;transform-origin:100% 50%}
#startup-wordmark .lift-ring i{position:absolute;top:16px;width:136px;height:136px;box-sizing:border-box;border:7px solid transparent;border-radius:50%;transform:rotate(45deg)}
#startup-wordmark .lift-ring b.r i{left:-68px;border-top-color:#0A0B0D;border-right-color:#0A0B0D;animation:lift-ring-draw .06s linear forwards}
#startup-wordmark .lift-ring b.l i{left:16px;border-bottom-color:#0A0B0D;border-left-color:#0A0B0D;animation:lift-ring-draw .49s .06s cubic-bezier(.12,.9,.3,1) both}
#startup-wordmark .lift-rocket{position:relative;width:56px;height:68px;opacity:0;animation:lift-rocket 1.04s .2s linear forwards}
#startup-wordmark .lift-rocket svg{display:block;width:100%;height:100%;fill:none;stroke:#F2F2EF;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#startup-wordmark .lift-flame{position:absolute;left:50%;top:92%;width:3px;height:140px;margin-left:-1.5px;border-radius:2px;background:linear-gradient(#F2F2EF,rgba(242,242,239,0));transform:scaleY(0);transform-origin:top;animation:lift-flame .55s .55s ease-out forwards}
#startup-wordmark .lift-sparks{position:relative;width:0;height:0;transform:translateY(-170px)}
#startup-wordmark .lift-sparks i{position:absolute;left:-2px;top:-2px;width:4px;height:4px;border-radius:50%;background:#F2F2EF;opacity:0;animation:lift-spark .7s 1.1s cubic-bezier(.16,1,.3,1) forwards}
#startup-wordmark .lift-sparks i:nth-child(2){--a:30deg}#startup-wordmark .lift-sparks i:nth-child(3){--a:60deg}#startup-wordmark .lift-sparks i:nth-child(4){--a:90deg}#startup-wordmark .lift-sparks i:nth-child(5){--a:120deg}#startup-wordmark .lift-sparks i:nth-child(6){--a:150deg}#startup-wordmark .lift-sparks i:nth-child(7){--a:180deg}#startup-wordmark .lift-sparks i:nth-child(8){--a:210deg}#startup-wordmark .lift-sparks i:nth-child(9){--a:240deg}#startup-wordmark .lift-sparks i:nth-child(10){--a:270deg}#startup-wordmark .lift-sparks i:nth-child(11){--a:300deg}#startup-wordmark .lift-sparks i:nth-child(12){--a:330deg}
/* The wordmark opens from the centre (two covers part) while the Λ glyphs light from the base (a cover over each rises). */
#startup-wordmark .lift-word{position:relative;width:100%;overflow:hidden;opacity:0;transform:scaleX(.6);animation:lift-word .75s 1.25s cubic-bezier(.16,1,.3,1) forwards}
#startup-wordmark .auth-r5-wordmark{display:block;width:100%;height:auto;aspect-ratio:9753/711;fill:#F2F2EF;overflow:visible}
#startup-wordmark .auth-lambda{position:absolute;inset:0;animation:auth-lambda-ignite 600ms cubic-bezier(.2,.8,.2,1) 1.55s both}
#startup-wordmark .lift-word>i{position:absolute;top:0;height:100%;background:#0A0B0D}
#startup-wordmark .lift-shut{left:0;width:50%;animation:lift-part-l .75s 1.25s cubic-bezier(.16,1,.3,1) forwards}
#startup-wordmark .lift-shut+.lift-shut{left:50%;animation-name:lift-part-r}
#startup-wordmark .lift-veil{left:24.9%;width:9.2%;animation:lift-veil 600ms cubic-bezier(.2,.8,.2,1) 1.55s both}
#startup-wordmark .lift-veil+.lift-veil{left:65.7%}
/* Still loading after the first cycle (timed here, since the script may not have arrived): a scan line and a status line. */
#startup-wordmark .startup-hold{position:absolute;left:50%;top:calc(50% + 44px);width:min(240px,50vw);height:1px;margin-left:calc(min(240px,50vw)/-2);background:#2D2F35;overflow:hidden;opacity:0;animation:startup-wait .4s 2.3s forwards}
#startup-wordmark .startup-hold i{position:absolute;top:0;left:0;width:36px;height:1px;background:linear-gradient(90deg,transparent,#F2F2EF,transparent);animation:startup-scan 1.3s 2.3s ease-in-out infinite}
#startup-wordmark .startup-status{position:absolute;left:0;right:0;top:calc(50% + 60px);text-align:center;font:12px/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;color:#9C9EA5;opacity:0;animation:startup-wait .4s 2.3s forwards}
#startup-wordmark.leaving{pointer-events:none;animation:startup-open .45s cubic-bezier(.4,0,1,1) forwards}
#startup-wordmark.leaving .lift-word,#startup-wordmark.leaving .auth-lambda{animation:none;opacity:1;transform:none}
#startup-wordmark.leaving .lift-word>i{display:none}
#startup-wordmark.leaving .lift{animation:startup-open-mark .45s cubic-bezier(.4,0,1,1) forwards}
@keyframes lift-ring-draw{to{transform:rotate(225deg)}}
/* One animation (the compositor runs a single one per element): in .2–.55s, lift-off .55–1.15s, gone 1.12–1.24s. */
@keyframes lift-rocket{
  0%{opacity:0;transform:translateY(8px) scale(.9);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  33.654%{opacity:1;transform:translateY(0) scale(1);animation-timing-function:cubic-bezier(.55,0,.75,.3)}
  88.462%{opacity:1}
  91.346%{transform:translateY(-170px) scale(1)}
  100%{opacity:0;transform:translateY(-170px) scale(.5)}
}
@keyframes lift-flame{0%{transform:scaleY(0);opacity:.9}70%{transform:scaleY(.786);opacity:.7}100%{transform:scaleY(1);opacity:0}}
@keyframes lift-ring-out{to{opacity:0;transform:scale(1.25)}}
@keyframes lift-spark{0%{opacity:1;transform:rotate(var(--a,0deg)) translateY(0)}100%{opacity:0;transform:rotate(var(--a,0deg)) translateY(-90px)}}
@keyframes lift-word{to{opacity:1;transform:none}}
@keyframes lift-part-l{to{transform:translateX(-100%)}}
@keyframes lift-part-r{to{transform:translateX(100%)}}
@keyframes lift-veil{to{transform:translateY(-100%)}}
@keyframes auth-lambda-ignite{from{opacity:.12}to{opacity:1}}
@keyframes startup-wait{to{opacity:1}}
@keyframes startup-scan{from{transform:translateX(-40px)}to{transform:translateX(min(240px,50vw))}}
@keyframes startup-open{to{opacity:0}}
@keyframes startup-open-mark{to{transform:scale(1.08)}}
/* If the platform script never runs, the cover still steps aside. */
@keyframes startup-fallback{to{opacity:0;visibility:hidden}}
/* Reduced motion: the finished wordmark holds still until the platform is ready. */
@media (prefers-reduced-motion:reduce){
  #startup-wordmark .lift-ring,#startup-wordmark .lift-rocket,#startup-wordmark .lift-sparks,#startup-wordmark .lift-word>i{display:none}
  #startup-wordmark .lift-word{animation:none;opacity:1;transform:none}
  #startup-wordmark .auth-lambda,#startup-wordmark .startup-hold i{animation:none}
  #startup-wordmark.leaving{animation:none;opacity:0;visibility:hidden}
}
