/* ===========================================================================
   Gavilan Consulting — design system
   ---------------------------------------------------------------------------
   One stylesheet, no framework, no CDN (the site's CSP forbids third-party
   hosts). Mobile-first: the base rules describe a phone and the two media
   queries at the end widen it.

   Everything is driven by the custom properties in :root, and the dark-mode
   block re-points those same properties rather than restating any rule. That
   is deliberate — a second set of selectors for dark mode is how a site ends
   up with one band that never got the memo.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------- */

:root {
    /*
     * THE BRAND RED IS THE LOGO'S, AND ONLY THE LOGO'S.
     *
     * #EB1D24 comes from the 2009 artwork and is still the hawk's colour in
     * includes/svg.php. It is deliberately the single spot of colour on the
     * page: nothing else — no button, no rule, no heading, no icon — is
     * allowed to use it. That is what makes the mark read as a mark rather
     * than as one more red thing among many. This token exists so the value
     * has a name and a home; if you find yourself reaching for it in a UI
     * rule, reach for --accent instead.
     */
    --brand-red:  #EB1D24;

    /* Slate blue carries every action: buttons, links, accent rules, icons.
       #35638F is 6.4:1 on white, so it is legible as body-copy link text and
       not only as large type. --accent-deep is the resting link colour and
       --accent-dark the border under a filled button. */
    --accent:        #35638F;
    --accent-deep:   #2A4F72;
    --accent-dark:   #1F3C58;
    --accent-tint:   #EDF2F7;

    /*
     * FILLS THAT CARRY WHITE TEXT. Kept separate from --accent on purpose.
     *
     * --accent is a TEXT colour, so the dark-mode block below lightens it to
     * stay legible on a dark page. Any rule that used it as a background
     * behind white text inherited that lightening and dropped to 2.5:1. These
     * two are never re-pointed: white on #35638F is 6.4:1 and white on
     * #2A4F72 is 9.1:1, in both colour schemes.
     */
    --accent-fill:       #35638F;
    --accent-fill-hover: #2A4F72;
    --accent-band:       #2A4F72;

    /* Graphite. The structural dark — masthead, footer, dark bands. It is
       deliberately NOT black: #242A31 has enough blue in it to sit with the
       slate accent, and reads as considered rather than severe. */
    --ink:        #242A31;
    --ink-2:      #2E353E;
    --ink-3:      #3B444F;

    --paper:      #FFFFFF;
    --paper-2:    #F6F8FA;
    --paper-3:    #EAEEF2;

    --text:       #22282F;
    --text-muted: #5A6472;
    --text-faint: #6B7684;   /* 4.9:1 on white, 4.5:1 on --paper-2 */
    --line:       #E2E7EC;
    --line-soft:  #EFF2F5;

    /* Surfaces that stay graphite in both colour schemes: masthead, footer,
       hero, dark bands. */
    --dark-bg:    #242A31;
    --dark-bg-2:  #2E353E;
    --dark-text:  #E9EDF1;
    --dark-muted: #A8B2BD;
    --dark-line:  rgba(255, 255, 255, 0.12);

    /* Restrained corners: a consultancy site, not a consumer app. */
    --radius:     8px;
    --radius-lg:  12px;

    /* Shadows are barely there. Depth on this site comes from hairline borders
       and white space; a heavy drop shadow is the single fastest way to make a
       professional layout look like a template. */
    --shadow-sm:  0 1px 2px rgba(36, 42, 49, 0.05);
    --shadow:     0 1px 2px rgba(36, 42, 49, 0.05), 0 6px 18px rgba(36, 42, 49, 0.06);
    --shadow-lg:  0 2px 6px rgba(36, 42, 49, 0.06), 0 16px 40px rgba(36, 42, 49, 0.10);

    --wrap:       1180px;
    --wrap-narrow: 820px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* One easing curve for everything that moves. */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode re-points the tokens; not one layout rule below changes.
   The dark-* tokens are untouched: the masthead and footer are dark in both
   schemes by design, and lightening them in dark mode would leave the page
   with no structure at all. */
@media (prefers-color-scheme: dark) {
    :root {
        /* Lightened so it still clears 4.5:1 as link text on the dark page —
           #35638F on #1A1F25 is about 2.6:1 and would be unreadable. */
        --accent:        #7FA9D4;
        --accent-deep:   #9CBFE3;
        --accent-dark:   #2A4F72;
        --accent-tint:   #202B36;
        /* --accent-fill / --accent-fill-hover / --accent-band are deliberately
           NOT re-pointed here. They sit behind white text; lightening them is
           precisely the bug this split exists to prevent. */

        /* The page must sit DARKER than the masthead and footer (#242A31), or
           the bands that give the layout its structure disappear into it. */
        --paper:      #1A1F25;
        --paper-2:    #20262D;
        --paper-3:    #2A313A;

        --text:       #E9EDF1;
        --text-muted: #A8B2BD;
        --text-faint: #7B8593;
        --line:       #333B45;
        --line-soft:  #262D35;

        --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow:     0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
        --shadow-lg:  0 4px 12px rgba(0, 0, 0, 0.45), 0 18px 44px rgba(0, 0, 0, 0.5);
    }
}

/* ---------------------------------------------------------------------------
   2. Reset and base
   --------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Clears the sticky masthead (76px at desktop). Without this, every
       /service-areas#fresno link from the footer parks its target heading
       directly behind the header. */
    scroll-padding-top: 96px;
}

