/* --- VARIABLES --- */
:root {
    /* UPDATED: Pure Black */
    --bg-dark: #000000; 
    --bg-panel: #0f0f0f;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #ffffff;
    
    /* REMOVED GRADIENT GLOW, SET TO PURE BLACK */
    --gradient-glow: #000000; 
    
    --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --trans-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --trans-med: 0.4s ease-out;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* FILM GRAIN REMOVED */

a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.subtitle { color: var(--text-muted); font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* --- NAVIGATION --- */
.site-header {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5,5,5,0.9);
    backdrop-filter: blur(5px);
}
/* --- INTERACTIVE HEADER LOGO --- */
.brand-logo-container {
    display: block;
    position: relative;
    width: 375px; /* Adjust this width to make the logo larger/smaller */
    height: 105px; /* Adjust height to fit the video aspect ratio */
    overflow: hidden;
    text-decoration: none;
}

.brand-static, 
.brand-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the logo doesn't stretch */
    object-position: left center; /* Aligns logo to the left */
    position: absolute;
    top: 0;
    left: 0;
}

/* The Static Image (Last Frame) */
.brand-static {
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* BLEND MODE: Removes black background from the image */
    mix-blend-mode: screen; 
}

/* The Video (Animation) */
.brand-video {
    z-index: 1;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    /* BLEND MODE: Removes black background from video */
    mix-blend-mode: screen; 
    filter: brightness(0.85) contrast(1.2); /* Matches your intro styling */
}

/* HOVER STATE (handled mostly by JS, but this helps) */
.brand-logo-container.playing .brand-static {
    opacity: 0; /* Hide image when playing */
}
.brand-logo-container.playing .brand-video {
    opacity: 1; /* Show video when playing */
}
.nav-links { display: flex; gap: var(--space-md); }
.nav-links a.active { text-decoration: underline; text-underline-offset: 6px; }

/* --- MAIN LAYOUT --- */
main { flex: 1; padding: var(--space-lg) var(--space-md); max-width: 1400px; margin: 0 auto; width: 100%; }

/* --- BUTTONS --- */
.btn-primary {
    border: 1px solid var(--text-main);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--trans-med);
    position: relative;
    overflow: hidden;
    align-self: center; /* Ensures button stays centered in flex column */
}
.btn-primary:hover { background: var(--text-main); color: var(--bg-dark); }

/* --- HERO SECTION --- */
.hero-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Pure Black Background */
    background-color: #000000; 
    
    text-align: center;
    overflow: hidden;
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.2s ease;
}


/* 2. CONTENT WRAPPER (Video + Text) */
.content-wrapper {
    position: absolute; /* Sits on top of where the button was */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease; /* Smooth fade in */
}

/* Initial hidden state */
.hidden-content { opacity: 0; pointer-events: none; }
/* Active visible state */
.visible-content { opacity: 1; pointer-events: auto; }

/* VIDEO CONTAINER */
.hero-video-container {
    width: 100%;
    max-width: 800px; /* ADJUST THIS to control logo size */
    margin: 0 auto; 
    margin-bottom: 0; /* No bottom margin so text can overlap */
    position: relative;
    z-index: 10;
}

#hero-anim {
    width: 100%;
    height: auto;
    display: block;
    
    /* 1. Set the Blend Mode */
    mix-blend-mode: screen; 
    
    /* 2. THE FIX: Crush the blacks */
    filter: brightness(0.85) contrast(1.2); 
}

/* ENTERTAINMENT SUBTITLE POSITIONING */
.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-main);
    text-transform: uppercase;
    
    /* OVERLAP LOGIC */
    margin-top: -4rem; 
    margin-right: -0.5em; 
    
    position: relative;
    z-index: 20;
}

/* --- THE EXIT ANIMATION --- */
.zoom-exit {
    /* Scale up to 15x to simulate entering the portal */
    transform: scale(15) !important; 
    opacity: 0 !important;
    
    /* Smooth acceleration curve */
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
    
    /* Ensure it stays centered while zooming */
    transform-origin: center center;
    pointer-events: none;
}
/* --- ABOUT PAGE --- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
.founder-card {
    background: var(--bg-panel);
    padding: var(--space-md);
    border: 1px solid #222;
    transition: var(--trans-med);
}
.founder-card:hover { border-color: var(--text-muted); transform: translateY(-5px); }
.founder-card h3 { margin-bottom: 0.5rem; }

/* BIO DRAWER */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.bio-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 600px;
    background: var(--bg-panel);
    padding: var(--space-lg) var(--space-md);
    transform: translateX(100%);
    transition: transform var(--trans-slow);
    z-index: 201;
    overflow-y: auto;
    border-left: 1px solid #333;
}
.drawer-overlay.open .bio-drawer { transform: translateX(0); }
.close-btn { position: absolute; top: var(--space-md); right: var(--space-md); font-size: 1.5rem; }

