/* ============================================================================
   Software First — CompletionsDS (CDS)
   Palette taken from the CDS brochure + capability statement: navy, brand
   orange, hexagon motif. Everything below derives from the :root tokens.

   One deliberate split worth knowing about:
     --accent      brand orange (#F5821F). Graphics and large fills only —
                   it sits at 2.59:1 on white, so it can never carry text.
     --accent-ink  text-safe deep orange (4.84:1). All orange type, meaningful
                   icons, and solid buttons with white labels use this.
   ========================================================================= */

:root {
    /* Surfaces */
    --bg:          #ffffff;
    --bg-alt:      #f2f6fb;
    --surface:     #ffffff;
    --surface-2:   #eaf0f8;
    --border:      #dde6f0;
    --border-soft: #e9eff7;

    /* Ink — all clear AA on --bg, --bg-alt and --surface-2 */
    --text:        #14202e;
    --text-soft:   #51667c;
    --text-faint:  #5c6d80;

    /* Brand */
    --brand:       #143a6e;   /* navy — headings, solid header CTA */
    --brand-2:     #1d5099;   /* mid blue — brochure tab blue */
    --accent:      #f5821f;   /* brand orange — GRAPHICS ONLY, never text */
    --accent-ink:  #ab4b07;   /* text-safe orange — type, icons, buttons */
    --accent-soft: #fdf0e3;   /* orange tint panel */
    --warn:        #b4401f;
    --problem:     #fdf1ef;   /* problem-panel tint */

    /* Text on a solid --accent-ink fill */
    --on-accent:   #ffffff;

    --shadow-sm:   0 1px 2px rgba(20, 58, 110, .06), 0 2px 6px rgba(20, 58, 110, .05);
    --shadow:      0 4px 12px rgba(20, 58, 110, .07), 0 18px 40px rgba(20, 58, 110, .09);
    --shadow-lg:   0 8px 24px rgba(20, 58, 110, .10), 0 32px 70px rgba(20, 58, 110, .15);

    /* Set at runtime by site.js on [data-bg] elements once the photo loads.
       Declared here so the cascade always has a valid value to fall back to. */
    --photo:       none;

    --radius:      14px;
    --radius-sm:   10px;
    --wrap:        1400px;
    --wrap-narrow: 860px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:          #08131d;
        --bg-alt:      #0c1c28;
        --surface:     #0f2331;
        --surface-2:   #16303f;
        --border:      #224054;
        --border-soft: #193443;

        --text:        #e9f1f8;
        --text-soft:   #a3b8ca;
        --text-faint:  #8aa1b6;

        --brand:       #e8f0f8;
        --brand-2:     #7fb2e6;
        --accent:      #f5821f;
        --accent-ink:  #ff9e45;
        --accent-soft: #33200e;
        --warn:        #e8895e;
        --problem:     #2a1713;

        --on-accent:   #1a0c02;

        --shadow-sm:   0 1px 2px rgba(0, 0, 0, .3);
        --shadow:      0 4px 12px rgba(0, 0, 0, .32), 0 18px 40px rgba(0, 0, 0, .38);
        --shadow-lg:   0 8px 24px rgba(0, 0, 0, .38), 0 32px 70px rgba(0, 0, 0, .48);
    }
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; }
.sprite { display: none; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 16px; text-decoration: none; }

.ico {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--brand); }
.brand:hover { text-decoration: none; }
/* Placeholder tile — JS swaps in the real mark when /images/software-first-mark.svg exists. */
.brand-mark {
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
    border-radius: 10px; background: linear-gradient(140deg, #f9a11b, #e2571f);
    color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em;
    box-shadow: var(--shadow-sm);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.has-logo { background: none; box-shadow: none; border-radius: 0; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.brand-tag {
    font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent-ink); margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--text-soft); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
    background: var(--brand); color: #fff !important; padding: 9px 17px; border-radius: 9px;
    box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--brand-2); }

/* --brand inverts to near-white in dark, so solid brand fills need dark ink. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-cta,
    :root:not([data-theme="light"]) .skip-link { color: var(--bg) !important; }
}

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 0; margin-right: -6px;
    background: transparent; border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; justify-items: center; }
.nav-toggle-bars i {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .22s ease, opacity .15s ease;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 11px; font-weight: 700; font-size: 15px;
    border: 1px solid transparent; cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .06s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-ink); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-block { width: 100%; }
.btn-sub {
    font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px;
    background: color-mix(in srgb, currentColor 14%, transparent);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-primary:hover { color: var(--bg); }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(880px 400px at 6% -10%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%),
        radial-gradient(780px 440px at 94% 10%, color-mix(in srgb, var(--brand-2) 15%, transparent), transparent 62%),
        linear-gradient(180deg, var(--bg), var(--bg-alt));
    border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 64px; align-items: center; padding: 92px 32px 96px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { min-width: 0; }

/* Optional site photo, right-hand side only, faded toward the headline.
   Added by site.js only once the file loads — see [data-bg] there. */
