.hero-h1-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    color: var(--color-text-inverse);
    background-color: var(--color-bg-dark);
}

.hero-h1-section__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-h1-section__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.15);
    will-change: transform;
    transform-origin: center center;
}

.hero-h1-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero-h1-section__vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0) 65%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-h1-section__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "excerpt image"
        "title   title";
    align-items: center;
    gap: var(--space-xl, 32px);
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;
    margin: 0 auto;
    padding: var(--space-xl, 32px) var(--space-lg, 24px);
    box-sizing: border-box;
}

.hero-h1-section__excerpt {
    grid-area: excerpt;
    align-self: end;
    max-width: 36ch;
    font-family: var(--font-body, sans-serif);
    font-size: var(--fs-body, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.hero-h1-section__title {
    grid-area: title;
    justify-self: center;
    align-self: center;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: var(--font-display, serif);
    font-size: clamp(2.5rem, 7vw, var(--fs-h1, 4.5rem));
    font-weight: var(--fw-bold, 700);
    line-height: 1.05;
    letter-spacing: var(--ls-tight, -0.02em);
    color: var(--color-text-inverse);
    text-wrap: balance;
}

.hero-h1-section__media-card {
    grid-area: image;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-lg, 0 20px 40px rgba(0, 0, 0, 0.4));
    background: rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.hero-h1-section__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-h1-section__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "excerpt"
            "title"
            "image";
        gap: var(--space-lg, 24px);
    }

    .hero-h1-section__excerpt {
        max-width: 100%;
    }

    .hero-h1-section__media-card {
        max-width: 100%;
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-h1-section__video,
    .hero-h1-section__media-card {
        will-change: auto;
    }
}
