/* ===================================================================
   Rivulet IQ — vendor.css
   GLOBAL ONLY: tokens, reset, typography, buttons, section titles,
   global helpers. Closed to section code (CLAUDE.md §6.1).
   =================================================================== */

/* -------------------------------------------------------------------
   FONTS — Inter variable, self-hosted (SIL OFL 1.1, assets/fonts/inter-OFL.txt)
   ------------------------------------------------------------------- */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ===================================================================
   TOKENS
   =================================================================== */
:root {
    /* COLORS — BRAND: ONE colour, ONE variable for the whole site (client, 2026-12-03).
       Every orange — text, fills, borders, markers, hovers, tints, canvas art, logo — is var(--orange).
       Tints: color-mix(in srgb, var(--orange) <n>%, transparent). Never write an orange hex or rgba anywhere else. */
    --orange: #FF6100;

    /* COLORS — NEUTRALS */
    --black: #000000;
    --background: #111111;
    --ink: #231F20;
    --grey: #272727;
    --muted-ink: #6B6B6B;
    --light-grey: #939393;
    --muted: #D2D2D2;
    --toggle: #ECECEC;
    --light: #F4F4F4;
    --white: #FFFFFF;
    --photo: #F1F1F1;        /* team portraits: the studio photos' own grey (team page, 2026-12-03) */
    --photo-seat: #DEDEE0;   /* team portraits: the seated co-founder photos' wall grey */

    /* COLORS — STATUS */
    --success: #63D69A;

    /* COLORS — CODE SYNTAX (terminal / editor demo only) */

    /* COLORS — ALPHA */
    --white-08: rgba(255, 255, 255, .08);
    --dot: rgba(244, 244, 244, .2);
    --white-10: rgba(255, 255, 255, .1);
    --white-20: rgba(255, 255, 255, .2);
    --white-40: rgba(255, 255, 255, .4);
    --white-50: rgba(255, 255, 255, .5);
    --white-60: rgba(255, 255, 255, .6);
    --white-75: rgba(255, 255, 255, .75);
    --black-20: rgba(0, 0, 0, .2);
    --black-30: rgba(0, 0, 0, .3);
    --black-40: rgba(0, 0, 0, .4);
    --black-60: rgba(0, 0, 0, .6);
    --ink-12: rgba(35, 31, 32, .12);
    --ink-15: rgba(35, 31, 32, .15);
    --ink-40: rgba(35, 31, 32, .4);
    --background-40: rgba(17, 17, 17, .4);
    --background-60: rgba(17, 17, 17, .6);
    --background-70: rgba(17, 17, 17, .7);

    /* PAPER — the paper surface, ink alphas for text/lines on it,
       and the brand gradient that replaces flat orange there */
    --paper: #FFFFFF;
    --paper-40: rgba(255, 255, 255, .4);
    --paper-60: rgba(255, 255, 255, .6);
    --paper-70: rgba(255, 255, 255, .7);
    --ink-08: rgba(35, 31, 32, .08);
    --ink-10: rgba(35, 31, 32, .1);
    --ink-20: rgba(35, 31, 32, .2);
    --ink-50: rgba(35, 31, 32, .5);
    --ink-60: rgba(35, 31, 32, .6);
    --ink-75: rgba(35, 31, 32, .75);
    --shadow-glow: 0 22px 50px -22px color-mix(in srgb, var(--orange) 55%, transparent);

    --shadow-soft: 0 18px 40px -22px rgba(35, 31, 32, .22);

    /* ROLE ALIASES — the page is dark; light bands flip --text (see .bg-light) */
    --text: var(--white);
    --text-soft: var(--light-grey);

    /* FONTS */
    --font-display: "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "Inter", system-ui, sans-serif; /* client, 2026-12-02: labels in Inter, no letter spacing (was ui-monospace) */

    /* THE SCALING UNIT — every fluid value is n × cvw; it stops growing at 1536px */
    --cvw: min(1vw, 15.36px);

    /* RAW TYPE SCALE (name == desktop px; Version B = the design's own scaling) */
    --f12: 12px;
    --f14: 14px;   /* client, 2026-12-03: the guides' "On this page" links */
    --f15: 15px;
    --f16: clamp(15px, calc(var(--cvw) * 1.05), 19px);    /* 16 - 15 */
    --f17: max(14px, calc(var(--cvw) * 1.135));           /* 17 - 14 */
    --f18: calc(var(--cvw) * 1.15);                       /* 18 - 14 */
    --f20: calc(var(--cvw) * 1.3);                        /* 20 - 18  (inner pages, bootstrap 2026-12-03) */
    --f25: calc(var(--cvw) * 1.7);                        /* 26 - 20 */
    --f30: calc(var(--cvw) * 1.8);                        /* 28 - 22 */
    --f35: calc(var(--cvw) * 2.3);                        /* 35 - 23  (inner pages) */
    --f40: calc(var(--cvw) * 2.6);                        /* 40 - 31 */
    --f45: calc(var(--cvw) * 2.9);                        /* 45 - 27  (inner pages) */
    --f55: calc(var(--cvw) * 3.6);                        /* 55 - 43 */
    --f65: calc(var(--cvw) * 4.23);                       /* 65 - 37  inner-page section h2 (client, 2026-12-02) */
    --f70: calc(var(--cvw) * 4.6);                        /* 71 - 55 */
    --f86: calc(var(--cvw) * 5.6);                        /* 86 - 43  homepage section h2 (client, 2026-12-01) */
    --f100: calc(var(--cvw) * 6.4);                       /* 98 - 77 */


    /* ROLE TYPE TOKENS — what section CSS should consume for page-level headings */
    --f-h2: var(--f86);                                   /* homepage section h2 */
    --f-h2-inner: var(--f65);                             /* inner-page section h2 */
    --f-h1-inner: calc(var(--cvw) * 5.6);                 /* inner-page hero h1: 86 / 7.2vw / 9.6vw — every inner page */

    --bodyLh: 1.65;
    --lhLead: 1.6;
    --lhTight: 1.15;
    --lhDisplay: 1.12;
    --lhSnug: 1.25;
    --lhUi: 1.4;
    --ls-h1: -.035em;
    --ls-h3: -.02em;
    --ls-btn: .025em;

    /* CONTAINER & SPACE */
    --container: 1536px;
    --gutter: calc(var(--cvw) * 4.5);
    --sectionGap: 7vw;
    --sectionPad: calc(var(--cvw) * 5);     /* top / bottom padding of every content section — one rhythm between sections (client, 2026-12-01) */
    --sectionGapWide: 7vw;
    --sectionGapLg: 15vw;
    --titleGap: calc(var(--cvw) * 4.2);
    --sp4: 4px;
    --sp8: 8px;
    --sp10: 10px;
    --sp12: calc(var(--cvw) * .8);
    --sp15: var(--cvw);
    --sp16: 16px;
    --sp18: calc(var(--cvw) * 1.2);
    --sp20: 20px;
    --sp25: calc(var(--cvw) * 1.5);
    --sp30: calc(var(--cvw) * 2);
    --sp45: calc(var(--cvw) * 3);
    --sp40: calc(var(--cvw) * 2.6);                      /* 40 — inner pages (floors in main.inner below) */
    --sp60: calc(var(--cvw) * 3.9);                      /* 60 */
    --sp75: calc(var(--cvw) * 5);                        /* 77 */
    --sp90: calc(var(--cvw) * 6);                        /* 92 */
    --secPadInner: clamp(56px, calc(var(--cvw) * 7.8125), 120px);
    --ledeGap: max(16px, calc(var(--cvw) * 1.3));
    --pGap: 20px;
    --itemGap: max(10px, calc(var(--cvw) * .8));
    --rowPad: max(20px, calc(var(--cvw) * 2));
    --g15: var(--cvw);

    /* RADIUS / SHADOW / Z / EASE */
    --r-btn: 0;
    --r-full: 9999px;
    --shadow-md: 0 18px 46px -18px rgba(0, 0, 0, .5);
    --shadow-ring: inset 0 0 0 1px var(--white-08);
    --z-sticky: 200;
    --z-modal: 300;
    --ease: .25s ease;
    --ease-expo: .6s cubic-bezier(.16, 1, .3, 1);
    --transition: all .3s ease-in-out;

    /* SCROLLBAR */
    --scrollbar-width: 10px;
    --scrollbar-thumb: var(--orange);
    --scrollbar-thumb-hover: var(--orange);

    /* ---------------------------------------------------------------
       GLOBAL BREAKPOINTS — Version B. The cvw tokens scale on their own
       from 1536 down to 992; the design re-declares sizes only at its
       tablet (≤991.98) and mobile (≤767.98) steps.
       --------------------------------------------------------------- */
    @media (max-width: 991.98px) {
        --f17: clamp(15px, 2.5vw, 18px);
        --f18: clamp(13px, 1.6vw, 15px);
        --f20: clamp(16px, 2vw, 19px);
        --f25: 2.2vw;
        --f35: 3vw;
        --f40: 3.4vw;
        --f45: 4vw;
        --f55: 5vw;
        --f65: 5.9vw;
        --f70: 5.5vw;
        --f86: 6.6vw;
        --f-h1-inner: 6.4vw;                              /* client 2026-12-03: a little smaller on tablets (was 7.2vw) */
        --f-h2-inner: var(--f55);                         /* inner section h2 on tablets: 5vw (was --f65, 5.9vw) */
        --f100: 8vw;
        --gutter: 6vw;
        --sectionPad: 8vw;
    }
    @media (max-width: 767.98px) {
        --f17: clamp(15px, 4.1vw, 17px);
        --f18: clamp(16px, 4.62vw, 18px);
        --f20: 18px;
        --f25: min(5vw, 20px);
        --f30: max(16px, 5.5vw);
        --f35: min(6vw, 26px);
        --f40: min(6.5vw, 31px);
        --f45: min(7vw, 30px);
        --f55: 8vw;
        --f65: min(9.4vw, 40px);
        --f70: min(11vw, 46px);
        --f86: min(11vw, 46px);
        --f-h1-inner: 8.8vw;                              /* client 2026-12-03: a little smaller on phones (was 9.6vw) */
        --f-h2-inner: var(--f55);                         /* inner section h2 on phones: 8vw (was --f65, 9.4vw) */
        --f100: min(13vw, 65px);
        --gutter: 7vw;
        --sectionGapWide: 12vw;
        --sectionGapLg: 12vw;
        --titleGap: 10vw;
        --sectionPad: 12vw;
        --g15: 16px;
    }
}

