/* Desktop feature: poster and details over a wide, softly shaded artwork. */
.hero-poster-link { display: none; }
@media (min-width: 701px) {
    body.home-page { background: #080808; }

    body.home-page .hero-section {
        --hero-desktop-gutter: clamp(24px, 5.5vw, 106px);
        min-height: clamp(500px, 32vw, 640px);
        background: #080808;
    }

    body.home-page .hero-inner {
        box-sizing: border-box;
        width: min(780px, calc(100% - var(--hero-desktop-gutter) * 2));
        max-width: none;
        margin: 0 0 0 var(--hero-desktop-gutter);
        padding: clamp(126px, 9vw, 160px) 0 96px;
        display: grid;
        grid-template-columns: clamp(132px, 12vw, 184px) minmax(0, 1fr);
        grid-template-rows: 100px 24px minmax(30px, auto) 66px 42px;
        grid-template-areas:
            "poster title"
            "poster themes"
            "poster facts"
            "poster summary"
            "poster actions";
        column-gap: clamp(20px, 2vw, 30px);
        row-gap: 10px;
        align-items: start;
    }

    body.home-page .hero-inner > * { min-width: 0; }

    body.home-page .hero-poster-link:not([hidden]) {
        grid-area: poster;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        align-self: start;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 10px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
        cursor: pointer;
    }

    body.home-page .hero-poster-link:focus-visible {
        outline: 2px solid #ff677a;
        outline-offset: 4px;
    }

    body.home-page .hero-mobile-poster:not([hidden]) {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s cubic-bezier(.2,.75,.25,1);
    }

    @media (hover: hover) and (pointer: fine) {
        body.home-page .hero-poster-link:hover .hero-mobile-poster {
            transform: scale(1.055);
        }
    }

    body.home-page .hero-poster-link:focus-visible .hero-mobile-poster {
        transform: scale(1.055);
    }

    body.home-page .hero-title-logo:not([hidden]) {
        width: min(100%, 340px);
        height: 100%;
        max-height: 100px;
        align-self: center;
        margin: 0;
        object-fit: contain;
        object-position: left center;
        filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .65));
    }

    body.home-page .hero-title:not([hidden]) {
        align-self: center;
        margin: 0;
        font-size: clamp(25px, 2.2vw, 34px);
        line-height: 1.15;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    body.home-page .hero-title[hidden],
    body.home-page .hero-title-logo[hidden] { display: none; }

    body.home-page .hero-themes {
        gap: 14px;
        max-height: 24px;
        overflow: hidden;
    }

    body.home-page .hero-theme {
        min-height: 24px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, .82);
        font-size: 13px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.home-page .hero-theme:hover,
    body.home-page .hero-theme:focus-visible { color: #fff; text-decoration: underline; }

    body.home-page .hero-facts { gap: 8px; }
    body.home-page .hero-fact {
        min-height: 28px;
        padding: 5px 9px;
        font-size: 11px;
        border-radius: 7px;
    }

    body.home-page .hero-summary {
        max-width: 540px;
        color: rgba(255, 255, 255, .83);
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }

    body.home-page .hero-actions { gap: 10px; }
    body.home-page .hero-btn {
        box-sizing: border-box;
        min-height: 40px;
        padding: 9px 18px;
        border-radius: 9px;
        font-size: 13px;
    }

    body.home-page .hero-btn-primary {
        background: #fff;
        color: #101217;
        box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
    }
    body.home-page .hero-btn-primary:hover { background: #e9edf2; }
    body.home-page .hero-btn-primary .hero-btn-icon { fill: currentColor; }
    body.home-page .hero-btn-ghost {
        width: auto;
        height: auto;
        border: 1px solid rgba(255, 255, 255, .24);
        background: rgba(12, 16, 20, .4);
        color: #fff;
    }
    body.home-page .hero-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
    body.home-page .hero-btn-icon { width: 17px; height: 17px; }
    body.home-page .hero-info-label { display: inline; }

    body.home-page .hero-mask {
        background:
            linear-gradient(90deg, rgba(5, 9, 12, .8), rgba(5, 9, 12, .66) 32%, rgba(5, 9, 12, .22) 62%, rgba(5, 9, 12, .06)),
            linear-gradient(0deg, #080808 0%, #080808 9%, rgba(8, 8, 8, .96) 16%, rgba(8, 8, 8, .76) 28%, rgba(8, 8, 8, .4) 42%, rgba(8, 8, 8, .1) 57%, transparent 70%),
            linear-gradient(180deg, rgba(5, 9, 12, .3), transparent 28%);
        box-shadow: none;
    }

    body.home-page .hero-backdrop { background-position: center 40%; }
    body.home-page .hero-video { object-position: center 40%; }

    body.home-page .hero-section.has-mobile-poster-error .hero-inner {
        grid-template-columns: minmax(0, 560px);
        grid-template-areas: "title" "themes" "facts" "summary" "actions";
    }

    .hero-inner.is-enter .hero-poster-link:not([hidden]) {
        animation: heroReveal .55s ease both;
    }
}

@media (min-width: 701px) and (max-width: 980px) {
    body.home-page .hero-inner {
        grid-template-rows: 90px 24px minmax(30px, auto) 66px 42px;
    }
    body.home-page .hero-title-logo:not([hidden]) { max-height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-inner.is-enter .hero-poster-link:not([hidden]) { animation: none; }
    body.home-page .hero-mobile-poster:not([hidden]) { transition: none; }
}
