/* ============================================================
   QuantumIT — General Stylesheet
   Design tokens, reset, unified typography, atoms, header,
   footer, utilities. Page-specific layout lives in its own
   stylesheet (e.g. home.css).
   ============================================================ */

@import url('../assets/fonts/open-sans/open-sans.css');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand palette */
    --navy: #004E68;
    --navy-deep: #001E28;
    --navy-darker: #001820;
    --black: #00080B;
    --black-soft: #001015;
    --blue: #0078A0;
    --blue-deep: #005A78;
    --blue-tint: #1C97C2;
    --blue-bright: #00BEFF;
    --blue-soft: #E5EFF5;
    --gray: #676a6c;
    --gray-text: #94a3b8;
    --gray-ink: #1f2937;
    --gray-50: #f4f5f7;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --white: #ffffff;

    /* Layout */
    --max-w: 1280px;
    --pad-x: 24px;

    /* Type family */
    --t: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type scale — one source of truth */
    --fs-h1: clamp(40px, 6vw, 60px);
    --fs-h2: clamp(30px, 4vw, 44px);
    --fs-h3: clamp(17px, 2vw, 25px);
    --fs-h4: 11px;
    --fs-lead: 17px;
    --fs-body: 15px;
    --fs-small: 13px;
    --fs-xs: 11px;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 800;

    --lh-tight: 1.04;
    --lh-snug: 1.12;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    --ls-tight: -0.028em;
    --ls-label: 1.6px;
    --ls-eyebrow: 2.2px;

    /* Numeric display */
    --num-lg: clamp(48px, 5.2vw, 68px);
    --num-md: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.10);
    --shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.10);

    /* Motion */
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-soft: cubic-bezier(0.33, 0.05, 0.4, 1);

    /* Standard interaction timing — keep all transitions soft + uniform at 0.3s.
       Kept as four tokens for forward compatibility with possible future tiering. */
    --t-fast: 0.3s;
    --t-mid: 0.3s;
    --t-slow: 0.3s;
    --t-xslow: 0.3s;
}

/* ============================================================
   RESET
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--t);
    color: var(--gray-ink);
    background: var(--white);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: white; }

/* ============================================================
   TYPOGRAPHY — unified across all sections
   Headings, paragraphs, labels and numerals share one scale.
   Per-section files must NOT redefine sizes, weights or colours.
   ============================================================ */
h1, h2, h3 {
    color: var(--navy);
    letter-spacing: var(--ls-tight);
}
h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-medium);
    line-height: var(--lh-tight);
}
h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-semibold);
    line-height: 1.08;
}
h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: -0.025em;
}
h4, .label {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--gray-text);
    line-height: 1.4;
}

p {
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--gray);
}
p strong { color: var(--navy); font-weight: var(--fw-semibold); }

.lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-relaxed);
    color: var(--gray);
}
.lead strong { color: var(--navy); font-weight: var(--fw-semibold); }

/* Heading rhythm — spacing handled via adjacent siblings so
   every section composes the same eyebrow→heading→body stack. */
.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 { margin-top: 20px; }

h1 + p, h1 + .lead,
h2 + p, h2 + .lead,
h3 + p, h3 + .lead { margin-top: 22px; }

p + p { margin-top: 18px; }

/* ============================================================
   NUMERIC DISPLAY — proof bar, platform meta, stat cards
   ============================================================ */
.numeral {
    font-weight: var(--fw-bold);
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.032em;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
}
.numeral--lg { font-size: var(--num-lg); }
.numeral--md { font-size: var(--num-md); letter-spacing: -0.028em; }
.numeral__suffix {
    font-size: 0.55em;
    font-weight: var(--fw-bold);
    color: var(--blue);
    margin-left: 2px;
}

/* ============================================================
   DARK CONTEXT — single switch for inverted sections
   Apply `.on-dark` on any section with a dark background.
   ============================================================ */
.on-dark { color: white; }
.on-dark h1,
.on-dark h2,
.on-dark h3 { color: white; }
.on-dark h4,
.on-dark .label { color: rgba(255, 255, 255, 0.6); }
.on-dark p { color: rgba(255, 255, 255, 0.78); }
.on-dark p strong { color: white; font-weight: var(--fw-semibold); }
.on-dark .lead { color: rgba(255, 255, 255, 0.85); }
.on-dark .eyebrow { color: rgba(255, 255, 255, 0.95); }
.on-dark .eyebrow::before { background: white; }
.on-dark .numeral { color: white; }
.on-dark .numeral__suffix { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   LAYOUT — container
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* ============================================================
   ATOMS — eyebrow
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
    position: relative;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--blue);
}
.eyebrow--white { color: rgba(255, 255, 255, 0.95); }
.eyebrow--gray  { color: var(--gray-text); }

