/* The intro overlay. Shown only when the head script has put intro-on on <html>. */
.intro { display: none; }
html.intro-on .intro, html.intro-open .intro { display: grid; position: fixed; inset: 0; z-index: 300; place-items: center; background: var(--bg); }
html.intro-on { overflow: hidden; }
/* the page's own entrance waits behind the overlay */
html.intro-on .hero h1 span, html.intro-on .hero p, html.intro-on .hero .cta, html.intro-on .console { animation-play-state: paused; }

.intro-stack { display: grid; justify-items: center; gap: 46px; }
.intro-line { font: 400 clamp(18px, 2.6vw, 30px) var(--mono); color: #b8c4d2; letter-spacing: 0; white-space: nowrap; min-height: 1.4em; }
.intro-line span { display: inline-block; opacity: 0; }
.intro-line span.on { opacity: 1; }
.intro-line span.burn { color: var(--ember); opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)); filter: blur(3px); transition: transform .75s cubic-bezier(.2, .7, .2, 1), opacity .75s ease, color .18s, filter .75s; transition-delay: calc(var(--i) * 12ms); }
.intro-ember { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #ffc061 0%, #ff5a1f 45%, #a81200 100%); opacity: 0; transform: scale(.2); transition: opacity .5s ease, transform .6s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 60px 14px rgba(255, 90, 31, .45); }
.intro-ember.on { opacity: 1; transform: scale(1); animation: intro-pulse 1.1s ease-in-out infinite; }
.intro-ember.rise { transform: translateY(-64px) scale(1.5); transition: transform .55s cubic-bezier(.5, 0, .2, 1), opacity .3s; animation: none; }
@keyframes intro-pulse { 50% { box-shadow: 0 0 90px 24px rgba(255, 110, 40, .6); } }
/* the burning edge of the opening */
html.intro-open .intro::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 150, 70, .9), 0 0 60px 10px rgba(255, 90, 31, .55); pointer-events: none; }

/* What the shop is, said in the headline's own type once the refusal has burned away: the lines sit where
   the refusal was, each rising in under the last, and the ember waits beneath them. */
.intro-stack { position: relative; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.intro.said .intro-stack { transform: translateY(clamp(48px, 9vw, 124px)); }
.intro-say { position: absolute; left: 50%; bottom: calc(22px + 46px); transform: translateX(-50%); display: grid; justify-items: center; gap: clamp(4px, .8vw, 10px); width: max-content; max-width: 92vw; pointer-events: none; }
.intro-say > * { font: 700 clamp(30px, 6vw, 84px)/1 var(--display, var(--sans)); letter-spacing: -.05em; color: #f4f0ea; white-space: nowrap; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
.intro-say > *.on { opacity: 1; transform: none; filter: none; }
.intro.said .intro-ember { transform: translateY(18px) scale(1.15); transition: transform .6s cubic-bezier(.5, 0, .2, 1), opacity .3s; }
.intro.leaving .intro-say > * { opacity: 0; transform: scale(1.06); filter: blur(4px); transition: opacity .35s ease, transform .5s ease, filter .35s ease; }
@media (max-width: 560px) { .intro-say > * { font-size: clamp(26px, 8.4vw, 40px); } }
