/* ===================================================================
   VENDOR — global only. Tokens, reset, typography, buttons, breakpoints.
   Every value here was read out of home.pdf (see TOKENS.md).
   THIS FILE IS CLOSED TO SECTION CODE. One file per section instead.
   =================================================================== */

/* ===================================================================
   TOKENS
   =================================================================== */
:root {
    /* COLORS — BRAND */
    --primary: #0047FF;
    --primary-dark: #0039CC;

    /* COLORS — NEUTRALS & SURFACES */
    --cream: #F3F2EE;
    --cream-dark: #E8E6DC;
    --white: #FFFFFF;
    --ink: #0C0C0C;
    --dark-surface: #0C0C0C;
    --black: #000000;

    /* ROLE ALIASES — this design builds greys from alpha, never from grey hexes */
    --text: #0B0C0E;
    --heading: var(--dark-surface);
    --text-invert: var(--white);
    --body-invert: rgba(255, 255, 255, .8);
    --muted-invert: rgba(255, 255, 255, .6);
    --muted-invert-soft: rgba(255, 255, 255, .4);
    --line: rgba(12, 12, 12, .2);
    --line-invert: rgba(255, 255, 255, .1);
    --line-invert-strong: rgba(255, 255, 255, .2);
    --tint-light: rgba(255, 255, 255, .1);
    --tint-dark: rgba(0, 0, 0, .1);
    --hairline-cream: rgba(243, 242, 238, .1);

    /* FONTS — TWO families, both confirmed against the PDF's Type 3 /Widths.
       They were separated by the x-height/cap-height ratio, which is a
       weight-independent family fingerprint:
         heading sample .7061  |  body sample .7713  |  Archivo .7703
       Then matched per character (35 heading glyphs):
         Space Grotesk 500 -> median 0.04%, max 0.20%, 35/35 within 1%
         Archivo 500       -> median 7.96%, max 33.4%   (i.e. not the same face) */
    --font-display: "Space Grotesk", system-ui, sans-serif;   /* h1, h2, quotes */
    --font-body: "Archivo", system-ui, sans-serif;            /* everything else */

    /* WEIGHTS — measured per element by stem thickness at 4x render.
       The design uses optical weight compensation: big display type is set
       LIGHTER (500) and mid-size type HEAVIER (600). Not a mistake. */
    --fw-display: 500;   /* Space Grotesk Medium — 100/80/50px */
    --fw-heading: 600;   /* Archivo SemiBold — 60/40/30px */
    --fw-body: 400;      /* Archivo Medium — 20px running copy */
    --fw-medium: 500;
    --fw-label: 700;     /* Archivo Bold — eyebrows, buttons, "Hosted by" */

    /* TRACKING — read from the TJ operators, which is where the design's
       letter-spacing lives. Display runs measured -0.031 to -0.036 em
       consistently across all 12 of them; body runs measured ~0.000. */
    --track-display: -.034em;

    /* RAW TYPE SCALE (name == value) */
    --f18: 18px;
    --f20: 20px;
    --f24: 24px;
    --f30: 30px;
    --f40: 40px;
    --f50: 50px;
    --f60: 60px;   /* 60 - 50 */
    --f80: 80px;
    --f100: 100px;

    --bodyLh: 1.5;      /* 20px body: measured 30px leading */
    --leadLh: 1.17;     /* 40px lead: measured 50px leading */
    --lhTight: 1.05;    /* headings measure exactly 1.0 — see TOKENS.md item 2 */
    --lhHero: 1;      /* hero h1 measures exactly 110/100 */

    /* CONTAINER & SPACE */
    --container: 1720px;
    --gutter: 100px;
    --inset: 20px;          /* the 120/1800 boxed variant = container + inset */
    --sectionGap: 150px;
    --sectiongapHalf: 75px;

    --sp4: 4px;
    --sp8: 8px;
    --sp10: 10px;
    --sp15: 15px;
    --sp20: 20px;
    --sp25: 25px;
    --sp30: 30px;
    --sp35: 35px;
    --sp40: 40px;
    --sp45: 45px;
    --sp50: 50px;
    --sp60: 60px;
    --sp70: 70px;
    --sp75: 75px;
    --sp80: 80px;
    --sp100: 100px;
    --sp110: 110px;
    --sp120: 120px;

    --g20: 20px;        /* between the two half-width form fields */
    --g100: 100px;      /* main two-column split */

    /* GEOMETRY — radius is 0 everywhere in this design.
       The corner motif is a stepped square notch, applied with clip-path. */
    --r-none: 0;
    --r-full: 9999px;
    --notch-sm: 5px;    /* buttons */
    --notch-md: 40px;   /* cards / image panels */
    --notch-lg: 105px;  /* large decorative panels */

    /* COMPONENT METRICS (measured) */
    --btn-h: 54px;
    --field-h: 60px;

    /* Z / EASE */
    --overlay: rgba(0, 0, 0, .55);
    --z-sticky: 200;
    --z-drop: 210;
    --z-modal: 300;
    --z-cursor: 400;
    --ease: .25s ease;
    --ease-out: .3s cubic-bezier(.2, .7, .3, 1);
    --transition: all .3s ease-in-out;

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

    /* ---------------------------------------------------------------
       GLOBAL BREAKPOINTS — container / gutter / gap / type tokens step
       down here, so every layout using .container or these tokens
       follows automatically. Nested inside :root so all values for a
       given token name live in one place.
       --------------------------------------------------------------- */
    @media (max-width: 1599.98px) {
        --container: 1650px;
        --f20: 18px;
        --f24: 20px;
        --f30: 26px;
        --f60: 40px;
        --f40: 32px;
        --f80: 60px;
        --f100: 75px;
        --sectionGap: 100px;
        --sectiongapHalf: 50px;
        --gutter: 60px;
    }

    @media (max-width: 1439.98px) {
        --container: 1580px;
    }

    @media (max-width: 1365.98px) {
        --container: 1445px;
    }

    @media (max-width: 1199.98px) {
        --container: 1305px;
        --gutter: 60px;
        --sectionGap: 65px;
        --sectiongapHalf: 35px;
        --field-h: 50px;
        --g100: 75px;                        
        --f20: 18px;
        --f24: 20px;
        --f30: 26px;
        --f60: 34px;
        --f40: 32px;
        --f80: 60px;
        --f100: 75px;
        --sp25: 20px;
        --sp30: 25px;
        --sp35: 30px;
        --sp40: 30px;
        --sp45: 35px;
        --sp50: 40px;
        --sp60: 50px;
        --sp70: 55px;
        --sp75: 60px;
        --sp80: 65px;
        --sp100: 80px;
        --sp110: 90px;
        --sp120: 95px;
    }

    @media (max-width: 991.98px) {
        --container: 960px;
        --gutter: 40px;
        --g100: 50px;
        --f18: 16px;
        --f20: 18px;
        --f24: 20px;
        --f30: 26px;
        --f40: 28px;
        --f60: 34px;
        --f80: 50px;
        --f100: 62px;
        --sp25: 15px;
        --sp30: 20px;
        --sp35: 25px;
        --sp40: 25px;
        --sp45: 30px;
        --sp50: 35px;
        --sp60: 40px;
        --sp70: 45px;
        --sp75: 50px;
        --sp80: 45px;
        --sp100: 50px;
        --sp110: 70px;
        --sp120: 80px;
    }

    @media (max-width: 767.98px) {
        --container: 100%;
        --gutter: 30px;
        --sectionGap: 75px;
        --sectiongapHalf: 35px;
        --g100: 50px;
        --f18: 16px;
        --f20: 16px;
        --f24: 18px;
        --f30: 24px;
        --f40: 28px;        
        --f60: 34px;
        --f80: 36px;
        --f100: 45px;
        --notch-md: 25px;
        --notch-lg: 60px;
        --sp20: 15px;
        --sp25: 15px;
        --sp30: 15px;
        --sp35: 20px;
        --sp40: 20px;
        --sp45: 25px;
        --sp50: 25px;
        --sp60: 30px;
        --sp70: 35px;
        --sp75: 38px;
        --sp80: 40px;
        --sp100: 30px;
        --sp110: 50px;
        --sp120: 60px;
    }

    @media (max-width: 575.98px) {
        --sectionGap: 50px;
        --sectiongapHalf: 25px;

        --gutter: 20px;
        --g100: 30px;
        --f30: 20px;
        --f40: 24px;
        --f60: 32px;
        --f80: 28px;
        --f100: 35px;
        --notch-md: 20px;
        --notch-lg: 40px;        
        --sp110: 40px;
        --sp120: 50px;
    }
}

