/* ============================================================
   components.css — Shared UI components for all site pages
   Nav · Strapline · Footer · Buttons · Connect section
   Requires base.css to be loaded first for CSS variables.
   ============================================================ */


/* ===================================================================
   SITE STRAPLINE — sitewide availability signal below the nav
   =================================================================== */
.site-strapline {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 999;
    background: #060606;
    border-bottom: 1px solid rgba(79, 129, 247, 0.10);
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.5), inset 0 0 60px rgba(79, 129, 247, 0.025);
    /* Hidden by default (wide screens use inline nav status instead) */
    display: none;
}

/* Show strapline only on medium screens (nav status too cramped) */
@media (max-width: 1400px) and (min-width: 769px) {
    .site-strapline { display: flex; }
}

.site-strapline__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
}

.site-strapline__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: straplinePulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
    0%   { opacity: 0.45; transform: scale(0.85); }
    4%   { opacity: 1;    transform: scale(1);    }
    8%   { opacity: 0.45; transform: scale(0.85); }
    100% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes textPulse {
    0%   { color: #484848; }
    4%   { color: #ffffff; }
    8%   { color: #484848; }
    100% { color: #484848; }
}

.site-strapline__text {
    color: #484848;
    text-transform: uppercase;
}

.site-strapline__text strong {
    color: #6a6a6a;
    font-weight: 500;
}

.site-strapline__sep {
    color: #252525;
    font-size: 0.8em;
}

.site-strapline__cta {
    color: var(--amber);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.site-strapline__cta:hover { opacity: 1; }

/* Hide on mobile — hamburger panel would overlap */
@media (max-width: 768px) {
    .site-strapline { display: none; }
}


/* ===================================================================
   SITE NAV
   Fixed top bar, 60px tall. JS toggles .scrolled on scroll.
   =================================================================== */
.site-nav.no-transition,
.site-nav.no-transition * { transition: none !important; }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 40px;
    height: 60px;
    background: #0a0a0a;
}

.site-nav.scrolled {
    border-bottom: none;
}


.nav__brand {
    display: inline-grid;
    grid-template-areas: 'brand';
    align-items: center;
    text-decoration: none;
    margin-right: auto;   /* restored — status is out of flex flow (absolute) */
    flex-shrink: 0;
}

/* ── Availability status signal ───────────────────────────── */
/* Absolutely positioned relative to the fixed nav (full viewport width).
   left: calc(50% - content-wide/2) mirrors how hero__inner centres via
   margin: auto inside its 40px-padded hero, giving pixel-perfect alignment. */
.nav__status {
    position: absolute;
    left: calc(50% - var(--content-wide) / 2);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none; /* doesn't block nav interactions beneath */
}

.nav__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: dotPulse 15s ease-in-out infinite;
    opacity: 0.45;
    transform: scale(0.85);
}

.nav__status-text {
    animation: textPulse 15s ease-in-out infinite;
}
.nav__status-text strong {
    font-weight: 500;
}

/* Hide when too narrow (status would overlap logo below ~1400px) */
@media (max-width: 1400px) {
    .nav__status { display: none; }
}

.nav__logo {
    grid-area: brand;
    height: 22px;
    width: auto;
    display: block;
    transition: opacity 0.25s ease;
}


/* Text reveal — JS manages .nav__brand--text-active for auto-cycle + hover */
.nav__brand-text {
    grid-area: brand;          /* stacked in same cell as logo — no overflow */
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* State: text visible (auto-cycle or hover) */
.nav__brand--text-active .nav__logo      { opacity: 0; }
.nav__brand--text-active .nav__brand-text { opacity: 1; }

/* Fallback for no-JS: CSS hover still works */
.nav__brand:not([data-brand-init]):hover .nav__logo      { opacity: 0; }
.nav__brand:not([data-brand-init]):hover .nav__brand-text { opacity: 1; }

.nav__links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link--active {
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.08);
}

/* ── Dropdown ───────────────────────────────────────────────────── */
.nav__item { position: relative; list-style: none; }

.nav__dropdown-caret {
    display: inline-block;
    margin-left: 4px;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    opacity: 0.5;
    transition: transform 0.2s;
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 190px;
    padding: 6px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
}

/* Arrow pip */
.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #111;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav__item--dropdown:hover .nav__dropdown-caret,
.nav__item--dropdown.is-open .nav__dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav__dropdown-link {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav__dropdown-link:hover,
.nav__dropdown-link--active {
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.08);
}

/* ── Nav right group ───────────────────────────────────────────── */
.nav__right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
}

.nav__cta {
    /* Works as both <a> and <button> */
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    margin-left: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--text-primary);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nav__cta:hover {
    opacity: 0.85;
    color: var(--bg-primary);
    transform: translateY(-1px);
}

/* ── Contact Modal ─────────────────────────────────────── */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.contact-modal--open {
    opacity: 1;
    pointer-events: all;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.contact-modal__card {
    position: relative;
    z-index: 1;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 48px;
    max-width: 420px;
    width: calc(100% - 48px);
    transform: translateY(14px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal--open .contact-modal__card {
    transform: translateY(0);
}

.contact-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #3a3a3a;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.18s;
}

.contact-modal__close:hover { color: #777; }

.contact-modal__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.contact-modal__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 32px;
}

.contact-modal__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-modal__option {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 22px;
    background: #111;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.18s, background 0.18s;
}

.contact-modal__option:hover {
    border-color: #2c2c2c;
    background: #151515;
}

.contact-modal__option-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
    width: 64px;
    flex-shrink: 0;
}

.contact-modal__option-value {
    font-size: 0.9375rem;
    color: #ccc;
    flex: 1;
    transition: color 0.18s;
}

.contact-modal__option:hover .contact-modal__option-value { color: #e8e8e8; }

.contact-modal__option-arrow {
    font-size: 1rem;
    color: #2a2a2a;
    transition: color 0.18s, transform 0.18s;
    margin-left: 12px;
}

.contact-modal__option:hover .contact-modal__option-arrow {
    color: #555;
    transform: translate(2px, -1px);
}

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }


/* ===================================================================
   HAMBURGER — mobile only (hidden on desktop via media query)
   =================================================================== */
/* Hidden on desktop — shown inside full-screen mobile menu */
.nav__mobile-cta { display: none; }
.nav__item--mobile-only { display: none; }

.nav__hamburger {
    display: none; /* shown in @media below */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
}

.nav__hamburger-line {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
}

/* Animate to × when nav--open */
.site-nav.nav--open .nav__hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.site-nav.nav--open .nav__hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.site-nav.nav--open .nav__hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Prevent body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

/* ── Mobile nav ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-nav { padding: 0 20px; }

    /* Show hamburger, hide desktop CTA */
    .nav__hamburger { display: flex; }
    .nav__cta { display: none; }

    /* When open: hamburger/× must paint above the overlay (which is z-index 998) */
    .site-nav.nav--open .nav__right {
        position: relative;
        z-index: 999;
    }

    /* Make the × lines bright white so they're unmissable on black */
    .site-nav.nav--open .nav__hamburger-line { background: #fff; }

    /* Full-screen overlay when open */
    .nav__links {
        display: none;
        position: fixed;
        inset: 0;
        background: #000;
        padding: 90px 40px 60px;   /* 90px clears the nav bar */
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        z-index: 998;              /* just below site-nav at 999 */
        animation: nav-fs-in 0.22s cubic-bezier(0.16,1,0.3,1);
    }

    .site-nav.nav--open .nav__links { display: flex; }

    @keyframes nav-fs-in {
        from { opacity: 0; transform: scale(0.97); }
        to   { opacity: 1; transform: scale(1); }
    }

    /* Close hint — bottom of the overlay */
    .nav__links::after {
        content: 'Tap  ×  to close';
        display: block;
        position: absolute;
        bottom: 40px;
        left: 0;
        right: 0;
        text-align: center;
        font-family: var(--font-mono);
        font-size: 0.62rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--text-muted);
        opacity: 0.5;
        pointer-events: none;
    }

    /* Nav links — large tap targets */
    .nav__link {
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        padding: 12px 0;
        border-radius: 0;
        display: block;
        color: var(--text-primary);
        border-bottom: none;
        line-height: 1.1;
    }

    .nav__link:hover,
    .nav__link--active { color: #fff; }

    /* Mobile-only nav items — shown in hamburger menu */
    .nav__item--mobile-only { display: list-item; }

    /* Mobile CTA — "Let's Talk" button inside menu */
    .nav__mobile-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 32px;
        padding: 14px 28px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        color: #fff;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        width: fit-content;
    }

    .nav__mobile-cta:hover {
        border-color: rgba(255,255,255,0.5);
        background: rgba(255,255,255,0.05);
    }

    /* Dropdown — render inline on mobile */
    .nav__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0 0 4px 4px;
        min-width: unset;
        box-shadow: none;
    }
    .nav__dropdown::before { display: none; }
    .nav__dropdown-link {
        font-size: 1rem;
        font-weight: 400;
        padding: 8px 0;
        color: var(--text-muted);
    }
    .nav__dropdown-caret { display: none; }
}


/* ===================================================================
   HERO BACK LINK
   "← Back" link at the top of sub-page heroes
   =================================================================== */
.hero__back {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    transition: color 0.2s;
}

.hero__back:hover {
    color: var(--text-primary);
}


/* ===================================================================
   BUTTONS
   =================================================================== */

/* Amber ghost button — email / primary contact CTA */
.btn-amber {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--amber);
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 8px;
    background: rgba(217, 119, 6, 0.06);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.btn-amber:hover {
    background: rgba(217, 119, 6, 0.12);
    border-color: var(--amber);
    color: var(--amber);
}

/* Solid violet button — MotionMind CTAs */
.btn-violet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--violet);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.btn-violet:hover {
    background: #6d28d9;
    color: #fff;
    transform: translateY(-2px);
}