/* ============================================================
   ATOMS — buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    font-size: 12px;
    font-weight: var(--fw-bold);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    min-height: 45px;
    transition:
        background var(--t-mid) var(--ease-out),
        color var(--t-mid) var(--ease-out),
        border-color var(--t-mid) var(--ease-out),
        transform var(--t-mid) var(--ease-out),
        box-shadow var(--t-mid) var(--ease-out);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    border-radius: 0;
    position: relative;
}
.btn .arrow {
    transition: transform var(--t-mid) var(--ease-out);
    display: inline-flex;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--blue); color: white; }
.btn--primary:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--dark { background: var(--black); color: white; }
.btn--dark:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 14px 28px;
}
.btn--outline:hover {
    background: white;
    color: var(--navy);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--outline-dark {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 14px 28px;
}
.btn--outline-dark:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--sm { padding: 11px 22px; font-size: 11px; min-height: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--black);
    transition: background var(--t-mid) var(--ease-out);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 32px;
}
.site-header__logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--t-mid) var(--ease-out);
}
.site-header__logo:hover img { opacity: 0.8; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.site-nav a {
    position: relative;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    padding: 8px 0;
    transition: color var(--t-mid) var(--ease-out);
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--t-mid) var(--ease-out);
}
.site-nav a:hover,
.site-nav a.is-active { color: white; }
.site-nav a:hover::after,
.site-nav a.is-active::after { width: 100%; }

/* ============================================================
   SECTION — shared title block
   Headings/paragraphs inside inherit from the global type scale.
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section--gray { background: var(--gray-50); }

.section__head { margin-bottom: 68px; }
.section__head--center { text-align: center; }
.section__head--center .eyebrow { display: inline-flex; }
.section__head p { max-width: 900px; }
.section__head--center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 76px 0 30px;
    position: relative;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}
.footer__brand img {
    height: 56px;
    width: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}
.footer__brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
    max-width: 380px;
}
.footer h4 {
    color: white;
    margin-top: 15px;
    margin-bottom: 18px;
}
.footer ul li { margin-bottom: 6px; }
.footer ul li,
.footer ul li a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.footer ul li a {
    transition: color var(--t-mid) var(--ease-out), padding-left var(--t-mid) var(--ease-out);
}
.footer ul li a:hover {
    color: var(--blue);
    padding-left: 6px;
}
.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
}

/* ============================================================
   HERO — shared across pages
   Dark navy bg + photo overlay + animated circuit + cyan accent
   block + animated brand mark + content stack.
   ============================================================ */
.hero {
    position: relative;
    background: var(--navy-darker);
    overflow: hidden;
    min-height: 50vh;
}
.hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.5;
    filter: grayscale(0.35) contrast(1.05) brightness(0.85);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(100deg,
            rgba(0, 24, 32, 0.97) 0%,
            rgba(0, 24, 32, 0.88) 28%,
            rgba(0, 24, 32, 0.55) 65%,
            rgba(0, 24, 32, 0.4) 100%
        );
    pointer-events: none;
}
.hero__accent {
    position: absolute;
    top: 130px;
    left: -70px;
    width: 280px;
    height: 280px;
    background: var(--blue-bright);
    z-index: 1;
    transition: transform var(--t-mid) var(--ease-out);
}
.hero__accent::before {
    content: '';
    position: absolute;
    bottom: -90px;
    left: 60px;
    width: 80px;
    height: 80px;
    background: var(--black);
    z-index: -1;
}
.hero:hover .hero__accent { transform: translateY(-2px); }

.hero__circuit {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../assets/patterns/hero-circuit.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.hero__accent-mark {
    position: absolute;
    top: 50%;
    right: 30px;
    width: 150px;
    height: auto;
    transform: translateY(-50%);
    transition: transform var(--t-mid) var(--ease-out);
    z-index: 2;
    pointer-events: none;
}
.hero:hover .hero__accent-mark {
    transform: translateY(calc(-50% - 2px)) scale(1.04);
}
.hero__accent-mark .halo {
    transform-origin: center;
    transform-box: fill-box;
    animation: qitHaloPulse 4.2s var(--ease) infinite;
}
@keyframes qitHaloPulse {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(1.12); }
}