/* BIO DRAWER IMAGES */
.drawer-hero-img {
    width: 100%;
    height: auto;
    max-height: 400px; 
    object-fit: cover; 
    object-position: top center; 
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    display: block;
    background-color: #111;
}

/* --- DEVELOPMENT PAGE OVERHAUL --- */
.slate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

/* SEARCH BAR */
.search-bar {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: white;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    width: 100%;
    max-width: 400px;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}
.search-bar:focus { outline: none; border-color: white; }

/* FILTER SCROLL BAR */
.slate-controls {
    display: grid;
    grid-template-columns: 300px 1fr; 
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.filter-scroll-wrapper {
    position: relative;
    overflow: hidden; 
    mask-image: linear-gradient(to right, black 90%, transparent 100%); 
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.chips-container {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 5px; 
    scrollbar-width: none; 
}
.chips-container::-webkit-scrollbar { display: none; }

.chip {
    white-space: nowrap; 
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.chip:hover { background: rgba(255,255,255,0.1); color: white; }
.chip.active { background: white; color: black; font-weight: 700; }

/* --- THE CARD GRID --- */
.slate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* INDIVIDUAL PROJECT CARD */
.project-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 2rem;
    min-height: 280px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-format {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ddd;
    font-weight: 700;
}

/* Logline Reveal */
.card-logline {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.project-card:hover .card-logline { color: #bbb; }

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #1a1a1a;
    padding-top: 1rem;
}

.card-genres { font-size: 0.75rem; color: #444; }

.card-arrow {
    font-size: 1.2rem;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* --- TOGGLE SWITCH --- */
.toggle-switch { display: flex; align-items: center; gap: 0.5rem; }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute; content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background-color: white; transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: #666; }
input:checked + .slider:before { transform: translateX(20px); }

.toggle-label { font-size: 0.8rem; color: #555; transition: color 0.3s; }
.toggle-label.active-label { color: white; } 

/* --- CONTACT PAGE OVERHAUL --- */

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
    padding-top: var(--space-lg);
}

.contact-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 3rem;
    text-align: center;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* THE FORM GRID */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* INPUT STYLING */
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: color 0.3s;
}

/* Inputs: Dark, Minimal, Subtle Border */
.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: white;
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Remove default focus outline and add our own */
.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
}

/* Highlight label when input is focused */
.form-group:focus-within label {
    color: white;
}

/* Dropdown specific styling */
.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.7rem auto;
    cursor: pointer;
}

/* --- THE FIX: FORCE DROPDOWN OPTIONS TO BLACK --- */
.form-group select option {
    background-color: #000000;
    color: #ffffff;
}

/* Button Full Width Option */
.btn-block {
    width: 100%;
    padding: 1.2rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    background: white;
    color: black;
    border-color: white;
}

.btn-block:hover {
    background: black;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-header h1 {
        font-size: 2.5rem;
    }
}
/* --- ANIMATION KEYFRAMES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- FORCE ZOOM ANIMATION --- */
.zoom-exit {
    /* Scale up to 15x */
    transform: scale(15) !important; 
    opacity: 0 !important;
    
    /* Smooth animation override */
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease !important;
    
    transform-origin: center center;
    pointer-events: none;
}
/* --- PROJECT PAGE LAYOUT --- */
.project-page-layout {
    display: grid;
    grid-template-columns: 350px 1fr; /* Poster Width | Text Width */
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: start;
    min-height: 80vh;
}

.poster-img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-logline {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

.back-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}
.back-link:hover { color: white; }

/* Mobile Stack */
@media (max-width: 800px) {
    .project-page-layout {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 2rem;
    }
    .poster-img {
        max-width: 300px; /* Don't make it huge on phone */
        margin: 0 auto;
        display: block;
    }
    .project-info-col {
        text-align: center;
    }
}
/* --- NEWS PAGE --- */
.news-wrapper {
    display: flex;
    justify-content: center;
    padding-top: var(--space-lg);
    min-height: 80vh;
}

.news-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.news-placeholder p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 2rem;
    letter-spacing: 0.05em;
    border: 1px solid #333;
    padding: 3rem;
    background: rgba(255,255,255,0.03);
}