/* ========================================
   Hero section — mosaic background + text
   ======================================== */

.section-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ----------------------------------------
   Full-bleed hero background — Ken Burns + crossfade
   ---------------------------------------- */

.hero-mosaic {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

/* Both images fill the container */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg-img {
    transition: opacity 1.5s ease-in-out;
}

/* Gradient overlay — photos visible at top, solid dark at bottom for text.
   The radial layer adds a soft extra-dark pool right behind the title. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 40% at 28% 78%, rgba(0,0,0,0.5) 0%, transparent 100%),
        linear-gradient(
            to bottom,
            rgba(20, 20, 20, 0.35) 0%,
            rgba(20, 20, 20, 0.55) 35%,
            rgba(20, 20, 20, 0.92) 62%,
            rgba(20, 20, 20, 1.00) 80%
        );
    z-index: 1;
}

/* ----------------------------------------
   Hero text content
   ---------------------------------------- */

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(20px, 4vw, 48px) clamp(72px, 14vh, 160px);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    /* stretch to fill the section so justify-content: flex-end works */
    align-self: stretch;
}

/* Large display headline */
.hero {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-bottom: clamp(20px, 3vh, 40px);
}

.hero-title {
    font-family: -apple-system, 'Inter', sans-serif;
    font-size: clamp(56px, 9.5vw, 132px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #ffffff; /* overridden by JS once photos load */
    margin: 0;
    transition: color 1.5s ease-in-out;
}

/* Divider */
.hero-rule {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* Metadata row */
.hero-meta {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    padding-top: clamp(20px, 3vh, 36px);
}

.hero-meta-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 400;
    line-height: 1.65;
    max-width: 420px;
    margin: 0;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.meta-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-value {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.meta-value a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.meta-value a:hover { opacity: 0.5; }

.contact-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    height: 22px;
    width: 22px;
    object-fit: contain;
    display: block;
}

.contact-icon--letterboxd {
    height: 26px;
    width: 26px;
    margin-left: -3px;
}

.contact-icon--x {
    margin-left: -6px;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */

@media screen and (max-width: 991px) {
    .hero-meta {
        grid-template-columns: 1fr 1fr;
        gap: 24px 40px;
    }

    .hero-meta-desc {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 767px) {
    .section-hero {
        padding-top: 52px;
    }

    .hero-content {
        padding-bottom: clamp(24px, 5dvh, 48px);
    }


    .hero-title {
        font-size: clamp(44px, 11vw, 72px);
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-meta-desc {
        grid-column: auto;
    }
}

@media screen and (max-width: 479px) {
    .hero-title {
        font-size: clamp(36px, 12vw, 56px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-img { transition: none; }
}