.hero.has-photo::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(58%, 880px);
    background-image: var(--photo); background-size: cover; background-position: center;
    opacity: .42; z-index: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 46%);
            mask-image: linear-gradient(90deg, transparent, #000 46%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero.has-photo::after { opacity: .26; }
}
@media (max-width: 1080px) {
    /* Stacked layout puts text over the full width — drop the photo rather than
       risk it sitting behind the headline. */
    .hero.has-photo::after { display: none; }
}

.eyebrow, .section-eyebrow {
    text-transform: uppercase; letter-spacing: .15em; font-size: 11.5px; font-weight: 800;
    color: var(--accent-ink); margin: 0 0 14px;
}
.hero h1 {
    margin: 0 0 20px; font-size: clamp(33px, 4.6vw, 52px); line-height: 1.06;
    letter-spacing: -.03em; color: var(--brand); text-wrap: balance;
}
.hero h1 .accent { color: var(--accent-ink); }
.lede { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--text-soft); max-width: 58ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* CONNECTED DATA · CONTROLLED EVIDENCE · CLEAR READINESS */
.pillars {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    margin: 30px 0 0; padding: 0; list-style: none;
}
.pillars li {
    font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
    color: var(--accent-ink);
}
.pillars li + li::before { content: "•"; margin-right: 18px; color: var(--accent); }

/* ── Lifecycle chevrons (Factory → … → Operations) ──────────────────────── */

.lifecycle-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.lifecycle-card-head {
    padding: 16px 22px; background: var(--brand); color: #fff;
    font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
/* --brand inverts to near-white in dark; the label has to invert with it. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lifecycle-card-head { color: var(--bg); }
}
.lifecycle { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; }
.lifecycle li {
    display: flex; align-items: center; gap: 13px; padding: 13px 16px;
    border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border-soft);
}
.lifecycle li .ico { width: 20px; height: 20px; color: var(--accent-ink); }
.lifecycle li b { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.lifecycle li span { margin-left: auto; font-size: 12.5px; color: var(--text-faint); }

/* Horizontal chevron chain (governance: COMPLETE → … → HANDOVER) */
.chain { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; list-style: none; padding: 0; }
.chain li {
    flex: 1 1 150px; display: flex; align-items: center; gap: 10px;
    padding: 15px 18px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border-soft);
    font-weight: 800; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--text);
}
.chain li .ico { width: 19px; height: 19px; color: var(--accent-ink); }
.chain li:last-child { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 34%, transparent); }

/* ── Client logo strip ──────────────────────────────────────────────────── */

.trusted { padding: 34px 0; border-bottom: 1px solid var(--border-soft); background: var(--bg); }
.trusted-label {
    margin: 0 0 20px; text-align: center; font-size: 11.5px; font-weight: 800;
    letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint);
}
.trusted-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px;
}
/* Text wordmark is the default. site.js preloads each logo and only swaps it in
   on a successful load, so a missing file degrades to clean text, never a
   broken-image icon. */
.client { font-size: clamp(15px, 1.8vw, 18px); font-weight: 800; letter-spacing: -.015em; color: var(--text-faint); }
.client img { display: block; height: 40px; width: auto; object-fit: contain; }
/* A white plaque rather than a dark-mode invert. Four of the supplied marks are
   indexed PNGs with an opaque white background, so inverting them would produce
   solid white rectangles — and inverting a client's trade mark generally
   breaches their brand guidelines anyway. On the light theme this is invisible
   (white on white); on dark it reads as a deliberate chip, colours intact. */
