.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    align-items: end;
    justify-items: center;
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 4.5rem);
    padding-bottom: clamp(3rem, 9vh, 6rem);
    background: var(--color-night);
    color: var(--primary);
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(ellipse 64% 52% at 18% 82%, rgba(3, 8, 14, 0.78), rgba(3, 8, 14, 0.5) 36%, rgba(3, 8, 14, 0.2) 58%, transparent 80%),
        linear-gradient(0deg, rgba(3, 8, 14, 0.28), transparent 44%),
        linear-gradient(90deg, rgba(3, 8, 14, 0.32), rgba(3, 8, 14, 0.08) 42%, transparent 72%);
    pointer-events: none;
}

.hero__poster,
.hero > video {
    object-fit: cover;
    inset: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -3;
}

.hero > video {
    display: none;
}

.hero > video[data-video-enabled] {
    display: block;
}

.hero__content {
    position: relative;
    z-index: 0;
    width: min(100%, 78rem);
    max-width: 78rem;
    margin: 0;
    text-align: left;
}

.hero__eyebrow {
    margin: 0 0 0.2rem;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.66);
}

.hero__title {
    margin: 0;
    color: var(--primary);
    font-family: var(--font-serif);
    font-size: clamp(3.15rem, 15.5vw, 7.25rem);
    font-weight: 400;
    line-height: 0.88;
    text-shadow: 0 3px 34px rgba(0, 0, 0, 0.72);
    white-space: nowrap;
}

.hero__tagline {
    max-width: 34rem;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.4;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.78);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

@media (max-width: 480px) {
    .hero {
        justify-items: start;
        padding: 1.35rem;
        padding-bottom: 2rem;
    }

    .hero::before {
        background:
            radial-gradient(ellipse 112% 55% at 26% 83%, rgba(3, 8, 14, 0.8), rgba(3, 8, 14, 0.56) 40%, rgba(3, 8, 14, 0.22) 64%, transparent 84%),
            linear-gradient(0deg, rgba(3, 8, 14, 0.45), transparent 48%);
    }

    .hero__content {
        max-width: 21.5rem;
        margin: 0;
    }

    .hero__eyebrow {
        margin-bottom: 0.35rem;
    }

    .hero__actions {
        display: grid;
        width: 100%;
        max-width: 17rem;
        gap: 0.75rem;
    }

    .hero .btn {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .hero {
        justify-items: start;
        padding: 1.5rem 3rem;
    }

    .hero::before {
        background:
            radial-gradient(ellipse 58% 76% at 20% 68%, rgba(4, 9, 15, 0.74), rgba(4, 9, 15, 0.48) 38%, rgba(4, 9, 15, 0.16) 62%, transparent 82%),
            linear-gradient(90deg, rgba(4, 9, 15, 0.34), transparent 64%);
    }

    .hero__content {
        max-width: 34rem;
        margin: 0;
    }

    .hero__tagline {
        margin-top: 0.65rem;
    }

    .hero__actions {
        margin-top: 1.25rem;
    }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .hero::before {
        background:
            radial-gradient(ellipse 62% 48% at 20% 80%, rgba(4, 9, 15, 0.9), rgba(4, 9, 15, 0.64) 38%, rgba(4, 9, 15, 0.28) 62%, transparent 82%),
            linear-gradient(90deg, rgba(4, 9, 15, 0.42), rgba(4, 9, 15, 0.12) 48%, transparent 76%);
    }
}