/* Ghost text link */
.btn-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--text-primary);
}

/* Solid amber button — primary solid CTA */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--amber);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #f59e0b;
    color: var(--bg-primary);
    transform: translateY(-2px);
}


/* ===================================================================
   CONNECT SECTION
   "Let's Talk" section — used at the bottom of all sub-pages
   =================================================================== */
.connect {
    padding: 80px 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.connect__inner {
    max-width: var(--content-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

@media (max-width: 700px) {
    .connect__inner {
        grid-template-columns: 1fr;
    }

    .connect__actions {
        align-items: flex-start;
    }
}

.connect__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.connect__headline {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.connect__sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 48ch;
}

.connect__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}


/* ===================================================================
   SITE FOOTER
   =================================================================== */
.site-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.footer__logo {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.footer__brand:hover .footer__logo { opacity: 1; }

.footer__nav {
    display: flex;
    gap: 24px;
}

.footer__link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--text-primary);
}


/* ===================================================================
   NAV SCROLL HELPER — add this script to every page body
   const nav = document.getElementById('site-nav');
   window.addEventListener('scroll', () =>
       nav.classList.toggle('scrolled', window.scrollY > 40), { passive: true });
   =================================================================== */

/* ===================================================================
   SECTION LAYOUT
   Sections marked [data-nav-section] are full-height and scroll-offset
   so the fixed nav bar doesn't obscure the top of each section.
   =================================================================== */
[data-nav-section] {
    min-height: 100vh;
    scroll-margin-top: 96px; /* nav 60px + strapline 36px */
}

/* Connect / CTA sections must not inherit the full-viewport height */
.connect[data-nav-section],
.connect-section[data-nav-section],
.connect-strip[data-nav-section],
.cs-cta[data-nav-section],
section.cs-cta,
/* Case study pages: sections are content-height only, not full viewport.
   The 100vh rule above is intentional for index page full-screen sections
   (.hero, .cards-section, .about-section) only. */
.cs-hero[data-nav-section],
.cs-section[data-nav-section] {
    min-height: unset;
}

body.has-version-switcher [data-nav-section] {
    scroll-margin-top: 98px;
}


/* ===================================================================
   SECTION NAV — right-side dot + arrow navigator
   HTML widget lives in each page body (after .site-nav).
   JS:  js/section-nav.js
   =================================================================== */
.section-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 6px;
    border-radius: 40px;
    background: transparent;
    transition: background 0.3s;
}

