.home-hero .hero-inner {
    padding-block-end: 0;
}

.home-hero .hero-copy {
    max-inline-size: min(720px, 66.666%);
}

.home-hero > .hero-video-position {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    place-items: center;
    pointer-events: none;
}

.home-video-trigger {
    grid-area: 1 / 2;
    display: grid;
    place-items: center;
    inline-size: clamp(3.75rem, 7vw, 5.25rem);
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    color: white;
    background: rgb(12 32 49 / 68%);
    box-shadow: 0 0 0 0.6rem rgb(255 255 255 / 19%), 0 10px 36px rgb(0 0 0 / 28%);
    backdrop-filter: blur(7px);
    font-size: clamp(1.15rem, 2.15vw, 1.6rem);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.home-video-trigger .fa {
    transform: translateX(0.1em);
}

.home-video-trigger:is(:hover, :focus-visible) {
    color: var(--primary);
    background: var(--accent);
    box-shadow: 0 0 0 0.75rem rgb(255 255 255 / 34%), 0 10px 36px rgb(0 0 0 / 28%);
}

.home-video-trigger:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.home-video-dialog {
    --video-margin: clamp(0.5rem, 2vw, 1.25rem);
    --video-header-size: 3.4rem;
    --video-available-height: calc(100dvh - 2 * var(--video-margin) - var(--video-header-size) - 2px);

    width: min(75rem, calc(100% - 2 * var(--video-margin)), calc(var(--video-available-height) * 16 / 9 + 2px));
    max-width: none;
    max-height: calc(100dvh - 2 * var(--video-margin));
    padding: 0;
    overflow: hidden;
    color: white;
    background: #0c2031;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, #0c2031);
    border-radius: 1.1rem;
    box-shadow: 0 24px 90px rgb(3 13 24 / 60%);
}

.home-video-dialog::backdrop {
    background: rgb(4 15 25 / 79%);
    backdrop-filter: blur(6px);
}

.home-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--video-header-size);
    padding-inline: clamp(0.85rem, 3vw, 1.4rem);
}

.home-video-header h2 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 650;
}

.home-video-close {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    color: white;
    background: transparent;
}

.home-video-close:is(:hover, :focus-visible) {
    color: var(--primary);
    border-color: var(--accent);
    background: var(--accent);
}

.home-video-player {
    display: block;
    width: 100%;
    height: auto;
    min-height: min(200px, var(--video-available-height));
    max-height: var(--video-available-height);
    aspect-ratio: 16 / 9;
    border: 0;
    background: #04090e;
}

.home-video-dialog.is-unavailable {
    width: min(26rem, calc(100% - 2 * var(--video-margin)));
}

.home-video-message {
    margin: 0;
    padding: 1.25rem clamp(0.85rem, 3vw, 1.4rem) 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #e1e9ee;
}

@media (max-width: 767px) {
    .home-hero .hero-inner {
        padding-block-start: 8.5rem;
    }

    .home-hero .hero-copy {
        max-inline-size: 100%;
        padding-block-end: 0;
    }

    .home-hero > .hero-video-position {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 8.5rem;
    }

    .home-video-trigger {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-video-trigger {
        transition: none;
    }
}
