/* =========================================================
   HOME V5 — INTEGRATED PORTRAIT / COMPACT SIGNALS
   Mobile first. First screen fits. Footer remains the loudest ending.
========================================================= */

.home-v5 .page {
    background: #090a0b;
}

.home-stage__eyebrow,
.home-stage__role,
.home-stage__actions,
.home-releases__head,
.home-release__meta,
.home-story__label,
.home-story__read {
    font-family: var(--brand-mono);
    text-transform: uppercase;
}

/* ---------- First screen ---------- */
.home-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--brand-text);
    background: #070809;
}

.home-stage__portrait,
.home-stage__wash,
.home-stage__texture {
    position: absolute;
    inset: 0;
}

.home-stage__portrait {
    z-index: -4;
    overflow: hidden;
}

.home-stage__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 22%;
    filter: saturate(.84) contrast(1.04) brightness(.77);
    --brand-media-base-scale: 1.008;
    transform: scale(calc(var(--brand-media-base-scale) + var(--brand-media-drift, 0)));
}

.home-stage__wash {
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(5,6,7,.04) 0%, rgba(5,6,7,.10) 35%, rgba(5,6,7,.88) 100%),
        linear-gradient(90deg, rgba(5,6,7,.28), transparent 72%);
}

.home-stage__texture {
    z-index: -2;
    opacity: .13;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 18% 30%, rgba(255,255,255,.07), transparent 28%);
    mix-blend-mode: soft-light;
}

.home-stage__layout {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: clamp(16px, 3svh, 30px);
    padding-bottom: clamp(22px, 4svh, 38px);
}

.home-stage__identity {
    width: min(100%, 680px);
    padding-bottom: clamp(30px, 5.5svh, 58px);
}

.home-stage__eyebrow {
    margin: 0 0 10px;
    color: rgba(238,233,225,.76);
    font-size: clamp(.58rem, 2.45vw, .70rem);
    font-weight: 500;
    letter-spacing: .04em;
}

.home-stage h1 {
    display: flex;
    flex-direction: column;
    width: min-content;
    margin: 0;
    font-size: clamp(4.15rem, 18.3vw, 7.7rem);
    line-height: .75;
    letter-spacing: -.09em;
    text-shadow: 0 2px 30px rgba(0,0,0,.35);
}

.home-stage h1 span:last-child {
    color: rgba(238,233,225,.84);
    font-weight: 500;
}

.home-stage__role {
    margin: 16px 0 0;
    color: rgba(238,233,225,.72);
    font-size: clamp(.53rem, 2.2vw, .64rem);
    line-height: 1.35;
    letter-spacing: .025em;
}

.home-stage__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(238,233,225,.24);
    color: rgba(238,233,225,.84);
    font-size: .57rem;
    letter-spacing: .035em;
}

.home-stage__actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-stage__actions span {
    color: rgba(238,233,225,.58);
}

/* ---------- Selected records: compact and browseable ---------- */
.home-releases {
    padding: clamp(58px, 12vw, 118px) 0 clamp(68px, 13vw, 126px);
    background: #0b0c0d;
}

.home-releases__inner {
    overflow: hidden;
}

.home-releases__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: .56rem;
    letter-spacing: .03em;
}

.home-releases__head div > span {
    color: var(--brand-text-soft);
}

.home-releases__head p {
    margin: 5px 0 0;
    text-transform: none;
    font-family: var(--brand-sans);
    font-size: .84rem;
    letter-spacing: 0;
}

.home-releases__head > a {
    flex: 0 0 auto;
    color: var(--brand-text-soft);
}

.home-releases__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 330px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    padding-right: 18vw;
}

.home-releases__grid::-webkit-scrollbar {
    display: none;
}

.home-release {
    scroll-snap-align: start;
    display: block;
    min-width: 0;
    color: var(--brand-text);
}

.home-release__art {
    position: relative;
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111315;
}

.home-release__art::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(238,233,225,.12);
    pointer-events: none;
}

.home-release__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2,.65,.3,1), filter .4s ease;
}

.home-release__meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 12px;
    padding: 11px 0 0;
    color: var(--brand-muted);
    font-size: .50rem;
    letter-spacing: .02em;
}

.home-release__meta h2 {
    margin: 0 0 3px;
    color: var(--brand-text);
    font-family: var(--brand-sans);
    font-size: clamp(1.65rem, 8vw, 2.5rem);
    line-height: .9;
    letter-spacing: -.055em;
}

.home-release__meta p {
    margin: 0;
}

.home-release__meta > strong {
    color: var(--brand-text-soft);
    font-size: .75rem;
    font-weight: 500;
}

.home-releases__empty {
    color: var(--brand-muted);
}

/* ---------- Journal: supporting feature, not a second hero ---------- */
.home-story {
    padding: clamp(64px, 13vw, 124px) 0;
    background: #090a0b;
    border-top: 1px solid var(--brand-line);
}