/* ===================================================================
   INNER PAGES — RESPONSIVE SPACE & TYPE STEPS (PROJECT-BOOTSTRAP §2.3 / §2.6 / §2.8, client 2026-12-03)
   Every inner page (main.inner) uses one spacing scale and one type scale. The homepage keeps the base above.
   · Space tokens (name = px at 1536): scale on --cvw down to ~65% at 992, never below 50% on phones (§2.8 table).
   · Type tokens: never smaller than their tablet size between 992 and 1536, so sizes only step down
     (1536 → 992 → tablet → phone), and h4 / buttons never go below body text.
   Roles: section padding --secPadInner · heading → content --titleGap · heading → its description --ledeGap ·
   paragraph → paragraph --pGap · item title → its text --itemGap · cards / rows use --sp15 … --sp90.
   =================================================================== */
main.inner {
    /* SPACE (1536 → phone floor) */
    --sp12: max(8px, calc(var(--cvw) * .8));          /* 12 → 8 */
    --sp15: max(10px, var(--cvw));                    /* 15 → 10 */
    --sp18: max(12px, calc(var(--cvw) * 1.2));        /* 18 → 12 */
    --sp25: max(12px, calc(var(--cvw) * 1.5));        /* 23 → 12 */
    --sp30: max(15px, calc(var(--cvw) * 2));          /* 31 → 15 */
    --sp40: max(20px, calc(var(--cvw) * 2.6));        /* 40 → 20 */
    --sp45: max(25px, calc(var(--cvw) * 3));          /* 46 → 25 */
    --sp60: max(30px, calc(var(--cvw) * 3.9));        /* 60 → 30 */
    --sp75: max(40px, calc(var(--cvw) * 5));          /* 77 → 40 */
    --sp90: max(45px, calc(var(--cvw) * 6));          /* 92 → 45 */
    --g15: max(10px, var(--cvw));
    --secPadInner: clamp(56px, calc(var(--cvw) * 7.8125), 120px);   /* 120 → 77 (991) → 60 (767) → 56 */
    --titleGap: max(32px, calc(var(--cvw) * 4.2));    /* 65 → 42 (991) → 32 */
    --ledeGap: max(16px, calc(var(--cvw) * 1.3));     /* 20 → 16 */
    --pGap: 20px;
    --itemGap: max(10px, calc(var(--cvw) * .8));      /* 12 → 10 */
    --rowPad: max(20px, calc(var(--cvw) * 2));        /* hairline list rows, top = bottom: 31 → 20 */

    /* TYPE — floors = the tablet size, so nothing jumps back up at 991 */
    --f17: max(16px, calc(var(--cvw) * 1.135));
    --f18: max(16px, calc(var(--cvw) * 1.15));
    --f20: max(19px, calc(var(--cvw) * 1.3));
    --f25: max(22px, calc(var(--cvw) * 1.7));
    --f30: max(24px, calc(var(--cvw) * 1.8));
    --f35: max(30px, calc(var(--cvw) * 2.3));
    --f40: max(34px, calc(var(--cvw) * 2.6));
    --f45: max(40px, calc(var(--cvw) * 2.9));
    --f55: max(50px, calc(var(--cvw) * 3.6));
    --f65: max(58px, calc(var(--cvw) * 4.23));
    --f70: max(54px, calc(var(--cvw) * 4.6));
    --f86: max(65px, calc(var(--cvw) * 5.6));
    --f-h1-inner: max(63px, calc(var(--cvw) * 5.6));
    --f100: max(79px, calc(var(--cvw) * 6.4));
    --f-h2: var(--f86);
    --f-h2-inner: var(--f65);

    @media (max-width: 991.98px) {
        --f17: clamp(15px, 1.65vw, 16px);
        --f18: clamp(15px, 1.6vw, 16px);                  /* was 13–15px: h4 / buttons never below body (15px) */
        --f20: clamp(18px, 2vw, 19px);
        --f25: max(20px, 2.2vw);
        --f30: max(22px, 2.4vw);
        --f35: max(26px, 3vw);
        --f40: max(31px, 3.4vw);
        --f45: 4vw;
        --f55: 5vw;
        --f65: 5.9vw;
        --f70: 5.5vw;
        --f86: 6.6vw;
        --f-h1-inner: 6.4vw;
        --f-h2-inner: var(--f55);
        --f100: 8vw;
    }
    @media (max-width: 767.98px) {
        --f17: clamp(15px, 4.1vw, 17px);
        --f18: clamp(16px, 4.62vw, 18px);
        --f20: 18px;
        --f25: min(5vw, 20px);
        --f30: clamp(16px, 5.5vw, 22px);
        --f35: min(6vw, 26px);
        --f40: min(6.5vw, 31px);
        --f45: min(7vw, 30px);
        --f55: min(8vw, 38px);
        --f65: min(9.4vw, 40px);
        --f70: min(11vw, 42px);
        --f86: min(11vw, 46px);
        --f-h1-inner: min(8.8vw, 49px);
        --f-h2-inner: var(--f55);
        --f100: min(13vw, 61px);
        --g15: 16px;
    }
}


