/* --- 0. FONTS SETUP --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

@font-face {
    font-family: 'DivergentCustom';
    src: url('assets/DivergentGift-SquarePeg-25x113.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- 1. CSS VARIABLES --- */
:root {
    --color-bg: #Fdfbf7;
    --color-violet: #5141c5;
    --color-blue: #3942D2;
    --color-gold: #ffb200;
    --color-text: #333333;
    
    --font-header: 'DivergentCustom', 'Montserrat', sans-serif; 
    --font-body: 'Lato', sans-serif;
}

/* --- 2. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-header);
    color: var(--color-violet);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--color-gold), #b89f2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    font-weight: 800; 
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: 0.3s;
}

/* --- 4. NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(253, 251, 247, 0.98); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; 
    border-bottom: 1px solid rgba(208, 182, 60, 0.3);
    transition: transform 0.4s ease, padding 0.4s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.nav-compact {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-header);
    font-weight: 800; 
    font-size: 1.5rem;
    color: var(--color-violet);
    transition: font-size 0.4s ease;
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.navbar.nav-compact .logo {
    font-size: 1.25rem;
}

/* Desktop Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: none; 
    animation: navLinkHoverOut 0.4s linear forwards;
}

.nav-links a:hover {
    animation: navLinkHoverIn 0.4s linear forwards;
}

@keyframes navLinkHoverIn {
    0% { color: var(--color-text); }
    50% { color: #e10098; animation-timing-function: ease-out; }
    100% { color: var(--color-gold); }
}

@keyframes navLinkHoverOut {
    0% { color: var(--color-gold); }
    50% { color: #e10098; animation-timing-function: ease-out; }
    100% { color: var(--color-text); }
}

/* Hamburger Icon Styles */
.menu-toggle {
    display: none; 
    cursor: pointer;
    padding: 5px; 
}

.bar {
    display: block;
    width: 30px; 
    height: 3px; 
    margin: 6px auto; 
    background-color: var(--color-violet);
    border-radius: 2px; 
    transition: all 0.3s ease-in-out;
}

/* --- 5. HERO SECTION --- */
.hero {
    height: 90vh;
    background-image: url('assets/hero.jpg');
    background-attachment: scroll; 
    background-position: center top; 
    background-repeat: no-repeat;
    background-size: cover;
    will-change: background-position;
    display: flex;
    align-items: center;
    position: relative; 
    z-index: 5; 
}

.hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-start; 
}

.hero-content {
    background: transparent;
    padding: 0;
    border: none;
    backdrop-filter: none;
    width: 100%;
    max-width: 850px; 
    text-align: center;
    /* UPDATED: Reduced from 80px to 60px to move logo up */
    margin-top: 60px; 
}

/* HERO WAVE */
.hero::after {
    content: "";
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    height: 65px;
    background-color: transparent; 
    z-index: 10; 
    transform: scaleX(-1); 
    
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    filter: blur(0px) !important;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem; 
    position: relative; 
    z-index: 7;
}

/* Hero Quotes Container */
.hero-quotes {
    position: absolute; 
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 350px; 
    overflow: hidden; 
    z-index: 6; 
    pointer-events: none;
}

.quote {
    position: absolute;
    display: block;
    max-width: 300px; 
    font-family: var(--font-body);
    font-style: italic; 
    /* UPDATED: Reduced from 1.1rem to 1.0rem */
    font-size: 1.0rem; 
    font-weight: 400; 
    color: rgba(255, 255, 255, 0.9); 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0;
    text-align: center;
    will-change: transform, opacity, filter;
    top: 100% !important; 
    animation-timing-function: linear !important;
}

@keyframes floatUp {
    0% {
        transform: translateY(0); 
        opacity: 0;
        filter: blur(8px); 
    }
    /* UPDATED: Changed from 15% to 20% so it stays blurry/fading in longer */
    20% { 
        opacity: 0.9;
        filter: blur(0px); 
    }
    50% {
        /* They stay clear until here */
        opacity: 0.9;
        filter: blur(0px); 
    }
    100% {
        transform: translateY(-400px); 
        opacity: 0; 
        filter: blur(8px); 
    }
}

