:root {
    --color-copy: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.6);
    --color-line: rgba(255, 255, 255, 0.15);
    --color-bg: #000000;
    --font-body: "EB Garamond", Garamond, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-copy);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-body);
    color: var(--color-copy);
    text-align: center;
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.uppercase { text-transform: uppercase; }
.bodega-light { font-weight: 400; }
.bodega-medium { font-weight: 600; }
.bodega-black { font-weight: 700; }

/* ---------- Fixed controls ---------- */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    color: var(--color-copy);
    padding: 6px 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    opacity: 1;
}

.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.ctrl-btn {
    background: #000;
    border: 1px solid var(--color-copy);
    color: var(--color-copy);
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.ctrl-btn:hover {
    background: var(--color-copy);
    color: #000;
}

.mute-toggle.is-muted {
    border-color: var(--color-muted);
    color: var(--color-muted);
}

.mute-toggle.is-muted:hover {
    background: var(--color-copy);
    color: #000;
}

/* ---------- Header / Stage ---------- */
header {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0 4rem 0;
    gap: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85%;
    background-image: url('../img/flowers_poster.gif?v=26-08-26');
    background-color: var(--color-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    will-change: transform;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.85) 75%, #000 85%);
}

.top-meta {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.3rem;
    z-index: 10;
}

.title-container {
    text-align: center;
    z-index: 10;
    padding-top: 6rem;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 0.9;
    pointer-events: none;
    text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    margin-top: 2.5rem;
}

.header-details {
    position: relative;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    z-index: 9;
}

.detail-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item .label {
    font-size: 1rem;
    opacity: 0.6;
    letter-spacing: 0.1rem;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    line-height: 1.2;
}

/* ---------- Sections ---------- */
section {
    padding: 6rem 10%;
    margin: 0 auto;
    position: relative;
}

.centered-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.body-text {
    font-size: 1.25rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.body-text.lead {
    font-size: 1.6rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Quotes */
#quotes {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

#quotes .quote-text {
    font-size: 2.2rem;
    line-height: 1.5;
    font-weight: 400;
    font-style: italic;
    max-width: 900px;
}

#quotes .quote-text p {
    margin-bottom: 4rem;
}

#quotes .quote-text p::before {
    content: '';
    display: block;
    width: 3rem;
    height: 1px;
    background: var(--color-line);
    margin: 0 auto 2rem;
}

/* Images */
.image-container {
    text-align: center;
    margin: 4rem auto;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.image-container.portrait {
    max-width: 640px;
}

.image-container.portrait.tall {
    max-width: 720px;
}

/* Image duo: two portraits side by side, vertically staggered */
#duo {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.duo-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    max-width: 1050px;
    margin: 0 auto;
    align-items: start;
}

.duo-item {
    margin: 0;
}

.duo-item img {
    display: block;
    width: 100%;
    height: auto;
}

.duo-left {
    width: 85%;
    margin-top: 12rem;
}

.duo-right {
    width: 82%;
    margin-top: 0;
    margin-left: auto;
}

#logline {
    padding-top: 4rem;
}

#theme {
    padding-top: 2rem;
}


#wide-image-section {
    padding: 4vw;
    max-width: none;
}

.wide-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Split sections: text + image side by side */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1300px;
    padding-left: 6%;
    padding-right: 6%;
}

.split-reverse .split-image { order: 1; }
.split-reverse .split-text { order: 2; }

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

.split-text .section-title {
    text-align: left;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    margin-bottom: 1.5rem;
}

.split-text .body-text {
    margin-bottom: 0;
}

.split-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

/* Script */
#script {
    padding-top: 2rem;
    padding-bottom: 8rem;
}

.script-link {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--color-copy);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.script-link:hover {
    background: var(--color-copy);
    color: #000;
    opacity: 1;
}

/* ---------- Footer ---------- */
footer {
    padding: 6rem 10% 8rem;
    text-align: center;
    border-top: 1px solid var(--color-line);
}

.credits-title {
    font-weight: 400;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    letter-spacing: 0.2rem;
    opacity: 0.9;
}

.credits-line {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    opacity: 0.8;
    letter-spacing: 0.05rem;
}

.credits-url {
    font-size: 1.1rem;
    margin-top: 2rem;
    font-weight: 500;
    letter-spacing: 0.15rem;
    opacity: 0.9;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    header {
        min-height: 100vh;
        gap: 3rem;
        padding-top: 5.5rem;
    }

    .top-meta {
        padding: 0 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.2rem;
    }

    .hero-bg {
        height: 70%;
    }

    .hero-shade {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.85) 60%, #000 70%);
    }

    .title-container {
        padding-top: 3rem;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .body-text.lead {
        font-size: 1.3rem;
    }

    #quotes .quote-text {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    section {
        padding: 4rem 6%;
    }

    .header-details {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        border-top: none;
        border-bottom: none;
    }

    .detail-item {
        flex: 1 1 40%;
        border-top: 1px solid var(--color-line);
        padding-top: 1rem;
    }

    .detail-item:last-child {
        flex-basis: 100%;
    }

    .duo-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 520px;
    }

    .duo-left {
        margin-top: 0;
    }

    .duo-right {
        width: 78%;
        margin-top: 0;
        margin-left: auto;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-left: 6%;
        padding-right: 6%;
    }

    .split-reverse .split-image { order: 2; }
    .split-reverse .split-text { order: 1; }

    .split-text,
    .split-text .section-title {
        text-align: center;
    }

    .split-image {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .ctrl-btn {
        font-size: 0.85rem;
        padding: 5px 9px;
    }

    .back-btn {
        font-size: 0.85rem;
    }
}
