/* ==========================================================================
   Musaed · v5 — he steps out of the screen
   Loaded after the main stylesheet; it only touches the hero stage.
   No card, no plate, no frame: only his own silhouette, his own shadow,
   and the light of a screen that is behind him and never shows an edge.
   ========================================================================== */

/* his glow is wider than the phone: clip the hero, never the page */
.hero {
    overflow-x: clip;
}

/* ── desktop: he is as tall as the stage, so his head is never cut, and he
   is ~15% closer than the older layout at every width ───────────────────── */
@media (min-width: 900px) {
    .hero {
        min-height: clamp(640px, 74vw, 1120px);
    }

    .hero-figure {
        inset-block: 28px 0;
        inset-inline-start: clamp(-140px, -7vw, -40px);
        width: auto;
        height: auto;
        aspect-ratio: 1024 / 1402;
        margin-inline: 0;
    }

    .hero-portrait {
        width: 100%;
        height: 100%;
    }
}

/* ── the screen behind him: light, not a box — blurred, so it has no edge */
.hero-figure::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block: 34% -6%;
    inset-inline: -26% 6%;
    border: 0;
    border-radius: 44px 44px 0 0;
    background: linear-gradient(to bottom,
            rgba(182, 115, 63, .20) 0%,
            rgba(182, 115, 63, .07) 42%,
            rgba(182, 115, 63, 0) 78%);
    filter: blur(26px);
    pointer-events: none;
}

/* the display's own top edge: one lit hairline, gone before it could close */
.hero-figure::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block-start: 38%;
    inset-inline: -22%;
    height: 1px;
    background: linear-gradient(to right,
            rgba(182, 115, 63, 0) 0%,
            rgba(255, 247, 237, .85) 34%,
            rgba(255, 247, 237, .85) 64%,
            rgba(182, 115, 63, 0) 100%);
    box-shadow: 0 0 26px 10px rgba(182, 115, 63, .12);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 80%, transparent 100%);
    pointer-events: none;
}

/* ── in front of the page, not printed on it: his own photographic shadow,
   and a touch more density so a white thobe holds on warm limestone ────── */
.hero-portrait {
    filter:
        contrast(1.03) saturate(1.04)
        drop-shadow(0 24px 36px rgba(74, 52, 34, .20))
        drop-shadow(0 3px 9px rgba(74, 52, 34, .12));
}

/* ── phone: he takes more of the stage than before ──────────────────────── */
@media (max-width: 899px) {
    .hero {
        padding-block-end: calc(52vh + 16px);
    }

    .hero-figure {
        width: 96vw;
        height: 52vh;
    }

    .hero-figure::before {
        inset-block: 40% -4%;
        inset-inline: -12% 2%;
        filter: blur(18px);
    }

    .hero-figure::after {
        inset-inline: 2%;
    }
}
