/* =========================================
   Cinematic Design System Setup
   ========================================= */
:root {
    --bg-void: #030303; 
    --bg-dark: #0a0a0a;
    --text-primary: #f2f2f2;
    --text-muted: #a3a3a3; /* WCAG AA 4.5:1 compliant */
    --accent-chrome: #cecece;
    --accent-red: #8B0000; /* Subtle blood red for borders/hovers */

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    --transition-slow: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-snappy: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Accessibility: Focus only for keyboard */
*:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}
*:focus:not(:focus-visible) {
    outline: none;
}

/* Screen Reader Only Utility */
.visually-hidden {
    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;
    font-size: 16px;
    background-color: var(--bg-void);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-void);
    overflow-x: hidden;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    animation: noise 0.2s infinite;
}
@keyframes noise {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(1%, -1%); }
    30% { transform: translate(-1%, 2%); }
    40% { transform: translate(1%, 1%); }
    50% { transform: translate(-2%, 1%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-1%, -1%); }
    80% { transform: translate(1%, 2%); }
    90% { transform: translate(-2%, -2%); }
    100% { transform: translate(0, 0); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   Loader
   ========================================= */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-void);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1.5s ease;
}
.loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 500;
}
.btn-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition-snappy);
    position: relative;
}
.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-snappy);
}
.btn-text:hover { color: var(--text-primary); }
.btn-text:hover::after { width: 100%; }

/* =========================================
   Scenes & Layouts
   ========================================= */
.scene {
    min-height: 100vh;
    position: relative;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Scene I: Hero */
.hero {
    height: 100vh;
    align-items: center;
    background-color: #050505; /* Fallback */
    background-image: radial-gradient(circle at center, rgba(30,30,30,0.5) 0%, var(--bg-void) 70%), url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.cinematic-bars {
    position: absolute;
    width: 100%;
    height: 0vh; /* Adjust if pure cinematic is desired */
    background: black;
    z-index: 10;
    transition: height 3s ease;
}
.active .cinematic-bars { height: 6vh; }
.overlay-top { top: 0; }
.overlay-bottom { bottom: 0; }

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 2rem;
}
.text-meta {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: -1px;
    line-height: 1;
}

/* Scene II: Monologue */
.statement {
    background-color: var(--bg-void);
    align-items: center;
}
.manifesto-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}
.manifesto-text {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3.5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-transform: none;
}
.text-muted { color: var(--text-muted); }

.golden-truth {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 4rem);
    color: var(--text-primary);
    line-height: 1.2;
}

/* Scene III: Locations (Full Width Narrative) */
.locations {
    padding: 0;
    display: block;
}
.location-card {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}
.location-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.3);
    transform: scale(1.1);
    transition: transform 10s ease-out, filter 1s ease;
    z-index: 0;
}
.location-card.is-visible .location-bg {
    transform: scale(1);
}
.location-card:hover .location-bg {
    filter: grayscale(50%) brightness(0.5);
}

.location-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.scene-marker {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.location-content h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}
.location-content p {
    font-size: 1.1rem;
    color: var(--accent-chrome);
    border-left: 2px solid var(--accent-chrome);
    padding-left: 1rem;
}

/* Scene IV: Finale */
.finale {
    background-color: var(--bg-void);
    text-align: center;
}
.finale-content h2 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    margin-bottom: 1rem;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

/* Form Styles */
.cinematic-form .input-group {
    margin-bottom: 2rem;
    position: relative;
}
.cinematic-form input, .cinematic-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: border-color 0.3s;
}
.cinematic-form input:focus, .cinematic-form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}
.cinematic-form input::placeholder, .cinematic-form textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.btn-cinematic, .btn-hollow {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-snappy);
}
.btn-cinematic:hover, .btn-hollow:hover {
    background: var(--text-primary);
    color: var(--bg-void);
}

.booking-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 4rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.meta-desc {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer */
.cinematic-footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-dark);
}
.cinematic-footer p {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* =========================================
   Micro-animations (Director's Touch)
   ========================================= */

/* Hero Animations (On Load) */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transform: scale(0.98);
    transition: filter 2s ease, opacity 2s ease, transform 3s ease;
}
.active .blur-reveal {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.fade-in-slow {
    opacity: 0;
    transition: opacity 2s ease 1s;
}
.active .fade-in-slow {
    opacity: 1;
}

/* Scroll Animations */
.slide-up-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.blur-reveal-scroll {
    filter: blur(10px);
    opacity: 0;
    transition: filter 1.5s ease, opacity 1.5s ease;
}
.blur-reveal-scroll.is-visible {
    filter: blur(0);
    opacity: 1;
}

.fade-in-scroll {
    opacity: 0;
    transition: opacity 1.5s ease;
}
.fade-in-scroll.is-visible {
    opacity: 1;
}

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .booking-wrapper {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 3rem;
        align-items: center;
        text-align: center;
    }
    .cinematic-form .input-group, .btn-cinematic {
        text-align: center;
    }
    .navbar {
        padding: 1.5rem 2rem;
    }
}
.hidden { display: none !important; }

/* =========================================
   Accessibility Settings
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .film-grain {
        display: none !important;
        animation: none !important;
    }
    
    .blur-reveal, .blur-reveal-scroll, .slide-up-fade, .fade-in-scroll {
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .location-bg {
        transform: scale(1) !important;
        transition: none !important;
    }
    .location-card:hover .location-bg {
        filter: grayscale(100%) brightness(0.3) !important; /* No zoom on hover */
    }
}
