.intro-body {
  background-color: #ffffff;
  color: #000000;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: var(--ff-body);
}

/* Full-Screen Viewport Container */
.intro-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: #ffffff;
}

/* Background Media Elements */
.intro-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Opacity is driven by GSAP (intro.js). A CSS transition here fights GSAP's
     per-frame inline updates and prevents crossfades from ever completing. */
  will-change: opacity, transform;
}

/* Still image is hidden initially behind the playing video */
.intro-still {
  opacity: 0;
  z-index: 1;
}

/* Ensure video is behind still image when it fades out */
#intro-video {
  z-index: 2;
}

/* Interactive UI Overlay (Bottom Centered & Always Visible) */
.intro-overlay {
  position: fixed;
  bottom: 8%; /* Positioned at the bottom center of screen */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* Always visible */
  pointer-events: all; /* Always interactive */
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  will-change: opacity, transform;
}

/* Minimalist Enter Text Link */
.enter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  outline: none;
  color: #000000;
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform var(--transition-fast);
}

/* Soft Hover State: Color changes to Lotus */
.enter-btn:hover {
  color: var(--lotus);
}

.enter-btn:active {
  transform: scale(0.97);
}

/* Transition flash/dark overlay for exit */
.intro-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--void);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  /* Opacity is animated by GSAP in intro.js. A CSS transition here throttles
     GSAP's inline updates so the flash never reaches full black on screen. */
}

.intro-flash.flash-active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Responsive Styling (Fullscreen Video, No Box) */
@media (max-width: 768px) {
  /* Viewport fills the whole screen edge-to-edge */
  .intro-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Use dynamic viewport height where supported so the video covers
       the screen even when mobile browser chrome shows/hides */
    height: 100dvh;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background-color: #ffffff;
  }

  /* Media fills the viewport, cropping the landscape edges and keeping
     the centered mandala/lotus in frame */
  .intro-media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transform: translate(-50%, -50%);
  }

  /* Keep the overlay pinned to the bottom of the screen, raised for safety */
  .intro-overlay {
    position: fixed;
    bottom: 10%;
    bottom: calc(8% + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
  }

  /* Enter link stays dark for readability over the white video background */
  #enter-btn {
    color: #000000 !important;
    font-size: 16px;
    letter-spacing: 0.02em;
    font-weight: 500;
    padding: 16px 32px; /* Enhanced touch target (min 48px height) */
  }

  #enter-btn:hover {
    color: var(--lotus) !important;
  }
}