/* ===================================================================
   RESET / BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    background: var(--background);
}

/* NOT nested under html — WebKit only honours these at the top level. */
::-webkit-scrollbar { width: var(--scrollbar-width); }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--r-full);
    &:hover { background: var(--scrollbar-thumb-hover); }
}

body {
    min-height: 100svh;
    font-family: var(--font-body);
    font-size: var(--f16);
    line-height: var(--bodyLh);
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input {
    border: 0; background: none; color: inherit;
    font: inherit; cursor: pointer;
}
button { transition: var(--transition); }

/* Sections are touching bands: the gap between two is padding + padding. */
main section { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

::selection { background: var(--orange); color: var(--black); }

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
}
h1 {
    font-size: var(--f100);
    line-height: var(--lhDisplay);
    letter-spacing: var(--ls-h1);
}
h2 {
    font-size: var(--f-h2);
    line-height: var(--lhTight);
    letter-spacing: var(--ls-h1);
}
h3 {
    font-size: var(--f25);
    line-height: var(--lhSnug);
    letter-spacing: var(--ls-h3);
}
h4 {
    font-size: var(--f18);
    line-height: var(--lhSnug);
}
h5, h6 {
    font-family: var(--font-body);
    font-weight: 500;
    line-height: var(--lhUi);
}
h5 { font-size: var(--f16); }
h6 { font-size: var(--f15); }

p {
    font-family: var(--font-body);
    font-size: var(--f16);
    line-height: var(--bodyLh);
}
p + p { margin-top: var(--sp20); }

.lead {
    font-size: var(--f17);
    line-height: var(--lhLead);
}
.eyebrow {
    font-size: var(--f15);
    font-weight: 500;
    line-height: var(--lhUi);
}

/* ===================================================================
   LAYOUT UTILITIES
   =================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}
/* Every section carries the side gutter; .container caps the content. */
.section-x { padding-inline: var(--gutter); }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); border: 0;
}

