/* -------------------------------------------------------------
   Dalyan Film Lab — Core Stylesheet (Vanilla CSS)
   Color Palette: Warm Dark, Cream, Soft Beige, Mint Green, Accent Orange
------------------------------------------------------------- */

/* Variables & Design System */
:root {
    --bg-dark: #1A1208;
    /* rgba(26, 18, 8, 1.0) */
    --text-cream: #ece8de;
    /* rgba(236, 232, 222, 1.0) */
    --text-beige: #9C8A6D;
    /* rgba(138, 126, 106, 1.0) */
    --color-mint: #2ac88b;
    /* rgba(42, 200, 139, 1.0) */
    --color-orange: #ffae00;
    /* rgba(255, 174, 0, 1.0) */
    --bg-card: #2a2418;
    /* rgba(42, 36, 24, 1.0) */
    --bg-card-dark: #171512;
    /* filmdays */
    --bg-card-filmdays: #1C1723;
    /* Darkened variant for sections */
    --bg-nav: rgba(23, 18, 13, 0.85);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Sora', Georgia, serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    --container-max-width: 1440px;
    --border-style: 1px solid rgba(236, 232, 222, 0.1);
    --border-style-light: 1px solid rgba(236, 232, 222, 0.2);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-cream);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

button,
input,
textarea {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
}

/* Global Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-beige);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.section-padding {
    padding: 8rem 4rem;
}

.section-padding-bottom {
    padding: 0rem 4rem 8rem;
}

.section-padding2 {
    padding: 4rem 0;
}

.section-padding-small {
    padding: 2rem 4rem 8rem 4rem;
}

@media (max-width: 768px) {

    .section-padding,
    .section-padding2 {
        padding: 4rem 0;
    }
}

/* Shared UI Components */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-orange);
}

.section-label span.line {
    height: 1px;
    width: 24px;
    background-color: var(--color-orange);
    opacity: 0.6;
}

.btn-common {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--text-cream);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background-color: transparent;
    color: var(--text-cream);
}

.btn-common:hover {
    background-color: var(--text-cream);
    color: var(--bg-dark);
}

.btn-secondary {
    border: 0;
}

.btn-common.btn-mint {
    border-color: var(--color-mint);
    color: var(--color-mint);
}

.btn-common.btn-mint:hover {
    background-color: var(--color-mint);
    color: var(--bg-dark);
}

.btn-common.btn-passive {
    opacity: .3;
    background-color: transparent;
    pointer-events: none;
    color: var(--text-cream);
}

.btn-common.btn-passive:hover {
    opacity: .3;
}

/* TOP NAV */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-style);
    transition: var(--transition-smooth);
}

.top-nav .nav-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-nav .logo img {
    height: 36px;
    width: auto;
}

.top-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 0rem;
    list-style: none;
    height: 100%;
}

.top-nav .nav-item {
    display: flex;
    height: 100%;
    justify-content: center;
    flex-direction: column;
}

.top-nav .nav-item a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-beige);
    position: relative;
    padding: .5rem 3rem;
}

.top-nav .nav-item a:hover {
    color: var(--text-cream);
    color: var(--color-mint);
}

/* Labs Full-Width Subnav Bar */
.labs-subnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(26, 18, 8, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(236, 232, 222, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99;
    pointer-events: none;
}

.top-nav:has(.has-subnav:hover) .labs-subnav,
.labs-subnav:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.labs-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.labs-subnav-inner a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(236, 232, 222, 0.45);
    color: var(--text-cream);
    text-decoration: none;
    transition: color 0.2s ease;
}

.labs-subnav-inner a:hover {
    color: var(--text-cream);
    color: var(--color-mint);
}

.top-nav .cta-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-nav .lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-beige);
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-nav .lang-switch:hover {
    color: var(--text-cream);
}

.top-nav .lang-switch svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-cream);
    transition: var(--transition-fast);
}

/* Mobile Nav responsiveness */
@media (max-width: 1300px) {
    .top-nav .nav-menu {
        gap: 0;
    }
}

