/* A single light seed reveals the existing artwork; no letters are redrawn. */
body.intro-pending #header{visibility:hidden}
body.intro-pending:before{content:"";position:fixed;inset:0;background:#030912;z-index:999;pointer-events:none}
.has-fall[data-fall-intro="true"] #header{visibility:hidden;opacity:0;pointer-events:none}
.fall-spark,.fall-halo{position:absolute;left:50%;top:50%;pointer-events:none;opacity:0;z-index:3}
.fall-spark{width:6px;height:6px;border-radius:50%;background:#fffef4;box-shadow:0 0 9px 5px #fffde9,0 0 32px 12px #c7e4ffb3,0 0 75px 22px #9ecff738;transform:translate(-50%,-50%)}
.fall-halo{width:180px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fffdf2a6, #cfeaff38 12%,#92beeb0d 38%,transparent 68%);transform:translate(-50%,-50%)}
.has-fall[data-fall-intro="true"] .fall-spark{animation:light-seed 3.8s ease-in-out both}
.has-fall[data-fall-intro="true"] .fall-halo{animation:light-halo 3.8s ease-in-out both}
.has-fall[data-fall-intro="true"] .fall-brand>.quiet-mark{animation:light-to-mark 1.8s cubic-bezier(.16,1,.3,1) .5s both}
.has-fall[data-fall-intro="true"] .fall-brand>.brand-wordmark{animation:light-to-name 2s cubic-bezier(.16,1,.3,1) .65s both}
@keyframes light-seed{
 0%{opacity:1;transform:translate(-50%,-50%) scale(.6)}
 12%{opacity:1;transform:translate(-50%,-50%) scale(1)}
 33%{opacity:1;transform:translate(-50%,-50%) scale(1.6)}
 72%{opacity:.18;transform:translate(-50%,-50%) scale(.45)}
 100%{opacity:0;transform:translate(-50%,-50%) scale(.1)}
}
@keyframes light-halo{
 0%{opacity:0;transform:translate(-50%,-50%) scale(.15)}
 24%{opacity:.8;transform:translate(-50%,-50%) scale(.7)}
 55%{opacity:.35;transform:translate(-50%,-50%) scale(1.15)}
 100%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}
}
@keyframes light-to-mark{
 0%{opacity:0;transform:translateY(32px) scale(.08);filter:blur(6px)}
 35%{opacity:.65}
 100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
@keyframes light-to-name{
 0%{opacity:0;clip-path:inset(0 50% 0 50%);transform:translateY(-18px) scale(.35);filter:blur(5px)}
 30%{opacity:.8}
 100%{opacity:1;clip-path:inset(0);transform:translateY(0) scale(1);filter:blur(0)}
}
@media(prefers-reduced-motion:reduce){
 .has-fall[data-fall-intro="true"] .fall-spark,.has-fall[data-fall-intro="true"] .fall-halo{display:none;animation:none}
 .has-fall[data-fall-intro="true"] .fall-brand>.quiet-mark,.has-fall[data-fall-intro="true"] .fall-brand>.brand-wordmark{animation:none;opacity:1;transform:none;filter:none;clip-path:none}
}

/* The approved UN crop moves intact into the matching header artwork. */
.has-experience #header .quiet-mark,.fall-brand .quiet-mark{aspect-ratio:180/155}
.has-experience #header .quiet-mark img,.fall-brand .quiet-mark img{
 width:505.555556%;height:auto;aspect-ratio:910/380;left:-211.111111%;top:-21.935484%;filter:url(#logo-ink) invert(1)
}
.has-fall[data-fall-tone="dark"] #header .quiet-mark img{filter:url(#logo-ink)}
.fall-space{background:#030912 url(assets/uneleni-cosmos-v1.webp) center/cover}
.fall-stars{opacity:.3}
.has-fall .fall-brand{
 --intro-brand-width:clamp(220px,31vw,460px);--intro-mark-width:48px;--intro-gap:24px;
 position:fixed;
 top:calc(48svh + (var(--dock-top,60px) - 48svh) * var(--intro-dock,0));
 width:calc(var(--intro-brand-width) + (var(--dock-brand-width,236px) - var(--intro-brand-width)) * var(--intro-dock,0));
 gap:calc(var(--intro-gap) + (var(--dock-gap,10px) - var(--intro-gap)) * var(--intro-dock,0));
 opacity:calc(1 - var(--dock-handoff,0));
}
.has-fall .fall-brand>.quiet-mark{width:calc(var(--intro-mark-width) + (var(--dock-mark-width,35px) - var(--intro-mark-width)) * var(--intro-dock,0))}
.has-fall #header{opacity:var(--nav-reveal,0)}
.has-fall #header>.brand{opacity:var(--dock-handoff,0);animation:none}
.has-fall[data-fall-intro="true"] #header{visibility:hidden;opacity:0}
@media(max-width:760px){
 .has-fall .fall-brand{--intro-brand-width:min(68vw,310px);--intro-mark-width:36px;--intro-gap:20px}
}
@media(pointer:fine){
 .has-fall[data-fall-intro="true"],.has-fall[data-fall-intro="true"] *{cursor:url(assets/intro-cursor.svg) 4 4,default}
}
@media(prefers-reduced-motion:reduce){
 .has-fall .fall-brand{position:absolute;top:48%;width:var(--intro-brand-width);gap:var(--intro-gap);opacity:1}
 .has-fall .fall-brand>.quiet-mark{width:var(--intro-mark-width)}
 .has-fall #header{position:fixed}
}

/* Quiet independent drift continues while the visitor watches the opening. */
.fall-stars{animation:star-breathe 14s ease-in-out infinite alternate,space-dust-drift 32s ease-in-out infinite alternate}
@keyframes space-dust-drift{from{translate:0 0}to{translate:-1.2% 1%}}
@media(prefers-reduced-motion:reduce){.fall-stars{animation:none;translate:none}}

/* The opening contains the wordmark only. The header keeps its existing mark. */
#living-star-dust{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;opacity:.95;mix-blend-mode:screen}
.fall-space.dust-ready .fall-stars{display:none}
.has-fall .fall-brand{gap:0}
