:root {
    --cult-black: #121212; /* Lifted from #0A0A0A for "milky" cinematic blacks */
    --cult-white: #FFFFFF; /* Pure white for max contrast */
    --cult-gray: #E6E6E6; /* Primary text color */
    --cult-accent: #1F1F1F; /* Lifted accent */
    --cult-gold: #B78A3C; /* Accent only for "Icon" status */
    --cult-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    /* scroll-behavior: smooth; - Removed to allow Lenis to handle smooth scrolling */
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cult-black);
    color: var(--cult-white);
    line-height: 1.6;
    overflow-x: hidden;
}

:where(a, button, summary, [role='button'], input, textarea, select):focus-visible {
    outline: 2px solid rgba(183, 138, 60, 0.85);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Film grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04; /* Slightly increased grain visibility */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* Cinematic "Overexposure" / Light Leak Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Simulates light leaking into the lens from top-left */
    background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, transparent 40%);
    z-index: 999;
    mix-blend-mode: screen;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: calc(clamp(1rem, 2vw, 2rem) + env(safe-area-inset-left));
    padding-right: calc(clamp(1rem, 2vw, 2rem) + env(safe-area-inset-right));
}

.section {
    padding: 8rem 0;
}

.section-dark {
    background: var(--cult-accent);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    /* Halation effect: subtle bloom on bright text */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.section-text {
    font-size: 1.25rem; /* Increased from 1.125rem to match guidelines (20px) */
    color: var(--cult-gray);
    max-width: 700px;
    margin-bottom: 1.5rem;
    line-height: 1.7; /* Increased line height for breathability */
}

.section-text strong {
    color: var(--cult-white);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--cult-white);
    color: var(--cult-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.4s var(--cult-ease), background 0.4s var(--cult-ease), color 0.4s var(--cult-ease);
}

.cta-button:hover {
    background: var(--cult-gray);
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--cult-white);
    border: 1px solid var(--cult-white);
}

.cta-secondary:hover {
    background: var(--cult-white);
    color: var(--cult-black);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: calc(1.5rem + env(safe-area-inset-left));
        padding-right: calc(1.5rem + env(safe-area-inset-right));
    }

    .section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.75rem;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

.hero {
    /* Shared hero behavior: keep key copy in-viewport on all screens */
    display: flex;
    align-items: flex-end;
    padding-bottom: calc(clamp(3.5rem, 9vh, 6.5rem) + env(safe-area-inset-bottom));
}

.hero .hero-content {
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero-background {
    /* Removed transition to prevent fighting with JS updates */
    will-change: transform;
}

.revealable {
    opacity: 1;
    transform: none;
}

[data-reveal="animate"] .revealable {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--cult-ease), transform 0.8s var(--cult-ease);
    will-change: opacity, transform;
}

[data-reveal="animate"] .revealable.is-visible {
    opacity: 1;
    transform: translateY(0);
}
