/* intro.css: the SHOWTIME! signal-boot intro on the home page (assets/js/intro.js).
   html.stw-intro is set by a tiny script in the page's head ONLY on a visitor's first home-page visit of the session, and it paints a black cover from the very
   first frame, so the page never flashes before the intro. If anything fails, a timer in that script removes the cover (the visitor is never stuck). */
html.stw-intro, html.stw-intro body { overflow: hidden; }
html.stw-intro::before { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: #030204; }

.si { position: fixed; inset: 0; z-index: 2147483001; background: #030204; color: #fff; overflow: hidden; opacity: 1; transition: opacity .42s ease; font-family: Oswald, 'Arial Narrow', Impact, sans-serif; -webkit-tap-highlight-color: transparent; }
.si.out { opacity: 0; pointer-events: none; }
.si.quick { transition-duration: .22s; }
.si-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 52% at 50% 46%, rgba(120, 18, 92, .32), rgba(3, 2, 4, 0) 70%), radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .85)); opacity: 0; transition: opacity .6s ease .1s; }
.si.go .si-bg { opacity: 1; }
/* the broadcast texture: scanlines, film grain, and a slow roll bar */
.si-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .32) 0, rgba(0, 0, 0, .32) 1px, transparent 1px, transparent 3px); opacity: .55; }
.si-noise { position: absolute; inset: -60px; pointer-events: none; background: url('/assets/brand/intro/noise.png') 0 0 / 120px 120px; opacity: .05; mix-blend-mode: screen; animation: siNoise .42s steps(1, end) infinite; }
.si-roll { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; background: linear-gradient(180deg, rgba(255, 47, 175, 0), rgba(255, 47, 175, .09) 55%, rgba(255, 255, 255, .06) 92%, rgba(255, 47, 175, 0)); }
.si.go .si-roll { animation: siRoll 1.15s linear .08s 2 both; }
@keyframes siNoise { 0% { transform: translate(0, 0); } 20% { transform: translate(-37px, 21px); } 40% { transform: translate(29px, -44px); } 60% { transform: translate(-12px, 38px); } 80% { transform: translate(41px, 9px); } }
@keyframes siRoll { 0% { top: -30%; } 100% { top: 105%; } }

.si-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 3.4vh, 34px); padding: 0 6vw; }
.si-logo { position: relative; width: min(clamp(240px, 40vw, 540px), calc(50vh * 1.5033)); aspect-ratio: 1374 / 914; transition: filter .55s ease, transform .5s ease; }
.si.out .si-logo { transform: scale(1.06); filter: blur(2px) brightness(1.4); transition: transform .42s ease, filter .42s ease; }
/* each stripe of the logo is its own piece of the sheet; it wipes in from alternating sides with a hot flash, then settles */
.si .p { position: absolute; background-image: url('/assets/brand/intro/atlas.webp?v=1'); background-repeat: no-repeat; opacity: 0; backface-visibility: hidden; }
.si.go .p { animation: siPiece .32s cubic-bezier(.16, .7, .24, 1) var(--d) both; will-change: transform, opacity; }
.si.go .p.b { animation-name: siBang; animation-duration: .3s; }
.si.go .p.dot { animation-name: siBang; }
@keyframes siPiece {
  0%   { opacity: 0; clip-path: inset(0 var(--c0) 0 var(--c1)); transform: translate3d(calc(var(--fx) * 7%), 0, 0); filter: brightness(2.6) saturate(1.4); }
  28%  { opacity: 1; }
  60%  { filter: brightness(1.7) saturate(1.2); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: none; }
}
@keyframes siBang {
  0%   { opacity: 0; transform: translate3d(0, -4%, 0) scale(1.1); filter: brightness(3) saturate(1.5); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: none; }
}
/* the signal locks: a flicker, then the glow comes up vivid pink with white highlights */
.si.live .si-logo { filter: drop-shadow(0 0 12px rgba(255, 47, 175, .85)) drop-shadow(0 0 42px rgba(255, 47, 175, .5)) drop-shadow(0 0 90px rgba(190, 20, 140, .35)) brightness(1.16) saturate(1.1); animation: siFlicker .46s linear both; }
@keyframes siFlicker { 0% { opacity: 1; } 8% { opacity: .62; } 15% { opacity: 1; } 27% { opacity: .78; } 33% { opacity: 1; } 48% { opacity: .9; } 56% { opacity: 1; } 100% { opacity: 1; } }
.si-stage::after { content: ""; position: absolute; left: 50%; top: 46%; width: min(120vw, 1100px); height: min(80vh, 640px); transform: translate(-50%, -50%) scale(.6); background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 70, 190, .28) 38%, rgba(255, 47, 175, 0) 72%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.si.live .si-stage::after { animation: siBurst .7s ease-out both; }
@keyframes siBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); } 22% { opacity: .85; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }

.si-line { margin: 0; display: flex; align-items: center; gap: 12px; font: 500 clamp(11px, 1.55vw, 17px)/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .5em; color: #ffd7f1; text-transform: uppercase; opacity: 0; text-shadow: 0 0 14px rgba(255, 47, 175, .7); white-space: nowrap; }
.si-line i { width: 8px; height: 8px; border-radius: 50%; background: #ff2faf; box-shadow: 0 0 12px #ff2faf; flex: 0 0 auto; }
.si.live .si-line { animation: siLine .55s cubic-bezier(.2, .8, .2, 1) .08s both; }
.si.live .si-line i { animation: siDot .9s ease-in-out infinite; }
@keyframes siLine { 0% { opacity: 0; letter-spacing: .85em; filter: blur(3px); } 100% { opacity: 1; letter-spacing: .5em; filter: none; } }
@keyframes siDot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.si-skip { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 3; font: 500 11px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #b79aae; background: rgba(8, 4, 8, .55); border: 1px solid #3c2a38; padding: 10px 14px; cursor: pointer; opacity: 0; transition: opacity .4s ease .35s, color .2s, border-color .2s; }
.si.go .si-skip { opacity: .72; }
.si-skip:hover, .si-skip:focus-visible { opacity: 1; color: #fff; border-color: #ff2faf; }
.si-skip:focus-visible { outline: 2px solid #ff2faf; outline-offset: 3px; }
.si-skip b { font-weight: 500; margin-left: 4px; }

@media (max-width: 520px) { .si-line { letter-spacing: .34em; gap: 9px; } @keyframes siLine { 0% { opacity: 0; letter-spacing: .6em; filter: blur(3px); } 100% { opacity: 1; letter-spacing: .34em; filter: none; } } }
@media (prefers-reduced-motion: reduce) { html.stw-intro::before, .si { display: none !important; } html.stw-intro, html.stw-intro body { overflow: auto; } }
