/* ═══════════════════════════════════════════════════════
       GSEman OÜ — Shared Stylesheet
       Fonts:   Philosopher (headings) + Poppins (body/UI)
       Colors:  Brand Guidelines palette — primary + secondary
       gsemen.eu
    ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* ── Primary Colors (Brand Guidelines p.13) ── */
    --white: #FFFFFF; /* Pure White */
    --ink: #231F20; /* Charcoal Black */
    --blue: #4E9BD4; /* Sky Blue */
    /* ── Secondary Colors (Brand Guidelines p.14) ── */
    --gray: #F3F4F6; /* Light Gray  — section backgrounds */
    --ice: #CFE4F3; /* Soft Ice Blue — accents, hovers */
    /* ── Derived / UI ── */
    --ink-mid: #3D3935;
    --ink-light: #7C776F;
    --blue-dark: #3A8EC4;
    --rule: #E2E4E8;
    --photo: #0D1824;
    /* ── Radii ── */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-pill: 50px;
    /* ── Type ── */
    --serif: 'Philosopher', Georgia, serif;
    --body: 'Poppins', Helvetica, sans-serif;
    --sans: 'Poppins', Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: #f3f4f6;
    border-bottom: 1px solid var(--rule);
    height: 68px;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.nav-logo-word {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}

    .nav-logo-word em {
        font-style: normal;
        color: var(--blue);
    }

.nav-logo-divider {
    width: 1px;
    height: 16px;
    background: var(--rule);
}

.nav-logo-sub {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .nav-links a {
        font-family: var(--sans);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-mid);
        text-decoration: none;
        padding: 8px 14px;
        border-radius: var(--radius-sm);
        transition: color 0.15s, background 0.15s;
        white-space: nowrap;
    }

        .nav-links a:hover {
            color: var(--ink);
            background: var(--gray);
        }

        .nav-links a.nav-active {
            color: var(--blue);
        }

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-pill) !important;
    margin-left: 4px;
}

    .nav-cta:hover {
        background: var(--blue-dark) !important;
    }

    .nav-cta.nav-active {
        background: var(--blue-dark) !important;
        color: var(--white) !important;
    }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: none;
}

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--ink);
    }

/* ── LAYOUT ───────────────────────────────────────────── */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.section {
    padding: 50px 0;
}

.section-gray {
    background: var(--gray);
}

.section-ink {
    background: var(--ink);
}

.section-tighter {
    padding: 60px 0;
}

.section-pt-reduced {
    padding-top: 0px;
}

.col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ── EYEBROW ──────────────────────────────────────────── */
.eyebrow {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .eyebrow::before {
        content: '';
        display: block;
        width: 20px;
        height: 1px;
        background: var(--blue);
    }

.eyebrow-light {
    color: rgba(255,255,255,0.5);
}

    .eyebrow-light::before {
        background: rgba(255,255,255,0.4);
    }

/* ── DISPLAY HEADINGS ─────────────────────────────────── */
h2.display {
    font-family: var(--serif);
    font-size: clamp(30px,3.5vw,50px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
}

    h2.display em {
        font-style: italic;
        color: var(--blue);
    }

.display-light {
    color: var(--white) !important;
}

/* ── BODY TEXT ────────────────────────────────────────── */
.body-text {
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.85;
}

    .body-text p {
        margin-bottom: 20px;
    }

        .body-text p:last-child {
            margin-bottom: 0;
        }

    .body-text strong {
        font-weight: 700;
        color: var(--ink);
    }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    text-align: center;
}

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

    .btn-blue:hover {
        background: var(--blue-dark);
    }

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

    .btn-dark:hover {
        background: #3d3634;
    }

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

    .btn-white:hover {
        background: var(--gray);
    }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.45);
}

    .btn-outline-white:hover {
        border-color: var(--white);
    }