.btn-main {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 25px;
    background-color: var(--color-gold);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s;
    font-family: var(--font-header); 
}

.btn-main:hover {
    background-color: #b89f2a;
    color: #fff;
}

/* --- 6. UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; 
}

.section-padding {
    padding: 80px 0;
}

/* --- TRAILER SECTION STYLES --- */
.trailer-section {
    position: relative;
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg); 
    z-index: 1;
}

.trailer-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px; 
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 100%);
    z-index: 3; 
    pointer-events: none;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 1;
    overflow: hidden; 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg); 
    opacity: 0.65; 
    z-index: 2; 
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778vh; 
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
}

/* Trailer Overlay Container */
.trailer-overlay {
    position: relative;
    z-index: 20; 
    text-align: center;
    color: #173098; 
}

/* Text handles Blur ONLY */
.trailer-overlay h2 {
    color: #173098; 
    margin-top: 1rem;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.6); 
    transition: filter 1.5s ease, opacity 1.5s ease; 
}

.trailer-overlay.in-focus h2 {
    filter: blur(0);
    opacity: 1;
}

.trailer-overlay.out-of-focus h2 {
    filter: blur(4px);
    opacity: 0.6;
}

/* Button handles Opacity/Scale only */
.play-button {
    background: rgba(23, 48, 152, 0.1); 
    border: 3px solid #173098; 
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6); 
    
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 1.5s ease, filter 1.5s ease;
}

.trailer-overlay.in-focus .play-button {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.trailer-overlay.out-of-focus .play-button {
    opacity: 0.2;
    transform: scale(0.9);
    filter: blur(4px);
}

.trailer-overlay .play-button:hover {
    background: #173098; 
    transform: scale(1.1);
    opacity: 1;
    filter: blur(0);
}

.play-icon {
    width: 40px;
    height: 40px;
    fill: #173098; 
    stroke: #173098;
    stroke-width: 3px; 
    stroke-linejoin: round; 
    transition: all 0.3s ease; 
}

.play-button:hover .play-icon {
    fill: #fff;
    stroke: #fff;
}

/* --- ABOUT SECTION & SCROLLYTELLING --- */
#about {
    position: relative;
    z-index: 5; 
    background-color: transparent; 
}

#subjects, #merch, #partners, #engage, footer {
    position: relative;
    z-index: 5;
    background-color: var(--color-bg); 
}

/* Alt Backgrounds */
#subjects.alt-bg, #partners.alt-bg, #chapters.alt-bg, #artwork.alt-bg {
    background: linear-gradient(rgba(97, 1, 57, 0.05), rgba(97, 1, 57, 0.05)), var(--color-bg);
    position: relative;
    z-index: 5;
}

.about-scroll-container {
    height: 300vh; 
    position: relative;
}

.about-sticky-wrapper {
    position: sticky;
    top: 15vh; 
    height: 60vh; 
    width: 95%; 
    max-width: 1100px; 
    margin: 200px auto 0 auto; 
    padding: 0 2rem; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    border-radius: 80px 4px 80px 4px;
}

.about-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.static-phrase {
    position: absolute;
    top: 15%; 
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    font-family: var(--font-header);
    color: var(--color-violet);
    font-size: 1.8rem;
    letter-spacing: 1px;
    opacity: 0.6; 
    will-change: opacity;
    transition: opacity 1s ease;
}

.highlight {
    color: var(--color-violet); 
}

.scroll-phrase {
    position: absolute;
    left: 0; 
    right: 0;
    margin: auto;
    font-size: 3rem; 
    font-weight: 800;
    color: #ffb200; 
    text-align: center;
    white-space: nowrap;
    opacity: 0; 
    will-change: transform, opacity;
}