.skip-link {
    position: fixed; inset-block-start: 0; inset-inline-start: 0;
    z-index: var(--z-modal);
    width: 0; height: 0; overflow: hidden;
    background: var(--white); color: var(--orange);
}
.skip-link:focus {
    width: auto; height: auto;
    padding: var(--sp15) var(--sp25);
    font-weight: 500; clip: auto;
}

/* Colour bands. The page is dark by default; a light band flips the text. */
.bg-light { background: var(--light); --text: var(--ink); --text-soft: var(--muted-ink); color: var(--text); }

/* No-JS / reduced-motion fallback for the fluid background's dot grid (28px, as the original). */
.dot-grid {
    background-image: radial-gradient(var(--dot) .8px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
}

/* ===================================================================
   BUTTONS
   The square bullet is ::before (currentColor); on hover the label
   slides left and the arrow (::after, masked SVG) slides in.
   =================================================================== */
.btn {
    --btn-pad: calc(var(--cvw) * 1.2);
    --btn-gap: calc(var(--cvw) * .5);
    --btn-square: .5rem;
    --btn-arrow: var(--cvw);
    position: relative;
    display: inline-flex; align-items: center;
    gap: var(--btn-gap);
    width: max-content;
    padding: var(--sp8) var(--btn-pad);
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--r-btn);
    font-family: var(--font-body);
    font-size: var(--f18);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: var(--ls-btn);
    white-space: nowrap;
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);

    &::before {
        flex: 0 0 auto;
        width: var(--btn-square); height: var(--btn-square);
        background: currentColor;
        content: "";
        transform: scale(.85);
        transition: transform .3s ease, opacity .3s ease;
    }
    &::after {
        position: absolute; top: 50%; right: var(--btn-pad);
        width: var(--btn-arrow); height: var(--btn-arrow);
        background-color: currentColor;
        content: "";
        opacity: 0;
        transform: translate(calc(var(--btn-pad) + 100%), -50%);
        transition: transform .3s ease, opacity .3s ease;
        -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" fill="none"><path d="M1 7h12M8 2l5 5-5 5" stroke="black" stroke-width="1.6"/></svg>') no-repeat center / contain;
                mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" fill="none"><path d="M1 7h12M8 2l5 5-5 5" stroke="black" stroke-width="1.6"/></svg>') no-repeat center / contain;
    }
    & .btn__label {
        display: block;
        transition: transform .3s ease;
    }

    @media (hover: hover) {
        &:hover {
            &::before { opacity: 0; transform: scale(0); }
            &::after { opacity: 1; transform: translate(0, -50%); }
            & .btn__label { transform: translateX(calc(-1 * (var(--btn-square) + var(--btn-gap)))); }
        }
    }
    @media (max-width: 767.98px) {
        --btn-pad: 24px;
        --btn-gap: 14px;
        --btn-square: 6px;
        --btn-arrow: 14px;
        padding-block: 12px;

        /* mobile: bullet · label · arrow, all visible (the original's mobile button) */
        &::after { position: static; opacity: 1; transform: none; }
    }
}