.btn-outline-dark {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

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

/* ════════════════════════════════════════════════════════
       HOME — HERO
    ════════════════════════════════════════════════════════ */
.hero {
    padding-top: 68px;
    height: 100vh;
    min-height: 640px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-image: url('images/two.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8,14,22,0.95) 0%, rgba(8,14,22,0.75) 55%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 48px 180px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
}

    .hero-eyebrow::before {
        content: '';
        display: block;
        width: 28px;
        height: 1px;
        background: var(--blue);
    }

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.02;
    color: var(--white);
    margin-bottom: 28px;
}

    .hero h1 em {
        font-style: italic;
        color: var(--blue);
        display: block;
    }

.hero-sub {
    font-family: var(--body);
    font-size: clamp(16px,1.6vw,20px);
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════
       HOME — FLOATING STAT CARDS
    ════════════════════════════════════════════════════════ */
.stats-cards-section {
    background: var(--white);
    padding: 50px 0;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.stats-float-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: 0 2px 4px rgba(35,31,32,0.04), 0 8px 32px rgba(35,31,32,0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}

    .stats-float-card:hover {
        box-shadow: 0 4px 8px rgba(35,31,32,0.06), 0 16px 48px rgba(35,31,32,0.11);
        transform: translateY(-3px);
    }

.stats-float-num {
    font-family: var(--serif);
    font-size: 45px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 12px;
}

.stats-float-label {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.stats-float-sub {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-mid);
}

/* Stats carousel pip dots (mobile) */
.stats-pips {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.stats-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rule);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .stats-pip.active {
        background: var(--blue);
        transform: scale(1.3);
    }

@media (max-width: 760px) {
    .stats-cards-section {
        padding: 40px 0;
        overflow: hidden;
    }

        /* Turn the wrap into a full-bleed scroll container */
        .stats-cards-section .wrap {
            padding: 0;
            overflow: visible;
        }

    .stats-cards-grid {
        display: flex;
        flex-direction: row;
        gap: 0;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 24px 16px;
        /* allow cards to stretch to viewport */
        width: 100vw;
    }

        .stats-cards-grid::-webkit-scrollbar {
            display: none;
        }

    .stats-float-card {
        flex: 0 0 calc(100vw - 48px);
        scroll-snap-align: center;
        margin-right: 16px;
    }

        .stats-float-card:last-child {
            margin-right: 0;
        }

    .stats-pips {
        display: flex;
    }
}

/* ════════════════════════════════════════════════════════
       HOME — STATEMENT  (tighter, higher)
    ════════════════════════════════════════════════════════ */
.statement {
    padding: 54px 48px;
    text-align: center;
}

.statement-text {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 38px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    max-width: 880px;
    margin: 0 auto;
}

    .statement-text em {
        font-style: italic;
        color: var(--blue);
    }

/* ════════════════════════════════════════════════════════
       HOME — CHALLENGE  (clean 2-col, scannable, no card)
    ════════════════════════════════════════════════════════ */
.challenge-section {
    background: var(--gray);
    padding: 72px 0;
}

.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.challenge-lead {
    font-family: var(--body);
    font-size: 19px;
    line-height: 1.75;
    color: var(--ink-mid);
    margin-bottom: 24px;
}

.challenge-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 28px;
}

    .challenge-list li {
        font-family: var(--body);
        font-size: 17px;
        line-height: 1.6;
        color: var(--ink-mid);
        padding-left: 22px;
        position: relative;
    }

        .challenge-list li::before {
            content: '—';
            position: absolute;
            left: 0;
            color: var(--blue);
            font-weight: 700;
        }

.pivot-line {
    font-family: var(--body);
    font-size: 18px;
    font-style: italic;
    color: var(--blue);
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════
       HOME — SERVICES WITH BACKGROUND IMAGE
    ════════════════════════════════════════════════════════ */
.services-bg-section {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.services-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,14,22,0.86);
}

.services-content {
    position: relative;
    z-index: 2;
}

/* ── SERVICE CAROUSEL ─────────────────────────────────── */
.service-carousel-wrap {
    position: relative;
    margin-top: 52px;
}

.service-carousel-viewport {
    overflow: hidden;
}

.service-cards-compact {
    display: flex;
    gap: 20px;
    transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

/* Each card: 3 visible at a time + gaps accounted for */
.service-card-compact {
    flex: 0 0 calc((100% - 40px) / 3);
    background: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 36px 30px 40px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .service-card-compact:hover {
        border-color: var(--blue);
        box-shadow: 0 4px 20px rgba(78,155,212,0.15);
    }

.service-card-compact-num {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.service-card-compact h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.1;
}

.service-card-compact-rule {
    width: 28px;
    height: 1px;
    background: var(--blue);
    opacity: 0.4;
    margin-bottom: 18px;
}

.service-card-compact p {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.9;
    color: var(--ink-mid);
}

/* Carousel arrows */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    justify-content: flex-end;
}

.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: rgba(255,255,255,0.8);
    flex-shrink: 0;
}

    .carousel-arrow:hover:not(:disabled) {
        border-color: var(--white);
        background: rgba(255,255,255,0.08);
        color: var(--white);
    }

    .carousel-arrow:disabled {
        opacity: 0.25;
        cursor: default;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.carousel-pip-track {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.carousel-pip {
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    transition: background 0.2s, width 0.2s;
}

    .carousel-pip.active {
        background: var(--blue);
        width: 32px;
    }

/* ════════════════════════════════════════════════════════
       HOME — INDUSTRIES SERVED
    ════════════════════════════════════════════════════════ */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 0;
    margin-top: 56px;
}

.industry-card {
    padding: 32px 28px;
    border-left: 2px solid var(--rule);
    transition: border-color 0.2s, background 0.2s;
}

    .industry-card:first-child {
        border-left: none;
        padding-left: 0;
    }

    .industry-card:hover {
        border-color: var(--blue);
        background: rgba(207,228,243,0.18);
    }
/* --ice tint */
.industry-num {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.industry-name {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.1;
}

.industry-card p {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-mid);
}

/* ════════════════════════════════════════════════════════
       HOME — PHOTO BREAK WITH PULLQUOTE
    ════════════════════════════════════════════════════════ */
.photo-break {
    height: 480px;
    background: var(--photo);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-break-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,14,22,0.62);
}

.photo-break-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 64px;
    max-width: 960px;
}

.photo-break-rule {
    width: 40px;
    height: 1px;
    background: var(--blue);
    margin: 0 auto 32px;
}

.photo-break-quote {
    font-family: var(--serif);
    font-size: clamp(20px,2.4vw,36px);
    font-weight: 400;
    color: rgba(255,255,255,0.82);
    line-height: 1.35;
}

.photo-break-quote-em {
    font-family: var(--serif);
    font-size: clamp(20px,2.4vw,36px);
    font-style: italic;
    color: var(--blue);
    line-height: 1.35;
    margin-bottom: 28px;
}

.photo-break-attr {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════════════════════
       FOUNDER
    ════════════════════════════════════════════════════════ */
.founder-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 96px;
    align-items: start;
}

.founder-card {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: visible;
    position: sticky;
    top: 90px;
}

.founder-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--photo);
    background-size: cover;
    background-position: center 15%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-info {
    padding: 28px 28px 32px;
}