/* ===================================================================
   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;

    /* NO scroll-behavior: smooth — Lenis drives smooth scrolling (CLAUDE.md §9)
       and the two fight each other, producing a stutter on anchor jumps.
       Lenis is skipped under prefers-reduced-motion, and the browser's own
       instant jump is the correct fallback there. */
}

/* 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 {
    font-family: var(--font-body);
    font-size: var(--f20);
    font-weight: var(--fw-body);
    line-height: var(--bodyLh);
    color: var(--text);
    background: var(--cream);
    -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, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    border: 0; background: none; color: inherit;
    font-family: inherit; cursor: pointer;
    transition: var(--transition);
}

/* The one global vertical rhythm rule. Section padding stacks on top of this,
   so the real gap between two sections is padding + sectionGap + padding. */
main section { margin-bottom: var(--sectionGap); overflow-x: clip; }

/* Full-bleed coloured bands sit flush against each other in this design —
   the cream page background is what creates the gaps between them. */
main section.is-band { margin-bottom: 0; }

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

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
/* h1 / h2 are the DISPLAY face (Space Grotesk 500).
   h3 / h4 are the BODY face at SemiBold — measured, not an oversight. */
h1, h2 {
    font-family: var(--font-display);
    font-weight: var(--fw-label);
    letter-spacing: var(--track-display);
    line-height: var(--leadLh);
    color: var(--heading);
}