.btn-primary {
    background: var(--orange);
    color: var(--black);
    &:hover { background: var(--orange); }
}
.btn-dark {
    border-color: var(--white-20);
    background: var(--background);
    color: var(--white);
    &::before { transform: scale(.85); }
    &:hover { border-color: var(--white-50); }
}

/* A row of buttons. Below the desktop layout they stretch, as designed. */
.btn-group {
    display: flex; flex-wrap: wrap;
    gap: var(--sp15);

    @media (max-width: 991.98px) {
        flex-direction: column;
        gap: var(--sp20);
        & .btn { width: 40%; justify-content: center; padding-block: 2vw; }
    }
    @media (max-width: 767.98px) {
        & .btn { width: 100%; justify-content: space-between; padding: 12px 10vw; }
    }
}

/* Text roll — the label is repeated in data-text; hover rolls it up
   (ANIMATIONS.md A05). Used by nav links and text links. */
.text-roll {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    line-height: var(--lhUi);

    & > span {
        display: inline-block;
        transition: transform .3s ease-in-out;
    }
    &::after {
        position: absolute; inset: 0;
        content: attr(data-text);
        transform: translateY(100%);
        transition: transform .3s ease-in-out;
    }
}
a:hover .text-roll, a.text-roll:hover, button:hover .text-roll {
    & > span { transform: translateY(-100%); }
    &::after { transform: translateY(0); }
}