.founder-name {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.founder-title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
}

.founder-meta {
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-light);
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

    .founder-meta a {
        color: var(--blue);
        text-decoration: none;
    }

.founder-story h2 {
    font-family: var(--serif);
    font-size: clamp(28px,3vw,46px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 28px;
}

/* Stat badge */
.founder-stat-badge {
    position: absolute;
    bottom: -22px;
    right: -22px;
    background: var(--blue);
    color: var(--white);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 8px 28px rgba(78,155,212,0.32);
    z-index: 3;
    min-width: 118px;
}

.founder-stat-badge-num {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.founder-stat-badge-lbl {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
    line-height: 1.4;
}

/* ════════════════════════════════════════════════════════
       CTA — FULLSCREEN IMAGE + CENTERED PILL BUBBLE
       Image spans full width. Pill floats centered on image.
    ════════════════════════════════════════════════════════ */
.cta-fullscreen {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-fullscreen-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.cta-fullscreen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,14,22,0.42);
}

.cta-pill-bubble {
    position: relative;
    z-index: 2;
    background: rgba(8,14,22,0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 56px;
    padding: 64px 72px;
    max-width: 680px;
    width: calc(100% - 80px);
    text-align: center;
    margin: 56px 0;
}

    .cta-pill-bubble .eyebrow {
        justify-content: center;
    }

    .cta-pill-bubble h2 {
        font-family: var(--serif);
        font-size: clamp(26px,3vw,44px);
        font-weight: 400;
        color: var(--white);
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .cta-pill-bubble p {
        font-family: var(--body);
        font-size: 17px;
        font-style: italic;
        color: rgba(255,255,255,0.6);
        margin-bottom: 32px;
        line-height: 1.65;
    }

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════
       UPDATED PAGE HEADER — FLUID PILL STYLE
    ════════════════════════════════════════════════════════ */
.page-header {
    padding-top: 68px;
    /* FLUID HEIGHT: Uses 50% of the screen height, but stays between 400px and 700px */
    min-height: clamp(200px, 15vh, 700px);
    background-image: url('images/blue-pattern.png');
    background-size: cover;
    /* FLUID POSITION: Uses percentages to ensure the focus stays correct on all screens */
    background-position: center 57.7%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures bubble doesn't bleed out */
}

    .page-header .wrap {
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        /* Keeps the bubble left-aligned but adds fluid side gutters */
        justify-content: flex-start;
        padding: 350 clamp(20px, 0vw, 80px);
    }

.page-header-inner.pill-bubble {
    background: #4E9BD4;
    /* FLUID BORDER RADIUS: Scales with the bubble size */
    /* FLUID PADDING: 
           Vertical: scale between 30px and 60px
           Horizontal: scale between 40px and 100px */
    padding: clamp(30px, 5vh, 60px) clamp(20px, 10vw, 25px);
    /* FLUID WIDTH: Scales based on viewport, maxing out at 650px */
    width: 100%;
    max-width: clamp(320px, 50vw, 630px);
    text-align: center;
}

    .page-header-inner.pill-bubble h1 {
        font-family: var(--serif);
        /* FLUID TYPE: Already using clamp - good! */
        font-size: clamp(32px, 4.5vw, 58px);
        font-weight: 400;
        color: var(--white);
        line-height: 1.1;
        margin-bottom: 24px;
    }

    .page-header-inner.pill-bubble p {
        font-family: var(--body);
        /* FLUID TEXT: scales slightly between mobile and desktop */
        font-size: clamp(17px, 2vw, 19px);
        font-style: italic;
        color: rgba(255, 255, 255, 0.8);
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

/* Simplified Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        /* Center the bubble on mobile for better UX */
        justify-content: center;
        text-align: center;
    }

        .page-header .wrap {
            justify-content: center;
            padding-left: 20px;
            padding-right: 20px;
        }

    .page-header-inner.pill-bubble {
        /* Allow it to be wider on small screens */
        max-width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .page-header {
        min-height: 480px;
    }

    .page-header-inner.pill-bubble {
        border-radius: 36px;
        padding: 48px 32px;
        margin: 40px 0;
    }
}

/* ════════════════════════════════════════════════════════
       PAGE HEADER VARIANTS — each page gets a distinct treatment
    ════════════════════════════════════════════════════════ */

/* ABOUT — large italic serif statement, left-anchored, no bubble */
.page-header-about {
    padding-top: 68px;
    min-height: clamp(320px, 40vh, 580px);
    background: var(--ink);
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

    .page-header-about::before {
        content: '';
        position: absolute;
        right: -60px;
        top: 50%;
        transform: translateY(-50%);
        width: 560px;
        height: 560px;
        border-radius: 50%;
        border: 1px solid rgba(78,155,212,0.12);
        pointer-events: none;
    }

    .page-header-about::after {
        content: '';
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        width: 320px;
        height: 320px;
        border-radius: 50%;
        border: 1px solid rgba(78,155,212,0.07);
        pointer-events: none;
    }

    .page-header-about .wrap {
        position: relative;
        z-index: 2;
        padding-bottom: 64px;
        padding-top: 64px;
    }

    .page-header-about .ph-eyebrow {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--blue);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .page-header-about .ph-eyebrow::before {
            content: '';
            display: block;
            width: 24px;
            height: 1px;
            background: var(--blue);
        }

    .page-header-about .ph-about-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }

        .page-header-about .ph-about-row h1 {
            flex-shrink: 0;
        }

    .page-header-about .ph-sub {
        font-family: var(--sans);
        font-size: clamp(15px, 1.5vw, 20px);
        font-weight: 400;
        color: rgba(255,255,255,0.7);
        line-height: 1.6;
        padding-bottom: 8px;
    }

    .page-header-about h1 {
        font-family: var(--serif);
        font-size: clamp(28px, 3.8vw, 52px);
        font-weight: 400;
        line-height: 1.0;
        color: var(--white);
        margin-bottom: 0;
    }

        .page-header-about h1 em {
            font-style: italic;
            color: var(--blue);
        }

/* SERVICES — numbered rule accent, wide dark bar */
.page-header-services {
    padding-top: 68px;
    min-height: clamp(280px, 35vh, 480px);
    background: var(--gray);
    border-bottom: 1px solid var(--rule);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .page-header-services .ph-rule-wrap {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .page-header-services .ph-rule-line {
        position: absolute;
        top: 50%;
        right: 0;
        width: 48%;
        height: 1px;
        background: var(--rule);
    }

    .page-header-services .ph-rule-line-2 {
        position: absolute;
        top: calc(50% + 40px);
        right: 0;
        width: 30%;
        height: 1px;
        background: var(--rule);
        opacity: 0.5;
    }

    .page-header-services .wrap {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .page-header-services .ph-left {
    }

    .page-header-services .ph-num-inline {
        display: flex;
        align-items: baseline;
        gap: 16px;
        margin-bottom: 4px;
    }

    .page-header-services .ph-num-label {
        font-family: var(--serif);
        font-size: clamp(32px, 4.5vw, 56px);
        font-weight: 400;
        color: var(--ink);
        letter-spacing: 0.01em;
        text-transform: lowercase;
    }

    .page-header-services .ph-num {
        font-family: var(--serif);
        font-size: clamp(56px, 8vw, 110px);
        font-weight: 700;
        line-height: 0.85;
        color: var(--ink);
        user-select: none;
        margin-bottom: -8px;
        display: block;
    }

    .page-header-services h1 {
        font-family: var(--serif);
        font-size: clamp(30px, 4vw, 52px);
        font-weight: 400;
        line-height: 1.1;
        color: var(--ink);
        margin-bottom: 0;
    }

        .page-header-services h1 em {
            font-style: italic;
            color: var(--blue);
        }

    .page-header-services .ph-right {
        border-left: 2px solid var(--rule);
        padding-left: 48px;
    }

    .page-header-services .ph-sub {
        font-family: var(--sans);
        font-size: clamp(15px, 1.6vw, 17px);
        font-weight: 400;
        color: var(--ink-light);
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .page-header-services .ph-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-header-services .ph-tag {
        font-family: var(--sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.05em;
        color: var(--blue);
        background: rgba(78,155,212,0.1);
        padding: 5px 14px;
        border-radius: var(--radius-pill);
        border: 1px solid rgba(78,155,212,0.2);
        text-decoration: none;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
        cursor: pointer;
    }

    .page-header-services a.ph-tag:hover {
        background: rgba(78,155,212,0.22);
        border-color: rgba(78,155,212,0.5);
        color: var(--blue);
    }

@media (max-width: 900px) {
    .page-header-services .wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header-services .ph-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--rule);
        padding-top: 24px;
    }
}

/* TEAM — photo-strip dark header, name badges on a horizontal scroll illusion */
.page-header-team {
    padding-top: 68px;
    min-height: clamp(280px, 36vh, 460px);
    background: var(--ink);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .page-header-team .ph-grid-bg {
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(78,155,212,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(78,155,212,0.04) 1px, transparent 1px);
        background-size: 48px 48px;
        pointer-events: none;
    }

    .page-header-team .wrap {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
        flex-wrap: nowrap;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .page-header-team .ph-text {
    }

    .page-header-team .ph-right-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        flex-shrink: 0;
    }

        .page-header-team .ph-right-col .ph-sub {
            font-family: var(--sans);
            font-size: clamp(13px, 1.3vw, 15px);
            font-weight: 400;
            color: rgba(255,255,255,0.4);
            max-width: 720px;
            line-height: 1.7;
            text-align: left;
        }

    .page-header-team .ph-eyebrow {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.35);
        margin-bottom: 16px;
    }

    .page-header-team h1 {
        font-family: var(--serif);
        font-size: clamp(34px, 4.5vw, 62px);
        font-weight: 400;
        line-height: 1.08;
        color: var(--white);
        max-width: 520px;
        margin-bottom: 20px;
    }

        .page-header-team h1 em {
            font-style: italic;
            color: var(--blue);
        }

    .page-header-team .ph-sub {
        font-family: var(--sans);
        font-size: clamp(14px, 1.5vw, 17px);
        font-weight: 400;
        color: rgba(255,255,255,0.45);
        max-width: 420;
        line-height: 1.7;
    }

    .page-header-team .ph-stats {
        display: flex;
        flex-direction: row;
        gap: 0;
        flex-shrink: 0;
        align-items: stretch;
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .page-header-team .ph-stat {
        padding: 24px 32px;
        border-right: 1px solid rgba(255,255,255,0.09);
        background: rgba(255,255,255,0.03);
        min-width: 160px;
    }

        .page-header-team .ph-stat:first-child {
            border-radius: 0;
        }

        .page-header-team .ph-stat:last-child {
            border-right: none;
            border-bottom: none;
            border-radius: 0;
        }

    .page-header-team .ph-stat-num {
        font-family: var(--serif);
        font-size: 30px;
        font-weight: 700;
        color: var(--white);
        line-height: 1;
        margin-bottom: 4px;
    }

    .page-header-team .ph-stat-lbl {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--blue);
    }

@media (max-width: 900px) {
    .page-header-team .ph-right-col {
        display: none;
    }
}

@media (max-width: 780px) {
    .page-header-team .ph-right-col {
        display: none;
    }
}

/* CONTACT — split layout, white left + ink right */
.page-header-contact {
    padding-top: 68px;
    min-height: clamp(260px, 32vh, 420px);
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}

    .page-header-contact .ph-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 48px 0 48px;
        display: flex;
        align-items: stretch;
        min-height: clamp(260px, 32vh, 420px);
    }

    .page-header-contact .ph-left-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 56px 48px 56px 0;
        max-width: 640px;
    }

    .page-header-contact .ph-right-panel {
        width: 320px;
        flex-shrink: 0;
        background: var(--blue);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 40px 40px 48px;
        position: relative;
        overflow: visible;
    }

        /* Extend blue background to right viewport edge */
        .page-header-contact .ph-right-panel::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 100%;
            width: 100vw;
            background: var(--blue);
            pointer-events: none;
        }

        .page-header-contact .ph-right-panel::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -60px;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            background: rgba(255,255,255,0.08);
            pointer-events: none;
        }

    .page-header-contact .ph-eyebrow {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--blue);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .page-header-contact .ph-eyebrow::before {
            content: '';
            display: block;
            width: 20px;
            height: 1px;
            background: var(--blue);
        }

    .page-header-contact h1 {
        font-family: var(--serif);
        font-size: clamp(30px, 4vw, 52px);
        font-weight: 400;
        line-height: 1.1;
        color: var(--ink);
        margin-bottom: 16px;
        max-width: 480px;
    }

        .page-header-contact h1 em {
            font-style: italic;
            color: var(--blue);
        }

    .page-header-contact .ph-sub {
        font-family: var(--sans);
        font-size: clamp(14px, 1.5vw, 17px);
        font-weight: 400;
        color: var(--ink-light);
        line-height: 1.7;
        max-width: 420px;
    }

    .page-header-contact .ph-contact-detail {
        position: relative;
        z-index: 2;
    }

    .page-header-contact .ph-contact-label {
        font-family: var(--sans);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.55);
        margin-bottom: 4px;
    }

    .page-header-contact .ph-contact-value {
        font-family: var(--sans);
        font-size: 18px;
        font-weight: 500;
        color: var(--white);
        margin-bottom: 20px;
        line-height: 1.4;
    }

        .page-header-contact .ph-contact-value a {
            color: var(--white);
            text-decoration: none;
        }

@media (max-width: 860px) {
    .page-header-contact .ph-inner {
        flex-direction: column;
        padding: 0 24px;
    }

    .page-header-contact .ph-right-panel {
        width: 100%;
        flex-direction: row;
        gap: 32px;
        flex-wrap: wrap;
        padding: 28px 24px;
    }

    .page-header-contact .ph-left-panel {
        padding: 40px 0 32px;
        margin-left: 0;
    }

    .page-header-contact .ph-contact-value {
        margin-bottom: 0;
    }
}

/* ════════════════════════════════════════════════════════
       ABOUT — METRICS STRIP
    ════════════════════════════════════════════════════════ */
.about-metrics {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-bottom: 1px solid var(--rule);
}

.about-metric {
    padding: 48px 40px;
    border-right: 1px solid var(--rule);
}

    .about-metric:last-child {
        border-right: none;
    }

.about-metric-num {
    font-family: var(--serif);
    font-size: 56px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 10px;
}

.about-metric-label {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-metric-sub {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-mid);
}

/* ════════════════════════════════════════════════════════
       ABOUT — CORE VALUES WITH BACKGROUND IMAGE
    ════════════════════════════════════════════════════════ */
.values-bg-section {
    position: relative;
    padding: 50px 0;
    overflow: hidden;
}

.values-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.values-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,14,22,0.82);
}

