/*
 * Minty'Lab: hero, centred above a wide visual.
 */
/* On the band, not on the wrapper: `.ml-section--flush` zeroes the wrapper's
   padding, and this band has to clear the header floating over it. */
.mpb-hero {
    padding-block: calc(var(--ml-header-overlap) + var(--spacing-section-lg)) var(--spacing-3xl);
}

.mpb-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: center;
}

.mpb-hero__title {
    max-width: 65rem;
    margin: 0;
    font-size: var(--font-size-display-2xl);
    font-weight: var(--font-weight-display);
    letter-spacing: var(--letter-spacing-display);
    line-height: var(--line-height-display);
}

/* Its size is the theme's .ml-lead one, which this rule used to restate
   and lose to (same specificity, the theme served after it). */
.mpb-hero__lead {
    max-width: 40rem;
    margin: 0;
}

.mpb-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: center;
}

.mpb-hero__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 2.25;
    margin-top: var(--spacing-3xl);
    overflow: hidden;
    border-radius: var(--border-radius-3xl);
}

.mpb-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The loop, laid over its poster, shown once it actually plays. */
.mpb-hero__media {
    position: absolute;
    inset: 0;
    display: block;
}

.mpb-hero__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.mpb-hero__media.is-playing video {
    opacity: 1;
}

/* The visitor's own load time, under the visual. */
.mpb-hero__speed:not([hidden]) {
    display: inline-flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: calc(var(--spacing-lg) * -0.5);
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

.mpb-hero__speed::before {
    content: "";
    width: var(--spacing-sm);
    height: var(--spacing-sm);
    border-radius: 50%;
    background: var(--color-mint);
}

/* On a phone a wide band is a sliver: the visual turns taller. */
@media (max-width: 575.98px) {
    .mpb-hero__visual {
        aspect-ratio: 4 / 3;
    }
}
