/* ==========================================================================
   Block — Hero Video
   Mobile-first, breakpoint at 768px
   ========================================================================== */

/* ── Section ── */
.block-hero-video {
    position: relative;
    height: 100svh;
    overflow: hidden;
    background-color: var(--color-grey-ultra-dark);
}

/* ── Background video ── */
.block-hero-video__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── Poster / mobile fallback ── */
.block-hero-video__poster {
    position: absolute;
    inset: 0;
    background-image: var(--hero-video-poster);
    background-size: cover;
    background-position: center;
    z-index: 0;
    display: none;
}

/* ── Gradient overlay ── */
.block-hero-video__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* ── Content ── */
.block-hero-video__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 var(--grid-margin) var(--section-padding-y);
}

/* ── Frosted card ── */
.block-hero-video__card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: 28px 32px 32px;
    border-radius: 14px;
    background: rgba(100, 38, 0, 0.48);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(255, 170, 47, 0.12);
}

/* Grain overlay */
.block-hero-video__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.block-hero-video__eyebrow,
.block-hero-video__heading,
.block-hero-video__body {
    position: relative;
    z-index: 1;
}

/* ── Eyebrow ── */
.block-hero-video__eyebrow {
    display: flex;
    align-items: center;
    gap: 4px;
}

.block-hero-video__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: var(--color-off-white);
    flex-shrink: 0;
}

.block-hero-video__eyebrow-text {
    font-family: var(--font-body);
    font-size: var(--body-small-size);
    font-weight: var(--weight-regular);
    line-height: var(--body-small-line-height);
    color: var(--color-off-white);
}

/* ── Heading ── */
.block-hero-video__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: var(--weight-medium);
    line-height: var(--h1-line-height);
    color: var(--color-off-white);
}

/* ── Body text ── */
.block-hero-video__body {
    font-family: var(--font-body);
    font-size: var(--body-large-size);
    font-weight: var(--weight-regular);
    line-height: var(--body-large-line-height);
    color: var(--color-off-white);
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════════════════
   Mobile (< 768px)
   — Pause video via JS, show poster image as static background
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    .block-hero-video__video {
        display: none;
    }

    .block-hero-video__poster {
        display: block;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   Desktop (≥ 768px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

    .block-hero-video__content {
        right: auto;
        max-width: 50%;
        padding-bottom: 121px;
    }
}