@media (max-width: 1024px) {
    .top-nav .nav-menu {
        display: none;
        /* Controlled by mobile menu toggle in production */
    }

    .top-nav .cta-container {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 90px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    background-color: var(--bg-dark);
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

/* Left Hero: Interactive Slider */
.hero-left {
    position: relative;
    height: calc(100vh - 90px);
    overflow: hidden;
    border-right: var(--border-style);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide .image-wrapper img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 11, 9, 0.2) 0%, rgba(13, 11, 9, 0.85) 100%);
    z-index: 2;
}

.hero-slide .image-note {
    position: absolute;
    top: 2rem;
    left: 5rem;
    z-index: 3;
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-cream);
    opacity: 0.5;
}

.hero-content-box {
    position: relative;
    z-index: 3;
    padding: 6rem 0 6rem 5rem;
    max-width: 650px;
}

@media (max-width: 768px) {
    .hero-content-box {
        padding: 3rem 1.5rem;
    }

    .hero-slide .image-note {
        left: 1.5rem;
    }
}

.hero-content-box .top-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-mint);
    margin-bottom: 1rem;
}

.hero-content-box h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-content-box h1 {
        font-size: 2.2rem;
    }
}

.hero-content-box p {
    font-size: 1.1rem;
    color: var(--text-cream);
    margin-bottom: 2.5rem;
}

/* Slider indicators */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    z-index: 4;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 40px;
    height: 6px;
    background-color: rgba(236, 232, 222, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--color-mint);
}

/* Right Hero: Lab quick access vertical panel */
.hero-right {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 90px);
    overflow-y: auto;
    background-color: #110e0c;
    /* Slightly lighter warm black */
}

@media (max-width: 1024px) {
    .hero-right {
        height: auto;
    }
}

.hero-right-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 3rem;
    border-bottom: var(--border-style);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    transition: var(--transition-smooth);
}

.hero-right-item:last-child {
    border-bottom: none;
}

.hero-right-item .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.hero-right-item .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(0deg, rgba(13, 11, 9, 0.3) 0%, rgba(13, 11, 9, 0) 100%);
}

.hero-right-item .content {
    position: relative;
    z-index: 3;
}

.hero-right-item .lab-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.hero-right-item .lab-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-cream);
}

.hero-right-item .lab-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/*
.hero-right-item .lab-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-mint);
    display: inline-block;
}
*/
.hero-right-item .lab-desc {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-beige);
    transition: var(--transition-smooth);
}

/* Hover Right Hero Items */
.hero-right-item:hover {
    background-color: rgba(236, 232, 222, 0.02);
}

.hero-right-item:hover .bg-image {
    opacity: 0.4;
    transform: scale(1.05);
}

.hero-right-item:hover .lab-desc {
    color: var(--color-orange);
    transform: translateX(10px);
}

/* SECTION: OPEN CALLS */
.opencalls-section {
    background-color: var(--bg-dark);
    border-top: var(--border-style);
    border-bottom: var(--border-style);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

.section-header-flex h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 700px;
}

.section-header-flex h2 span.programmes {
    display: block;
    color: rgba(236, 232, 222, 0.15);
    /* Very soluk cream as seen in the image */
    margin-bottom: 0.2rem;
}

.section-header-flex h2 span.applications {
    display: block;
    color: var(--text-beige);
    /* Soft beige color for the second line */
}

.opencalls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    /* Seamless cards */
    /*    border: 1px solid rgba(236, 232, 222, 0.08);*/
    /* Wrapper border */
}

@media (max-width: 1024px) {
    .opencalls-grid {
        grid-template-columns: 1fr;
    }
}

.opencall-card {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 4 / 3;
    min-height: 440px;
    position: relative;
    border: 0.5px solid rgba(236, 232, 222, 0.08);
    /* Subtle separators */
    transition: var(--transition-smooth);
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .opencall-card {
        padding: 3rem 2rem;
        aspect-ratio: auto;
        min-height: 380px;
    }
}

.opencall-card:hover {
    border-color: rgba(236, 232, 222, 0.2);
}

.opencall-card .card-top {
    margin-bottom: 3rem;
}

.opencall-card .meta-head {
    display: flex;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-mint);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.opencall-card h3 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--text-cream);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.opencall-card .dates {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-orange);
    font-family: var(--font-sans);
}