.phrase-1 { 
    top: 35%; 
    transform: translateX(0); 
}
.phrase-2 { 
    top: 50%; 
    transform: translateX(0); 
}
.phrase-3 { 
    top: 65%; 
    transform: translateY(0); 
    opacity: 0;
}

.about-synopsis {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(100px);
    width: 90%;
    max-width: 800px;
    text-align: center;
    opacity: 0;
    will-change: transform, opacity;
}

.about-synopsis h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.synopsis-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
}

.trailer-section::before {
    content: "";
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    height: 65px;
    background-color: transparent; 
    z-index: 10; 
    transform: scaleX(-1); 
    
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    filter: blur(0px) !important; 
}

/* --- CHAPTERS SECTION --- */
.chapters-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.8s ease;
}

.chapters-wrapper.expanded {
    max-height: 8000px; 
    opacity: 1;
}

.chapters-intro {
    margin-bottom: 2rem;
}

/* Header Button Styling */
.chapter-header-btn {
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--color-violet);
    transition: none; 
    animation: chapterBtnHoverOut 0.4s linear forwards;
}

.chapter-header-btn:hover {
    animation: chapterBtnHoverIn 0.4s linear forwards;
}

.chapter-header-btn .icon {
    font-size: 1.2em;
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

@keyframes chapterBtnHoverIn {
    0% { color: var(--color-violet); }
    50% { color: #e10098; animation-timing-function: ease-out; }
    100% { color: var(--color-gold); }
}

@keyframes chapterBtnHoverOut {
    0% { color: var(--color-gold); }
    50% { color: #e10098; animation-timing-function: ease-out; }
    100% { color: var(--color-violet); }
}

/* --- NEW CARD GRID & CURTAIN ANIMATION --- */
/* --- NEW RESPONSIVE GRID --- */

/* 1. Desktop (Default): 3 Columns */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

/* 2. Tablet / Medium Screens: 2 Columns */
/* This creates the bridge between Desktop and Mobile */
@media (max-width: 1024px) {
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 3. Mobile: 1 Column (With Size Constraint) */
@media (max-width: 600px) {
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* NEW: Constrain the width so they don't look huge */
    .chapter-card {
        max-width: 400px; /* Prevents the "poster size" look */
        margin: 0 auto;   /* Centers the card in the column */
        width: 100%;
    }
}

.chapter-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    outline: none; /* Removes default focus outline */
}

/* 1. The Image Box */
.chapter-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    
    /* UPDATED SHAPE: Uniformly rounded corners */
    border-radius: 30px; 
    
    margin-bottom: 0.5rem;
}

/* 2. The Image */
.chapter-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Default: No blur on image itself, the overlay handles the frost */
    /* We add a slight scale so when we zoom, it's smooth */
    transform: scale(1.0);
    transition: transform 0.6s ease;
}

/* Hover/Active: Zoom in slightly */
.chapter-card:hover .chapter-img,
.chapter-card.active .chapter-img {
    transform: scale(1.08);
}

/* 3. The "Curtain" Overlay (Handles Frost & Label) */
.chapter-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    height: 100%; 
    
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-family: var(--font-header);
    
    /* UPDATED: Reduced from 2.2rem to 1.8rem */
    font-size: 1.8rem; 
    
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    transition: height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                background 0.6s ease,
                font-size 0.6s ease,
                backdrop-filter 0.6s ease;
                
    z-index: 2;
}

/* 4. The Animation: Curtain Drops to Bottom Bar */
/* UPDATED: We only allow the hover effect if the parent section is IN FOCUS. 
   This forces the "Curtain" to close immediately when you scroll away. */
section.in-focus .chapter-card:hover .chapter-overlay-label,
.chapter-card.active .chapter-overlay-label {
    /* Shrink height to create the bar at the bottom */
    height: 3rem; 
    
    /* Solid white bar for legibility */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(0); /* Remove blur from the bar itself */
    -webkit-backdrop-filter: blur(0);
    
    /* Shrink text */
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--color-violet);
}