.client.has-logo {
    font-size: 0; background: #fff; border-radius: 8px; padding: 9px 14px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .client.has-logo { box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: clamp(60px, 7.5vw, 94px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 64ch; margin-bottom: 42px; }
.section-title {
    margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15;
    letter-spacing: -.024em; color: var(--brand); text-wrap: balance;
}
.section-lede { font-size: clamp(16px, 1.35vw, 18px); color: var(--text-soft); max-width: 64ch; margin: 0; }
.rule { width: 54px; height: 4px; border-radius: 2px; background: var(--accent); margin: 0 0 18px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

/* Explicit column counts rather than auto-fit: at the 1400px wrap, auto-fit
   would pack a 6-card row as 4+2 instead of the intended 3+3. */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card-ico {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink);
}
.card-ico .ico { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.012em; color: var(--brand); }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 14.5px; }
.card ul li { margin-bottom: 7px; }
.card ul li::marker { color: var(--accent); }

/* Numbered cards (01–06, as per the brochure) */
.card-num .card-n {
    display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em;
    color: var(--accent-ink); line-height: 1; margin-bottom: 8px;
}
.card-num h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }

/* Card that is also a link */
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }

/* ── Problem / solution pair ────────────────────────────────────────────── */

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.panel {
    border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--border);
    background: var(--surface); box-shadow: var(--shadow-sm);
}
.panel-problem { background: var(--problem); border-color: color-mix(in srgb, var(--warn) 26%, transparent); }
.panel-fix { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.panel-head {
    display: flex; align-items: center; gap: 11px; margin: 0 0 16px;
    font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.panel-problem .panel-head { color: var(--warn); }
.panel-fix .panel-head { color: var(--accent-ink); }
.panel p { margin: 0 0 16px; color: var(--text-soft); font-size: 15.5px; }
.panel p:last-child { margin-bottom: 0; }
.panel h4 {
    margin: 20px 0 12px; font-size: 14.5px; letter-spacing: -.01em;
}
.panel-problem h4 { color: var(--warn); }
.panel-fix h4 { color: var(--accent-ink); }
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.panel-list li { position: relative; padding-left: 18px; font-size: 15px; color: var(--text-soft); }
.panel-list li::before {
    content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%;
}
.panel-problem .panel-list li::before { background: var(--warn); }
.panel-fix .panel-list li::before { background: var(--accent); }
.panel-note {
    margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    font-weight: 700; color: var(--accent-ink); font-size: 15px;
}

/* ── "At a glance" side panel ───────────────────────────────────────────── */

.glance {
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
    border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.glance h3 {
    margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .13em;
    text-transform: uppercase; color: var(--accent-ink);
}
.glance-note {
    display: flex; align-items: center; gap: 9px;
    margin: 20px 0 0; font-size: 14.5px; color: var(--text-faint);
}
.glance-note .ico { color: var(--accent-ink); }

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }

/* ── Optional content images ────────────────────────────────────────────── */
/* Collapsed until site.js confirms the file loaded, so a missing asset leaves
   no gap and no broken-image icon. */
.optional-img { display: none; margin: 0; }
.optional-img.is-loaded { display: block; }
.optional-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.optional-img figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-faint); }

.device-shot img {
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ── Tick lists ─────────────────────────────────────────────────────────── */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-soft); font-size: 15.5px; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .34em; width: 19px; height: 19px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ab4b07' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks-lg li { font-size: 16px; }
.ticks-lg b { color: var(--text); }
/* The tick is a data: URI, so its stroke can't read a token — restate for dark. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ticks li::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9e45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
    }
}

/* ── Numbered steps (four-phase setup) ──────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
    display: flex; align-items: center; gap: 13px; font-size: 15.5px; color: var(--text-soft);
}
.steps li::before {
    counter-increment: step; content: "0" counter(step);
    display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .steps li::before { color: var(--bg); }
}

/* ── Source-data chips ──────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 16px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    font-size: 14px; font-weight: 600; color: var(--text-soft); box-shadow: var(--shadow-sm);
}
.chips li .ico { width: 17px; height: 17px; color: var(--accent-ink); }

/* ── Callout band ───────────────────────────────────────────────────────── */

/* Deliberately NOT var(--brand): this panel stays navy in both themes, so its
   white text and orange icon keep a fixed, checked contrast either way. */
.callout {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    margin-top: 38px; padding: 26px 30px; border-radius: var(--radius);
    background: #143a6e; color: #fff; box-shadow: var(--shadow);
}
.callout .ico { width: 34px; height: 34px; color: #f5821f; stroke-width: 1.6; }   /* 4.35:1 on the navy */
.callout b { display: block; font-size: 17px; letter-spacing: .01em; margin-bottom: 5px; }
.callout p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 76ch; }
.callout-text { min-width: 0; flex: 1 1 340px; }

/* ── Mid-page CTA band ──────────────────────────────────────────────────── */