.opencall-card .card-bottom {
    border-top: 1px solid rgba(236, 232, 222, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
}

.opencall-card .deadline-label {
    color: var(--text-beige);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.opencall-card .deadline-value {
    color: var(--color-mint);
    font-size: 1.05rem;
    font-weight: 500;
}

/* SECTION: THE LABS (PROGRAMME EXPLORATION) */
.labs-section {
    background-color: var(--bg-dark);
}

.labs-section h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-beige);
    /*rgba(236, 232, 222, 0.15);*/
    /* Very soluk cream as seen in the image */
    margin-bottom: 5rem;
}

.labs-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    /* Asymmetric 2 columns */
    gap: 4rem;
}

.labs-left-column {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.labs-right-column {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

@media (max-width: 1024px) {
    .labs-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .labs-left-column,
    .labs-right-column {
        gap: 4rem;
    }
}

a.lab-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.lab-card .image-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-card-dark);
}

.labs-left-column .lab-card .image-wrapper {
    aspect-ratio: 16 / 10;
}

a.labs-right-column .lab-card .image-wrapper {
    aspect-ratio: 16 / 9;
}

.lab-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.lab-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.lab-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.lab-card .card-meta .tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.lab-card.color-orange .card-meta .tag,
.lab-card.color-orange .card-meta .arrow {
    color: var(--color-orange);
}

.lab-card.color-mint .card-meta .tag,
.lab-card.color-mint .card-meta .arrow {
    color: var(--color-mint);
}

.lab-card.color-magenta .card-meta .tag,
.lab-card.color-magenta .card-meta .arrow {
    color: #1010d2;
}

.lab-card.color-red .card-meta .tag,
.lab-card.color-red .card-meta .arrow {
    color: #830f0f;
}

.lab-card .card-meta .arrow {
    font-size: 1.25rem;
    line-height: 1;
    transition: var(--transition-smooth);
}

.lab-card:hover .card-meta .arrow {
    transform: translateX(6px);
}

.lab-card h3 {
    font-size: 1.7rem;
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--text-cream);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.labs-left-column .lab-card h3 {
    font-size: 2.1rem;
}

@media (max-width: 768px) {
    .labs-left-column .lab-card h3 {
        font-size: 1.7rem;
    }
}

.lab-card .meta-desc {
    font-size: 0.85rem;
    color: var(--text-beige);
}

/* SECTION: UPCOMING (FILM DAYS) */
.upcoming-section {
    background-color: var(--bg-card-dark);
    border-top: var(--border-style);
    border-bottom: var(--border-style);
}

.upcoming-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .upcoming-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.upcoming-left,
.upcoming-secondary {
    position: relative;
    overflow: hidden;
}

.upcoming-left {
    background-color: var(--bg-card-dark);
    border: var(--border-style);
}

.upcoming-left .image-box,
.upcoming-secondary .image-box {
    position: relative;
    height: 450px;
}

.upcoming-left .image-box img,
.upcoming-secondary .image-box img {
    width: 100%;
    height: 100%;
}

.upcoming-left .image-box .overlay,
.upcoming-secondary .image-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 11, 9, 0) 50%, rgba(13, 11, 9, 0.9) 100%);
}

.upcoming-left .info-box,
.upcoming-secondary .info-box {
    padding: 3rem;
}

.upcoming-left .info-box h3,
.upcoming-secondary .info-box h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.upcoming-left .info-box .date,
.upcoming-secondary .info-box .date {
    font-size: 1.2rem;
    color: var(--color-mint);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.upcoming-secondary .info-box .date {
    color: var(--text-cream);
}

.upcoming-left .info-box .desc,
.upcoming-secondary .info-box .desc {
    color: var(--text-beige);
    margin-bottom: 2rem;
}

.upcoming-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upcoming-right h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(236, 232, 222, 0.1);
    padding-bottom: 1rem;
}

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

.movie-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(236, 232, 222, 0.05);
}

.movie-item:last-child {
    border-bottom: none;
}

.movie-item .bullet {
    color: var(--color-mint);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1;
}

.movie-item .movie-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-cream);
    margin-bottom: 0.4rem;
}

