:root {
    /* Color Palette (Extracted from Moodboard) */
    --color-bg-deep: #101115;
    /* Deep dark background */
    --color-bg-surface: #1a1b22;
    /* Slightly lighter for cards/inputs */

    /* Typography Colors */
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #a0a3b1;

    /* Studio Lighting Accents / Softbox Glows */
    --glow-warm: #ffb09c;
    /* Peach / Orange warm light */
    --glow-cool: #f5f5f5;
    /* Off-white rim light */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animation & Transitions */
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(16, 17, 21, 0.95) 0%, rgba(16, 17, 21, 0) 100%);
    backdrop-filter: blur(8px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav a {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.nav a:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition-smooth);
    padding: 0.25rem;
}

.lang-btn:hover {
    color: var(--color-text-primary);
}

.lang-btn.active {
    color: var(--color-text-primary);
    font-weight: 500;
    /* Soft glow on active language */
    text-shadow: 0 0 12px rgba(255, 176, 156, 0.6);
}

.separator {
    color: var(--color-text-secondary);
    opacity: 0.3;
}

/* =========================================
   Hero Section & Lighting Effects
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;

    /* Background Image Setup */
    background-color: var(--color-bg-deep);
    background-image: url('../assets/stage-bg.webp');
    background-size: cover;
    background-position: center 30px;
    background-repeat: no-repeat;
}

/* Semi-transparent dark overlay to ensure text readability against the background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16, 17, 21, 0.5);
    /* Adjust opacity as needed */
    z-index: 0;
}

/* Dynamic Interactive Lighting Overlay */
.lighting-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    /* Dynamic radial gradient based on CSS variables modified by JS */
    /* Defaults to center if JS hasn't fired yet */
    background: radial-gradient(circle 700px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 230, 210, 0.3) 0%,
            rgba(255, 176, 156, 0.15) 30%,
            transparent 70%);

    /* Blend mode for dramatic light on the background */
    mix-blend-mode: color-dodge;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

/* Brightens the light when actively interacting */
.hero.is-interacting .lighting-overlay {
    opacity: 1;
    background: radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 240, 220, 0.5) 0%,
            rgba(255, 176, 156, 0.25) 30%,
            transparent 70%);
}

/* Hero Content */
.hero-content {
    max-width: 900px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 22vh;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 1rem;

    /* Text rendering trick for a crisp look */
    background: linear-gradient(180deg, #ffffff 0%, #e0e3ed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    /* Main softbox highlight catching the text */
    filter: drop-shadow(0 0 35px rgba(255, 176, 156, 0.2)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-text-primary);
    max-width: 80%;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 65%;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Glow Button (representing moodboard input field style adapted to CTA) */
.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 40px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-box {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* The neon rim light effect from the moodboard */
.glow-box::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 40px;
    background: linear-gradient(90deg, rgba(255, 176, 156, 0.6), transparent 50%, rgba(139, 165, 242, 0.4));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #20222a;
}

.btn-primary:hover::after {
    opacity: 1;
    /* Soft bloom */
    box-shadow: 0 0 20px rgba(255, 176, 156, 0.3);
}


/* =========================================
   Structural Containers (To be filled later)
   ========================================= */
.semantic-section {
    min-height: 50vh;
    padding: 8rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.semantic-section h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--color-text-secondary);
    text-align: center;
    opacity: 0.5;
}



/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .semantic-section {
        padding: 4rem 0.5rem;
        /* Container will provide the 1rem base padding */
    }

    .header {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-slogan {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .hero-desc {
        max-width: 90%;
    }

    /* Team Cards Mobile Responsiveness */
    .team-card::before {
        background: linear-gradient(to top, rgba(16, 17, 21, 1) 0%, rgba(16, 17, 21, 0.8) 50%, rgba(16, 17, 21, 0) 100%) !important;
    }

    .card-content-wrapper,
    .team-grid .card-content-wrapper {
        padding: 1.5rem !important;
        justify-content: flex-start !important;
        align-items: flex-end !important;
    }

    .card-content,
    .team-grid .card-content {
        max-width: 100% !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .featured-card {
        min-height: 550px !important;
        background-position: center 15%;
    }
}

/* =========================================
   Who We Are Section
   ========================================= */
#who-we-are {
    display: block;
    /* Override flex from semantic-section */
    padding-top: 6rem;
}

.section-header {
    margin: 0 auto 4rem auto;
    max-width: 800px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 1;
}

.history-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Team Cards Container */
.team-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Base Team Card */
.team-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dark Gradient Overlay for Readability */
.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(16, 17, 21, 0.95) 0%, rgba(16, 17, 21, 0.7) 40%, rgba(16, 17, 21, 0.1) 100%);
    z-index: 1;
}

.card-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: 3rem;
    min-height: 100%;
}