.section-nav:hover {
    background: rgba(10, 10, 15, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.section-nav__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.12s;
    flex-shrink: 0;
    padding: 0;
}

.section-nav__btn:hover:not(:disabled) { color: var(--text-primary); }
.section-nav__btn:disabled { opacity: 0.12; cursor: default; }
.section-nav__btn.pressed { color: var(--text-primary); transform: scale(0.82); }

.section-nav__dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 2px 0;
}

.section-nav__dot {
    width: 3px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.25s, height 0.25s;
    flex-shrink: 0;
}

.section-nav__dot.active { background: rgba(255, 255, 255, 0.65); height: 14px; }
.section-nav__dot:hover:not(.active) { background: rgba(255, 255, 255, 0.5); }

@media (max-width: 768px) { .section-nav { display: none; } }


/* ===================================================================
   CS-CTA — Shared "connect / let's talk" section
   Loaded here so it's available on every page (not just case studies).
   Typography intentionally mirrors .about__statement for consistency.
   =================================================================== */
/* ===================================================================
   HERO TYPOGRAPHY — Shared across all pages
   Lock: 4.4rem desktop / scales mobile. Dimmed base + em highlight.
   Page CSS may override: max-width, margin-bottom, eyebrow gap.
   =================================================================== */

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero__headline {
    font-size: var(--fs-hero);
    font-weight: var(--fw-heading);
    letter-spacing: var(--ls-heading);
    line-height: var(--lh-heading);
    color: rgba(240, 240, 240, 0.65);
    margin-bottom: 24px;
}

