/* Charts X Cinematic Intro Styles */

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
}

#intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.intro-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&q=80&w=2070');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.1);
  animation: bg-pan 20s ease-in-out infinite alternate;
}

@keyframes bg-pan {
  from { transform: scale(1.1) translateX(-2%); }
  to { transform: scale(1.1) translateX(2%); }
}

.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 20;
  text-align: center;
}

/* Brand Reveal Sequence */
.intro-brand-box {
  opacity: 0;
  transform: scale(0.95);
  transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.intro-brand-box.reveal {
  opacity: 1;
  transform: scale(1);
}

.intro-logo-text {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

@media (max-width: 768px) {
  .intro-logo-text { font-size: 3rem; }
}

.intro-logo-text span {
  color: #F59E0B;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

/* Gold Sweep Effect */
.intro-logo-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #F59E0B;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 2s ease-in-out;
}

.intro-logo-text.sweep::after {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.intro-tagline {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: all 1.5s ease 1s;
}

.intro-tagline.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Particles & Waveform */
.intro-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: #F59E0B;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(1px);
}

/* Loader Styles */
.intro-loader-box {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.intro-loader-box.active {
  opacity: 1;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(245, 158, 11, 0.1);
  border-top: 2px solid #F59E0B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loader-notes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.orbiting-note {
  position: absolute;
  color: #F59E0B;
  font-size: 12px;
  animation: orbit 3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(30px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

.loader-text {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

/* Skip Button */
.intro-skip {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.intro-skip.visible {
  opacity: 1;
}

.intro-skip:hover {
  color: #fff;
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}
