/* =================================================================== OFFER (two services) section css =================================================================== */
/* Content update (2026-12-01), client reference layout: each service group sits under a full-width
   rule — on the left its number, a big title, the description (and the "behind every build" line);
   on the right a plain list of its services (title · text · arrow). Hover floods the row orange; the cursor video card stays
   (client, 2026-12-01; previous version: _backup/offer-hover-reel.css). Tokens only. */
.offer {
    position: relative;
    padding-block: var(--sectionPad);

    /* the floating video card (preset hover-reel, ≥992px with a mouse): follows the cursor and plays
       the hovered service's clip — hidden until the preset shows it */
    & .offer__float {
        position: absolute; top: 0; left: 0;
        z-index: 3;
        width: calc(var(--cvw) * 22);
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: var(--black);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    & .offer__float-video {
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity .35s ease;

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

    & .offer__head {
        display: flex; align-items: last baseline; justify-content: space-between;
        gap: var(--sp30);
        margin-bottom: var(--titleGap);     /* same title gap in every section (client, 2026-12-01) */
    }
    & .offer__head .section-title-wrap { max-width: none; margin-bottom: 0; }
    @media (min-width: 768px) { & .offer__head h2 .text-gradient { white-space: nowrap; } }
    & .offer__lede { max-width: 34em; color: var(--white-75); }

    /* one group: rule on top, head left, list right */
    & .offer__group {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
        gap: calc(var(--cvw) * 4);
        padding-block: calc(var(--cvw) * 4);
        border-top: 1px solid var(--white-20);
    }
    & .offer__group:last-of-type { border-bottom: 1px solid var(--white-20); }

    & .offer__group-head { display: flex; flex-direction: column; gap: var(--sp20); }
    & .offer__group-title {
        font-size: var(--f70);     /* one step below the section titles (client, 2026-12-01) */
        font-weight: 700;
        line-height: 1.02;
        letter-spacing: var(--ls-h1);
    }
    & .offer__group-text { max-width: 34em; color: var(--light-grey); }
    & .offer__behind { max-width: 34em; font-size: var(--f15); color: var(--light-grey); }
    & .offer__inline-link { color: var(--white); }   /* line + hover: global/link-line.css */

    /* the list — hover / focus floods the row with orange from below, the title steps right, the
       arrow turns and the other rows dim back (restored from the earlier version, client 2026-12-01) */
    & .offer__list:has(.offer__item:hover) .offer__item:not(:hover) { opacity: .35; }
    & .offer__item {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--sp30);
        padding: calc(var(--cvw) * 2.2) var(--sp25);
        border-bottom: 1px solid var(--white-20);
        isolation: isolate;
        transition: color var(--ease), opacity var(--ease);

        &::before {
            position: absolute; inset: 0;
            z-index: -1;
            background: var(--orange);
            content: "";
            transform: scaleY(0);
            transform-origin: 50% 100%;
            transition: transform var(--ease-expo);
        }
        &:hover, &:focus-visible {
            color: var(--black);
            &::before { transform: scaleY(1); }
            & .offer__title { transform: translateX(var(--sp15)); }
            & .offer__text { color: var(--black); }
            & .offer__arrow { transform: rotate(45deg); }
        }
    }
    & .offer__entry:last-child .offer__item { border-bottom: 0; }
    & .offer__title { font-size: var(--f25); font-weight: 700; line-height: var(--lhTight); letter-spacing: var(--ls-h3); transition: transform var(--ease-expo); }
    & .offer__text { font-size: var(--f15); color: var(--light-grey); transition: color var(--ease); }
    & .offer__arrow { width: max(14px, calc(var(--cvw) * .9)); transition: transform var(--ease-expo); }
    & .offer__arrow-svg { width: 100%; height: auto; }

    /* =================================================================== RESPONSIVE =================================================================== */
    @media (max-width: 991.98px) {
        & .offer__float { display: none; }
        & .offer__item { padding-block: calc(var(--cvw) * 3.5); }
        & .offer__group { grid-template-columns: minmax(0, 1fr); gap: calc(var(--cvw) * 6); padding-block: calc(var(--cvw) * 7); }
    }
    @media (max-width: 767.98px) {
        & .offer__head { flex-direction: column; align-items: flex-start; }
        & .offer__item { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--sp10); padding: calc(var(--cvw) * 5) 0; }
        & .offer__text { grid-column: 1; grid-row: 2; }
        & .offer__arrow { grid-column: 2; grid-row: 1; }
        /* phones (client, 2026-12-04): the row has no side padding here, so the orange fill reaches out into the
           page gutter to give the text room, and the title no longer steps right (title and text stay in line) */
        & .offer__item::before { inset: 0 calc(var(--sp20) * -1); }
        & .offer__item:hover .offer__title, & .offer__item:focus-visible .offer__title { transform: none; }
    }
}