/* The arrow link — text roll + hover colour, no underline. */
.btn-link {
    display: inline-flex; align-items: center;
    gap: var(--sp8);
    width: max-content;
    padding-bottom: var(--sp4);
    font-size: var(--f15);
    transition: color .3s ease;
    /* hover: the line effect in global/link-line.css */
    &.btn-ink { color: var(--background); font-weight: 500; }
}

/* ===================================================================
   SECTION TITLES
   One block for every section heading. Sections never style their own
   title; a section may only change --titleGap (a token) on itself.
   =================================================================== */
.section-title-wrap {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: var(--sp10);
    margin-bottom: var(--titleGap);
    text-align: center;

    &:last-child { margin-bottom: 0; }

    & .section-title-desc {
        max-width: calc(var(--cvw) * 65);
        margin-top: var(--sp30);
        & p { font-size: var(--f17); line-height: var(--lhLead); }
    }

    &.section-title-left { align-items: flex-start; text-align: left; }
}

/* ===================================================================
   DECORATIVE TEXT — the site's own keyframes (ANIMATIONS.md A08, A24)
   =================================================================== */
/* accent text: a plain colour, never a clipped gradient (client, 2026-12-03) */
.text-gradient { color: var(--orange); }

/* Generated by animations.js text splitting (split-chars / split-words).
   The mask is padded so descenders and the 8° tilt are never clipped. */
.split-mask {
    display: inline-block;
    overflow: hidden;
    padding: .14em .08em .24em;
    margin: -.14em -.08em -.24em;
    vertical-align: top;
}
.split-word, .split-char { display: inline-block; }

/* while the hero hand-off shows the Solutions headline, the section's own copy is kept for screen readers only */
html.stage-handoff #solutions .story__head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* …and its intro line moves to the left, where the title was */
html.stage-handoff #solutions { padding-top: calc(var(--cvw) * 3); }
html.stage-handoff #solutions .story__head { grid-template-columns: minmax(0, 1fr); margin-bottom: calc(var(--cvw) * 3.5); }
html.stage-handoff #solutions .story__head > :last-child { max-width: 62ch; }
html.stage-handoff #solutions .story__head .section-title-wrap { position: absolute; margin: 0; }

/* fill-text: each line is filled by sliding a two-tone background (full colour | faint) clipped to the
   text; the extra bottom padding keeps the descenders (g, p, y) inside the painted box */
.is-fill .fill-line {
    display: inline-block;
    padding-bottom: .18em;
    margin-bottom: -.18em;
    background-image: linear-gradient(90deg, var(--white) 50%, var(--white-20) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.is-fill .fill-line--accent { background-image: linear-gradient(90deg, var(--orange) 50%, var(--white-20) 50%); }   /* fill-text scroll effect: the only clipped text, it needs the two-tone fill */

/* slide-lines titles: one line per span (animations.js slides them in) */
.slide-line { display: block; width: fit-content; white-space: nowrap; will-change: transform; }

/* Lenis owns smooth scrolling once it runs. */
html.has-lenis, html.has-lenis body { height: auto; scroll-behavior: auto; }

/* ===================================================================
   MOTION SAFETY — animations.js also skips everything under this.
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
