/* ─── INTRO OVERLAY ─── */
#intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #020304;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

#intro-overlay.intro-exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-terminal {
  width: min(720px, 92vw);
  position: relative;
  font-family: 'DM Mono', 'Courier New', monospace;
}

/* CRT scanline */
.intro-scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  animation: scanmove 8s linear infinite;
}
@keyframes scanmove {
  from { background-position: 0 0; }
  to   { background-position: 0 100vh; }
}

.intro-content { position: relative; z-index: 2; }

.intro-top-bar {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; color: #3a4a3a;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #1a2a1a;
  padding-bottom: 0.5rem; margin-bottom: 1.5rem;
}

.intro-lines {
  display: flex; flex-direction: column; gap: 0.35rem;
  min-height: 180px;
  transition: opacity 0.4s;
}

.intro-line {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: #4a7a4a;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: pre;
}

.intro-line:first-child { color: #7aaa6a; }

.line-systems {
  color: #8aaa5a;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin-top: 0.5rem;
}

.line-systems.systems-highlight {
  color: #c8ff00;
  text-shadow: 0 0 20px rgba(200,255,0,0.6), 0 0 40px rgba(200,255,0,0.3);
  animation: flicker 0.3s ease;
}
@keyframes flicker {
  0%   { opacity: 1; }
  20%  { opacity: 0.3; }
  40%  { opacity: 1; }
  60%  { opacity: 0.6; }
  80%  { opacity: 1; }
  100% { opacity: 1; }
}

.intro-cursor {
  display: inline-block;
  color: #c8ff00;
  animation: blink-cur 0.8s step-end infinite;
  margin-left: 1px;
}
@keyframes blink-cur { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── LOGO REVEAL ─── */
.intro-logo-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.01s;
  flex-direction: column; gap: 0;
  line-height: 1;
}

.intro-logo-wrap.logo-visible {
  opacity: 1;
}

.intro-logo-new {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 11rem);
  color: #c8ff00;
  letter-spacing: -0.04em;
  line-height: 0.9;
  /* starts invisible and crashes in */
  transform: translateY(-60px) scaleY(1.3);
  opacity: 0;
  transition: none;
}

.intro-logo-wrap.logo-visible .intro-logo-new {
  animation: crash-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.intro-logo-systems {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 5.5vw, 4rem);
  color: #e8ecf4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: translateY(20px);
  opacity: 0;
  transition: none;
}

.intro-logo-wrap.logo-visible .intro-logo-systems {
  animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

@keyframes crash-in {
  from { transform: translateY(-60px) scaleY(1.3); opacity: 0; }
  to   { transform: translateY(0) scaleY(1); opacity: 1; }
}

@keyframes rise-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
