/* ============================================================
   CINEMATIC INTRO — Styles
   ============================================================ */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999; /* Above everything */
  background-color: #0f0a05; /* Warm dark sunset backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: all;
}

/* Canvas styling to cover fullscreen like background-size: cover */
.intro-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  pointer-events: none;
}

/* Ambient overlay over the video to soften it and add golden hour warmth */
.intro-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(20, 12, 5, 0.15) 0%,
    rgba(15, 10, 5, 0.55) 70%,
    rgba(10, 6, 3, 0.85) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Centered content lockup */
.intro-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-logo-lockup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.intro-logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-sunset-warm);
  box-shadow: 
    0 0 30px rgba(232, 162, 101, 0.25),
    0 4px 20px rgba(0, 0, 0, 0.4);
  background: var(--color-cream);
  padding: 2px;
}

.intro-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.intro-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.intro-logo-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.intro-logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-sunset-warm);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   PAGE CO-ORDINATION STATE STYLES
   ============================================================ */

/* ── Active State (Intro is playing) ── */
body.intro-active {
  overflow: hidden !important;
}

/* Hide the main navbar & disable clicks */
body.intro-active #navbar {
  opacity: 0 !important;
  transform: translateY(-25px) !important;
  pointer-events: none !important;
}

/* Disable the default CSS keyframe animations for the hero elements */
body.intro-active .hero__eyebrow,
body.intro-active .hero__title,
body.intro-active .hero__subtitle,
body.intro-active .hero__actions {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(35px) !important;
}

/* ── Revealed State (Intro ends, page enters) ── */
body.intro-revealed #navbar {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Animate hero text upward with premium staggered ease */
body.intro-revealed .hero__eyebrow,
body.intro-revealed .hero__title,
body.intro-revealed .hero__subtitle,
body.intro-revealed .hero__actions {
  opacity: 0;
  transform: translateY(35px);
  animation: introSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.intro-revealed .hero__eyebrow { animation-delay: 0.15s; }
body.intro-revealed .hero__title    { animation-delay: 0.35s; }
body.intro-revealed .hero__subtitle { animation-delay: 0.55s; }
body.intro-revealed .hero__actions  { animation-delay: 0.75s; }

@keyframes introSlideUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