h3, h4 {
    font-family: var(--font-body);
    font-weight: var(--fw-heading);
    line-height: var(--leadLh);
    color: var(--heading);
}

h1 { font-size: var(--f80); line-height: var(--lhHero); }
h2 { font-size: var(--f60); }
h3 { font-size: var(--f30); }
h4 { font-size: var(--f20); }

h5, h6 {
    font-family: var(--font-body);
    line-height: var(--leadLh);
    color: var(--heading);
}

h5 { font-size: var(--f30); font-weight: var(--fw-heading); }

/* Eyebrow / label: measured 18px, weight 700, .08em tracking — the fit against
   the PDF ink box is 0.3% on width and 0.8% on height. */
h6 {
    font-size: var(--f18);
    font-weight: var(--fw-label);
    text-transform: uppercase;
    letter-spacing: .08em;
}

p {
    font-family: var(--font-body);
    font-size: var(--f20);
    font-weight: var(--fw-body);
    line-height: var(--bodyLh);
}

p + p { margin-top: var(--sp30); }

/* 40px lead paragraph — sections 3 and 6 set their intro copy at this size */
.lead {
    font-family: var(--font-body);
    font-size: var(--f30);
    font-weight: var(--fw-display);
    line-height: var(--leadLh);
}

/* Pull-quotes, big stats and attributions are the display face (measured:
   the 100px quote blocks and the 50/60px "Brian Gerstner" all fit
   Space Grotesk 500 to <0.1%). */
.display {
    font-family: var(--font-display);
    font-weight: var(--fw-display);
    letter-spacing: var(--track-display);
    line-height: var(--lhTight);
}

/* Inline text link — the blue "White Label IQ" / "ManagedCoder" links */
.txt-link {
    color: var(--primary);
    font-weight: var(--fw-medium);
    transition: var(--transition);

    &:hover { color: var(--primary-dark); }
}

/* On-dark inversion helper for whole blocks */
.on-dark {
    color: var(--body-invert);

    & h1, & h2, & h3, & h4, & h5, & h6 { color: var(--text-invert); }
}

.bg-image {
    position: relative;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.afterthepilot.com/wp-content/uploads/2026/08/small-pattern.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        pointer-events: none;
        opacity: 0.20;
        background-attachment: fixed;
        @media (max-width: 1024.98px) {
            background-attachment: local;
        }

    }
}
/* ===================================================================
   LAYOUT UTILITIES
   =================================================================== */