.home-story__inner {
    display: grid;
    gap: 26px;
}

.home-story__media {
    display: block;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111315;
}

.home-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82) brightness(.78) contrast(1.05);
    transition: transform .45s cubic-bezier(.2,.65,.3,1), filter .45s ease;
}

.home-story__copy {
    align-self: center;
    max-width: 700px;
}

.home-story__label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: .53rem;
    letter-spacing: .03em;
}

.home-story h2 {
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(2.1rem, 9.5vw, 4rem);
    line-height: .9;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.home-story__copy > p {
    max-width: 58ch;
    margin: 18px 0 0;
    color: var(--brand-muted);
    font-size: clamp(.94rem, 3.8vw, 1.08rem);
    line-height: 1.55;
}

.home-story__read {
    display: inline-block;
    margin-top: 24px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(238,233,225,.36);
    color: var(--brand-text-soft);
    font-size: .58rem;
    letter-spacing: .03em;
}

/* ---------- Pointer interaction only ---------- */
@media (hover: hover) and (pointer: fine) {
    .home-release:hover .home-release__art img,
    .home-story__media:hover img {
        transform: scale(1.02);
        filter: saturate(.98) brightness(.84) contrast(1.03);
    }

    .home-stage__actions a:hover,
    .home-releases__head > a:hover,
    .home-story__read:hover {
        color: var(--brand-text);
    }
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
    .home-stage__identity {
        width: min(72vw, 720px);
    }

    .home-releases__grid {
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(22px, 4vw, 48px);
        overflow: visible;
        padding-right: 0;
    }

    .home-releases__grid--single {
        grid-template-columns: minmax(0, min(100%, 460px));
    }

    .home-story__inner {
        grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
        align-items: center;
        gap: clamp(38px, 6vw, 88px);
    }

    .home-story__media {
        max-width: none;
        aspect-ratio: 1 / 1;
    }
}

/* ---------- Desktop / TV ---------- */
@media (min-width: 980px) {
    .home-stage__portrait img {
        object-position: 69% 23%;
    }

    .home-stage__wash {
        background:
            linear-gradient(90deg, rgba(7,8,9,.98) 0%, rgba(7,8,9,.88) 20%, rgba(7,8,9,.50) 42%, rgba(7,8,9,.10) 72%, rgba(7,8,9,.12) 100%),
            linear-gradient(180deg, rgba(7,8,9,.02), rgba(7,8,9,.08) 62%, rgba(7,8,9,.60) 100%);
    }

    .home-stage__layout {
        justify-content: center;
    }

    .home-stage__identity {
        width: min(52vw, 820px);
        padding-bottom: 0;
        transform: translateY(2vh);
    }

    .home-stage h1 {
        font-size: clamp(6rem, 8.2vw, 10.2rem);
    }

    .home-stage__role {
        font-size: .62rem;
    }

    .home-stage__actions {
        position: absolute;
        left: 0;
        bottom: clamp(26px, 4vh, 48px);
        width: min(430px, 34vw);
    }

    .home-releases__inner,
    .home-story__inner {
        width: min(100%, 1180px);
        margin-inline: auto;
    }

    .home-releases__grid {
        gap: clamp(32px, 5vw, 70px);
    }

    .home-release__art {
        width: min(100%, 460px);
    }

    .home-release:nth-child(2) {
        padding-top: 48px;
    }

    .home-story {
        padding-top: clamp(84px, 9vw, 136px);
        padding-bottom: clamp(84px, 9vw, 136px);
    }

    .home-story h2 {
        font-size: clamp(3rem, 4.6vw, 5.4rem);
    }
}

/* Very large displays: preserve composition instead of scaling indefinitely. */
@media (min-width: 1800px) and (min-height: 900px) {
    .home-stage__identity {
        width: 800px;
    }

    .home-stage h1 {
        font-size: 10.4rem;
    }

    .home-releases__inner,
    .home-story__inner {
        width: min(72vw, 1320px);
    }
}

/* Short screens / landscape phones: keep the first screen complete. */
@media (max-width: 979px) {
    html.brand-mobile-h650 .home-stage__identity {
        padding-bottom: 18px;
    }

    html.brand-mobile-h650 .home-stage h1 {
        font-size: clamp(3.15rem, 13.5vw, 6rem);
    }

    html.brand-mobile-h650 .home-stage__role {
        margin-top: 9px;
    }

    html.brand-mobile-h650 .home-stage__actions {
        padding-top: 9px;
    }
}

@media (max-width: 380px) {
    .home-stage h1 {
        font-size: clamp(3.65rem, 17.8vw, 4.5rem);
    }

    .home-stage__actions {
        gap: 16px;
        font-size: .53rem;
    }

    .home-releases__grid {
        grid-auto-columns: min(80vw, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-release__art img,
    .home-story__media img {
        transition: none;
    }
}
