/* ========================================================================== 
   NINO SEPO — JOURNAL SINGLE-POST HERO
   Editorial spread edition
   ========================================================================== */

.ninosepo-post-hero {
    --ns-black: #070707;
    --ns-panel: #0b0b0b;
    --ns-white: #fff;
    --ns-muted: rgba(255, 255, 255, 0.62);
    --ns-line: rgba(255, 255, 255, 0.18);

    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    color: var(--ns-white);
    background: var(--ns-black);
}

.ninosepo-post-hero,
.ninosepo-post-hero * {
    box-sizing: border-box;
}

.ninosepo-post-hero::before {
    display: none !important;
}

.ninosepo-post-hero__inner {
    position: relative;
    width: 100%;
}

/* Utility --------------------------------------------------------------- */

.ninosepo-post-hero__utility {
    position: absolute;
    z-index: 6;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 14px 5vw;
    border-bottom: 1px solid var(--ns-line);
    pointer-events: none;
}

.ninosepo-post-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ns-white) !important;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.11em;
    text-decoration: none !important;
    text-transform: uppercase;
    pointer-events: auto;
    transition: opacity 180ms ease;
}

.ninosepo-post-hero__back:hover {
    color: var(--ns-white) !important;
    opacity: 0.58;
}

.ninosepo-post-hero__back-arrow {
    display: inline-block;
    font-size: 14px;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ninosepo-post-hero__back:hover .ninosepo-post-hero__back-arrow {
    transform: translateX(-4px);
}

/* Editorial spread ------------------------------------------------------ */

.ninosepo-post-hero__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 54fr) minmax(380px, 46fr);
    min-height: clamp(620px, 74vh, 820px);
    background: var(--ns-black);
}

.ninosepo-post-hero__content,
.ninosepo-post-hero--has-ambient .ninosepo-post-hero__content {
    position: relative;
    z-index: 3;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding:
        clamp(120px, 14vh, 170px)
        clamp(50px, 6vw, 116px)
        clamp(52px, 6vh, 82px)
        5vw;
    color: var(--ns-white) !important;
    background: var(--ns-black) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.ninosepo-post-hero__content::after {
    display: none !important;
}

/* Metadata is deliberately kept off the artwork. */
.ninosepo-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 clamp(44px, 6vh, 74px);
    color: var(--ns-muted) !important;
    font-family: inherit;
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ninosepo-post-hero__category {
    color: var(--ns-white) !important;
    text-decoration: none !important;
    transition: opacity 180ms ease;
}

.ninosepo-post-hero__category:hover {
    opacity: 0.58;
}

.ninosepo-post-hero__meta-separator {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.30);
}

.ninosepo-post-hero__eyebrow {
    display: block;
    margin-bottom: clamp(16px, 1.5vw, 24px);
    color: var(--ns-muted) !important;
    font-family: inherit;
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.ninosepo-post-hero__title {
    max-width: 760px;
    margin: 0;
    color: var(--ns-white) !important;
    font-family: inherit;
    font-size: clamp(48px, 4.3vw, 82px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.ninosepo-post-hero__excerpt {
    max-width: 570px;
    margin: clamp(22px, 2vw, 32px) 0 0;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.74) !important;
    border-top: 1px solid var(--ns-line);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.72;
}

/* Artwork --------------------------------------------------------------- */

.ninosepo-post-hero__media {
    position: relative;
    z-index: 1;
    grid-column: 2;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: var(--ns-panel);
}

.ninosepo-post-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    background: var(--ns-panel);
}

/* A restrained inner feather replaces the previous broad transition. */
.ninosepo-post-hero__media::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
    pointer-events: none;
    box-shadow:
        inset 26px 0 28px -28px rgba(0, 0, 0, 0.92),
        inset 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 70px 70px -72px rgba(0, 0, 0, 0.48);
}

/* States ---------------------------------------------------------------- */

.ninosepo-post-hero--no-image .ninosepo-post-hero__stage {
    grid-template-columns: 1fr;
    min-height: 560px;
}

.ninosepo-post-hero--no-image .ninosepo-post-hero__content {
    grid-column: 1;
    max-width: 1180px;
}

.ninosepo-post-hero--no-excerpt .ninosepo-post-hero__content {
    padding-bottom: clamp(70px, 8vh, 112px);
}

.ninosepo-post-hero a:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.78);
    outline-offset: 5px;
}

/* Tablet ---------------------------------------------------------------- */

@media (max-width: 1024px) {
    .ninosepo-post-hero__stage {
        grid-template-columns: minmax(0, 52fr) minmax(340px, 48fr);
        min-height: clamp(580px, 70vh, 720px);
    }

    .ninosepo-post-hero__content,
    .ninosepo-post-hero--has-ambient .ninosepo-post-hero__content {
        padding-right: clamp(34px, 5vw, 58px);
    }

    .ninosepo-post-hero__meta {
        margin-bottom: clamp(34px, 5vh, 58px);
    }

    .ninosepo-post-hero__title {
        font-size: clamp(44px, 6.4vw, 68px);
    }
}

/* Mobile ---------------------------------------------------------------- */

@media (max-width: 767px) {
    .ninosepo-post-hero__utility {
        min-height: 62px;
        padding: 16px;
        border-bottom-color: rgba(255, 255, 255, 0.13);
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.62),
            transparent
        );
    }

    .ninosepo-post-hero__back {
        font-size: 9px;
    }

    .ninosepo-post-hero__stage {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .ninosepo-post-hero__media {
        order: 1;
        width: 100%;
        min-height: 0;
        padding-top: 62px;
        background: var(--ns-panel);
    }

    .ninosepo-post-hero__image {
        position: relative;
        inset: auto;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
        background: var(--ns-panel);
    }

    .ninosepo-post-hero__media::after {
        box-shadow:
            inset 0 -24px 30px -30px rgba(0, 0, 0, 0.90),
            inset 0 1px rgba(255, 255, 255, 0.05);
    }

    .ninosepo-post-hero__content,
    .ninosepo-post-hero--has-ambient .ninosepo-post-hero__content {
        order: 2;
        display: block;
        width: 100%;
        padding: 30px 20px 44px;
    }

    .ninosepo-post-hero__meta {
        flex-wrap: wrap;
        gap: 8px 10px;
        margin-bottom: 32px;
        font-size: 9px;
    }

    .ninosepo-post-hero__meta-separator {
        width: 18px;
    }

    .ninosepo-post-hero__eyebrow {
        margin-bottom: 17px;
    }

    .ninosepo-post-hero__title {
        max-width: 100%;
        font-size: clamp(40px, 12.5vw, 60px);
        line-height: 0.98;
    }

    .ninosepo-post-hero__excerpt {
        max-width: 100%;
        margin-top: 22px;
        padding-top: 16px;
        font-size: 12px;
        line-height: 1.68;
    }

    .ninosepo-post-hero--no-image .ninosepo-post-hero__content {
        min-height: 420px;
        padding-top: 104px;
    }
}

@media (max-width: 420px) {
    .ninosepo-post-hero__utility {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ninosepo-post-hero__content,
    .ninosepo-post-hero--has-ambient .ninosepo-post-hero__content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ninosepo-post-hero__title {
        font-size: clamp(38px, 12vw, 50px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ninosepo-post-hero *,
    .ninosepo-post-hero *::before,
    .ninosepo-post-hero *::after {
        transition-duration: 0.01ms !important;
    }
}
