/* Preserve the existing hero crop while the lightweight poster paints first. */
#hero .hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 85%;
    object-fit: cover;
    border-bottom-left-radius: 238% 80px;
    border-bottom-right-radius: 220% 120px;
    pointer-events: none;
}

#hero video.hero-motion {
    z-index: 6;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

#hero video.hero-motion.is-playing {
    opacity: 1;
}

#hero .hero-poster ~ .caption {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding-inline: 16px;
    overflow-wrap: anywhere;
}

.blog-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 968px), (prefers-reduced-motion: reduce) {
    #hero video.hero-motion {
        display: none;
    }
}

@media (max-width: 650px) {
    #hero .hero-poster ~ .caption h1 {
        font-size: clamp(30px, 7.2vw, 44px) !important;
        line-height: 1.3 !important;
    }

    #hero .hero-poster ~ .caption h2 {
        font-size: clamp(18px, 4.5vw, 24px) !important;
        line-height: 1.4 !important;
    }
}
