/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cinematic Background with Grain and Gradient */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* Pitch dark gradient - near pure black */
    background: linear-gradient(165deg,
            hsl(0, 0%, 2%) 0%,
            hsl(0, 0%, 1%) 50%,
            hsl(0, 0%, 0%) 100%);

    /* Film grain texture overlay */
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    z-index: 1;
    pointer-events: none;

    /* Soft grain texture */
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* Main Container */
main {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

/* Modern Rounded Typography */
h1 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    color: hsl(0, 0%, 95%);
    letter-spacing: 0.25em;
    text-transform: uppercase;

    /* Initial state for fade-in */
    opacity: 0;
    transform: translateY(20px);

    /* Refined luxury feel */
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);

    /* Smooth transitions */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade-in Animation */
h1.visible {
    opacity: 1;
    transform: translateY(0);
    animation: breathe 6s ease-in-out infinite;
}

/* Breathing Animation - Subtle and Calm */
@keyframes breathe {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.85;
        transform: translateY(-3px) scale(1.008);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    h1 {
        letter-spacing: 0.15em;
    }
}

/* High contrast and intentional emptiness maintained through minimal elements */