/* 5. The Inner Title (Inside Description) */
.chapter-inner-title {
    /* Changed to Body font (Lato) for a cleaner look */
    font-family: var(--font-body); 
    
    /* Nav-bar style: Uppercase and spacing */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    
    /* Slightly smaller and cleaner */
    font-size: 1.1rem;
    
    margin-bottom: 0.5rem;
    color: var(--color-violet); 
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
    line-height: 1.4;
}

/* Content Expansion Logic */
.chapter-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    font-size: 0.95rem;
    color: var(--color-text);
}

.chapter-card.active .chapter-content {
    max-height: 350px; 
    opacity: 1;
    padding-top: 0.8rem;
}

/* --- DIRECTOR SECTION --- */
.director-content-box {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.director-img-container {
    flex: 0 0 33%;
    aspect-ratio: 1 / 1;
}

.director-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: border-radius 0.5s ease, transform 0.3s ease;
}

/* Update this specific rule to include the scale transform */
.director-img-container:hover .director-headshot {
    border-radius: 20px; 
    transform: scale(1.04); /* Scales up slightly while squaring */
}

.director-bio {
    flex: 1;
}

.director-bio h3 {
    font-size: 2rem;
    color: var(--color-violet);
    margin-bottom: 1rem;
}

.director-bio p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- SUBJECTS SECTION --- */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.subject-card {
    text-align: center;
}

.subject-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem auto;
    /* Reusing Director Transition logic for hover effect */
    position: relative; 
}

.subject-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: border-radius 0.5s ease, transform 0.3s ease;
}

/* Square Peg effect on hover */
/* Update this specific rule to include the scale transform */
.subject-img-container:hover .subject-headshot {
    border-radius: 20px;
    transform: scale(1.05); /* Scales up slightly while squaring */
}

.subject-card h3 {
    /* Switched to Body font for better character support */
    font-family: var(--font-body); 
    
    /* Styling to match Nav/Chapters (All Caps, Bold) */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    
    font-size: 1.1rem; /* Adjusted size to look balanced in caps */
    color: var(--color-violet);
    margin-bottom: 0.5rem;
}

.subject-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- CHAPTERS SECTION (Custom Background + Double Waves) --- */
#chapters.alt-bg {
    /* Combined Tint and Image */
    /* We use a linear-gradient to create the semi-transparent overlay */
    background-image: 
        linear-gradient(rgba(253, 251, 247, 0.7), rgba(253, 251, 247, 0.7)),
        url('assets/Path1.jpg');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixed Parallax */
    background-repeat: no-repeat;
    
    position: relative;
    z-index: 5;
    background-color: transparent;
}

/* 1. Top Wave (Hanging Down) */
/* This covers the top edge of the image, making the Director section look torn */
#chapters.alt-bg::before {
    content: "";
    position: absolute;
    top: -1px; 
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 6; /* Sits on top of the background */
    
    /* Matching the section above background color */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    /* Rotated to hang down */
    transform: rotate(180deg); 
    pointer-events: none;
}

/* 2. Bottom Wave (Pointing Up) */
/* This covers the bottom edge, making the transition to Subjects seamless */
#chapters.alt-bg::after {
    content: "";
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 6;
    
    /* Matching the section below background color */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    /* No rotation needed for bottom wave pointing up */
    pointer-events: none;
}

/* Mobile Reset */
@media (max-width: 768px) {
    #chapters.alt-bg {
        background-attachment: scroll;
    }
}

/* --- SUBJECTS SECTION (Bottom Wave Transition) --- */
#subjects {
    position: relative;
    /* Lift this section above the Artwork section (z-index 5) 
       so the wave hangs on top of the splatter image */
    z-index: 6; 
}

#subjects::after {
    content: "";
    position: absolute;
    /* Move it down to hang over the top of the next section */
    bottom: -64px; 
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 6;
    
    /* The Wave SVG (Matches the site background color #Fdfbf7) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    /* Rotate 180 degrees so the flat side is up (touching #subjects) 
       and the wave hangs down */
    transform: rotate(180deg); 
    pointer-events: none;
}

