/* Opening sequence (intro.js). html.intro is set by the inline script in index.html before first paint, so the page
   starts black instead of flashing the finished hero; the gutter stays reserved so nothing shifts when it unlocks. */
html.intro{scrollbar-gutter:stable;overflow:hidden;background:#000}
html.intro body::after{content:"";position:fixed;inset:0;z-index:98;background:#000}
html.intro-live body::after{content:none}
#intro{position:fixed;inset:0;z-index:98;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
/* The opening plays through before navigation and page content become interactive. */
html.intro :is(.site-header,main,.site-footer,.skip-link,.music-player,#play-invite){interactivity:inert}
html.intro .site-header{z-index:100}
html.intro .site-header :is(.brand-name,nav){opacity:1!important;pointer-events:none!important;translate:none!important}
.intro-black{position:absolute;inset:0;background:#000}
/* The shared link transition powers on the actual scene before its layers unfold. */
html.intro:not(.intro-warmed) :is(.site-header,#gear-cursor){visibility:hidden}

/* "Alter_" in the logo's face. intro.js measures it whole while it is still hidden, then places it centred just under
   the moon. From then on letters not typed yet (or backspaced) take no space, so the typed ones never slide and the
   cursor rides at the end of the word, blinking non-stop on the logo's beat (caret-blink, styles.css). */
.intro-word{position:absolute;left:0;top:0;margin:0;font-family:var(--mono);font-weight:900;line-height:1;white-space:pre;color:var(--text);text-shadow:0 0 22px #75eaf366,0 0 3px #75eaf399;transform-origin:0 0;visibility:hidden}
.intro-word.placed{visibility:visible}
.intro-word.placed>span:not(.on):not(.intro-cursor){display:none}
.intro-word>span.on{animation:intro-key .12s ease-out}
.intro-cursor{color:var(--cyan)}
.intro-word.placed>.intro-cursor{animation:caret-blink 1.06s steps(1,end) infinite}
@keyframes intro-key{from{opacity:.25;text-shadow:0 0 34px #75eaf3}}

/* The A's glitch: the letter jitters while pink and cyan copies tear across it in slices. */
.intro-word.glitch-word{animation:intro-shake var(--intro-glitch-duration,.4s) steps(1,end)}
.intro-word>span.glitching{position:relative;display:inline-block;text-shadow:.075em 0 #ee61c6dd,-.075em 0 #75eaf3dd;animation:intro-glitch var(--intro-glitch-duration,.4s) steps(1,end) both}
.intro-word>span.glitching::before,.intro-word>span.glitching::after{content:attr(data-char);position:absolute;left:0;top:0;pointer-events:none;text-shadow:none}
.intro-word>span.glitching::before{color:var(--pink);animation:intro-tear var(--intro-glitch-duration,.4s) steps(1,end) both}
.intro-word>span.glitching::after{color:var(--cyan);animation:intro-tear var(--intro-glitch-duration,.4s) steps(1,end) reverse both}
@keyframes intro-shake{0%,40%,80%{translate:0 0}20%{translate:-.02em 0}60%{translate:.02em .01em}}
@keyframes intro-glitch{0%{transform:translateX(-.06em) skewX(-18deg)}12%{transform:translate(.075em,.025em);opacity:.6}24%{transform:translateX(-.025em);opacity:.3}36%{transform:translate(-.085em,-.025em) skewX(14deg);opacity:1}50%{transform:translateX(.045em)}64%{transform:scaleY(1.16)}78%{transform:translate(-.035em,.015em) skewX(-9deg)}90%,100%{transform:none;opacity:1}}
@keyframes intro-tear{0%{transform:translateX(-.105em);clip-path:inset(10% 0 55% 0)}20%{transform:translate(.09em,.025em);clip-path:inset(60% 0 5% 0)}40%{transform:translateX(-.05em);clip-path:inset(35% 0 35% 0)}60%{transform:translate(.12em,-.025em);clip-path:inset(0 0 70% 0)}80%{transform:translate(-.075em,.015em);clip-path:inset(72% 0 0 0)}100%{transform:none;clip-path:inset(50% 0 50% 0)}}

/* What waits for the logo: the header, the hero copy and the radio. The logo itself appears in one frame, exactly
   where the gliding word lands, then settles its glow; its underscore just keeps blinking (styles.css). */
html.intro .brand-mark,html.intro .brand-name,html.intro .site-header nav,html.intro .hero-copy>*,html.intro .hero-copy::before,html.intro .hero-bottom,html.intro .music-player{opacity:0;pointer-events:none}
html.intro .brand-name{translate:-10px 0}
html.intro .site-header nav{translate:0 -10px}
html.intro .hero-copy>*{translate:0 18px}
html.intro .hero-bottom{translate:0 12px}
html.intro-end .brand-name,html.intro-end .site-header nav,html.intro-end .hero-copy>*,html.intro-end .hero-copy::before,html.intro-end .hero-bottom,html.intro-end .music-player{transition:opacity .8s ease,translate .9s cubic-bezier(.2,.7,.2,1)}
html.intro-end .brand-name{transition-delay:.15s}
html.intro-end .site-header nav{transition-delay:.3s}
html.intro-end .hero-copy::before,html.intro-end .hero-copy>:nth-child(1){transition-delay:.25s}
html.intro-end .hero-copy>:nth-child(2){transition-delay:.35s}
html.intro-end .hero-copy>:nth-child(3){transition-delay:.45s}
html.intro-end .hero-copy>:nth-child(4){transition-delay:.55s}
html.intro-end .hero-copy>:nth-child(5){transition-delay:.65s}
html.intro-end .hero-bottom{transition-delay:.8s}
html.intro-end .music-player{transition-delay:.9s}
.brand-mark.intro-merged{animation:intro-merge .9s ease-out}
@keyframes intro-merge{from{text-shadow:0 0 .35em #75eaf3aa}to{text-shadow:0 0 0 #75eaf300}}
