/* css/intro.css — Intro animation overlay + dashboard entrance */

/* === Overlay === */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050510;
  overflow: hidden;
  transition: opacity 600ms ease-out;
}

#intro-overlay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#intro-overlay svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#intro-overlay .intro-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#intro-overlay .intro-label {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 1.5px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  text-shadow: 0 0 12px currentColor;
}

#intro-overlay .intro-label.visible {
  opacity: 1;
  transform: translateY(0);
}

#intro-overlay .intro-address {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f18715;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  text-shadow: 0 0 24px rgba(241, 135, 21, 0.6), 0 0 48px rgba(241, 135, 21, 0.3);
}

#intro-overlay .intro-address.visible {
  opacity: 1;
}

#intro-overlay .intro-skip-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 6px 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 10;
}
#intro-overlay .intro-skip-btn.visible {
  opacity: 1;
}
#intro-overlay .intro-skip-btn:hover {
  color: #f2f4f6;
  border-color: rgba(255,255,255,0.3);
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  #intro-overlay { display: none !important; }
}

/* === Hide dashboard during intro === */
body.intro-playing .sidebar,
body.intro-playing .main-content,
body.intro-playing .year-bar,
body.intro-playing .live-strip,
body.intro-playing .hamburger,
body.intro-playing #sidebar-overlay {
  opacity: 0;
  pointer-events: none;
}

/* === Dashboard entrance animations === */
@keyframes introSlideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes introFadeInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes introFadeUp {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes introSlideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

body.intro-reveal .sidebar {
  animation: introSlideInLeft 300ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}
body.intro-reveal .year-bar {
  animation: introFadeInDown 400ms ease-out 150ms both;
}
body.intro-reveal .kpi-card {
  animation: introFadeUp 350ms ease-out both;
}
body.intro-reveal .kpi-card:nth-child(1) { animation-delay: 200ms; }
body.intro-reveal .kpi-card:nth-child(2) { animation-delay: 280ms; }
body.intro-reveal .kpi-card:nth-child(3) { animation-delay: 360ms; }
body.intro-reveal .kpi-card:nth-child(n+4) { animation-delay: 440ms; }
body.intro-reveal .live-strip {
  animation: introSlideInUp 500ms ease-out 400ms both;
}
body.intro-reveal .hamburger {
  animation: introFadeUp 300ms ease-out 200ms both;
}
