/* Intro — plays once per browser session before the Command Center. ?intro=1 replays it. */
.intro { position: fixed; inset: 0; z-index: 60; background: var(--navy-900, #0A1322); color: #f4f6fb; overflow: hidden; font-family: var(--sans); cursor: default; }
.intro.out { pointer-events: none; }

/* Video sits behind a shutter that opens from a thin horizontal slit */
.in-stage { position: absolute; inset: 0; clip-path: inset(50% 0 50% 0); transition: clip-path 1.4s cubic-bezier(.77,0,.18,1); }
.intro.open .in-stage { clip-path: inset(0 0 0 0); }
.intro.closing .in-stage { clip-path: inset(50% 0 50% 0); transition-duration: .9s; }
.in-stage video, .in-stage .in-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 2.6s cubic-bezier(.16,1,.3,1), filter 1.2s; filter: saturate(.55) contrast(1.08) brightness(.72); }
.intro.open .in-stage video { transform: scale(1.02); }
.intro.closing .in-stage video { transform: scale(1.35); filter: saturate(.2) brightness(1.4); transition-duration: .9s; }
.in-poster { background: center / cover no-repeat; }
.in-grade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,19,34,.82) 0%, rgba(10,19,34,.35) 55%, rgba(10,19,34,.2) 100%),
    linear-gradient(0deg, rgba(10,19,34,.80) 0%, rgba(10,19,34,0) 50%); }
.in-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); opacity: .5; }

/* Slit line that draws across before the shutter opens */
.in-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #3D7FCB; box-shadow: 0 0 12px #8CB6E8, 0 0 30px rgba(140,182,232,.6); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.77,0,.18,1), opacity .4s .9s; }
.intro.ready .in-line { transform: scaleX(1); }
.intro.open .in-line { opacity: 0; }
.intro.closing .in-line { opacity: 1; transform: scaleX(1); transition: opacity .1s .75s; }

/* Preloader counter */
.in-load { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 5vh, 52px); display: flex; align-items: baseline; gap: 16px; transition: opacity .5s, transform .6s cubic-bezier(.77,0,.18,1); }
.in-count { font: 400 clamp(54px, 11vw, 150px)/.8 var(--title); letter-spacing: -.02em; color: #f4f6fb; }
.in-count small { font-size: .28em; color: #8CB6E8; margin-left: .15em; vertical-align: top; }
.in-status { font: 600 10px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.intro.ready .in-load { opacity: 0; transform: translateY(-30px); }

/* HUD corners */
.in-hud { position: absolute; font: 600 10px/1.6 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(244,246,251,.7); opacity: 0; transition: opacity .8s .9s; }
.intro.open .in-hud { opacity: 1; }
.intro.closing .in-hud { opacity: 0; transition: opacity .25s; }
.in-hud.tl { top: clamp(18px, 4vh, 40px); left: clamp(20px, 4vw, 56px); }
.in-hud.tr { top: clamp(18px, 4vh, 40px); right: clamp(20px, 4vw, 56px); text-align: right; }
.in-hud.bl { bottom: clamp(18px, 4vh, 40px); left: clamp(20px, 4vw, 56px); }
.in-hud b { color: #8CB6E8; font-weight: 600; }
.in-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--done); box-shadow: 0 0 8px var(--done); margin-right: 8px; vertical-align: 1px; animation: blink 1.2s infinite; }
.in-tick { position: absolute; width: 18px; height: 18px; border-color: #3D7FCB; border-style: solid; opacity: 0; transition: opacity .6s 1.1s; }
.intro.open .in-tick { opacity: 1; } .intro.closing .in-tick { opacity: 0; transition: opacity .2s; }
.in-tick.a { top: 12px; left: 12px; border-width: 1px 0 0 1px; } .in-tick.b { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.in-tick.c { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; } .in-tick.d { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* Brand group (option 2a): logo lockup, then a ruled footer row with the slogan and Enter. Anchored bottom-left.
   Spec at 1920 wide: left 112px, bottom 112px, right 80px, logo 420px wide, gap 32px. Scales with vw. */
.in-brand { position: absolute; left: 5.83vw; right: 4.17vw; bottom: 5.83vw; display: flex; flex-direction: column; gap: clamp(18px, 1.67vw, 40px);
  opacity: 0; transform: translateY(28px); transition: opacity 1s .55s, transform 1.1s .55s cubic-bezier(.16,1,.3,1); }
.intro.open .in-brand { opacity: 1; transform: none; }
.intro.closing .in-brand { opacity: 0; transform: translateY(-20px); transition: opacity .4s, transform .6s cubic-bezier(.77,0,.18,1); }
.in-logo { margin: 0; }
.in-logo img { display: block; width: clamp(220px, 21.875vw, 560px); height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,.35)); }
.in-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: clamp(16px, 1.46vw, 36px); border-top: 2px solid rgba(140,182,232,.35); }
.in-tag { margin: 0; white-space: nowrap; font: 400 clamp(16px, 1.5625vw, 40px)/1.2 var(--sans); letter-spacing: .04em; color: #FFFFFF; }
.in-tag em { font-style: normal; color: #8CB6E8; }

/* Enter button: 60px pill at 1920 wide */
.in-enter { flex: none; display: flex; align-items: center; gap: clamp(14px, 1.04vw, 26px); height: clamp(48px, 3.125vw, 76px); padding: 6px 6px 6px clamp(20px, 1.46vw, 36px); border-radius: 999px; border: 2px solid #3D7FCB; background: rgba(10,19,34,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 700 clamp(14px, .9375vw, 22px) var(--sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: border-color .25s; }
.in-enter i { height: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #3D7FCB; color: #fff; transition: transform .4s cubic-bezier(.16,1,.3,1), background .25s; }
.in-enter i svg { width: 42%; height: 42%; }
.in-enter:hover { border-color: #5A95D6; }
.in-enter:hover i { background: #5A95D6; transform: translateX(3px); }
.in-enter:focus-visible { outline: 2px solid #8CB6E8; outline-offset: 3px; }

.in-skip { position: absolute; top: clamp(14px, 3.4vh, 34px); left: 50%; transform: translateX(-50%); border: 0; background: none; color: rgba(244,246,251,.55); font: 600 10px var(--sans); letter-spacing: .3em; text-transform: uppercase; cursor: pointer; padding: 6px 10px; }
.in-skip:hover { color: #fff; }
.intro.closing .in-skip { opacity: 0; }

/* Final fade so the sign-in / floor shows through */
.intro.gone { opacity: 0; transition: opacity .5s; }

@media (max-width: 900px) {
  .in-brand { left: 20px; right: 20px; bottom: clamp(24px, 6vh, 48px); }
  .in-logo img { width: min(70vw, 420px); }
  .in-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .in-tag { white-space: normal; font-size: clamp(16px, 4.4vw, 24px); }
}
@media (max-width: 640px) {
  .in-hud.tr, .in-tick { display: none; }
  .in-skip { left: auto; right: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro *, .intro { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}