.values-content {
    position: relative;
    z-index: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 28px;
}

.value-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
}

.value-n {
    font-family: var(--sans);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 12px;
    letter-spacing: 0.06em;
}

.value-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.value-desc {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.value-card-blue {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}

    .value-card-blue .value-n {
        color: rgba(255,255,255,0.5) !important;
    }

    .value-card-blue .value-desc {
        color: rgba(255,255,255,0.75) !important;
    }

/* ════════════════════════════════════════════════════════
       TEAM — 4-COLUMN, ASPECT-RATIO PHOTOS
    ════════════════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 56px;
}

.team-card {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

    .team-card:hover {
        border-color: var(--blue);
    }

.team-card-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--photo);
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

    .team-card-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

.team-card-photo-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.1);
    padding-bottom: 14px;
    text-align: center;
}

.team-card-body {
    padding: 22px;
}

.team-card-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.team-card-role {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    line-height: 1.4;
}

.team-card-bio {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-mid);
    margin-bottom: 14px;
}

.team-card-credentials {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-light);
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    line-height: 1.6;
}

    .team-card-credentials a {
        color: var(--blue);
        text-decoration: none;
        font-weight: 700;
    }

/* ════════════════════════════════════════════════════════
       SERVICES PAGE — EXPANDED CARDS
    ════════════════════════════════════════════════════════ */
.service-card-lg {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    transition: border-color 0.2s;
    scroll-margin-top: calc(68px + 32px); /* fixed nav height + breathing room */
}

    .service-card-lg:hover {
        border-color: var(--blue-dark);
    }

.service-card-lg-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    background: var(--blue);
    padding: 22px 44px;
    border-bottom: none;
    margin-bottom: 0;
}

