/* ═══════════════════════════════════════════════════
   NSS TSEC — Cinematic First-Load Intro Overlay
   Only shown once per browser session, homepage only
   ═══════════════════════════════════════════════════ */

#nss-intro {
  position: fixed;
  inset: 0;
  z-index: 100000; /* Above preloader (99999) */
  background: linear-gradient(145deg, #08081a 0%, #0f0f2e 50%, #1a0a12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
}

/* Subtle cinematic vignette */
#nss-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* ── Decorative horizontal line ── */
.intro-line-decor {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: width 0.8s ease 0.5s;
  z-index: 1;
}

#nss-intro.text-visible .intro-line-decor {
  width: 300px;
}

/* ── Logo ── */
.intro-logo-wrap {
  position: relative;
  z-index: 2;
  will-change: transform, filter;
  flex-shrink: 0;
}

.intro-logo {
  width: 160px;
  height: 160px;
  /* Clip black square corners — keep only the circle */
  clip-path: circle(50% at 50% 50%);
  display: block;
  will-change: transform, filter;
}

/* ── Text block ── */
.intro-text-block {
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#nss-intro.text-visible .intro-text-block {
  opacity: 1;
  transform: translateY(0);
}

.intro-line1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  min-height: 1.3em;
  line-height: 1;
}

.intro-line2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.65em;
  text-transform: uppercase;
  margin-top: 14px;
  min-height: 1.4em;
  line-height: 1;
}

/* ── Blinking cursor ── */
.intro-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: rgba(255, 255, 255, 0.8);
  margin-left: 2px;
  vertical-align: middle;
  animation: intro-blink 0.75s step-end infinite;
}

@keyframes intro-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Exit: curtain slides up ── */
#nss-intro.exit {
  transform: translateY(-100vh);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Reduced motion: skip entirely ── */
@media (prefers-reduced-motion: reduce) {
  #nss-intro {
    display: none !important;
  }
}