.hero__inner {
    position: relative;
    z-index: 2;
    padding: 90px 0 80px;
    max-width: 940px;
}
.hero h1 .blue { color: var(--blue-tint); }
.hero .lead {
    max-width: 950px;
    font-size: 15px;
    padding-bottom: 0;
}
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    margin-bottom: 44px;
}

/* Proof bar — used inside hero */
.proof-bar {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 930px;
    flex-wrap: wrap;
}
.proof-bar__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 130px;
    transition: transform var(--t-mid) var(--ease-out);
}
.proof-bar__item:hover { transform: translateY(-3px); }
.proof-bar__sep {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.18);
}
/* Inner-page heroes (About/Products/Contact): the lead is directly followed
   by the proof-bar — on home there are CTAs in between, so this scopes to the
   inner pages only. Add room below the body copy and tighten line->items gap. */
.lead + .proof-bar {
    margin-top: 30px;
    padding-top: 20px;
}

/* Hero entrance animation */
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero__ctas,
.proof-bar {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn 0.95s var(--ease-out) forwards;
}
.hero h1       { animation-delay: 0.1s; }
.hero .lead    { animation-delay: 0.2s; }
.hero__ctas    { animation-delay: 0.3s; }
.proof-bar     { animation-delay: 0.4s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STATS COLUMN — shared "stacked offset stat cards" pattern
   Used by Homepage about section and About-page story section.
   ============================================================ */
.stats-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.stats-photo {
    position: relative;
    overflow: hidden;
    height: 240px;
    margin-bottom: 6px;
}
.stats-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(0.15) contrast(1.05);
    transition: transform 0.3s var(--ease-out);
}
.stats-photo:hover img { transform: scale(1.04); }
.stats-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 78, 104, 0.18) 0%, rgba(0, 120, 160, 0.10) 100%);
    pointer-events: none;
}
.stats-photo__tag {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 12px 20px;
    background: var(--blue);
    color: white;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    z-index: 2;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.stat-card {
    position: relative;
    padding: 28px 32px;
    transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), z-index 0s var(--t-mid);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 22px;
    z-index: 1;
}
.stat-card:nth-child(odd)  { width: 88%; align-self: flex-start; }
.stat-card:nth-child(even) { width: 88%; align-self: flex-end; }
.stat-card:hover {
    z-index: 3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), z-index 0s 0s;
}
.stat-card--blue { background: var(--blue); border: none; }
.stat-card--navy { background: var(--navy); border: none; }
.stat-card > * { position: relative; z-index: 1; }
.stat-card__num-block { flex-shrink: 0; min-width: 110px; }
.stat-card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.stat-card__icon {
    color: var(--blue);
    opacity: 0.55;
    flex-shrink: 0;
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.stat-card:hover .stat-card__icon { opacity: 1; transform: scale(1.08); }
.stat-card__icon svg { width: 28px; height: 28px; display: block; }
.stat-card--blue .stat-card__icon,
.stat-card--navy .stat-card__icon { color: rgba(255, 255, 255, 0.7); }
.stat-card--blue .stat-card__icon svg { transform: scale(1.18); transform-origin: center; }

/* ============================================================
   PRODUCT LOGO STRIP — shared across pages
   The page-level wrapper (.logo-strip, .product-strip, …) sets
   its own background / padding; this defines the items grid only.
   ============================================================ */
.logo-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.logo-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 4px 8px;
    min-width: 130px;
    transition: transform var(--t-mid) var(--ease-out);
}
.logo-strip__item:hover { transform: translateY(-3px); }
.logo-strip__logo-wrap {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-strip__item img {
    height: 26px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--t-slow) var(--ease-out);
}
.logo-strip__item:hover img { transform: scale(1.06); }
.logo-strip__item img[alt="InPlace Software"]    { height: 25px; }
.logo-strip__item img[alt="InPlace Network"]     { height: 32px; }
.logo-strip__item img[alt="InPlace Corrections"] { height: 24px; }
.logo-strip__item img[alt="InPlace Analytics"]   { height: 23px; }
.logo-strip__item img[alt="InPlace Audit"]       { height: 23px; }
.logo-strip__item img[alt="QuantumLABS"]         { height: 28px; }

/* ============================================================
   STANDALONE CARDS — shared (homepage product suite + products page)
   2-up grid of large product feature cards. Top blue stripe,
   sharp corners, hairline border, lift + shadow on hover.
   ============================================================ */