/* --container is the CONTENT width (1720 = the design's 100 -> 1820 span).
   box-sizing is border-box globally, so the gutters must be ADDED to max-width
   or they eat into the measure and every section sits 100px too far in. */
.container {
    width: 100%;
    max-width: calc(var(--container) + (var(--gutter) * 2));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* The 120 -> 1800 boxed variant: the same container, inset by 20px */
.container-inset {
    width: 100%;
    max-width: calc(var(--container) + (var(--gutter) * 2));
    margin-inline: auto;
    padding-inline: calc(var(--gutter) + var(--inset));
}

.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(--primary);
}

.skip-content:focus, .skip-footer:focus {
    width: auto; height: auto;
    padding: var(--sp15) var(--sp25);
    font-weight: 600; clip: auto;
}

/* ===================================================================
   THE NOTCH — this design's signature corner treatment.
   Corners are cut as a square staircase, not rounded. Exact path was
   read from the PDF: a 5x5 square removed from each button corner.
   =================================================================== */
.notch {
    --notch: var(--notch-sm);

    clip-path: polygon(
        var(--notch) 0,
        calc(100% - var(--notch)) 0,
        calc(100% - var(--notch)) var(--notch),
        100% var(--notch),
        100% calc(100% - var(--notch)),
        calc(100% - var(--notch)) calc(100% - var(--notch)),
        calc(100% - var(--notch)) 100%,
        var(--notch) 100%,
        var(--notch) calc(100% - var(--notch)),
        0 calc(100% - var(--notch)),
        0 var(--notch),
        var(--notch) var(--notch)
    );
}

.notch-md { --notch: var(--notch-md); }
.notch-lg { --notch: var(--notch-lg); }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    height: var(--btn-h);
    /* padding tuned so a "Request an invite" label lands on the design's
       measured 258.67px button width in the real face */
    padding-inline: var(--sp30);
    font-family: var(--font-body);
    font-size: var(--f20);
    font-weight: var(--fw-label);
    line-height: 1;    
    text-transform: uppercase;
    text-align: center;
    transition: var(--transition);

    /* the 5px stepped corner notch, inlined so every .btn gets it */
    clip-path: polygon(
        var(--notch-sm) 0,
        calc(100% - var(--notch-sm)) 0,
        calc(100% - var(--notch-sm)) var(--notch-sm),
        100% var(--notch-sm),
        100% calc(100% - var(--notch-sm)),
        calc(100% - var(--notch-sm)) calc(100% - var(--notch-sm)),
        calc(100% - var(--notch-sm)) 100%,
        var(--notch-sm) 100%,
        var(--notch-sm) calc(100% - var(--notch-sm)),
        0 calc(100% - var(--notch-sm)),
        0 var(--notch-sm),
        var(--notch-sm) var(--notch-sm)
    );
}

.btn-primary {
    background: var(--primary);
    color: var(--white);

    &:hover { background: var(--primary-dark);     
        --n: var(--notch-sm);
        --n2: calc(var(--n) * 2);
        clip-path: polygon(var(--n2) 0, calc(100% - var(--n2)) 0, calc(100% - var(--n2)) var(--n), calc(100% - var(--n)) var(--n), calc(100% - var(--n)) var(--n2), 100% var(--n2), 100% calc(100% - var(--n2)), calc(100% - var(--n)) calc(100% - var(--n2)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n2)) calc(100% - var(--n)), calc(100% - var(--n2)) 100%, var(--n2) 100%, var(--n2) calc(100% - var(--n)), var(--n) calc(100% - var(--n)), var(--n) calc(100% - var(--n2)), 0 calc(100% - var(--n2)), 0 var(--n2), var(--n) var(--n2), var(--n) var(--n), var(--n2) var(--n));
    }
}

.btn-white {
    background: var(--white);
    color: var(--ink);
    &:hover { background: var(--cream-dark); }
}

/* full-width variant — the form's submit button (578px = field width) */
.btn-block { width: 100%; }

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp10);
}

@media (max-width: 575.98px) {
    .btn {
        width: 100%;
        padding-inline: var(--sp20);
        text-align: center;
    }
}