/* --- ARTWORK SECTION --- */
#artwork h2.artwork-header {
    font-size: 3rem; 
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--color-gold), #b89f2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
}

/* Horizontal Sliding Gallery */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-arrow {
    background: none;
    border: none;
    /* UPDATED: Thicker, bolder look */
    font-size: 4rem; 
    font-weight: 900; 
    color: var(--color-violet);
    cursor: pointer;
    padding: 0 15px;
    z-index: 2;
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
    /* Optional shadow to pop off images */
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scroll-arrow:hover {
    color: var(--color-gold);
    transform: scale(1.2);
}

.art-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    width: 100%;
    scroll-behavior: smooth;
}
.art-scroll-container::-webkit-scrollbar {
    display: none;
}

.art-card {
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.art-card h4 {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-text);
}

.artwork-link {
    display: block;
    position: relative;
    width: 280px;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.artwork-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.artwork-link:hover img {
    transform: scale(1.05);
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(81, 65, 197, 0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artwork-link:hover .artwork-overlay {
    opacity: 1;
}

.artwork-overlay span {
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
    padding: 10px 20px;
    text-transform: uppercase;
}

/* Music Link Wrapper */
.music-link-wrapper {
    text-decoration: none;
    display: block;
    color: inherit;
}

.music-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.music-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.music-link-wrapper:hover .music-img {
    transform: scale(1.05);
}

.music-link-wrapper:hover .artwork-overlay {
    opacity: 1;
}

/* --- CREATIVES SECTION (Updated to White Card Style) --- */

/* The White Card Container (Matching Partners Style) */
.creatives-content {
    background-color: #ffffff; /* Pure white background */
    border-radius: 20px;       /* Soft rounded corners */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    
    padding: 3rem 2rem;        /* Internal spacing */
    margin: 2rem auto 4rem auto; /* Spacing (top/bottom) */
    max-width: 1000px;         /* Constrains width */
    width: 95%;                /* Responsive width */
    position: relative;
    z-index: 2;
}

.creatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.creative-mini-card {
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.creative-img-box {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem auto;
    position: relative; 
}

.creative-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: border-radius 0.5s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.creative-img-box:hover .creative-headshot {
    border-radius: 20px;
}

.creative-mini-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--color-violet);
}

.creative-mini-card .role {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.creative-link {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-gold);
    border-bottom: 1px solid transparent;
}

.creative-link:hover {
    border-bottom: 1px solid var(--color-gold);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .creatives-grid { 
        grid-template-columns: 1fr; 
    }
}

/* --- ARTWORK SECTION (Custom Background + Bottom Wave) --- */
#artwork.alt-bg {
    background-image: url('assets/Spatter_Texture2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    position: relative;
    z-index: 5;
    background-color: transparent; 
}

/* 1. The Wave (Bottom) */
#artwork.alt-bg::before {
    content: "";
    position: absolute;
    bottom: -1px; /* Aligned to the bottom edge */
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 3; /* Sits on top of the image and tint */
    
    /* Matching the section below (#partners off-white color) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* 2. The Tint Overlay */
#artwork::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle off-white tint */
    background: rgba(253, 251, 247, 0.5); 
    pointer-events: none;
    z-index: 0; 
}

/* 3. Ensure content sits on top */
#artwork .container {
    position: relative;
    z-index: 2;
}

/* Mobile Reset */
@media (max-width: 768px) {
    #artwork.alt-bg {
        background-attachment: scroll;
    }
}

/* --- PARTNERS SECTION (NEW) --- */
/* --- PARTNERS SECTION (NEW) --- */

/* UPDATED: The White Container Box */
.partners-content {
    background-color: #ffffff; /* Pure white background */
    border-radius: 20px;       /* Soft rounded corners */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    
    padding: 3rem 2rem;        /* Internal spacing */
    margin: 2rem auto 0 auto;  /* Spacing from the main header above */
    max-width: 1000px;         /* Constrains width so it looks like a distinct card */
    width: 95%;                /* Responsive width for mobile */
}