.standalones {
    display: grid;
    grid-template-columns: 1fr;   /* one standalone product (Q-Labs), G2377 WP 1.8b */
    gap: 24px;
}
/* A full-width single card reads as one banner: description held to a readable width, features in two columns. */
@media (min-width: 881px) {
    .standalones .standalone-card > p { max-width: 720px; }
    .standalones .standalone-card__features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.standalone-card {
    position: relative;
    background: white;
    border: 1px solid var(--gray-200);
    padding: 48px;
    display: flex;
    flex-direction: column;
    transition:
        transform var(--t-mid) var(--ease-out),
        border-color var(--t-slow) var(--ease-out),
        box-shadow var(--t-slow) var(--ease-out);
    transition-duration: 0.3s;
}
.standalone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--blue);
    transition: background var(--t-slow) var(--ease-out), height var(--t-slow) var(--ease-out);
}
.standalone-card:hover {
    transform: translateY(-2px);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-hover);
    transition-duration: 0.3s;
}
.standalone-card:hover::before { height: 6px; }
.standalone-card__logo {
    position: absolute;
    top: 38px;
    right: 38px;
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform var(--t-slow) var(--ease-out);
}
.standalone-card:hover .standalone-card__logo { transform: scale(1.05); }
.standalone-card .eyebrow { align-self: flex-start; }
.standalone-card h3 { max-width: calc(100% - 80px); }
.standalone-card__features {
    list-style: none;
    margin: 22px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.standalone-card__features li {
    display: flex;
    gap: 12px;
    font-size: 13.5px;
    color: var(--gray-ink);
    line-height: 1.5;
    align-items: flex-start;
}
.standalone-card__features li::before {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    background: var(--blue);
}
.standalone-card__markets {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--gray-50);
    border-left: 4px solid var(--blue);
    margin-bottom: 30px;
    transition: border-color var(--t-mid) var(--ease-out), background var(--t-mid) var(--ease-out);
}
.standalone-card:hover .standalone-card__markets { background: var(--blue-soft); }
.standalone-card__markets-text {
    font-size: 12.5px;
    color: var(--gray-ink);
    font-weight: var(--fw-medium);
    line-height: 1.4;
}
.standalone-card .btn { align-self: flex-start; margin-top: auto; }

/* ============================================================
   FINAL CTA — shared across pages
   ============================================================ */
.final-cta {
    position: relative;
    background: var(--black);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/patterns/final-cta-circuit.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}
.final-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}
.final-cta h2 em {
    font-style: normal;
    color: var(--blue);
}
.final-cta .lead {
    max-width: 850px;
    margin: 22px auto 40px;
}
.final-cta__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   UTILITY — scroll-reveal
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
/* Cards that also carry .reveal: the .reveal shorthand above is declared after the card rules and
   replaces their transition list, so the shadow had no transition and snapped while the lift eased
   (the staggered hover). Re-adding the shadow and border to the list keeps the reveal's own timing
   and stagger delays; hovering starts at once, and both halves settle together on the way out. */
.stat-card.reveal,
.standalone-card.reveal {
    transition-property: opacity, transform, box-shadow, border-color;
}
.stat-card.reveal:hover,
.standalone-card.reveal:hover {
    transition-delay: 0s;
}

/* ============================================================
   RESPONSIVE — shared breakpoints
   ============================================================ */
@media (max-width: 1024px) {
    .hero__accent { display: none; }
    .stat-card:nth-child(odd),
    .stat-card:nth-child(even) { width: 100%; align-self: stretch; }
}
@media (max-width: 880px) {
    .section { padding: 76px 0; }
    .section__head { margin-bottom: 48px; }
    .hero__inner { padding: 70px 0 84px; }
    .final-cta { padding: 76px 0; }
    .proof-bar { gap: 24px; }
    .proof-bar__item { min-width: 110px; flex: 0 0 calc(50% - 12px); }
    .proof-bar__sep { display: none; }
    .logo-strip__inner { gap: 18px; }
    .logo-strip__item { min-width: 110px; }
    .stats-photo { height: 180px; }
    .standalones { grid-template-columns: 1fr; }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer__links { gap: 24px; }
}
@media (max-width: 600px) {
    :root { --pad-x: 20px; }
    .site-nav { display: none; }
    .stat-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; }
    .standalone-card { padding: 30px; }
    /* On a phone the logo stands on its own line above the small heading (it is the card's first element), so it no
       longer sits over the heading's end (G2377 WP 1.8c). */
    .standalone-card__logo { position: static; align-self: flex-start; margin-bottom: 18px; }
    .standalone-card h3 { max-width: 100%; }
    .footer__links { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero .eyebrow, .hero h1, .hero .lead, .hero__ctas, .proof-bar {
        opacity: 1;
        transform: none;
    }
}