.card-content {
    max-width: 55%;
    /* Text on the right */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Featured Director Card */
.featured-card {
    min-height: 520px;
}

.featured-card::before {
    background: linear-gradient(to left, rgba(16, 17, 21, 0.68) 0%, rgba(16, 17, 21, 0.5) 45%, rgba(16, 17, 21, 0.15) 70%, rgba(16, 17, 21, 0) 100%);
}

.featured-card .card-content-wrapper {
    justify-content: flex-start;
    padding: 3rem 2.5rem;
}

.featured-card .card-content.featured-director-layout {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
}

.featured-director-photo-wrap {
    flex-shrink: 0;
    margin-left: 1rem;
    /* Adds empty space to the left of the photo */
}

.featured-director-photo {
    width: 300px;
    height: 390px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: block;
    transition: box-shadow var(--transition-smooth);
}

.featured-card:hover .featured-director-photo,
.featured-director-photo:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 163, 115, 0.15);
}

.repertoire-show-card .featured-director-photo-wrap {
    flex: 1;
    margin-left: 0;
}

.repertoire-show-card .featured-director-photo {
    width: 100%;
    height: auto;
    max-height: 450px;
}

.featured-director-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-card .member-name {
    font-size: 1.85rem;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.featured-card .member-role {
    font-size: 1rem;
    color: var(--glow-warm);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.featured-card .member-bio {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.featured-card .member-bio p {
    margin-bottom: 0.85rem;
}

.featured-card .member-bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .featured-card .card-content.featured-director-layout {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .repertoire-show-card .featured-director-photo-wrap,
    .repertoire-show-card .featured-director-info {
        flex: none;
        width: 100%;
    }


    .featured-director-photo-wrap {
        margin-left: 0;
    }

    .featured-director-photo {
        width: 175px;
        height: 255px;
    }
}

@media (max-width: 768px) {
    .featured-card .card-content-wrapper {
        padding: 2rem 1.5rem !important;
        justify-content: flex-start !important;
    }

    .featured-card .card-content.featured-director-layout {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .featured-director-photo {
        width: 160px;
        height: 230px;
    }
}

/* Unified Team Grid */
.team-grid-unified {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    min-height: 580px;
    display: flex;
    flex-direction: column;
}

.unified-overlay {
    background: linear-gradient(135deg, rgba(16, 17, 21, 0.7) 0%, rgba(16, 17, 21, 0.4) 50%, rgba(16, 17, 21, 0.1) 100%);
    padding: 2.5rem 3rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.unified-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    flex-grow: 1;
    align-content: space-evenly;
}

.member-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform var(--transition-smooth);
}

.member-block:hover {
    transform: translateY(-2px);
}

.member-avatar {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-info .member-name {
    font-size: 1.4rem;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.member-info .member-role {
    font-size: 0.85rem;
    color: var(--glow-cool);
    opacity: 0.85;
    line-height: 1.4;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.member-info .role-accent {
    color: var(--glow-warm);
    opacity: 0.95;
}

.member-info .role-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.3rem;
}

@media (max-width: 768px) {
    .unified-overlay {
        padding: 2rem 1.5rem;
    }

    .unified-members {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.cf-turnstile {
    margin-bottom: 1.5rem;
}


/* =========================================
   Event Calendar Section (#calendar)
   ========================================= */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

details.schedule-item {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

details.schedule-item.upcoming-event {
    border-color: rgba(255, 176, 156, 0.2);
    box-shadow: 0 5px 25px rgba(255, 176, 156, 0.05);
}

details.schedule-item.upcoming-event:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 176, 156, 0.4);
    box-shadow: 0 8px 30px rgba(255, 176, 156, 0.15);
}

details.schedule-item.past-event {
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

details.schedule-item.past-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.1);
}

.schedule-summary {
    cursor: pointer;
    list-style: none;
    outline: none;
}

.schedule-summary::-webkit-details-marker {
    display: none;
}

.schedule-summary::marker {
    content: "";
    display: none;
}

.schedule-summary-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

.schedule-date.badge-only {
    min-height: 50px;
}

.date-day {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-text-primary);
}

.date-month {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--glow-warm);
    margin-top: 0.5rem;
}

.date-year {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.schedule-summary-content {
    flex-grow: 1;
}

.schedule-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: transform var(--transition-smooth);
}

details.schedule-item[open] .schedule-chevron {
    transform: rotate(-180deg);
}

details.schedule-item .schedule-details {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-left: calc(80px + 3.5rem);
    animation: fadeIn var(--transition-smooth);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.event-poster-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.event-poster {
    max-width: 100%;
    width: 50%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .event-poster {
        width: 100%;
    }
}

.location-link {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.location-link:hover {
    color: var(--glow-warm);
    border-bottom-color: var(--glow-warm);
    text-shadow: 0 0 8px rgba(212, 163, 115, 0.4);
}

.event-desc {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.event-program {
    list-style: none;
    padding-left: 0;
}

.event-program li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.event-program li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--glow-warm);
}

.event-program--no-bullet li {
    padding-left: 0;
}

.event-program--no-bullet li::before {
    display: none;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(139, 165, 242, 0.1);
    color: var(--glow-cool);
    border: 1px solid rgba(139, 165, 242, 0.3);
    font-family: var(--font-body);
    font-weight: normal;
    letter-spacing: 1px;
    white-space: nowrap;
}

.upcoming-badge {
    background: rgba(255, 176, 156, 0.15);
    color: var(--glow-warm);
    border: 1px solid rgba(255, 176, 156, 0.4);
    box-shadow: 0 0 10px rgba(255, 176, 156, 0.2);
}

.past-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .schedule-summary-inner {
        flex-wrap: wrap;
        padding: 1.5rem;
        gap: 1rem;
    }

    .schedule-date {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 1rem;
        gap: 1rem;
        align-items: baseline;
    }

    .schedule-date.badge-only {
        min-height: auto;
    }

    .schedule-summary-content {
        width: calc(100% - 24px - 1rem);
    }

    .schedule-chevron {
        width: 24px;
        justify-content: flex-end;
    }

    details.schedule-item .schedule-details {
        margin-left: 0;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .event-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* =========================================
   Media Section
   ========================================= */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.repertoire-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.repertoire-gallery-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.repertoire-gallery .media-item {
    aspect-ratio: 9 / 16;
}

.repertoire-gallery-4 .media-item {
    aspect-ratio: 3 / 2;
}

.repertoire-gallery-4 .media-thumb {
    object-fit: cover;
}

@media (max-width: 992px) {
    .repertoire-gallery-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .repertoire-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    background-color: var(--color-bg-surface);
}

.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.media-item:hover .media-thumb {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.media-item::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    pointer-events: none;
    transition: box-shadow var(--transition-smooth);
}

.media-item:hover::after {
    box-shadow: inset 0 0 0 1px rgba(255, 176, 156, 0.3);
}

.video-item .media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background var(--transition-smooth);
}

.video-item:hover .media-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-smooth), transform var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.video-item:hover .play-icon {
    color: var(--glow-warm);
    transform: scale(1.1);
}

/* =========================================
   Lightbox
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(16, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--color-text-primary);
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-smooth), color var(--transition-smooth);
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--glow-warm);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text-primary);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: background var(--transition-smooth), color var(--transition-smooth);
    border-radius: 8px;
    font-family: monospace;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(212, 163, 115, 0.8);
    color: var(--color-bg-deep);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

.lightbox-content-wrapper {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.lightbox-caption p {
    margin: 0;
}

.lightbox-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Partners Section (#partners)
   ========================================= */
.partners-section {
    padding: 6rem 0 4rem;
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.partner-card {
    position: relative;
    background: rgba(26, 27, 34, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 150px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    opacity: 0.72;
}

.partner-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 176, 156, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

/* Softbox hover effect & "light up" */
.partner-card:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: rgba(255, 176, 156, 0.35);
    background: rgba(26, 27, 34, 0.75);
    box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 176, 156, 0.15);
}

.partner-card:hover .partner-card-glow {
    opacity: 1;
}

/* Partner 1: VAST Special Logo Placeholder Card */
.partner-card--vast {
    background: rgba(26, 27, 34, 0.55);
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.partner-card--vast:hover {
    border: 1px solid var(--glow-warm);
}

.partner-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.partner-brand-name {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--color-text-primary);
    text-transform: uppercase;
    transition: color var(--transition-smooth), text-shadow var(--transition-smooth);
}

.partner-card:hover .partner-brand-name {
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 176, 156, 0.5);
}

.partner-badge {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--glow-cool);
    background: rgba(139, 165, 242, 0.1);
    border: 1px solid rgba(139, 165, 242, 0.25);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Partner Logo */
.partner-logo-wrap {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.partner-logo-wrap--no-bg {
    background-color: transparent;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo-karina {
    transform: scale(1.8);
}

/* Partner Content Details */
.partner-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.4rem;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
    line-height: 1.35;
    transition: color var(--transition-smooth);
}

.partner-card:hover .partner-name {
    color: #fff;
}

.partner-sub {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.4px;
    line-height: 1.4;
    transition: color var(--transition-smooth);
}

.partner-card:hover .partner-sub {
    color: var(--color-text-primary);
}

.partner-address {
    font-size: 0.8rem;
    color: rgba(160, 163, 177, 0.7);
    margin-top: 0.2rem;
    display: block;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--glow-cool);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.5rem;
    transition: all var(--transition-smooth);
}

.partner-link .external-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-smooth);
}

