/**
 * Premium Minimal Liquid-Fill Logo Splash Screen
 * Ruby Event Center Luxury Intro & Continuous Vertical Slider
 */
:root {
  --splash-bg: #f7f3eb; /* Rich Warm Luxury Cream / Ivory Tone */
  --splash-logo-width: clamp(150px, 26vw, 260px);
  --liquid-color: #d90429; /* Vibrant Pure Ruby Red */
  --liquid-color-mid: #ad001a;
  --liquid-color-deep: #730010;
  --splash-outline-opacity: 0.15;
  --splash-duration: 2.8s; /* Longer, smoother liquid fill rise */
  --splash-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --slider-ease: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Lock body scrolling while splash intro is active */
body.splash-active {
  overflow: hidden !important;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
}

/* Header initial slide-up hidden state while splash screen is active */
body.splash-active #site-header {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Header top-to-bottom slide-down entrance animation when homepage slides in */
#site-header {
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease-out, background-color 0.3s, py 0.3s !important;
  will-change: transform, opacity;
}

body:not(.splash-active) #site-header {
  transform: translateY(0%) !important;
  opacity: 1 !important;
}

/* Page Slider Container - Consecutive Vertical Slider Track */
.page-slider {
  position: relative;
  width: 100%;
  transform: translateY(0);
  transition: transform 1.1s var(--slider-ease);
  will-change: transform;
}

/* Slide 1: Fullscreen Luxury Splash Section */
.splash-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--splash-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

/* Slide 2: Homepage Section */
.homepage-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* When splash animation completes: Move entire page slider track upward by 100vh */
.page-slider.slide-up {
  transform: translateY(-100vh);
  transform: translateY(-100dvh);
}

/* Once slider transition completes and splash is unmounted: Restore native flow */
.page-slider.slider-unmounted {
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

.page-slider.slider-unmounted .splash-section {
  display: none !important;
}

/* Splash Inner Layout & Content Container */
#splash-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 90vw;
}

/* 1. Brand Title Above Logo */
.splash-brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.38em;
  color: #292524; /* Stone 900 */
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-8px);
  animation: splashTitleFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes splashTitleFade {
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* 2. Logo Container */
.splash-logo-container {
  position: relative;
  width: var(--splash-logo-width);
  aspect-ratio: 404 / 308;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  opacity: 0;
  animation: splashLogoFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes splashLogoFade {
  to {
    opacity: 1;
  }
}

/* SVG Wrapper inside Splash */
.splash-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Base outline logo state */
.splash-logo-outline {
  opacity: var(--splash-outline-opacity);
}

/* Rising Wave Group inside SVG (0.5s - 1.8s) */
.liquid-wave-group {
  transform: translateY(105%);
  animation: liquidRise var(--splash-duration) var(--splash-ease) 0.3s forwards;
}

/* Layer C: Permanent solid Ruby Red logo image (favicon_ruby_red.png) */
.splash-logo-filled-solid {
  opacity: 0;
  animation: solidFillFade 0.4s ease-in 2.75s forwards;
}

@keyframes solidFillFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Horizontal Wavy Oscillation - Foreground Layer */
.liquid-wave-path {
  fill: var(--liquid-color);
  animation: waveMotion 0.65s ease-in-out infinite alternate;
}

/* Background Wave Layer 2 (Mid Wave) */
.liquid-wave-path-back {
  fill: var(--liquid-color-mid);
  opacity: 1;
  animation: waveMotionBack 0.85s ease-in-out infinite alternate;
}

/* Background Wave Layer 3 (Deep Wave) */
.liquid-wave-path-back2 {
  fill: var(--liquid-color-deep);
  opacity: 1;
  animation: waveMotionBack2 1.15s ease-in-out infinite alternate;
}

/* Keyframes for rising liquid (Ascends to -105% to fill monogram completely) */
@keyframes liquidRise {
  0% {
    transform: translateY(105%);
  }
  15% {
    transform: translateY(88%);
  }
  85% {
    transform: translateY(-88%);
  }
  100% {
    transform: translateY(-105%);
  }
}

/* Keyframes for Foreground Wave 1 */
@keyframes waveMotion {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-240px);
  }
}

/* Keyframes for Mid Wave 2 */
@keyframes waveMotionBack {
  0% {
    transform: translateX(-160px);
  }
  100% {
    transform: translateX(0px);
  }
}

/* Keyframes for Deep Wave 3 */
@keyframes waveMotionBack2 {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-200px);
  }
}

/* 3. Two-Line Handwritten Tagline Below Logo (2.1s - 4.0s) */
.splash-tagline-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 0.5rem;
  z-index: 5;
}

.splash-tagline-line {
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.splash-tagline-text {
  font-family: 'Pinyon Script', 'Cormorant Garamond', cursive;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 500;
  color: #d4af37; /* Warm Champagne Gold Tone */
  display: inline-block;
  line-height: 1.25;
  padding: 0 0.3em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.splash-tagline-wipe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--splash-bg);
  z-index: 10;
}

/* Staggered handwriting reveal across 2 lines */
.splash-handwrite-active .splash-line-1 .splash-tagline-wipe {
  width: 0%;
  transition: width 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.splash-handwrite-active .splash-line-2 .splash-tagline-wipe {
  width: 0%;
  transition: width 1.0s cubic-bezier(0.25, 1, 0.5, 1) 0.85s;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .page-slider {
    transition-duration: 0.15s !important;
  }
  .liquid-wave-group {
    animation-duration: 0.4s !important;
  }
  .splash-logo-container.splash-pulse {
    animation: none !important;
  }
  .splash-logo-filled-solid {
    opacity: 1 !important;
  }
  .splash-tagline-wipe {
    width: 0% !important;
    transition: none !important;
  }
  .calligraphy-wipe {
    width: 0% !important;
    transition: none !important;
  }
}

/* 4. Events Page Calligraphy Wipe Reveal Animation */
.events-calligraphy-container .calligraphy-line {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.events-calligraphy-container .calligraphy-wipe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: #FAF8F5; /* Matches events intro background */
  z-index: 10;
  transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.events-calligraphy-container.events-handwrite-active .calligraphy-wipe {
  width: 0%;
}

/* 5. Luxury Banner Video Gradient Overlays (Watermark Mask & Ambient Vignette) */
.banner-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    /* Bottom-right Corner AI/Gemini Watermark Veil */
    linear-gradient(to top left, rgba(13, 7, 9, 0.96) 0%, rgba(13, 7, 9, 0.78) 18%, rgba(13, 7, 9, 0.35) 35%, transparent 55%),
    /* Bottom-left Corner Ambient Balance */
    linear-gradient(to top right, rgba(13, 7, 9, 0.90) 0%, rgba(13, 7, 9, 0.50) 18%, transparent 40%),
    /* Radial Center Soft Vignette */
    radial-gradient(ellipse at center, rgba(13, 7, 9, 0.05) 25%, rgba(13, 7, 9, 0.45) 70%, rgba(13, 7, 9, 0.90) 100%),
    /* Deep Vertical Atmosphere */
    linear-gradient(to bottom, rgba(13, 7, 9, 0.80) 0%, rgba(13, 7, 9, 0.25) 30%, rgba(13, 7, 9, 0.45) 70%, rgba(13, 7, 9, 0.98) 100%);
}