/* The arrow link. The arrow is a masked SVG on ::after whose background-color is
   currentColor, so it always matches the link's own colour and no section ever
   writes arrow markup or arrow CSS. */
.btn-link {
    position: relative;
    display: flex; align-items: center;
    width: max-content; max-width: 100%;
    font-family: var(--font-body);
    font-size: var(--f20);
    font-weight: var(--fw-medium);

    &::after {
        flex: 0 0 auto;
        width: 22px; height: 10px;
        margin-left: var(--sp10);
        background-color: currentColor;
        content: '';
        transition: var(--transition);
        -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 10" fill="none"><path d="M17 9L21 5L17 1M21 5H1" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
                mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 10" fill="none"><path d="M17 9L21 5L17 1M21 5H1" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
        -webkit-mask-size: contain;
                mask-size: contain;
    }

    &:hover::after { margin-left: var(--sp20); }

    &.btn-black { color: var(--ink); }
    &.btn-blue { color: var(--primary); }
    &.btn-invert { color: var(--white); }
}

/* ===================================================================
   SECTION TITLES
   One block for every section heading on the site. Sections never style
   their own title — that is the whole point of this component.
   NOTE: left-aligned by default, because every section title in this
   design is left-aligned at the container edge. Use .section-title-center
   for the centred variant.
   =================================================================== */
.section-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp10);
    margin-bottom: var(--sp100);
    text-align: left;
    /* @media (max-width: 767.98px) {
        margin-bottom: var(--sp50);
    } */
    &:last-child { margin-bottom: 0; }

    & .title-eyebrow {
        font-size: var(--f18);
        font-weight: var(--fw-label);
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--primary);
    }

    /* & h2 span { color: var(--primary); } */

    & .section-title-desc {
        max-width: 940px;   /* measured: hero subtitle ink width */
        margin-top: var(--sp10);

        & p { font-size: var(--f30); }
    }

    &.section-title-center {
        align-items: center;
        text-align: center;
    }
}

/* On dark bands the eyebrow flips to the soft white, matching the
   WHEN / WHERE / ACCESS labels in the hero card. */
.on-dark .section-title-wrap .title-eyebrow { color: var(--muted-invert-soft); }

/* .heading-blue span { color: var(--primary); } */

/* ===================================================================
   FORM FIELDS (measured 578x60, no radius, dark surface)
   =================================================================== */
.field {
    display: flex;
    flex-direction: column;
    gap: var(--sp10);
}

.field-label {
    font-size: var(--f18);
    color: var(--muted-invert);
}

.field-input {
    width: 100%;
    height: var(--field-h);
    padding-inline: var(--sp20);
    background: var(--dark-surface);
    border: 0;
    border-radius: var(--r-none);
    color: var(--white);
    transition: var(--transition);

    &::placeholder { color: var(--muted-invert-soft); }
    &:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
}

/* ===================================================================
   HELPERS
   =================================================================== */
/* Generated by assets/js/global/title-reveal.js (GSAP SplitText).
   Each character rises out of its own mask. */
.title-char { will-change: transform; }

.txt-primary { color: var(--primary); }
.bg-ink { background: var(--ink); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-primary { background: var(--primary); }
.rule { height: 1px; background: var(--line); border: 0; }
.rule-invert { height: 1px; background: var(--line-invert); border: 0; }

/* Generated by assets/js/global/text-reveal.js (GSAP SplitText).
   The mask wrapper clips each line so it can rise into place. */
.reveal-line { will-change: transform, filter, opacity; }

/* Held by the inline pre-paint script in <head> until text-reveal.js has split
   the copy into lines. Without this the paragraphs paint, then gsap.from()
   hides them, and you get a flash of text before the animation. */
.reveal-pending main p { opacity: 0; }

.team_hover {   
    position: relative;
    &:hover{
        & .hover_portrait {
            opacity: 0.5;
        }
        & .hover_avtar {
            opacity: 1;
        }
    }
    & .hover_portrait {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0.8;
        transition: opacity 0.2s ease-in-out;
    }
    & .hover_avtar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0.02;
        transition: opacity 0.5s ease-in-out;
    }
}