.cta-band {
    position: relative; overflow: hidden;
    background: #143a6e; color: #fff;
    border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
/* Photo layer sits under a navy wash so the white text keeps its contrast. */
.cta-band.has-photo::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(90deg, rgba(20, 58, 110, .96) 0%, rgba(20, 58, 110, .78) 55%, rgba(20, 58, 110, .62) 100%), var(--photo);
    background-size: cover, cover; background-position: center, center;
}
.cta-band-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 28px 44px;
    flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px;
}
.cta-band h2 {
    margin: 0 0 8px; font-size: clamp(23px, 2.6vw, 31px); line-height: 1.2;
    letter-spacing: -.022em; color: #fff; text-wrap: balance; max-width: 26ch;
}
.cta-band p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .84); max-width: 60ch; }
.btn-onnavy { background: #fff; color: #143a6e; flex: none; }
.btn-onnavy:hover { background: #f5821f; color: #2b1400; }

/* ── Governance closing statement ───────────────────────────────────────
   Deliberately not a third navy band: inset rather than edge-to-edge, centred
   rather than left-aligned, no button, and a flatter/darker wash. The base
   colour is fixed in both themes so the white text contrast can't drift.
   Wash is 54% — chosen against this specific photo, which is mid-toned; see
   images/CREDITS.md before swapping the image without revisiting it. */
.statement {
    position: relative; overflow: hidden; border-radius: var(--radius);
    margin-top: 34px; text-align: center; background: #09182d;
    padding: clamp(48px, 6vw, 86px) clamp(24px, 4vw, 48px);
}
.statement.has-photo::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--photo); background-size: cover; background-position: center;
}
.statement.has-photo::after {
    content: ""; position: absolute; inset: 0; background: rgba(9, 24, 45, .54);
}
.statement > * { position: relative; z-index: 1; }
.statement .rule { margin: 0 auto 20px; }
.statement p {
    margin: 0 auto; max-width: 62ch; color: #fff; text-wrap: balance;
    font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; font-weight: 700; letter-spacing: -.012em;
}

/* ── Dashboard mockup ───────────────────────────────────────────────────── */

.mock {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar {
    display: flex; align-items: center; gap: 6px; padding: 12px 16px;
    background: var(--surface-2); border-bottom: 1px solid var(--border-soft);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
.mock-title { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--text-faint); }
.mock-body { padding: 18px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mock-stat { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 11px 12px; }
.mock-stat-k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.mock-stat b { font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.mock-stat b.warn { color: var(--warn); }
.mock-rows { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 11px; }
.mock-rows li { display: grid; grid-template-columns: 82px minmax(0, 1fr) 84px 36px; gap: 10px; align-items: center; font-size: 12.5px; }
.mock-tag { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-faint); font-size: 11.5px; }
.mock-label { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--brand-2)); }
.mock-pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-soft); }
.chip-ok { background: var(--accent-soft); color: var(--accent-ink); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }
.faq details {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq summary {
    display: flex; align-items: center; gap: 14px; justify-content: space-between;
    padding: 18px 20px; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--brand);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; width: 11px; height: 11px; flex: none;
    border-right: 2.2px solid var(--accent-ink); border-bottom: 2.2px solid var(--accent-ink);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent-ink); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--text-soft); font-size: 15.5px; max-width: 70ch; }

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 15.5px; }
.contact-list .ico { color: var(--accent-ink); }
.contact-list b { color: var(--text); font-weight: 800; }

.contact-form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 14px; color: var(--text); }
.field .opt { font-weight: 500; color: var(--text-faint); }
.field input, .field textarea {
    font: inherit; font-size: 15px; padding: 12px 13px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); resize: vertical; min-width: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent-ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Honeypot. Moved off-screen rather than display:none — some bots skip fields
   that are display:none, but will happily fill this one. */
.hp {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}

.form-status { margin: 14px 0 0; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--accent-ink); font-weight: 600; }
.form-status.err { color: var(--warn); font-weight: 600; }

/* ── Capability statement gate ──────────────────────────────────────────── */

/* A native <dialog>, so focus trapping, Esc and inertness of the page behind
   are the browser's job rather than ours. The UA stylesheet's border and
   padding are reset here; everything else is the site's own card treatment. */
