/* =================================================================== STAGE (hero) section css =================================================================== */
/* V2's hero layout: an oversized three-line headline on the left edge, the intro + CTAs tucked
   beside "Business.", the hero video full-bleed behind it under a dark shade.
   It scrolls away normally (client, 2026-12-01); the first two title lines drift apart as it goes
   (preset drift). The stage is solid (isolation + page colour), so the page's dot background
   does not show in the hero. */
.stage {
    position: relative;

    /* hand-off (JS, ≥992px, client 2026-12-01): the hero pins; a panel in the page colour clips in
       from the right edge over it (--wp: 1 → 0) and the next section's headline settles in the
       centre, its lines sliding in from the right (--we: 0 → 1). */
    &.is-pinned { height: 200svh; }   /* one screen of scroll for the hand-off (was 300svh) */
    &.is-pinned .stage__pin { position: sticky; top: 0; height: 100svh; background: transparent; }
    /* the hero (video + copy) is cut back from the right edge as the panel comes in, so the panel
       area shows the page's dot background and its cursor effect (.bg-trail) */
    &.is-pinned .stage__frame { clip-path: inset(0 calc((1 - var(--wp, 1)) * 100%) 0 0); }
    /* the copy is cut at the same screen line by animations.js (its box is narrower than the screen) */
    & .stage__next { display: none; }
    &.is-pinned .stage__next {
        position: absolute; inset: 0;
        z-index: 2;
        display: flex; align-items: center; justify-content: center;
        background: transparent;
        clip-path: inset(0 0 0 calc(var(--wp, 1) * 100%));
        pointer-events: none;
    }
    & .stage__next-title {
        display: flex; flex-direction: column; align-items: center;
        font-family: var(--font-display);
        font-size: calc(var(--cvw) * 7.8125);   /* 120px at ≥1536px, scales down in ratio (client, 2026-12-01) */
        font-weight: 700;
        line-height: 1;         /* tighter (client, 2026-12-01); still clears the "p" descender */
        letter-spacing: var(--ls-h1);
        text-align: center;
        color: var(--white);

        /* settle in from the right (--we), then parallax (--pp 0 → 1, client 2026-12-01): all lines
           move UP together at the same speed, so the spacing between them never changes */
        & span {
            display: block; white-space: nowrap;
            translate:
                calc((1 - var(--we, 1)) * (var(--i) * 6vw + 4vw))
                calc(var(--pp, 0) * -22vh);
        }
    }

    & .stage__pin {
        position: relative;
        display: flex; flex-direction: column; justify-content: center;
        min-height: 100svh;
        padding-block: calc(var(--cvw) * 11) calc(var(--cvw) * 7);
        overflow: hidden;
        isolation: isolate;
        background: var(--background);
    }

    /* the background video + its shade */
    & .stage__frame { position: absolute; inset: 0; z-index: -1; }
    & .stage__media { width: 100%; height: 100%; object-fit: cover; }
    & .stage__shade {
        position: absolute; inset: 0;
        /* client, 2026-12-04: their exact overlay */
        background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 0%) 45%, rgb(0 0 0 / 50%) 85%, var(--background) 100%), rgb(0 0 0 / 70%);
    }

    & .stage__inner {
        position: relative;
        display: flex; flex-direction: column;
        gap: var(--sp30);
    }
    & .stage__eyebrow {
        display: flex; align-items: center;
        gap: var(--sp15);
        color: var(--orange);

        &::before {
            width: calc(var(--cvw) * 4); height: 1px;
            background: currentColor;
            content: "";
        }
    }

    & .stage__title {
        display: flex; flex-direction: column;
        font-size: calc(var(--cvw) * 10);
        line-height: .94;
        letter-spacing: -.05em;
    }
    & .stage__line {
        display: block;
        width: max-content;
        max-width: 100%;
        padding-bottom: .06em;
        will-change: transform;
    }
    & .stage__line--2 { margin-left: calc(var(--cvw) * 12); }
    /* content update (2026-12-01): the second sentence of the h1 sits under the two big lines, smaller */
    & .stage__line--sub { max-width: 9.5em; margin-top: .25em; font-size: .42em; line-height: 1.02; letter-spacing: -.035em; }
    & .stage__dot {
        color: var(--orange);
        animation: stage-glint 6s ease-in-out infinite;
    }

    & .stage__side {
        display: flex; flex-direction: column;
        align-self: flex-end;
        gap: var(--sp25);
        width: calc(var(--cvw) * 31);
        margin-top: calc(var(--cvw) * -8.5);
    }
    /* the buttons sit on the left, under the title (client, 2026-12-01); the text stays right */
    & .stage__actions { align-self: flex-start; }
    & .stage__text { color: var(--white-75); }

    /* =================================================================== RESPONSIVE =================================================================== */
    @media (max-width: 991.98px) {
        & .stage__pin { padding-top: 128px; }
        & .stage__title { font-size: calc(var(--cvw) * 11.5); }
        & .stage__line--2 { margin-left: calc(var(--cvw) * 6); }
        & .stage__side {
            align-self: stretch;
            width: 100%;
            margin-top: var(--sp20);
        }
        & .stage__text { max-width: calc(var(--cvw) * 70); }
    }
    @media (max-width: 767.98px) {
        & .stage__pin { padding-top: 112px; }
        & .stage__title { font-size: calc(var(--cvw) * 13.5); line-height: .98; }
        & .stage__line { width: auto; }
        & .stage__line--2 { margin-left: 0; }
        & .stage__line--sub { font-size: .55em; }
    }
}

/* the dot's glint — decorative loop, not an entrance */
@keyframes stage-glint {
    0%, 86%, 100% { text-shadow: none; }
    92% { text-shadow: 0 0 14px var(--orange); }
}