.movie-item .movie-meta {
    font-size: 0.85rem;
    color: var(--text-beige);
}

/* SECTION: THE PLACE */
.place-section {
    background-color: var(--bg-dark);
}

.place-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.place-section h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-cream);
    margin: 0;
}

.place-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-beige);
    margin-bottom: 1.5rem;
}

.place-text p:last-child {
    margin-bottom: 0;
}

.place-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}

.place-card {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    transition: var(--transition-smooth);
}

.place-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.place-card:hover img {
    transform: scale(1.05);
}

.place-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 18, 8, 0) 50%, rgba(26, 18, 8, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

.place-card .caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.place-card .caption p {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-cream);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 1024px) {
    .place-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .place-section h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .place-grid {
        grid-template-columns: 1fr;
    }

    .place-section h2 {
        font-size: 2.4rem;
    }
}

/* SECTION: PARTNERS & SPONSORS */
.partners-section {
    background-color: var(--bg-dark);
}

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

.partners-row span {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(236, 232, 222, 0.5);
}

@media (max-width: 768px) {
    .partners-row {
        gap: 2rem;
    }
}

/* SECTION: LATEST NEWS */
.news-section {
    background-color: var(--bg-card-dark);
    border-top: var(--border-style);
    border-bottom: var(--border-style);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background-color: var(--bg-dark);
    border: var(--border-style);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.news-card:hover {
    border-color: var(--text-beige);
    transform: translateY(-5px);
}

.news-card .news-img {
    height: 240px;
    overflow: hidden;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}

.news-card:hover .news-img img {
    transform: scale(1.03);
}

.news-card .news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.news-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-beige);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-card .meta .category {
    color: var(--color-mint);
}

.news-card h3 {
    font-size: 1.35rem;
    color: var(--text-cream);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-beige);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* SECTION: NEWSLETTER */
.newsletter-section {
    background-color: var(--bg-dark);
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: var(--text-beige);
    margin-bottom: 3rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    border-radius: 100px;
    border: 1px solid rgba(42, 200, 139, 0.2);
    /*rgba(236, 232, 222, 0.2);*/
    padding-left: 1.5rem;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text-cream);
    border: none;
    outline: none;
    background: transparent;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-mint);
    opacity: 0.5;
}

.newsletter-form button {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint);
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    color: var(--text-cream);
}

/* FOOTER */
.site-footer {
    background-color: #0E0C09;
    border-top: var(--border-style);
    padding: 6rem 0 3rem 0;
    color: var(--text-beige);
}

.site-footer a:hover {
    color: var(--color-mint) !important;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 1rem;
}

.footer-brand .footer-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-cream);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a:hover {
    color: var(--text-cream);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 230px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact .email {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-contact a:hover {
    color: var(--text-cream);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-top: 2rem;
}

.social-links a {
    color: var(--text-beige);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-cream);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(236, 232, 222, 0.05);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-beige);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-cream);
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-nav-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-cream);
    text-transform: uppercase;
}

.mobile-nav-menu a:hover {
    color: var(--color-mint);
}


/* =============================================================
   LAB DETAIL PAGES — Shared Components
   Each lab page sets --lab-accent on the hero section.
   Swap accent colour per lab; rest stays identical.
============================================================= */

/* btn-orange (Script Lab accent) */
.btn-orange {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.btn-orange:hover {
    background-color: var(--color-orange);
    color: var(--bg-dark);
}

/* ---- LAB HERO ---- */
.lab-hero {
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.lab-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lab-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* keep background visible — tuned per opacity note */
    opacity: 0.55;
}

.lab-hero-overlay {
    position: absolute;
    inset: 0;
    /* 3-stop gradient: top light → mid transparent → bottom heavy */
    background: linear-gradient(180deg,
            rgba(13, 11, 9, 0.0) 35%,
            rgba(13, 11, 9, .7) 70%);
}

.lab-hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 2rem;
}

/* Breadcrumb */
.lab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(236, 232, 222, 0.35);
}

.lab-breadcrumb a {
    color: rgba(236, 232, 222, 0.35);
    transition: color 0.2s ease;
}

.lab-breadcrumb a:hover {
    color: var(--text-cream);
}