.service-card-lg-num {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    padding-top: 5px;
}

.service-card-lg h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.1;
}

.service-card-lg-scan {
    font-family: var(--body);
    font-size: 18px;
    font-style: italic;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}

.service-card-lg-body {
    padding: 32px 44px 44px;
}

    .service-card-lg-body p {
        font-family: var(--body);
        font-size: 17px;
        line-height: 1.85;
        color: var(--ink-mid);
        margin-bottom: 16px;
    }

        .service-card-lg-body p:last-child {
            margin-bottom: 0;
        }

/* ════════════════════════════════════════════════════════
       CONTACT
    ════════════════════════════════════════════════════════ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    padding: 32px 64px 32px 0;
    border-right: 1px solid var(--rule);
}

.contact-intro {
    font-family: var(--body);
    font-size: 20px;
    line-height: 1.85;
    color: var(--ink-mid);
    margin-bottom: 48px;
}

.contact-block {
    margin-bottom: 32px;
}

.contact-block-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 8px;
}
/* Both email lines share the same size */
.contact-block-value,
.contact-block-sub-email {
    font-family: var(--body);
    font-size: 21px;
    font-weight: 400;
    color: var(--ink-mid);
    margin-bottom: 4px;
    display: block;
}

    .contact-block-value a,
    .contact-block-sub-email a {
        color: var(--blue);
        text-decoration: none;
    }

