/* ==========================================================================
   LUX&GO — How It Works / Hero
   ========================================================================== */

.hiw-hero {
    /* Mirrors the fixed navbar height in header.css, which overlays this hero. */
    --hiw-hero-header-offset: clamp(72px, 4vw, 78px);

    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(600px, 68vh, 700px);
    padding-top: var(--hiw-hero-header-offset);
    padding-bottom: clamp(34px, 3vw, 52px);
    overflow: hidden;
    background-color: var(--color-obsidian);
    color: var(--color-white);
}

/* Media --------------------------------------------------------------------- */

.hiw-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Doubles as the placeholder should the photograph ever be missing. */
    background-color: var(--color-graphite);
}

.hiw-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
}

/*
   Two passes: one lifting the foot of the frame, one darkening the left flank
   where the headline sits, so the type holds without dimming the light trails.
*/
.hiw-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to right,
            rgba(9, 10, 12, 0.88) 0%,
            rgba(9, 10, 12, 0.55) 38%,
            rgba(9, 10, 12, 0.1) 72%,
            rgba(9, 10, 12, 0) 100%
        ),
        linear-gradient(
            to top,
            rgba(9, 10, 12, 0.92) 0%,
            rgba(9, 10, 12, 0.5) 30%,
            rgba(9, 10, 12, 0.08) 66%,
            rgba(9, 10, 12, 0) 88%
        );
}

/* Content -------------------------------------------------------------------- */

.hiw-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Left-bottom block — neither the split bar of Experience nor the centred
   stack of Our Collection. */
.hiw-hero__content {
    max-width: min(620px, 52%);
}

.hiw-hero__eyebrow {
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: clamp(0.6875rem, 0.65rem + 0.1vw, 0.8125rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-lux-blue);
}

.hiw-hero__title {
    margin-top: clamp(14px, 1.2vw, 20px);
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
    font-size: clamp(3rem, 2.2rem + 1.25vw, 3.625rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--color-white);
}

.hiw-hero__title-line {
    display: block;
}

.hiw-hero__copy {
    max-width: 440px;
    margin-top: clamp(16px, 1.4vw, 22px);
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-muted-gray);
}

/* Index rail ------------------------------------------------------------------ */

/*
   A chapter index across the foot of the frame. It names the three steps only —
   the icons, copy and connector belong to the process section below.
*/
.hiw-hero__index {
    margin-top: clamp(40px, 3.6vw, 64px);
    padding-top: clamp(16px, 1.4vw, 22px);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hiw-hero__index-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 2.4vw, 48px);
}

.hiw-hero__index-item {
    display: flex;
    align-items: baseline;
    gap: clamp(10px, 0.9vw, 16px);
}

.hiw-hero__index-number {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: clamp(0.6875rem, 0.66rem + 0.08vw, 0.8125rem);
    letter-spacing: 0.06em;
    color: var(--color-lux-blue);
}

.hiw-hero__index-label {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: clamp(0.8125rem, 0.79rem + 0.06vw, 0.875rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-white);
}

/* Tablet and mobile ------------------------------------------------------------- */

/* The cinematic overlay is kept — only the frame and type are resized. */
@media (max-width: 1023px) {
    .hiw-hero {
        --hiw-hero-header-offset: 64px;

        min-height: clamp(560px, 78vh, 650px);
        padding-bottom: clamp(30px, 4.5vw, 44px);
    }

    .hiw-hero__content {
        max-width: none;
    }

    .hiw-hero__copy {
        max-width: 480px;
    }

    /* One pass from the foot: the side gradient existed to clear the copy column
       that no longer sits to the left. */
    .hiw-hero__overlay {
        background: linear-gradient(
            to top,
            rgba(9, 10, 12, 0.94) 0%,
            rgba(9, 10, 12, 0.7) 30%,
            rgba(9, 10, 12, 0.28) 58%,
            rgba(9, 10, 12, 0.05) 82%,
            rgba(9, 10, 12, 0) 100%
        );
    }

    .hiw-hero__index {
        margin-top: clamp(26px, 4vw, 38px);
    }
}

@media (max-width: 767px) {
    /*
       On a phone the Hero fills the screen exactly, with nothing of the next
       section showing beneath it. svh is the height the visitor can actually
       see — vh on iOS measures the screen without the browser bars.
    */
    .hiw-hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hiw-hero__title {
        font-size: clamp(2.25rem, 1.95rem + 1.3vw, 2.625rem);
    }

    .hiw-hero__copy {
        max-width: 340px;
    }

    /* A full-height frame shows an even narrower slice of this 2:1 photograph;
       holding it left of centre keeps the sweep of the interchange in view
       rather than a flat stretch of asphalt. */
    .hiw-hero__image {
        object-position: 35% 55%;
    }

    .hiw-hero__index-list {
        column-gap: clamp(10px, 2.6vw, 16px);
    }
}
