:root {
    /* Brand Colors */
    --color-ivory: #F8F5F0;
    --color-gold: #D4AF37;
    --color-white: #FFFFFF;
    --color-charcoal: #1A1A1A;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    font-family: var(--font-body);
    /* Prevent scroll for a single-screen experience */
    overflow: hidden; 
}

/* Background & Animations */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Start invisible and slightly zoomed in */
    opacity: 0;
    transform: scale(1.1);
    
    /* Fade in opacity over 2 seconds, while zooming out slowly over a long duration */
    transition: opacity 2s ease-in-out, transform 12s linear;
}

/* Active image becomes visible and starts the zoom out */
.background-image.active {
    opacity: 1;
    transform: scale(1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep the overlay on top of all background images */
    z-index: 5;
    /* Subtle dark gradient overlay for text readability */
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.55) 50%,
        rgba(26, 26, 26, 0.75) 100%
    );
}

/* Main Layout */
.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 5rem 2rem;
    text-align: center;
    
    /* Initial fade state */
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.loaded .content-wrapper {
    opacity: 1;
}

/* Header & Logo */
.logo-container {
    /* Slight upward shift to animate down */
    transform: translateY(-20px);
    opacity: 0;
    transition: opacity 1.5s ease-out 0.5s, transform 1.5s ease-out 0.5s;
}

.loaded .logo-container {
    transform: translateY(0);
    opacity: 1;
}

.logo {
    max-width: 280px;
    height: auto;
    /* Ensure the logo renders crisply */
    image-rendering: -webkit-optimize-contrast;
}

/* Typography & Message */
.message-container {
    max-width: 850px;
    /* Gentle upward animation */
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 1.5s ease-out 1s, transform 1.5s ease-out 1s;
}

.loaded .message-container {
    transform: translateY(0);
    opacity: 1;
}

.headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: var(--color-white);
    letter-spacing: 0.01em;
}

.subheadline {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 300;
    line-height: 2;
    color: var(--color-ivory);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Footer & Social Icons */
.social-container {
    display: flex;
    gap: 1.5rem;
    /* Delay animation slightly more for a cascading effect */
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 1.5s ease-out 1.5s, transform 1.5s ease-out 1.5s;
}

.loaded .social-container {
    transform: translateY(0);
    opacity: 1;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-white);
    font-size: 1.25rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-5px);
    /* Soft glow effect for premium feel */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 3rem 1.5rem;
        /* Allow scroll if screen is too small */
        overflow-y: auto;
        justify-content: flex-start;
        gap: 4rem;
    }

    body, html {
        overflow: auto; /* Prevent cut off on very small phones */
    }

    .logo {
        max-width: 200px;
    }

    .headline {
        margin-bottom: 2rem;
    }

    .social-container {
        margin-top: auto;
        padding-top: 2rem;
    }
}
