/* eDEX-inspired log → identity → actual homepage. No duplicate interface. */
html{scrollbar-gutter:stable}html[data-intro]{scroll-behavior:auto}
#boot{background:#05090d;backdrop-filter:none;display:block;color:var(--ice);isolation:isolate;overflow:hidden;transition:background-color .4s}
#boot:before{content:'';position:absolute;inset:0;background-image:linear-gradient(#afe5ef10 1px,transparent 1px),linear-gradient(90deg,#afe5ef10 1px,transparent 1px);background-size:60px 60px;opacity:0;transition:opacity .4s;z-index:-1}
#boot:not([data-phase=log]):before{opacity:1}
.boot-toolbar,.boot-footer{position:absolute;left:3%;right:3%;display:flex;align-items:center;justify-content:space-between;gap:15px;font:9px/1.7 var(--mono);letter-spacing:.12em;z-index:5}
.boot-toolbar{top:25px}.boot-toolbar #skip-boot{padding:8px 12px;border:1px solid #afe5ef50;font:10px var(--mono);background:#091119}.boot-footer{bottom:20px;color:#89a1ac;font-size:8px}
.boot-console{position:absolute;left:3%;right:3%;bottom:70px;max-height:calc(100% - 155px);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}
#boot-output{font:clamp(9px,1.2vh,13px)/1.55 var(--mono);margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#b1ceda;flex-shrink:0}.boot-cursor{font:12px var(--mono);line-height:1;flex-shrink:0}
#boot:not([data-phase=log]) .boot-console{display:none}
.boot-identity{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px;opacity:0;pointer-events:none}
.boot-kicker,.boot-subtitle{font:9px var(--mono);letter-spacing:.28em;color:#9bb8c5;text-align:center}
#boot .boot-identity h2{position:relative;margin:0;font:600 clamp(40px,8vw,125px)/1.15 var(--display);letter-spacing:.03em;border:2px solid transparent;border-bottom-color:var(--ice);padding:12px 22px;color:var(--ice);transition:background-color .25s,color .25s,border-color .25s}
#boot[data-phase=title] .boot-identity,#boot[data-phase=fill] .boot-identity,#boot[data-phase=frame] .boot-identity,#boot[data-phase=split] .boot-identity,#boot[data-phase=resolve] .boot-identity{opacity:1}
#boot[data-phase=title] .boot-identity{animation:identity-enter .3s ease-out both}
#boot[data-phase=fill] .boot-identity h2{background:var(--ice);color:#05090d}
#boot[data-phase=frame] .boot-identity h2,#boot[data-phase=resolve] .boot-identity h2{border-color:var(--ice)}
#boot .boot-identity h2:before,#boot .boot-identity h2:after{content:attr(data-title);position:absolute;inset:12px 22px;color:var(--ice);opacity:0;pointer-events:none}
#boot[data-phase=split] .boot-identity h2{color:transparent;border-color:transparent;transition:none}
#boot[data-phase=split] .boot-identity h2:before{opacity:.9;clip-path:inset(0 0 54% 0);animation:split-top .55s ease-out both}
#boot[data-phase=split] .boot-identity h2:after{opacity:.8;clip-path:inset(46% 0 0 0);animation:split-bottom .55s ease-out both}
/* The overlay becomes transparent while the existing page elements assemble.
   It retains only the skip control until animation completes; no cloned DOM. */
#boot:is([data-phase=shell],[data-phase=handoff]){background:transparent;pointer-events:none}
#boot:is([data-phase=shell],[data-phase=handoff]):before{opacity:0}
#boot:is([data-phase=shell],[data-phase=handoff]) .boot-identity,#boot:is([data-phase=shell],[data-phase=handoff]) .boot-footer,#boot:is([data-phase=shell],[data-phase=handoff]) .boot-toolbar>span{display:none}
#boot:is([data-phase=shell],[data-phase=handoff]) .boot-toolbar{top:auto;bottom:64px;justify-content:flex-end}
#boot:is([data-phase=shell],[data-phase=handoff]) #skip-boot{pointer-events:auto}
/* Animate opacity/clip-path only: finished positions match the resting layout. */
html[data-intro=preparing] :is(.header,.hero-top,.hero-copy>.eyebrow,#hero-title,.hero-copy>.intro,.hero-actions,.system-art,.hero-bottom){opacity:0}
html[data-intro=assembling] .header{animation:home-panel .55s .1s both}
html[data-intro=assembling] .hero-top{animation:home-panel .5s .25s both}
html[data-intro=assembling] .hero-copy>.eyebrow{animation:home-panel .5s .4s both}
html[data-intro=assembling] #hero-title{animation:home-panel .8s .5s both}
html[data-intro=assembling] .hero-copy>.intro{animation:home-panel .6s .95s both}
html[data-intro=assembling] .hero-actions{animation:home-panel .6s 1.2s both}
html[data-intro=assembling] .system-art{animation:home-orbit 1.3s .35s both}
html[data-intro=assembling] .hero-bottom{animation:home-panel .6s 1.45s both}
@keyframes home-panel{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0)}}
/* Preserve the orbital art's existing responsive opacity (do not force 1). */
@keyframes home-orbit{from{clip-path:inset(50%)}to{clip-path:inset(0)}}
@keyframes identity-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes split-top{0%{transform:translateX(0)}35%{transform:translateX(-18px)}100%{transform:translateX(-4px)}}
@keyframes split-bottom{0%{transform:translateX(0)}35%{transform:translateX(14px)}100%{transform:translateX(4px)}}
@media(max-width:680px){.boot-toolbar{top:16px;font-size:7px}.boot-footer{font-size:6px;letter-spacing:.03em}.boot-kicker,.boot-subtitle{font-size:7px;letter-spacing:.1em}#boot .boot-identity h2{padding:10px;font-size:clamp(28px,8.3vw,56px)}#boot .boot-identity h2:before,#boot .boot-identity h2:after{inset:10px}#boot:is([data-phase=shell],[data-phase=handoff]) .boot-toolbar{bottom:20px}}
@media(prefers-reduced-motion:reduce){#boot{display:none}}
