/* ============================================================
   INTRO.CSS — Cinematic intro sequence styles
   ============================================================ */

/* ---- Overlay ---- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  overflow: hidden;
}

/* ---- Film grain canvas — REMOVED (no glitch effect) ---- */

/* ---- Dust — REMOVED ---- */

/* ---- Light leaks — REMOVED ---- */


/* ---- Mantra screen ---- */
.mantra-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.mantra-text {
  font-family: 'Cormorant Garamond', 'Noto Serif Devanagari', Georgia, serif;
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.12em;
  opacity: 0;
  text-shadow:
    0 0 40px rgba(255,248,220,0.7),
    0 0 80px rgba(255,240,180,0.3);
}

/* ---- Projector beam ---- */
.projector-beam {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 0;
  height: 0;
  border-left: 0px solid transparent;
  border-right: 0px solid transparent;
  border-bottom: 800px solid rgba(255,248,200,0.025);
  pointer-events: none;
  z-index: 3;
  filter: blur(20px);
  opacity: 0;
  transform-origin: top center;
}

/* ---- Film strip container ---- */
.filmstrip-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
  opacity: 0;
}

/* ---- Film strip ---- */
.filmstrip {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  /* will be translated via GSAP */
}

/* Film hole rows */
.film-holes {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 6px 12px;
  background: #000;
  align-items: center;
  height: 24px;
}
.film-hole {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Film frames row */
.film-frames {
  display: flex;
  flex-direction: row;
  gap: 3px;
  background: #111;
  padding: 3px;
  height: clamp(140px, 22vw, 280px);
}

/* Individual film frame */
.film-frame {
  flex-shrink: 0;
  width: clamp(120px, 18vw, 220px);
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
}
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(6px) brightness(0.55) saturate(0.7);
  transition: filter 0.6s ease;
}
.film-frame.active img {
  filter: blur(0) brightness(1.1) saturate(1.1);
}
/* Frame count marker */
.film-frame::after {
  content: attr(data-num);
  position: absolute;
  bottom: 6px; left: 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}
/* Scratches on film */
.film-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0%,
      transparent 97%,
      rgba(255,255,255,0.04) 97%,
      rgba(255,255,255,0.04) 98%,
      transparent 98%
    );
  pointer-events: none;
  z-index: 1;
}

/* ---- Spotlight ---- */
.spotlight {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,248,220,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 6;
  filter: blur(30px);
  opacity: 0;
}

/* ---- Zoom frame ---- */
.zoom-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
.zoom-image-wrap {
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 80px rgba(255,248,200,0.1),
    0 0 160px rgba(255,240,180,0.04);
}
.zoom-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.1);
}

/* ---- Skip intro button ---- */
.skip-intro-btn {
  position: absolute;
  bottom: 32px; right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.55);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(8px);
}
.skip-intro-btn.visible {
  pointer-events: auto;
}
.skip-intro-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.24);
}
.skip-intro-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ---- Reveal wipe ---- */
#intro-wipe {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: #000;
  transform: scaleY(1);
  transform-origin: top;
}
