:root {
    --bg-color: #0a0a0a;
    --text-main: #e5e5e5;
    --text-muted: #888;
    --accent: #f2f2f2;
    --border-color: #333;
    --panel-color: #151515;
    --type: 'Special Elite', 'Courier New', monospace
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--border-color);
    color: var(--text-main);
    font-family: Inter, sans-serif;
    margin: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh
}

/* ---------- Sidebar (same as the other project pages) ---------- */

.sidebar {
    background: var(--bg-color);
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: space-between
}

.sidebar>div:first-child {
    padding: 2rem
}

.sidebar h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1;
    margin: 4rem 0 .5rem
}

.subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem
}

.back-link:hover {
    color: var(--accent)
}

.meta-info {
    padding: 2rem;
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.6
}

.muted {
    color: var(--text-muted)
}

.project-content {
    background: var(--bg-color);
    overflow-y: auto
}

/* ---------- Screening: the film comes first ---------- */

.screening {
    position: relative;
    padding: 4rem 3rem 2rem;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .07), transparent 60%),
        linear-gradient(rgba(10, 10, 10, .88), rgba(10, 10, 10, .97)),
        url("../../img/marlot_no_logo.png") center/cover no-repeat;
    border-bottom: 1px solid var(--border-color)
}

.screen {
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #2a2a2a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .8), 0 0 0 10px #000
}

.screen iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0
}

.screen-note {
    max-width: 1100px;
    margin: 1.75rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--type);
    font-size: .85rem;
    color: var(--text-muted)
}

.screen-note a {
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    gap: .5rem;
    align-items: center
}

.screen-note a:hover,
.screen-note a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px
}

/* ---------- Text ---------- */

.content-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 4rem 3rem 5rem
}

.eyebrow,
.section-index {
    color: var(--text-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0
}

.title-card {
    text-align: center;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color)
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 1rem 0 1.5rem
}

.logline {
    max-width: 620px;
    margin: 0 auto;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #bbb
}

.dossier {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color)
}

.synopsis p:not(.section-index) {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
    margin: 1rem 0 0
}

.fiche {
    margin: 0;
    font-family: var(--type);
    font-size: .85rem
}

.fiche div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px dashed var(--border-color)
}

.fiche div:first-child {
    border-top: 1px dashed var(--border-color)
}

.fiche dt {
    color: var(--text-muted)
}

.fiche dd {
    margin: 0;
    color: var(--text-main)
}

/* ---------- Credits ---------- */

.credits {
    padding: 3.5rem 0 4rem;
    text-align: center
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem
}

.credit-block h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.3rem;
    margin: 0 0 1.5rem
}

.credit-block ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.credit-block li {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: 1.25rem
}

.who {
    font-family: var(--type);
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase
}

.as {
    color: var(--text-muted);
    font-size: .8rem
}

.project-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.project-footer img {
    width: 200px;
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
}

.project-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em
}

@media(max-width:1024px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr
    }

    .sidebar {
        height: auto;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid var(--border-color)
    }

    .sidebar h1 {
        margin-top: 2rem
    }

    .meta-info {
        padding-top: 0
    }
}

@media(max-width:700px) {
    .screening {
        padding: 2rem 16px 1.5rem
    }

    .screen {
        box-shadow: 0 20px 50px rgba(0, 0, 0, .8)
    }

    .screen-note {
        flex-direction: column;
        align-items: flex-start
    }

    .content-wrapper {
        padding: 3rem 1.5rem 4rem
    }

    .dossier,
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .project-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem
    }
}