.lab-breadcrumb .current {
    color: var(--color-mint);
}

/* Hero inner content */
.lab-hero-inner {
    /*    max-width: 820px;*/
}

.lab-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.lab-badge {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
}

.lab-badge--orange {
    background-color: rgba(255, 174, 0, 0.12);
    color: var(--color-orange);
    border: 1px solid rgba(255, 174, 0, 0.3);
}

.lab-badge--mint {
    background-color: rgba(42, 200, 139, 0.12);
    color: var(--color-mint);
    border: 1px solid rgba(42, 200, 139, 0.3);
}

.lab-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(236, 232, 222, 0.5);
    text-transform: uppercase;
}

.lab-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-mint);
    box-shadow: 0 0 8px rgba(42, 200, 139, 0.6);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.lab-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--text-cream);
    margin-bottom: 1.8rem;
}

.lab-hero-sub {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(236, 232, 222, 0.65);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Date bar */
.lab-hero-dates {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    row-gap: 1.5rem;
}

.lab-date-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 2.5rem;
}

.lab-date-block:first-child {
    padding-left: 0;
}

.lab-date-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(236, 232, 222, 0.35);
}

.lab-date-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-cream);
}

.lab-date-value--dates {
    color: var(--color-orange);
}

.lab-date-value--accent {
    color: var(--color-mint);
}

.lab-date-divider {
    width: 1px;
    height: 42px;
    background-color: rgba(236, 232, 222, 0.1);
    flex-shrink: 0;
    align-self: center;
}

.lab-hero-cta {
    /* inherits btn-orange */
}

/* Scroll hint */
.lab-scroll-hint {
    position: absolute;
    bottom: 6rem;
    right: 4rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(236, 232, 222, 0.6);
}

@media (max-width: 768px) {
    .lab-scroll-hint {
        display: none;
    }

    .lab-hero-title {
        font-size: 3rem;
    }

    .lab-hero-content {
        padding-bottom: 2rem;
    }

    .lab-breadcrumb {
        margin-bottom: 2.5rem;
    }

    .lab-date-block {
        padding: 0 1.5rem;
    }
}

/* ---- LAB OVERVIEW ---- */
.lab-overview {
    background-color: var(--bg-dark);
}

.lab-overview-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 6rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .lab-overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.lab-overview-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text-cream);
    margin-bottom: 3rem;
    line-height: 1.15;
}

.lab-quick-facts {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    grid-template-columns: repeat(2, 4fr);
    gap: 2.5rem;
    align-items: start;
}

.lab-fact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lab-fact-num {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--color-orange);
    line-height: 1;
    letter-spacing: -0.03em;
}

.lab-fact-desc {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-beige);
}

.lab-overview-lead {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-cream);
    margin-bottom: 2rem;
}

.lab-overview-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-beige);
    margin-bottom: 1.5rem;
}

.lab-overview-body:last-child {
    margin-bottom: 0;
}

/* ---- LAB SECTION HEADING ---- */
.lab-section-h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-cream);
    margin-top: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .lab-section-h2 {
        font-size: 2rem;
    }

    .lab-overview-title {
        font-size: 2rem;
    }
}

/* ---- PROGRAMME STEPS ---- */
.lab-programme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: var(--border-style);
}

@media (max-width: 1200px) {
    .lab-programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lab-programme-grid {
        grid-template-columns: 1fr;
    }
}

.lab-programme-item {
    padding: 3rem 2.5rem;
    border-right: var(--border-style);
    transition: background-color 0.3s ease;
}

.lab-programme-item:last-child {
    border-right: none;
}

@media (max-width: 1200px) {
    .lab-programme-item:nth-child(2) {
        border-right: none;
    }

    .lab-programme-item:nth-child(3) {
        border-top: var(--border-style);
    }

    .lab-programme-item:nth-child(4) {
        border-top: var(--border-style);
        border-right: none;
    }
}

.lab-programme-item:hover {
    background-color: rgba(236, 232, 222, 0.025);
}

.lab-programme-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.lab-programme-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-cream);
    margin-bottom: 1rem;
}

.lab-programme-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-beige);
}