.contact-form-side {
    padding: 32px 0 32px 64px;
}

.form-label-head {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ink-light);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-family: var(--body);
        font-size: 17px;
        color: var(--ink);
        background: var(--white);
        border: 1px solid var(--rule);
        border-radius: var(--radius-sm);
        padding: 12px 16px;
        outline: none;
        transition: border-color 0.15s;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--blue);
        }

    .form-group textarea {
        min-height: 140px;
        resize: vertical;
    }

.form-note {
    font-family: var(--body);
    font-size: 17px;
    color: var(--ink-light);
    margin-top: 14px;
    line-height: 1.65;
}

/* ════════════════════════════════════════════════════════
       FOOTER
    ════════════════════════════════════════════════════════ */
footer {
    background: #231F20;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

    .footer-brand em {
        font-style: normal;
        color: rgba(255,255,255,0.3);
    }

.footer-tagline {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.58);
    max-width: 280px;
}

.footer-col-head {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-nav a {
        font-family: var(--body);
        font-size: 16px;
        color: rgba(255,255,255,0.62);
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-nav a:hover {
            color: var(--white);
        }

.footer-contact-row {
    margin-bottom: 16px;
}

.footer-contact-lbl {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-bottom: 4px;
}

.footer-contact-val {
    font-family: var(--body);
    font-size: 16px;
    color: rgba(255,255,255,0.62);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

.footer-copy {
    font-family: var(--sans);
    font-size: 14px;
    color: rgba(255,255,255,0.32);
}

/* ════════════════════════════════════════════════════════
       RESPONSIVE
    ════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .service-cards-compact {
        /* 2 visible on mid screens */
    }

    .service-card-compact {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .industries-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .industry-card:first-child {
        border-left: 2px solid var(--rule);
        padding-left: 28px;
    }

    .team-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .values-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 960px) {
    .nav-inner {
        padding: 0 24px;
    }

    .nav-logo-divider, .nav-logo-sub {
        display: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--rule);
        padding: 16px 24px;
        gap: 4px;
        z-index: 499;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 12px 16px;
            width: 100%;
        }

    .nav-hamburger {
        display: flex;
    }

    .wrap {
        padding: 0 24px;
    }

    .hero-content {
        padding: 0 24px 56px;
    }

    .hero {
        height: 80vh;
        background-position: 62% center;
    }

    .statement {
        padding: 48px 24px;
    }

    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .challenge-section {
        padding: 56px 0;
    }

    .service-card-compact {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .industries-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .industry-card {
        border-left: 2px solid var(--rule);
        padding-left: 24px;
    }

        .industry-card:first-child {
            border-left: none;
            padding-left: 0;
        }

    .photo-break {
        height: 360px;
    }

    .photo-break-content {
        padding: 0 24px;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .founder-card {
        position: relative;
        top: auto; /* cancel sticky */
        max-width: 360px;
        margin: 0 auto;
        padding-bottom: 22px; /* room for badge overhang */
        order: 2; /* move below story on mobile */
    }

    .founder-story {
        order: 1; /* story appears first on mobile */
    }

    .founder-stat-badge {
        bottom: 8px;
        right: -14px;
    }

    .founder-stat-badge-num {
        font-size: 30px;
    }

    .cta-fullscreen {
        min-height: 440px;
    }

    .cta-pill-bubble {
        border-radius: 36px;
        padding: 48px 32px;
        width: calc(100% - 48px);
        margin: 40px 0;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

        .cta-btns .btn {
            width: 100%;
            max-width: 280px;
        }

    .about-metrics {
        grid-template-columns: 1fr;
    }

    .about-metric {
        border-right: none;
        border-bottom: 1px solid var(--rule);
    }

        .about-metric:last-child {
            border-bottom: none;
        }

    .ph-about-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header-about .ph-sub {
        max-width: 100%;
        padding-bottom: 0;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .col-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header-inner {
        padding: 40px 0 48px;
    }

    .page-header p {
        font-size: 16px;
    }

    .service-card-lg-header {
        grid-template-columns: 32px 1fr;
        gap: 12px;
        padding: 20px 24px;
    }

    .service-card-lg-body {
        padding: 24px 24px 32px;
    }

    .service-card-lg h3 {
        font-size: 24px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--rule);
        padding: 40px 0;
    }

    .contact-form-side {
        padding: 40px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-bg-section {
        padding: 72px 0;
    }

    .section {
        padding: 36px 0;
    }
}

@media (max-width: 600px) {
    .service-card-compact {
        flex: 0 0 100%;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--rule);
        padding-bottom: 20px;
    }

        .industry-card:last-child {
            border-bottom: none;
        }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-pill-bubble {
        border-radius: 24px;
        padding: 40px 20px;
        margin: 28px 0;
    }
}