#partners .chapters-intro {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners-subsection {
    /* UPDATED: Increased from 4rem to 6rem for distinct separation between groups */
    margin-bottom: 6rem;
    
    /* Ensure the last one doesn't push the bottom of the card too far */
    &:last-child {
        margin-bottom: 0;
    }
}

.partners-sub-header {
    /* Font styles from previous step */
    font-family: var(--font-header);
    font-size: 1.5rem; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    color: var(--color-violet);
    font-weight: 700;
    opacity: 1;
    
    /* UPDATED: Increased from 1.5rem to 2.5rem */
    margin-bottom: 2.5rem;
    text-align: center; 
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partners-grid.single-logo {
    justify-content: center;
}

.partners-grid.three-col {
    gap: 2rem;
}

.partner-logo {
    max-width: 200px; /* Standard size */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* NEW: Sizing for Co-Producers */
.partner-logo.logo-large {
    max-width: 360px; /* Slightly larger */
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile Adjustments for Partners */
@media (max-width: 768px) {
    .partners-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .partner-logo {
        max-width: 150px;
    }
    .partner-logo.logo-large {
        max-width: 190px;
    }
}

/* --- MOBILE RESPONSIVE ANIMATIONS (RESTORED) --- */
@media (max-width: 768px) {
    /* Nav & Hamburger Fixes */
    .menu-toggle { 
        display: block; 
        position: relative; 
        z-index: 1001; 
    }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .nav-links { 
        position: fixed; 
        right: 0; 
        top: 0; 
        height: 100vh; 
        background-color: var(--color-bg); 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        width: 70%; 
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
        z-index: 999; 
    }
    .nav-links.nav-active { 
        transform: translateX(0%); 
    }
    .nav-links li { 
        margin: 10px 0; 
        opacity: 0; 
    }
    .nav-links.nav-active li { 
        animation: navLinkFade 0.5s ease forwards 0.2s; 
    }
    
    /* Text & Header Resizing */
    h1 { font-size: 2.5rem; }
    
/* Inside @media (max-width: 768px) ... */
    
    .hero .container { justify-content: center; }
    
    /* UPDATED: Increased from 80% to 95% so logo stays larger */
    .hero-content { max-width: 95%; }
    
    .hero-quotes { height: 30vh; }
    .hero-quotes { height: 30vh; }
    .quote { font-size: 1rem; max-width: 80%; }

    .static-phrase { font-size: 1.2rem; top: 10%; }
    .scroll-phrase { font-size: 1.5rem; white-space: normal; } 
    .about-synopsis h2 { font-size: 2rem; }
    .synopsis-text { font-size: 1rem; }
    
    .about-sticky-wrapper { width: 95%; height: 80vh; top: 10vh; }
    
    .chapter-header-btn { font-size: 2rem; } 
    #artwork h2.artwork-header { font-size: 2rem; }

    /* Grid adjustments */
    .director-content-box {
        flex-direction: column;
        text-align: center;
    }
    .director-img-container {
        width: 200px;
        height: 200px;
    }
    .creatives-grid { 
    grid-template-columns: 1fr; 
}
    
    /* Partners Mobile */
    .partners-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .partner-logo {
        max-width: 150px;
    }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

/* --- 8. DEPTH OF FIELD --- */

/* 1. Define who gets blurred */
/* We target specific intro elements instead of the whole container for Chapters/Subjects/etc. */
header .container,
section .chapters-intro, 
section .about-stage,
.trailer-overlay,
.static-phrase {
    transition: filter 1.2s ease, opacity 1.2s ease;
}

/* 2. Default State (In Focus) */
header.in-focus .container,
section.in-focus .chapters-intro, 
section.in-focus .about-stage,
section.in-focus .trailer-overlay,
section.in-focus .static-phrase {
    filter: blur(0);
    opacity: 1;
}

/* 3. Blurred State (Out of Focus) */
header.out-of-focus .container,
section.out-of-focus .chapters-intro, 
section.out-of-focus .about-stage,
section.out-of-focus .trailer-overlay,
section.out-of-focus .static-phrase {
    filter: blur(4px);
    opacity: 0.6;
}

/* 4. Exceptions (Backgrounds that should never blur) */
#about.out-of-focus::before,
.hero::after,
.trailer-section::before {
    filter: blur(0px) !important;
}

/* --- VIDEO MODAL STYLES --- */
.modal {
    display: none; 
    position: fixed;
    /* FIXED: Max Z-Index to ensure visibility over everything */
    z-index: 2147483647; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    /* FIXED: Forced flex display */
    display: flex !important; 
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--color-gold);
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- ENGAGE SECTION STYLES (Restored Blur + Fixed Cards) --- */
#engage {
    /* Fixed Parallax Background */
    background-image: url('assets/Engage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    position: relative;
    z-index: 5;
    background-color: transparent;
}

/* 1. The Wave (Top) */
#engage::before {
    content: "";
    position: absolute;
    top: -1px; 
    left: 0;
    width: 100%;
    height: 65px; 
    z-index: 3; 
    /* Matching the section above (#partners off-white color) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(180deg); 
    pointer-events: none;
}

/* 2. The Content Container */
#engage .container {
    position: relative;
    z-index: 2; 
    /* NOTE: I removed the "!important" overrides here. 
       This restores the global "Depth of Field" blur animation defined in your main CSS. */
}

/* 3. The Tint Overlay */
#engage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 251, 247, 0.4); 
    pointer-events: none;
    z-index: 0; 
}

/* Grid & Layout */
.engage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    text-align: left;
}

.engage-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cards - PERFORMANCE FIX APPLIED */
.engage-card {
    /* Slightly higher opacity (0.92) to compensate for removing the blur filter */
    background: rgba(255, 255, 255, 0.92); 
    padding: 2.5rem; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(208, 182, 60, 0.1);
    
    /* REMOVED: backdrop-filter: blur(5px); */
    /* This specific line was causing the "pop-in" delay on the bottom cards. */
}

.engage-card h3 {
    color: var(--color-violet);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Donate Button */
.donate-btn {
    margin-top: 1.5rem;
    display: inline-block;
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.donate-btn:hover {
    background-color: #e10098; 
    color: #fff;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 2px solid var(--color-violet);
    color: var(--color-violet);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--color-violet);
    color: #fff;
}

/* Newsletter Placeholder */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.newsletter-form button {
    background: var(--color-text);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--color-gold);
}

/* Resource List */
.resource-intro {
    margin-bottom: 2.5rem; 
    line-height: 1.6;
    color: var(--color-text);
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: none; 
}

.resource-list a:hover {
    animation: chapterBtnHoverIn 0.4s linear forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .engage-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        padding: 10px;
    }
    #engage {
        background-attachment: scroll; 
    }
}

/* --- FOOTER STYLES (With Animated Links) --- */
footer {
    position: relative;
    /* High z-index ensures it sits on top of the Engage section */
    z-index: 10; 
    background-color: var(--color-bg); 
    padding: 4rem 0 3rem 0; 
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05); 
}

/* The Wave Element */
footer::before {
    content: "";
    position: absolute;
    top: -64px; 
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 10;
    /* The SVG Wave */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,224L80,197.3C160,171,320,117,480,112C640,107,800,149,960,165.3C1120,181,1280,171,1360,165.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z' fill='%23Fdfbf7'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    font-family: var(--font-header); 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--color-violet);
    text-decoration: none;
    
    /* UPDATED: We use the animation property now instead of transition for color */
    animation: chapterBtnHoverOut 0.4s linear forwards;
    transition: transform 0.3s ease; /* Keep the lift effect separate */
}

.footer-link:hover {
    /* UPDATED: Violet -> Magenta -> Gold Animation */
    animation: chapterBtnHoverIn 0.4s linear forwards;
    transform: translateY(-2px); 
}

.separator {
    color: var(--color-gold);
    font-weight: bold;
}