.gate {
    width: min(440px, calc(100vw - 40px));
    padding: 30px 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.gate::backdrop { background: rgba(9, 24, 45, .58); }

.gate-title { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; color: var(--brand); }
.gate-lede { margin: 0 0 22px; font-size: 15px; color: var(--text-soft); }

/* 40px square: this is the one control on the page a person hits in a hurry,
   and it sits close to the form's first field. */
.gate-close {
    position: absolute; top: 10px; right: 10px;
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer;
    font-size: 26px; line-height: 1; color: var(--text-faint);
}
.gate-close:hover { background: var(--surface-2); color: var(--text); }

/* Document picker. The whole row is the label, so the hit target is the card
   rather than the 16px box — this gets used on phones. */
.picks { border: 0; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.picks legend {
    padding: 0; margin-bottom: 10px;
    font-weight: 700; font-size: 14px; color: var(--text);
}
.pick {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 14px; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); transition: border-color .15s ease, background .15s ease;
}
.pick:hover { border-color: var(--accent-ink); }
.pick input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-ink); flex: none; }
.pick:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-soft); }
.pick:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pick-body { display: grid; gap: 2px; min-width: 0; }
.pick-body b { font-size: 15px; color: var(--text); }
.pick-body span { font-size: 13.5px; color: var(--text-faint); }

#gateLinks { display: grid; gap: 10px; }

.gate .field:last-of-type { margin-bottom: 22px; }
.gate .form-status { text-align: center; }
.gate-done .btn { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
    .gate[open] { animation: gate-in .18s ease-out; }
    @keyframes gate-in {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: none; }
    }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--text-soft); }
.footer-inner {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 32px 48px;
    flex-wrap: wrap; padding-top: 46px; padding-bottom: 34px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 13px; max-width: 40ch; }
.footer-brand b { color: var(--text); font-size: 16px; }
.footer-brand p { margin: 5px 0 0; font-size: 14.5px; color: var(--text-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; max-width: 460px; }
.footer-nav a { color: var(--text-soft); font-weight: 600; font-size: 14.5px; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
/* This element also carries .wrap — so it must not clobber .wrap's
   `margin: 0 auto` (which centres the container) or its horizontal padding.
   Vertical padding is set with longhands for exactly that reason. */
.footer-pillars {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
    padding-top: 18px; padding-bottom: 18px; margin: 0 auto;
    border-top: 1px solid var(--border-soft); list-style: none;
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.footer-legal {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--border-soft);
    font-size: 13.5px; color: var(--text-faint);
}
.footer-legal a { color: var(--text-faint); font-weight: 600; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

.reveal-armed { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal-armed.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .wrap { padding: 0 24px; }
    .hero-inner { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 72px 24px 78px; }
    .hero-copy { max-width: 660px; }
    .hero-visual { max-width: 560px; }
    .split, .split-even, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .contact-grid { max-width: 660px; }
}

@media (max-width: 1000px) {
    html { scroll-padding-top: 78px; }
    .nav-toggle { display: inline-grid; place-items: center; }

    .site-nav {
        position: fixed; inset: 72px 0 auto; z-index: 49;
        display: grid; gap: 2px; align-items: stretch; justify-items: stretch;
        padding: 14px 24px 22px; max-height: calc(100vh - 72px); overflow-y: auto;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }
    .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .site-nav a { padding: 13px 4px; font-size: 16.5px; border-bottom: 1px solid var(--border-soft); }
    .site-nav a:last-child { border-bottom: 0; }
    .nav-cta { margin-top: 12px; text-align: center; padding: 14px 18px; }
}

@media (max-width: 820px) {
    .wrap { padding: 0 20px; }
    .hero-inner { padding: 60px 20px 68px; }
    .section-head { margin-bottom: 32px; }
    .cards { gap: 16px; }
    .footer-inner { flex-direction: column; gap: 26px; }
    .callout { padding: 22px; }
}

@media (max-width: 560px) {
    .mock-body { padding: 14px; }
    .mock-stats { grid-template-columns: 1fr 1fr; }
    .mock-stats .mock-stat:last-child { grid-column: span 2; }
    .mock-rows li { grid-template-columns: 72px minmax(0, 1fr) 32px; }
    .mock-rows .bar { display: none; }
    .trusted-list { gap: 16px 26px; }
    .client img { height: 30px; }
    .hero-actions .btn { width: 100%; }
    .contact-form { padding: 22px 18px; }
    .panel { padding: 22px 20px; }
    .lifecycle li span { display: none; }
}

/* ── Motion / print ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal-armed { opacity: 1; transform: none; }
}

@media print {
    .site-header, .nav-toggle, .hero-visual, .contact-form, .skip-link { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 18px 0; }
    .callout { background: none; color: #000; border: 1px solid #999; }
}