/* Anyone who has asked their OS to reduce motion gets none of it — including
   the smooth scroll above, which is the one people most often forget. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    line-height: 1.18;
    letter-spacing: -0.018em;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: 2.05rem; letter-spacing: -0.024em; }
h2 { font-size: 1.6rem;  letter-spacing: -0.021em; }
h3 { font-size: 1.18rem; letter-spacing: -0.012em; }
h4 { font-size: 1.01rem; letter-spacing: -0.008em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Links are never underlined and never change colour once visited — a house
   rule across these sites. Hover shifts the shade instead, so the affordance
   survives without the underline. */
a {
    color: var(--accent-deep);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent); }
a:visited { color: var(--accent-deep); }

/* NO UNDERLINES ANYWHERE — house rule, owner's explicit instruction.
   Prose links are distinguished by weight and colour instead, which keeps them
   findable inside a paragraph without the underline. Stated as its own rule so
   that a browser default, a UA stylesheet or a future component cannot
   reintroduce one. */
a, a:hover, a:focus, a:visited,
.prose a, .card__body a, .faq__a a {
    text-decoration: none;
}
.prose a, .card__body a, .faq__a a, .ticks a {
    font-weight: 600;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

strong, b { font-weight: 650; }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.5rem 0;
}

/* A visible, high-contrast focus ring on everything interactive. The default
   ring disappears entirely against the dark bands. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

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

/* Keyboard users get the skip link back as soon as it takes focus. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--accent-fill);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 650;
    transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: 68px 0; }
.section--tight { padding: 46px 0; }
.section--tint { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.section--dark {
    background: var(--dark-bg);
    color: var(--dark-text);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p { color: var(--dark-muted); }

/*
 * Components inside a dark band.
 *
 * Without these, .card, .panel and .steps carry their own light-surface
 * colours — which win, because they are set on the component and the band only
 * styles h2/h3/h4/p. The result is a white card on a near-black section
 * (.card__title is var(--text): white on white in dark mode) and .steps p at
 * about 3.3:1. Restated here rather than forbidding the components in dark
 * bands, because "do not put a card in a dark section" is a rule nobody
 * remembers six pages later.
 *
 * A plain link is included for the same reason: --accent-deep is #2A4F72, which
 * is roughly 3.0:1 on #242A31 and fails WCAG AA for body text. The lighter
 * tint is the one used for eyebrows on dark bands already.
 */