/* ---- PROGRAMME STEPS ---- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: var(--border-style);
}

.about-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: var(--border-style);
}

@media (max-width: 1200px) {
    .about-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .about-grid,
    .about-grid2 {
        grid-template-columns: 1fr;
    }
}

.about-grid-item {
    padding: 3rem 2.5rem;
    border-right: var(--border-style);
    background-color: #231F17;
    transition: background-color 0.3s ease;
}

.about-grid-item:last-child {
    border-right: none;
}

@media (max-width: 1200px) {
    .about-grid-item:nth-child(2) {}

    .about-grid-item:nth-child(3) {}

    .about-grid-item:nth-child(4) {
        border-top: var(--border-style);
        border-right: none;
    }
}

.about-grid-item:hover {
    background-color: rgba(236, 232, 222, 0.025);
}

.about-grid-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.about-grid-item h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 300;
    color: var(--color-mint);
    margin-bottom: 1rem;
}


.about-grid-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-cream);
    margin-bottom: 1rem;
}

.about-grid-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-beige);
}


/* ---- CRITERIA / ELIGIBILITY ---- */
.lab-criteria {
    background-color: var(--bg-dark);
}

.lab-criteria-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 6rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .lab-criteria-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.lab-criteria-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-beige);
    margin-bottom: 2.5rem;
    margin-top: -1.5rem;
}

.lab-criteria-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lab-criteria-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: var(--border-style);
    align-items: start;
    transition: background-color 0.3s ease;
}

.lab-criteria-item:first-child {
    border-top: var(--border-style);
}

.lab-criteria-icon {
    color: var(--color-orange);
    font-size: 1rem;
    line-height: 1.5;
    transition: transform 0.3s ease;
}

.lab-criteria-item:hover .lab-criteria-icon {
    transform: translateX(4px);
}

.lab-criteria-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-cream);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.lab-criteria-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-beige);
    margin: 0;
}

/* ---- THE PLACE (Lab page variant) ---- */
.lab-place {
    overflow: hidden;
}

.lab-place-image-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 420px;
    gap: 0;
}

.lab-place-image-row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 560px;
    gap: 0;
}

.lab-place-image-row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 560px;
    gap: 0;
}

.lab-place-img-item {
    position: relative;
    overflow: hidden;
}

.lab-place-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keep scene visible; not too dark */
    opacity: 0.75;
    transition: var(--transition-smooth);
}

.lab-place-img-item:hover img {
    opacity: 0.9;
    transform: scale(1.04);
}

.lab-place-caption {
    position: absolute;
    bottom: 1rem;
    left: 1.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(236, 232, 222, 0.45);
}

.lab-place-img-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    padding: 3rem 6rem;
}


@media (max-width: 768px) {

    .lab-place-image-row,
    .lab-place-image-row2 {
        grid-template-columns: 1fr;
        height: auto;
    }

    .lab-place-img-item-content {
        padding: 2rem 2rem;
    }

}

.lab-place-text {
    /* section-padding already applied inline via class */
}

.lab-place-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .lab-place-body-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.lab-place-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-beige);
    margin-bottom: 1.5rem;
}

.lab-place-body p:last-child {
    margin-bottom: 0;
}

.lab-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-beige);
}

.benefit-item span.line {
    height: 1px;
    width: 24px;
    background-color: var(--color-orange);
    opacity: 0.6;
}


/* ---- FAQ ACCORDION ---- */
.lab-faq-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 6rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .lab-faq-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.lab-faq-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lab-faq-item {
    border-bottom: var(--border-style);
}

.lab-faq-item:first-child {
    border-top: var(--border-style);
}

.lab-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-cream);
    text-align: left;
    transition: color 0.2s ease;
    gap: 1rem;
}

.lab-faq-question:hover {
    color: var(--color-orange);
}

.lab-faq-arrow {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-orange);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.lab-faq-item.is-open .lab-faq-arrow {
    transform: rotate(45deg);
}

.lab-faq-answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-bottom: 0;
}

.lab-faq-item.is-open .lab-faq-answer {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 1.8rem;
}

.lab-faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-beige);
}