.hero__headline em {
    font-style: normal;
    color: var(--text-primary);
    opacity: 1;
}

.hero__sub {
    font-size: var(--fs-sub);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 48ch;
    margin: 0 0 48px;
}

/* Stat strip — sits above CTAs */
.hero__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 48px;
}

.hero__stat-rule {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin-right: 48px;
    flex-shrink: 0;
}

.hero__stat-num {
    font-size: var(--fs-stat-hero);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 22ch;
}

/* ── Stat link (clickable) ─────────────────────────────────── */
.hero__stat--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}
.hero__stat--link:hover { opacity: 0.75; }

/* ── Stat tooltip ──────────────────────────────────────────── */
.hero__stat-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: super;
    margin-left: 5px;
    cursor: help;
}
.hero__stat-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 0.52rem;
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
}
.hero__stat-tip:hover .hero__stat-tip-icon {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
.hero__stat-tip-text {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 230px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: #e0e0e0;
    line-height: 1.55;
    letter-spacing: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s, transform 0.15s ease;
    z-index: 9999;
    white-space: normal;
    text-transform: none;
}
.hero__stat-tip:hover .hero__stat-tip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Hide tooltips on mobile (touch has no hover) */
@media (max-width: 700px) { .hero__stat-tip { display: none; } }

/* Mobile headline now handled by the fluid clamp() in --fs-hero — no override needed */

/* Mobile — stat strip stacks */
@media (max-width: 700px) {
    .hero__stats { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero__stat  { padding-right: 0; }
    .hero__stat-rule { display: none; }
}


/* ===================================================================
   CONNECT / CTA
   =================================================================== */

.cs-cta {
    padding: 100px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Statement-level heading — --fs-section-h2 token = 2.5rem */
.cs-cta h2 {
    font-size: var(--fs-section-h2);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.cs-cta h2 em {
    font-style: normal;
    color: var(--text-primary);
    opacity: 0.55;
}

.cs-cta p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.cs-cta__btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-bottom: 24px;
}

.cs-cta__btn:hover { opacity: 0.85; }

.cs-cta__secondary {
    display: block;
    margin-top: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cs-cta__secondary a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}

.cs-cta__secondary a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-strong);
}


/* ============================================================
   BACK-TO-TOP BUTTON
   Desktop only — hidden on mobile via media query
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 36px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity     0.25s ease,
        transform   0.25s ease,
        border-color 0.2s ease,
        color        0.2s ease,
        background   0.2s ease;
    pointer-events: none;
}

#back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-card-2);
}

/* Desktop only */
@media (max-width: 768px) {
    #back-to-top { display: none; }
}

/* ===================================================================
   VIDEO REPLAY WRAP + BUTTON
   =================================================================== */

/* Wrapper injected by nav.js around every <video> */
.video-replay-wrap {
    position: relative;
    display: inline-block; /* shrink-wraps to video size */
    line-height: 0;        /* removes inline gap below video */
}

/* Replay button — hidden by default, shown on 'ended' */
.video-replay-btn {
    position: absolute;
    inset: 0;
    margin: auto;          /* centres within the video bounds */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: none;         /* shown via JS on video end */
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.15s, transform 0.15s;
}
.video-replay-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}
.video-replay-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
