/* =========================================
   Reset & Base Styles
   ========================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #f5f5f7;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Cinematic Background Layer
   ========================================= */
.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-parallax {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.bg-image {
    position: absolute;
    top: -5%; 
    left: -5%;
    width: 110%; 
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: cinematicBreath 40s ease-in-out infinite alternate;
    will-change: transform;
}

/* 🛠️ FIX 1: Darkened the center of the vignette for better text contrast */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

/* =========================================
   Content Layout & Premium Typography
   ========================================= */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Editorial Overline */
.overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    /* 🛠️ FIX 2: Brightened color and added drop shadow */
    color: #d1d1d6; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

/* Massive, tightly kerned header */
h1 {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 500;
    letter-spacing: -0.04em; 
    line-height: 1;
    margin-bottom: 1.5rem;
    /* 🛠️ FIX 3: Pure white with strong, soft cinematic shadow */
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* Elegant, airy subheading */
p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    /* 🛠️ FIX 4: Brightened from dark gray to light silver */
    color: #e5e5ea;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* =========================================
   Cinematic Blur Reveal Animations
   ========================================= */
.reveal {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    /* Reduced initial blur to prevent rendering bugs in some browsers */
    filter: blur(5px);
}

.reveal.is-visible {
    /* 🛠️ FIX 5: Force opacity to 100% and remove blur completely */
    opacity: 1 !important;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Ultra-smooth custom bezier curve */
.fade-up {
    transition: opacity 2.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 2.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 2.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { transition-delay: 0.5s; }
.delay-2 { transition-delay: 0.9s; }

/* Background Breathing Keyframes */
@keyframes cinematicBreath {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}