/* ---- OPENCALL CARD — FEATURED STATE ---- */
/* When a lab page highlights its own card */
.opencall-card--featured {
    border-color: rgba(255, 174, 0, 0.3) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 174, 0, 0.15);
}

.opencall-card--featured h3 {
    color: var(--color-orange);
}


/* =============================================================
   PAGE-LEVEL BACKGROUND OVERRIDES
   body gets class="page-{$page}" from header.php
============================================================= */

/* Script Lab — dark crimson bg */
.page-script-lab {
    background-color: #300D0D;
}

.page-script-lab section {
    background-color: transparent;
}

/* Alternating section tint on script-lab (and future lab pages) */
.page-script-lab .lab-alt-section {
    background-color: var(--bg-dark);
}

/* Shorts Lab — dark crimson bg */
.page-shorts-lab {
    background-color: #63450A;
}

.page-shorts-lab section {
    background-color: transparent;
}

/* Alternating section tint on script-lab (and future lab pages) */
.page-shorts-lab .lab-alt-section {
    background-color: var(--bg-dark);
}

/* Documentary Lab — dark crimson bg */
.page-documentary-lab {
    background-color: #17291A;
}

.page-documentary-lab section {
    background-color: transparent;
}

/* Alternating section tint on script-lab (and future lab pages) */
.page-documentary-lab .lab-alt-section {
    background-color: #231F17;
}

/* AI + Cinema Lab — dark crimson bg */
.page-ai-cinema-lab {
    background-color: #0C1828;
}

.page-ai-cinema-lab section {
    background-color: transparent;
}

/* Alternating section tint on script-lab (and future lab pages) */
.page-ai-cinema-lab .lab-alt-section {
    background-color: var(--bg-dark);
}

/* Artist Residency — dark crimson bg */
.page-artist-residency {
    background-color: #2E2808;
}

.page-artist-residency section {
    background-color: transparent;
}

/* Alternating section tint on script-lab (and future lab pages) */
.page-artist-residency .lab-alt-section {
    background-color: var(--bg-dark);
}

/* About — dark crimson bg */
.page-about {
    background-color: #301508;
}

.page-about section {
    background-color: transparent;
}

/* Alternating section tint on script-lab (and future lab pages) */
.page-about .lab-alt-section {
    background-color: var(--bg-dark);
}

/* =============================================================
   LAB TUTOR SECTION
============================================================= */
.lab-tutor {
    background-color: var(--bg-dark);
}

.lab-tutor-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .lab-tutor-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.lab-tutor-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.lab-tutor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* visible but atmospheric */
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.lab-tutor-img-wrap:hover img {
    opacity: 0.85;
    transform: scale(1.03);
}

.lab-tutor-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 11, 9, 0) 55%,
            rgba(13, 11, 9, 0.55) 100%);
    pointer-events: none;
}

.lab-tutor-meta {
    margin-bottom: 1.5rem;
}

.lab-tutor-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text-cream);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.lab-tutor-role {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-orange);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.lab-tutor-bio p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-beige);
    margin-bottom: 1.5rem;
}

.lab-tutor-bio p:last-child {
    margin-bottom: 0;
}


/* =============================================================
   GUEST MENTORS SECTION
============================================================= */
.lab-mentors {
    background-color: var(--bg-card-dark);
}

.lab-mentors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .lab-mentors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lab-mentors-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lab-mentor-card {
    position: relative;
    border-right: var(--border-style);
    overflow: hidden;
}

.lab-mentor-card:last-child {
    border-right: none;
}

@media (max-width: 1024px) {
    .lab-mentor-card:nth-child(2) {
        border-right: none;
    }

    .lab-mentor-card:nth-child(3) {
        border-top: var(--border-style);
    }

    .lab-mentor-card:nth-child(4) {
        border-top: var(--border-style);
        border-right: none;
    }
}

.lab-mentor-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.lab-mentor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keep scene visible — not too dark */
    opacity: 0.65;
    transition: var(--transition-smooth);
    filter: grayscale(20%);
}

.lab-mentor-card:hover .lab-mentor-img img {
    opacity: 0.8;
    transform: scale(1.04);
    filter: grayscale(0%);
}

.lab-mentor-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(48, 13, 13, 0) 40%,
            rgba(48, 13, 13, 0.7) 100%);
    pointer-events: none;
}

