/* ==========================================================================
   IS HERO BANNER
   ========================================================================== */

.is-hero {
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--is-charcoal);
}

/* --- Background slider --- */
.is-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.is-hero__slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1400ms var(--is-ease);
    will-change: opacity;
}

.is-hero__slide.is-active {
    opacity: 1;
}

.is-hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left-to-right scrim: keeps the headline readable without dimming the whole
   photograph, matching the approved design. */
.is-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to right,
            rgba(8, 8, 8, 0.9) 0%,
            rgba(8, 8, 8, 0.74) 26%,
            rgba(8, 8, 8, 0.42) 55%,
            rgba(8, 8, 8, 0.18) 100%
        ),
        linear-gradient(to top, rgba(8, 8, 8, 0.6) 0%, rgba(8, 8, 8, 0) 55%);
}

.is-hero > .is-section__container {
    z-index: 2;
}

.is-hero__content {
    max-width: 620px;
}

/* --- Meta line --- */
.is-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--is-space-md);
    margin-bottom: var(--is-space-xl);
    font-family: var(--is-font-body);
    font-size: var(--is-text-3xs);
    font-weight: 400;
    letter-spacing: var(--is-tracking-widest);
    text-transform: uppercase;
    color: #cfcac2;
}

.is-hero__meta-sep {
    --is-sep: var(--is-gold);
    display: inline-flex;
    align-items: center;
    color: var(--is-gold);
    font-size: 0.9em;
    line-height: 1;
}

.is-hero__meta-sep--dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--is-sep);
}

/* --- Headline --- */
.is-hero .is-head__title {
    font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    color: #fbf9f6;
    margin-bottom: var(--is-space-xl);
}

.is-hero .is-head__description {
    max-width: 44ch;
    font-size: var(--is-text-sm);
    line-height: 1.9;
    color: #cfcac2;
    margin-bottom: var(--is-space-2xl);
}

.is-hero .is-head__divider {
    margin-block: var(--is-space-lg);
}

/* --- Actions --- */
.is-hero__actions {
    gap: var(--is-space-md);
}

/* --- Scroll marker --- */
.is-hero__marker {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--is-space-lg);
    transform: translateY(-50%);
    color: #cfcac2;
}

.is-hero__marker--left {
    left: max(1rem, calc((100% - 1280px) / 2 - 0.5rem));
}

.is-hero__marker--right {
    right: max(1rem, calc((100% - 1280px) / 2 - 0.5rem));
}

.is-hero__marker-text {
    font-family: var(--is-font-body);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: var(--is-tracking-widest);
    text-transform: uppercase;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.is-hero__marker-line {
    width: 1px;
    height: 96px;
    background: linear-gradient(to bottom, var(--is-gold), rgba(200, 167, 106, 0));
    animation: isHeroPulse 2.4s var(--is-ease) infinite;
}

a.is-hero__marker:hover {
    color: var(--is-gold);
}

@keyframes isHeroPulse {
    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.45;
        transform: scaleY(0.65);
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .is-hero__marker--left,
    .is-hero__marker--right {
        display: none;
    }
}

@media (min-width: 1441px) {
    .is-hero__marker {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .is-hero {
        align-items: center;
    }

    .is-hero__scrim {
        background:
            linear-gradient(
                to right,
                rgba(8, 8, 8, 0.92) 0%,
                rgba(8, 8, 8, 0.78) 45%,
                rgba(8, 8, 8, 0.5) 100%
            ),
            linear-gradient(to top, rgba(8, 8, 8, 0.65) 0%, rgba(8, 8, 8, 0) 60%);
    }
}

@media (max-width: 767px) {
    .is-hero__content {
        max-width: none;
    }

    .is-hero .is-head__title {
        font-size: clamp(2rem, 1.2rem + 5.5vw, 2.75rem);
    }

    .is-hero__meta {
        gap: var(--is-space-sm);
        letter-spacing: var(--is-tracking-wider);
    }

    .is-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .is-hero__actions .is-btn {
        width: 100%;
    }
}