.partner-link:hover {
    color: var(--glow-warm);
}

.partner-link:hover .external-icon {
    transform: translate(2px, -2px);
}

/* =========================================
   Collaboration Section (#collaboration)
   ========================================= */
.collaboration-section {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.collaboration-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.collaboration-text {
    text-align: left;
}

.collaboration-desc {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Feature Cards Redesign */
.goals-section {
    padding-bottom: 2rem !important;
}

.collaboration-section {
    padding-top: 4rem !important;
    border-top: none !important;
}

/* Goals List */
.goals-content {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(rgba(16, 17, 21, 0.85), rgba(16, 17, 21, 0.85)), url('../assets/2hands-collab.webp') center/cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.goals-list {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.goals-list li {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.goals-list li strong {
    color: var(--glow-warm);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Full Width Form Card */
.collaboration-form-card {
    margin-top: 3rem;
    background: rgba(16, 17, 21, 0.6);
}

.collaboration-form-card .feature-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-card-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.form-card-header h3 {
    margin-bottom: 1rem;
}

.form-card-header p {
    margin-bottom: 0;
}

.collaboration-grid-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .collaboration-grid-form {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        grid-template-areas:
            "left right"
            "bottom bottom";
        gap: 2rem;
    }

    .form-left {
        grid-area: left;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .form-left .form-group {
        margin-bottom: 0;
    }

    .form-right {
        grid-area: right;
        display: flex;
        flex-direction: column;
    }

    .form-right .form-group {
        margin-bottom: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .form-right .form-input {
        flex-grow: 1;
    }

    .form-bottom {
        grid-area: bottom;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
        align-items: center;
        margin-top: 0.5rem;
    }

    .form-bottom .submit-btn {
        width: 100%;
    }
}

/* Glass Form Styles */
.collaboration-form-wrapper {
    background: rgba(16, 17, 21, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: rgba(212, 163, 115, 0.5);
    /* warm glow border */
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.15);
    /* softbox glow */
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.cf-turnstile {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    background: rgba(212, 163, 115, 0.1);
    color: var(--glow-warm);
    border: 1px solid rgba(212, 163, 115, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(212, 163, 115, 0.2);
    border-color: rgba(212, 163, 115, 0.6);
    box-shadow: 0 0 20px rgba(212, 163, 115, 0.2);
}

/* =========================================
   Contacts Section (#contacts)
   ========================================= */
.contacts-section {
    padding: 5rem 0 6rem;
    position: relative;
}

.contacts-section .section-header {
    margin-bottom: 3.5rem;
}

.contacts-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contacts-image {
    flex: 1 1 45%;
    max-width: 45%;
}

.contacts-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.contacts-info {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.contacts-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 0;
}

.contact-email-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--glow-cool);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.contact-email-link:hover {
    color: var(--glow-warm);
    text-decoration: none;
    text-shadow: 0 0 16px rgba(255, 176, 156, 0.4);
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    transition: all var(--transition-smooth);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    background: rgba(255, 176, 156, 0.12);
    border-color: rgba(255, 176, 156, 0.4);
    color: var(--glow-warm);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 176, 156, 0.2);
}

/* =========================================
   Foundation Legal Footer (#footer)
   ========================================= */
.footer {
    position: relative;
    max-width: 1200px;
    width: calc(100% - 4rem);
    margin: 0 auto 2.5rem auto;
    min-height: 140px;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #0b0c10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.footer-overlay {
    width: 100%;
    min-height: 140px;
    background: linear-gradient(to right, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.8) 45%, rgba(11, 12, 16, 0.2) 80%, rgba(11, 12, 16, 0.05) 100%);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
}

.footer-legal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.4rem;
    width: 100%;
}

.footer-foundation-name,
.footer-legal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.footer-legal-info {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--glow-cool);
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(160, 163, 177, 0.7);
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.4px;
}

@media (max-width: 768px) {
    .contacts-layout {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .contacts-image,
    .contacts-info {
        flex: 1 1 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .contacts-content {
        align-items: center;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .contact-email-link {
        font-size: 1.15rem;
        word-break: break-all;
    }

    .footer {
        width: calc(100% - 2rem);
        margin: 0 auto 2rem auto;
        border-radius: 12px;
        min-height: 130px;
    }

    .footer-overlay {
        min-height: 130px;
        padding: 1.25rem 1rem;
        background: rgba(11, 12, 16, 0.88);
    }

    .footer-foundation-name,
    .footer-legal-title {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    .footer-legal-info {
        font-size: 0.85rem;
        gap: 0.6rem;
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav a {
        font-size: 0.75rem;
    }

    .logo {
        text-align: center;
    }

    .collaboration-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 1rem;
    }

    .nav {
        gap: 0.8rem;
    }

    .nav a {
        font-size: 0.7rem;
    }
}