.lab-mentor-info {
    padding: 1.5rem 1.5rem 2rem;
    border-top: var(--border-style);
}

.lab-mentor-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-cream);
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.lab-mentor-role {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-beige);
}


/* =============================================================
   PREVIOUS PARTICIPANTS SECTION
============================================================= */
.lab-participants {
    background-color: var(--bg-dark);
}

.lab-participants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .lab-participants-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.lab-participant-card {
    display: flex;
    flex-direction: column;
    border: var(--border-style);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.lab-participant-card:hover {
    border-color: rgba(236, 232, 222, 0.2);
}

.lab-participant-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.lab-participant-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keep image readable */
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.lab-participant-card:hover .lab-participant-img img {
    opacity: 0.85;
    transform: scale(1.04);
}

.lab-participant-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(48, 13, 13, 0) 50%,
            rgba(48, 13, 13, 0.6) 100%);
    pointer-events: none;
}

.lab-participant-info {
    padding: 1.8rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: var(--border-style);
}

.lab-participant-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.lab-participant-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-cream);
    letter-spacing: -0.01em;
}

.lab-participant-country {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-beige);
    white-space: nowrap;
}

.lab-participant-project {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-orange);
}

.lab-participant-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-beige);
    margin-top: 0.2rem;
}


/* =============================================================
   PREVIOUS EDITIONS SECTION
============================================================= */
.lab-editions {
    background-color: var(--bg-card-dark);
}

.lab-editions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 1rem;
    border: var(--border-style);
}

@media (max-width: 768px) {
    .lab-editions-grid {
        grid-template-columns: 1fr;
    }
}

.lab-edition-item {
    padding: 3rem 3.5rem 3.5rem;
    border-right: var(--border-style);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.lab-edition-item:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .lab-edition-item {
        border-right: none;
        border-bottom: var(--border-style);
        padding: 2.5rem 2rem;
    }

    .lab-edition-item:last-child {
        border-bottom: none;
    }
}

.lab-edition-item:hover {
    background-color: rgba(236, 232, 222, 0.02);
}

/* Big watermark year */
.lab-edition-year {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 9vw, 8.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.9;
    /* low-opacity ghost number */
    color: rgba(236, 232, 222, 0.07);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
    user-select: none;
}

.lab-edition-item:hover .lab-edition-year {
    color: rgba(255, 174, 0, 0.12);
}

.lab-edition-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.lab-edition-theme {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-cream);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lab-edition-stats {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: var(--border-style);
}

.lab-edition-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-orange);
    line-height: 1;
    letter-spacing: -0.03em;
}

.lab-edition-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-beige);
}


/* =============================================================
   4 WEEKS IN DALYAN TIMELINE
============================================================= */
.lab-weeks-timeline {
    position: relative;
}

.timeline-zigzag {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    position: relative;
}

/* Vertical line in the middle */
.timeline-zigzag::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(236, 232, 222, 0.12);
    transform: translateX(-50%);
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    position: relative;
    align-items: start;
}

.timeline-col {
    position: relative;
}

/* Center bullet point on the vertical line */
.timeline-col::after {
    content: '';
    position: absolute;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--color-orange);
    border: 2px solid #300D0D;
    z-index: 2;
}

.row-left .timeline-col {
    text-align: right;
    padding-right: 3rem;
}

.row-left .timeline-col::after {
    right: -3rem;
    margin-right: -5px;
    /* offset by half width */
}

.row-right .timeline-col {
    text-align: left;
    padding-left: 3rem;
}

.row-right .timeline-col::after {
    left: -3rem;
    margin-left: -5px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-orange);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-cream);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.timeline-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-beige);
    max-width: 480px;
}

.row-left .timeline-text {
    margin-left: auto;
}

@media (max-width: 768px) {
    .timeline-zigzag::before {
        left: 0;
        transform: none;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-col-empty {
        display: none;
    }

    .row-left .timeline-col,
    .row-right .timeline-col {
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
    }

    .row-left .timeline-col::after,
    .row-right .timeline-col::after {
        left: -5px;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-text {
        margin-left: 0;
    }
}