.section--dark a:not(.btn):not(.card),
.hero a:not(.btn):not(.card),
.pagehead a:not(.btn):not(.card) { color: #9DC0E4; }
.section--dark a:not(.btn):not(.card):hover,
.hero a:not(.btn):not(.card):hover,
.pagehead a:not(.btn):not(.card):hover { color: #C2DAF1; }
.section--dark .prose a { text-decoration-color: rgba(157, 192, 228, 0.45); }

.section--dark .card {
    background: var(--dark-bg-2);
    border-color: var(--dark-line);
}
.section--dark .card__title { color: #fff; }
.section--dark .card__body { color: var(--dark-muted); }
.section--dark a.card:hover { border-color: rgba(157, 192, 228, 0.5); }
.section--dark .card__link { color: #9DC0E4; }
.section--dark .card__icon {
    background: rgba(53, 99, 143, 0.22);
    border-color: rgba(53, 99, 143, 0.42);
    color: #9DC0E4;
}

.section--dark .panel {
    background: var(--dark-bg-2);
    border-color: var(--dark-line);
    color: var(--dark-text);
}
.section--dark .panel--accent { background: #2C3742; }
.section--dark .panel__title { color: #fff; }
.section--dark .panel__title .icon { color: #9DC0E4; }

.section--dark .steps h3 { color: #fff; }
.section--dark .steps p { color: var(--dark-muted); }

.section--dark .facts { background: var(--dark-line); border-color: var(--dark-line); }
.section--dark .fact { background: var(--dark-bg-2); }
.section--dark .fact__label { color: var(--dark-muted); }
.section--dark .fact__value { color: #fff; }
.section--dark .fact__value a { color: #fff; }
.section--dark .fact__value a:hover { color: #9DC0E4; }
.section--dark .fact__note { color: var(--dark-muted); }

.section--dark .faq__item {
    background: var(--dark-bg-2);
    border-color: var(--dark-line);
}
.section--dark .faq__q { color: #fff; }
.section--dark .faq__q:hover { color: #9DC0E4; }
.section--dark .faq__a { color: var(--dark-muted); }

.section--dark .table-scroll { border-color: var(--dark-line); }
.section--dark .table th,
.section--dark .table td { border-bottom-color: var(--dark-line); color: var(--dark-text); }
.section--dark .table thead th { background: var(--dark-bg-2); color: var(--dark-muted); }

.section--dark hr { border-top-color: var(--dark-line); }

.grid { display: grid; gap: 20px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

/* Two-column text + aside layout used on the service pages. */
.split { display: grid; gap: 32px; }

.lede {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.muted { color: var(--text-muted); }
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   4. Masthead
   --------------------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--dark-line);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    /* So the <noscript> fallback below can take a full-width row of its own
       rather than being squeezed between the logo and the call button. */
    flex-wrap: wrap;
}

/* The flex item is the <noscript> element itself, not the list inside it. */
.masthead__inner noscript { width: 100%; order: 3; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    flex-shrink: 0;
}
.brand:hover, .brand:visited { color: #fff; }

.brand .logo-emblem {
    width: 42px;
    height: 35px;
    flex-shrink: 0;
    /* currentColor drives the peak; on the dark masthead that is white. */
    color: #fff;
}

.brand__name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    line-height: 1.1;
}
.brand__tag {
    display: block;
    font-size: 0.63rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--dark-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    padding: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.07); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Mobile: the panel is closed until .is-open is set by main.js. */
.nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--dark-bg-2);
    border-bottom: 1px solid var(--dark-line);
    padding: 8px 0 16px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.nav.is-open { display: block; }

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0 20px;
}
.nav__item { margin: 0; }

.nav__link {
    display: block;
    padding: 12px 4px;
    color: var(--dark-text);
    font-weight: 550;
    border-bottom: 1px solid var(--dark-line);
}
.nav__link:hover, .nav__link:visited { color: #fff; }
.nav__link[aria-current="page"] {
    color: #fff;
    box-shadow: inset 2px 0 0 var(--accent);
}

/* The Services group: a disclosure button on mobile, a hover menu on desktop. */
.nav__group { position: relative; }
.nav__grouptoggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 12px 4px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--dark-line);
    color: var(--dark-text);
    font: inherit;
    font-weight: 550;
    cursor: pointer;
    text-align: left;
}
.nav__grouptoggle .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s var(--ease);
}
.nav__grouptoggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
}
.nav__sub.is-open { display: block; }
.nav__sub .nav__link {
    font-weight: 450;
    font-size: 0.94rem;
    color: var(--dark-muted);
}
.nav__sub .nav__link:hover { color: #fff; }

/* Rendered only inside <noscript>: the full link set as a plain wrapped row,
   so a visitor without JavaScript still has header navigation on a phone.
   Hidden at ≥1000px, where the real nav is a visible horizontal bar anyway. */
.nav-noscript {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    width: 100%;
    order: 3;
    margin: 0;
    padding: 12px 0 4px;
    border-top: 1px solid var(--dark-line);
}
.nav-noscript li { margin: 0; }
.nav-noscript a,
.nav-noscript a:visited { color: var(--dark-text); font-size: 0.92rem; font-weight: 550; }
.nav-noscript a:hover { color: #fff; }

/*
 * The masthead call button.
 *
 * Specificity, not source order: this rule needs to beat .btn, which is
 * defined further down the file and would otherwise win on padding and
 * display (that is exactly what happened — the button rendered full size on a
 * phone and wrapped the number onto three lines).
 *
 * It stays visible at every width, because a tap-to-call in a sticky masthead
 * is the single highest-value control on the site for this business — but
 * below 1000px it collapses to the icon alone.
 */
.masthead .masthead__cta {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 40px;
    padding: 9px 12px;
    gap: 0;
}
.masthead .masthead__cta .icon { width: 20px; height: 20px; }

/* Visually hidden, still in the accessible name. Restored at ≥1000px. */
.masthead__cta-num {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------------- */

/* Every variant shares this height and padding so a row of mixed buttons lines
   up. A button must never be close to the colour of what it sits on — each
   variant below carries its own fill and border for that reason. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
                box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn .icon { width: 19px; height: 19px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--accent-fill);
    border-color: var(--accent-fill-hover);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn--primary:visited { color: #fff; }
.btn--primary:hover {
    background: var(--accent-fill-hover);
    box-shadow: var(--shadow);
}

.btn--dark {
    background: var(--ink);
    border-color: #161A1F;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn--dark:hover, .btn--dark:visited { color: #fff; }
.btn--dark:hover { background: var(--ink-2); }

/* For use ON a dark band, where --paper would vanish and --ink would too. */
.btn--light {
    background: #FFFFFF;
    border-color: #CBD3DC;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.btn--light:hover, .btn--light:visited { color: var(--ink); }
.btn--light:hover { background: #EAEEF3; }

/* The quietest variant still carries a solid fill and a visible border — a
   transparent "ghost" button on a tinted section reads as broken. */
.btn--outline {
    background: var(--paper);
    border-color: var(--line);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.btn--outline:hover, .btn--outline:visited { color: var(--text); }
.btn--outline:hover { background: var(--paper-2); border-color: #CBD3DC; }

.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-row--center { justify-content: center; }

/* ---------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--dark-bg);
    color: var(--dark-text);
    overflow: hidden;
    isolation: isolate;
}

/* A single restrained slate wash over graphite. The previous version put two
   saturated pools of colour behind the headline, which is the lighting a
   product launch page uses, not a consultancy's. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 620px at 78% -20%, rgba(53, 99, 143, 0.20), transparent 66%),
        linear-gradient(168deg, #2A313A 0%, #1E242A 100%);
}

/* The chevron motif — the same angle as the peak in the logo, drawn in CSS
   rather than shipped as an image. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.022) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 96px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
}

.hero__inner {
    position: relative;
    /* padding-top/bottom, never the `padding` shorthand: this element also
       carries .wrap, and the shorthand's zeroes reset .wrap's 20px gutter —
       which put the hero copy flush against the edge of every phone screen.
       Same reason on .pagehead__inner and .cta-band__inner below. */
    padding-top: 52px;
    padding-bottom: 56px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #9DC0E4;
    margin-bottom: 16px;
}
.hero__eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
}

.hero__title {
    font-size: 2.3rem;
    line-height: 1.1;
    letter-spacing: -0.026em;
    color: #fff;
    margin-bottom: 18px;
    max-width: 16ch;
}
/* The light tint, NOT --accent: #35638F on graphite is about 2.3:1, so the
   emphasised words in the headline were darker than the words around them. */
.hero__title .accent { color: #9DC0E4; }

.hero__lede {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #C3CBD4;
    max-width: 56ch;
    margin-bottom: 26px;
}

.hero__actions { margin-bottom: 30px; }

.hero__points {
    list-style: none;
    margin: 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--dark-line);
    display: grid;
    gap: 14px;
}
.hero__point {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    font-size: 0.95rem;
    color: #C3CBD4;
}
.hero__point .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Inner-page header: the same dark band, shorter, with a breadcrumb. */
.pagehead {
    position: relative;
    background: var(--dark-bg);
    color: var(--dark-text);
    overflow: hidden;
    isolation: isolate;
}
.pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1000px 460px at 84% -34%, rgba(53, 99, 143, 0.17), transparent 66%),
        linear-gradient(168deg, #2A313A 0%, #1E242A 100%);
}
.pagehead__inner { padding-top: 30px; padding-bottom: 40px; }
.pagehead__title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 14px;
    max-width: 22ch;
}
.pagehead__lede {
    font-size: 1.08rem;
    color: #C3CBD4;
    max-width: 62ch;
    margin: 0;
}

.breadcrumb {
    font-size: 0.83rem;
    color: var(--dark-muted);
    margin-bottom: 18px;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
    content: "/";
    color: var(--dark-muted);
}
.breadcrumb a, .breadcrumb a:visited { color: var(--dark-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #E9EDF1; }

/* ---------------------------------------------------------------------------
   7. Section headings
   --------------------------------------------------------------------------- */

/* One band treatment for every section title on every page. The red rule is
   the constant that makes two different pages read as one site. */
.sec-head { margin-bottom: 28px; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__eyebrow { justify-content: center; }

.sec-head__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 12px;
}
.sec-head__eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}
.sec-head--center .sec-head__eyebrow::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.sec-head__title { font-size: 1.7rem; margin-bottom: 12px; }
.sec-head__lede {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 68ch;
    margin: 0;
}
.sec-head--center .sec-head__lede { margin-left: auto; margin-right: auto; }

.section--dark .sec-head__eyebrow { color: #9DC0E4; }
.section--dark .sec-head__lede { color: var(--dark-muted); }

/* ---------------------------------------------------------------------------
   8. Cards
   --------------------------------------------------------------------------- */

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease),
                border-color 0.18s var(--ease);
}
.section--tint .card { background: var(--paper); }

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-tint);
    border: 1px solid rgba(53, 99, 143, 0.18);
    color: var(--accent-deep);
    margin-bottom: 18px;
    flex-shrink: 0;
}
.card__icon .icon { width: 24px; height: 24px; }

.card__title { font-size: 1.14rem; margin-bottom: 9px; }
.card__body { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }
.card__body + .card__body { margin-top: 0.9em; }

/* margin-top:auto, not a fixed margin: in a grid the cards stretch to the
   tallest one, and a fixed margin left every "Explore …" link floating at a
   different height across the row because the titles wrap differently. This
   pins them all to the bottom edge. */
.card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 16px;
    font-weight: 650;
    font-size: 0.93rem;
    color: var(--accent-deep);
    align-self: flex-start;
}
.card__link .icon {
    width: 17px;
    height: 17px;
    transition: transform 0.16s var(--ease);
}

/* A card that is itself a link. The whole tile is the target — on a phone
   that is the difference between a comfortable tap and a fiddly one. */
a.card { color: inherit; }
a.card:visited { color: inherit; }
a.card:hover {
    border-color: rgba(53, 99, 143, 0.45);
    box-shadow: var(--shadow);
}
a.card:hover .card__link { color: var(--accent); }
a.card:hover .card__link .icon { transform: translateX(3px); }
a.card .card__title { color: var(--text); }

.card--flat { box-shadow: none; }
.card--accent { border-left: 4px solid var(--accent); }

/* ---------------------------------------------------------------------------
   9. Lists, panels, facts
   --------------------------------------------------------------------------- */

.ticks {
    list-style: none;
    margin: 0 0 1.1em;
    padding: 0;
    display: grid;
    gap: 11px;
}
.ticks li {
    position: relative;
    margin: 0;
    padding-left: 30px;
    color: var(--text);
}
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 17px;
    height: 9px;
    border-left: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
}
.ticks--tight { gap: 7px; }
.section--dark .ticks li { color: var(--dark-muted); }

.panel {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
}
.panel--accent {
    border-left: 3px solid var(--accent);
    background: var(--accent-tint);
}
.panel__title {
    font-size: 1.08rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.panel__title .icon { width: 21px; height: 21px; color: var(--accent-deep); flex-shrink: 0; }

.facts {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.fact {
    background: var(--paper);
    padding: 22px 20px;
}
.fact__label {
    display: block;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 7px;
}
.fact__value {
    display: block;
    font-size: 1.06rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--text);
}
.fact__value a, .fact__value a:visited { color: var(--text); }
.fact__value a:hover { color: var(--accent-deep); }
.fact__note {
    display: block;
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* Numbered process steps. */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.steps li {
    counter-increment: step;
    position: relative;
    margin: 0;
    padding-left: 56px;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-fill);
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
}
.steps h3 { font-size: 1.06rem; margin-bottom: 6px; }
.steps p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   10. Call-to-action band
   --------------------------------------------------------------------------- */

.cta-band {
    position: relative;
    background: var(--accent-band);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.cta-band__inner {
    padding-top: 44px;
    padding-bottom: 44px;
    display: grid;
    gap: 22px;
    align-items: center;
}
.cta-band h2 { color: #fff; font-size: 1.55rem; margin-bottom: 10px; }
.cta-band p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
    max-width: 60ch;
}
.cta-band a.btn--light { flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   11. FAQ (native details/summary — no JavaScript needed to read an answer)
   --------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }

.faq__item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq__item[open] { border-color: rgba(53, 99, 143, 0.35); box-shadow: var(--shadow-sm); }

.faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    font-weight: 650;
    font-size: 1.02rem;
    cursor: pointer;
    list-style: none;
    color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    margin-top: 6px;
    border-right: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: 10px; }
.faq__q:hover { color: var(--accent-deep); }

.faq__a {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.98rem;
}
.faq__a > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   12. Forms
   --------------------------------------------------------------------------- */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field__label {
    font-weight: 650;
    font-size: 0.93rem;
    color: var(--text);
}
.field__req { color: var(--accent-deep); }
.field__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input, .select, .textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    min-height: 48px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(53, 99, 143, 0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

/* The chevron is a data: URI, not a file: it is two hundred bytes, it must
   match --text-muted, and the CSP img-src allows data: for exactly this. */
.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6672' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea { border-color: var(--accent); }

.field__error {
    font-size: 0.87rem;
    color: var(--accent-deep);
    font-weight: 550;
}

/* Off-screen rather than display:none — a bot reading the DOM has to be able
   to find it, which is the entire point of a honeypot. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* `hidden` must win over the display below, or the empty status box renders
   as a stray bordered strip on the contact page before anything is submitted.
   The attribute's UA rule is display:none at specificity 0,0,0 — .alert beats
   it on specificity alone, so it has to be restated. */
.alert[hidden] { display: none; }

.alert {
    border-radius: var(--radius);
    padding: 16px 18px;
    border: 1px solid;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.alert .icon { width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px; }
.alert p { margin-bottom: 0; }
.alert__title { font-weight: 650; margin-bottom: 4px; }

.alert--ok {
    background: rgba(22, 140, 90, 0.09);
    border-color: rgba(22, 140, 90, 0.4);
    color: #12724C;
}
.alert--error {
    background: rgba(53, 99, 143, 0.08);
    border-color: rgba(53, 99, 143, 0.38);
    color: var(--accent-dark);
}
@media (prefers-color-scheme: dark) {
    .alert--ok { color: #6EE7B0; }
    .alert--error { color: #FF9C9F; }
}

/* ---------------------------------------------------------------------------
   13. Tables and prose blocks
   --------------------------------------------------------------------------- */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 520px;
}
.table th, .table td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.table thead th {
    background: var(--paper-2);
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}
.table tbody tr:last-child td { border-bottom: 0; }

/* Long-form legal and article copy. */
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin-top: 1.7em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose__updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 1.4em;
    margin-bottom: 2em;
    border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------------- */

.footer {
    background: var(--dark-bg);
    color: var(--dark-muted);
    font-size: 0.94rem;
}
.footer a, .footer a:visited { color: var(--dark-muted); }
.footer a:hover { color: #fff; }

.footer__top {
    display: grid;
    gap: 32px;
    padding: 44px 0 36px;
}

.footer__brand .brand { margin-bottom: 16px; }
.footer__blurb { max-width: 42ch; margin-bottom: 18px; }

.footer__col h2 {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 9px; }

.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 13px;
}
.footer__contact .icon {
    width: 19px;
    height: 19px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}
.footer__contact strong { color: #fff; font-weight: 650; }

.footer__cities {
    border-top: 1px solid var(--dark-line);
    padding: 22px 0;
    font-size: 0.87rem;
    line-height: 1.8;
}
.footer__cities h2 {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.footer__legal {
    border-top: 1px solid var(--dark-line);
    padding: 20px 0 30px;
    display: grid;
    gap: 12px;
    font-size: 0.85rem;
    color: #7B8593;
}
.footer__legalnav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
}
.footer__legalnav li { margin: 0; }
.footer__version {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #97A1AD;
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
   15. 404
   --------------------------------------------------------------------------- */

.notfound { padding: 64px 0; text-align: center; }
.notfound__code {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------------------
   16. Print
   --------------------------------------------------------------------------- */

@media print {
    .masthead, .nav, .nav-toggle, .cta-band, .skip-link, .footer__cities { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .hero, .pagehead, .section--dark, .footer {
        background: #fff !important;
        color: #000 !important;
    }
    .hero::before, .hero::after, .pagehead::before { display: none; }
    .hero__title, .pagehead__title, .section--dark h2 { color: #000 !important; }
    .hero__lede, .pagehead__lede, .section--dark p, .footer { color: #333 !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
    .card, .panel { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
}

/* ===========================================================================
   17. Wider viewports
   =========================================================================== */

@media (min-width: 700px) {
    body { font-size: 17px; }

    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.95rem; }

    .section { padding: 96px 0; }
    .section--tight { padding: 62px 0; }

    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid { gap: 24px; }

    .hero__inner { padding-top: 78px; padding-bottom: 82px; }
    .hero__title { font-size: 3.2rem; }
    .hero__lede { font-size: 1.18rem; }
    .hero__points { grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }

    .pagehead__inner { padding-top: 38px; padding-bottom: 54px; }
    .pagehead__title { font-size: 2.6rem; }

    .sec-head__title { font-size: 2rem; }

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

    .cta-band__inner {
        grid-template-columns: 1fr auto;
        gap: 32px;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
    .footer__legal {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .footer__legalnav { justify-content: flex-end; }

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

    .notfound__code { font-size: 6rem; }
}

@media (min-width: 1000px) {
    .masthead__inner { min-height: 76px; }

    .nav-toggle { display: none; }
    /* The real nav is a visible bar at this width, so the noscript fallback
       would be a duplicate row of the same links. */
    .nav-noscript { display: none; }

    /* Desktop: the nav is a horizontal bar again, and .is-open is irrelevant. */
    .nav {
        display: block;
        position: static;
        background: transparent;
        border: 0;
        padding: 0;
        max-height: none;
        overflow: visible;
        margin-left: auto;
    }
    .nav__list {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0;
    }
    .nav__link {
        border-bottom: 0;
        padding: 9px 12px;
        border-radius: var(--radius);
        font-size: 0.95rem;
        font-weight: 550;
    }
    .nav__link:hover { background: rgba(255, 255, 255, 0.08); }
    .nav__link[aria-current="page"] {
        color: #fff;
        background: rgba(53, 99, 143, 0.18);
        box-shadow: inset 0 -2px 0 var(--accent);
    }

    .nav__grouptoggle {
        width: auto;
        border-bottom: 0;
        padding: 9px 12px;
        border-radius: var(--radius);
        font-size: 0.95rem;
        font-weight: 550;
    }
    .nav__grouptoggle:hover { background: rgba(255, 255, 255, 0.08); }

    /* The dropdown opens on hover for a mouse and on click for everyone else
       (main.js toggles aria-expanded); both paths land on the same rule.

       THE BRIDGE MATTERS. The panel is offset 6px below the button for looks,
       and that 6px used to be a dead zone: the moment the pointer left the
       button on its way to a link, :hover on .nav__group ended and the menu
       vanished before it could be reached. Nobody could click anything in it.
       This pseudo-element fills the gap — it belongs to .nav__group, so
       hovering it keeps the group hovered, while being invisible.

       UNCONDITIONAL, not scoped to :hover. Scoping it to the hovered state
       makes the fix depend on a pseudo-element that only exists while the
       thing it is meant to sustain is already true — self-referential, and
       impossible to verify with anything but a real pointer. Always present,
       the gap is provably covered: elementFromPoint() in the middle of it
       returns an element inside .nav__group at every y.

       The cost is a 110×10px invisible strip lying over the top of the hero
       directly beneath the Services button, where there is nothing to click. */
    .nav__group::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 10px;
    }

    .nav__sub {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 268px;
        background: var(--dark-bg-2);
        border: 1px solid var(--dark-line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 7px;
    }
    .nav__group:hover .nav__sub,
    .nav__group:focus-within .nav__sub,
    .nav__sub.is-open { display: block; }

    /* Set by main.js when the button is used to CLOSE a menu the pointer is
       still hovering. Three class selectors beat the two-selector :hover rule
       above, which is the only way a click can win an argument with a hover.
       Cleared on mouseleave, so the next hover behaves normally. */
    .nav__group.is-closed:hover .nav__sub,
    .nav__group.is-closed:focus-within .nav__sub,
    .nav__group.is-closed .nav__sub.is-open { display: none; }
    .nav__sub .nav__link {
        padding: 10px 12px;
        font-size: 0.93rem;
        border-radius: 7px;
        white-space: nowrap;
    }
    .nav__sub .nav__link:hover { background: rgba(255, 255, 255, 0.08); }

    .masthead .masthead__cta {
        margin-left: 14px;
        min-height: 42px;
        padding: 9px 18px;
        font-size: 0.93rem;
        gap: 9px;
    }
    /* Wide enough for the digits: give the number back. */
    .masthead__cta-num {
        position: static;
        width: auto; height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
    }

    .brand .logo-emblem { width: 48px; height: 40px; }
    .brand__name { font-size: 1.1rem; }

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

    .hero__inner { padding-top: 96px; padding-bottom: 100px; }
    .hero__title { font-size: 3.7rem; }

    .facts { grid-template-columns: repeat(4, 1fr); }

    .split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 44px; }
    .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }

    .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }

    .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

/* ===========================================================================
   18. Hero photography
   ---------------------------------------------------------------------------
   One image per page, anchored to the RIGHT of the hero / page-head band,
   filling the space the headline leaves empty. Every image was composed with
   its subject in the right third and near-empty graphite on the left, so the
   band and the picture share the same background colour and meet invisibly.

   Delivered as a CSS background rather than an <img>: it is decorative — it
   carries no information the copy does not — and a decorative image in the
   markup is one more thing for a screen reader to announce and skip.

   WebP only. Every browser that can render this stylesheet's custom properties
   has supported WebP since 2020, so a JPEG fallback would be 540KB of files
   nothing ever requests.

   NOTE ON CACHING: these URLs sit in the stylesheet, so they cannot go through
   gc_asset_url()'s mtime cache-buster, and .htaccess serves them `immutable`
   for a year. To REPLACE an image, change its filename — overwriting it in
   place will not reach anyone who has already loaded the page.
   =========================================================================== */

/* Below 900px there is no room: the headline needs the full width, and any
   image behind it either fights the text or is scrimmed until it is invisible.
   Nothing is downloaded at these widths — the rule that names the file never
   matches, and header.php's preload carries the same media query. */
@media (min-width: 900px) {

    .hero::before,
    .pagehead::before {
        /* Layer order, front to back:
           1. the scrim, which keeps the headline legible where it overlaps
           2. the photograph, anchored right at its natural aspect
           3. the slate wash and graphite field the band already had */
        background-image:
            /* Solid behind the whole text column, then a long fade. The stops
               are tuned to where the copy actually ends: .hero__inner is capped
               at 58% below, so anything left of ~58% must be fully opaque or
               the headline sits on a photograph. An earlier, gentler version of
               this gradient left the hero's proof-point row lying across a
               server rack at roughly 2:1 contrast. */
            linear-gradient(to right,
                var(--dark-bg) 0%,
                var(--dark-bg) 42%,
                rgba(36, 42, 49, 0.97) 56%,
                rgba(36, 42, 49, 0.84) 66%,
                rgba(36, 42, 49, 0.44) 79%,
                rgba(36, 42, 49, 0.10) 93%,
                rgba(36, 42, 49, 0.04) 100%),
            var(--hero-img, none),
            radial-gradient(1200px 620px at 78% -20%, rgba(53, 99, 143, 0.20), transparent 66%),
            linear-gradient(168deg, #2A313A 0%, #1E242A 100%);
        background-position: center, right center, center, center;
        /* `auto 100%` not `cover`: the image keeps its own proportions and fills
           the band's height, so it never stretches and never crops the subject
           out of frame on an unusually wide monitor. */
        background-size: cover, auto 100%, cover, cover;
        background-repeat: no-repeat;
    }

    /* Keep the copy out of the picture. Without this the hero's two-column
       proof-point row spans the full width and its right-hand column lands on
       top of the subject — the one part of the image that is not empty space.
       The page-head bands need no cap: their title and lede already carry
       max-widths in ch units that keep them well left of centre. */
    .hero__inner > * { max-width: 58%; }
    .hero__points { grid-template-columns: 1fr; gap: 12px; }

    /* The band is short and the photographs are 2.3:1, so a 1200px-wide file is
       already more pixels than a 1399px viewport can show. The larger file is
       only fetched where it earns its bytes. */
    .page-home            { --hero-img: url("/assets/img/heroes/home-1200.webp"); }
    .page-services        { --hero-img: url("/assets/img/heroes/services-1200.webp"); }
    .page-managed-it      { --hero-img: url("/assets/img/heroes/managed-it-1200.webp"); }
    .page-computer-repair { --hero-img: url("/assets/img/heroes/computer-repair-1200.webp"); }
    .page-networks-cloud  { --hero-img: url("/assets/img/heroes/networks-cloud-1200.webp"); }
    .page-data-recovery   { --hero-img: url("/assets/img/heroes/data-recovery-1200.webp"); }
    .page-service-areas   { --hero-img: url("/assets/img/heroes/service-areas-1200.webp"); }
    .page-about           { --hero-img: url("/assets/img/heroes/about-1200.webp"); }
    .page-faq             { --hero-img: url("/assets/img/heroes/faq-1200.webp"); }
    .page-contact         { --hero-img: url("/assets/img/heroes/contact-1200.webp"); }
}

@media (min-width: 1400px) {
    .page-home            { --hero-img: url("/assets/img/heroes/home.webp"); }
    .page-services        { --hero-img: url("/assets/img/heroes/services.webp"); }
    .page-managed-it      { --hero-img: url("/assets/img/heroes/managed-it.webp"); }
    .page-computer-repair { --hero-img: url("/assets/img/heroes/computer-repair.webp"); }
    .page-networks-cloud  { --hero-img: url("/assets/img/heroes/networks-cloud.webp"); }
    .page-data-recovery   { --hero-img: url("/assets/img/heroes/data-recovery.webp"); }
    .page-service-areas   { --hero-img: url("/assets/img/heroes/service-areas.webp"); }
    .page-about           { --hero-img: url("/assets/img/heroes/about.webp"); }
    .page-faq             { --hero-img: url("/assets/img/heroes/faq.webp"); }
    .page-contact         { --hero-img: url("/assets/img/heroes/contact.webp"); }
}

/* The 404 is the one band with no photograph of its own — it keeps the plain
   treatment rather than borrowing another page's picture. */
