/* Direction A — Federal Register: navy + blueprint cyan, industrial/institutional */
:root {
  --ink: #0A1F44;
  --ink-2: #091A3A;
  --ink-3: #0E2650;
  --rule: #1A3566;
  --rule-soft: rgba(255,255,255,0.08);
  --paper: #F3F5F8;
  --paper-2: #E7ECF2;
  --paper-3: #D4DBE6;
  --oxblood: #00B4D8;
  --oxblood-2: #0094B0;
  --gold: #5BD1EE;
  --olive: #6B7689;
  --alert: #E8573C;
  --ink-60: rgba(10,31,68,0.62);
  --ink-40: rgba(10,31,68,0.4);
  --ink-20: rgba(10,31,68,0.18);
  --ink-10: rgba(10,31,68,0.1);
  --serif: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Top bar — federal-document chrome */
.a-topbar { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 2px solid var(--oxblood); }
.a-topbar .row { max-width: 1440px; margin: 0 auto; padding: 8px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.a-topbar .pill { display: inline-flex; align-items: center; gap: 8px; color: rgba(243,245,248,0.72); }
.a-topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxblood); box-shadow: 0 0 10px var(--oxblood); }
.a-topbar a:hover { color: var(--oxblood); }

/* Main nav */
.a-nav { background: var(--paper); border-bottom: 1px solid var(--ink-20); position: sticky; top: 0; z-index: 50; }
.a-nav .row { max-width: 1440px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; gap: 48px; }
.a-logo { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.a-logo .mark { width: 32px; height: 32px; background: var(--ink); color: var(--oxblood); font-family: var(--mono); font-size: 15px; display: grid; place-items: center; font-weight: 700; border-radius: 2px; }
.a-nav ul { list-style: none; display: flex; gap: 28px; align-items: center; flex: 1; }
.a-nav ul a { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; position: relative; padding: 6px 0; }
.a-nav ul a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--oxblood); }
.a-nav ul a:hover { color: var(--oxblood-2); }
.a-nav .cta { background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); border-radius: 2px; }
.a-nav .cta:hover { background: var(--oxblood); color: var(--ink); }

/* Eyebrows, rules */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oxblood-2); font-weight: 500; }
.section-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-40); }
.rule { height: 1px; background: var(--ink-20); }
.thick-rule { height: 4px; background: var(--ink); }
.hairline { border-top: 1px solid var(--ink-20); }

/* Type — all sans, display weight */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.h-display { font-size: clamp(52px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
.h-hero { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.h-section { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.025em; }
.h-sub { font-size: clamp(20px, 2vw, 28px); font-weight: 600; }
.body-lg { font-size: 19px; line-height: 1.5; color: var(--ink-60); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); transition: all 0.15s; cursor: pointer; border-radius: 2px; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--ink); }
.btn-light { background: transparent; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--paper); }
.btn-oxblood { background: var(--oxblood); color: var(--ink); border-color: var(--oxblood); font-weight: 700; }
.btn-oxblood:hover { background: var(--oxblood-2); border-color: var(--oxblood-2); color: var(--paper); }

/* Container + grid */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* Stamps / seals */
.stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--ink-40); color: var(--ink-60); border-radius: 2px; }
.stamp.oxblood { color: var(--oxblood-2); border-color: var(--oxblood); }
.stamp.white { color: var(--paper); border-color: rgba(243,245,248,0.4); }

/* Footer */
.a-footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; font-family: var(--sans); }
.a-footer .top { max-width: 1440px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.a-footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,245,248,0.5); margin-bottom: 20px; font-weight: 500; }
.a-footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.a-footer ul a { font-size: 14px; color: rgba(243,245,248,0.85); }
.a-footer ul a:hover { color: var(--oxblood); }
.a-footer .logo-block .tag { font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.4; max-width: 340px; margin-top: 18px; color: rgba(243,245,248,0.85); letter-spacing: -0.01em; }
.a-footer .bottom { max-width: 1440px; margin: 0 auto; padding: 24px 32px 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,245,248,0.5); }

/* Force sans + no italics everywhere — industrial tone */
h1 em, h2 em, h3 em, h4 em,
h1 .red, h2 .red, h3 .red,
h1 .accent, h2 .accent, h3 .accent,
h1 .it, h2 .it, h3 .it,
h1 .swash, h2 .swash { font-style: normal !important; color: var(--oxblood-2); }
h1, h2, h3, h4, .hero .lead, .audience .intro p { font-family: var(--sans) !important; }
.hero h1 .red, .audience .card h3 .accent { color: var(--oxblood-2); font-style: normal !important; }

/* Tables */
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.a-table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--ink-20); background: var(--paper-2); }
.a-table td { padding: 18px 16px; border-bottom: 1px solid var(--ink-10); }
.a-table tr:hover td { background: var(--paper-2); }

@media (max-width: 960px) {
  .a-topbar .row, .a-nav .row { padding-left: 20px; padding-right: 20px; }
  .a-nav ul { display: none; }
  .wrap { padding: 0 20px; }
  .a-footer .top { grid-template-columns: 1fr 1fr; }
}

/* --- corrected-stats additions --- */
.ast { font-size: 0.44em; vertical-align: super; color: var(--ink-40); font-weight: 600; margin-left: 1px; }
.a-footer .fineprint { max-width: 1440px; margin: 0 auto; padding: 28px 32px 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; line-height: 1.7; color: rgba(243,245,248,0.42); }

/* ════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE PASS — hamburger, stacked grids, table scroll
   ════════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.a-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.a-burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.22s, opacity 0.22s; border-radius: 1px; }

@media (max-width: 960px) {
  /* HAMBURGER + MOBILE NAV */
  .a-burger { display: block; }
  .a-nav .row { flex-wrap: wrap; gap: 0; padding: 14px 20px !important; }
  .a-nav .a-logo { font-size: 18px; }
  .a-nav ul { display: none !important; width: 100%; flex-direction: column !important; padding: 16px 0 24px !important; gap: 4px !important; order: 99; border-top: 1px solid var(--ink-20); margin-top: 14px; }
  body.nav-open .a-nav ul { display: flex !important; }
  .a-nav ul a { font-size: 16px; padding: 12px 4px; display: block; border-bottom: 1px solid var(--ink-10); }
  .a-nav ul a.active::after { display: none; }
  .a-nav ul a.active { color: var(--oxblood-2); font-weight: 600; }
  .a-nav .cta { display: none; order: 100; }
  body.nav-open .a-nav .cta { display: inline-flex; width: 100%; justify-content: center; margin: 8px 0 0; }
  body.nav-open .a-burger span:nth-child(1) { transform: translate(0, 7px) rotate(45deg); }
  body.nav-open .a-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .a-burger span:nth-child(3) { transform: translate(0, -7px) rotate(-45deg); }

  /* Topbar — keep simple on mobile */
  .a-topbar .row { flex-direction: column; gap: 6px; padding: 10px 20px !important; align-items: flex-start; font-size: 10px; }
  .a-topbar .pill { font-size: 10px; }
}

@media (max-width: 768px) {
  /* Section padding compression */
  section { padding: 56px 0 !important; }
  .wrap, .wrap-sm { padding: 0 20px !important; }
  html, body { overflow-x: hidden; }

  /* Headings — phone-friendly */
  .h-display { font-size: clamp(36px, 9vw, 56px) !important; line-height: 1 !important; }
  .h-hero    { font-size: clamp(32px, 8vw, 48px) !important; }
  .h-section { font-size: clamp(26px, 7vw, 40px) !important; }
  .h-sub     { font-size: 20px !important; }

  /* Meta-rows stack */
  .hero .meta-row, .hero-b .meta-row, .ct-hero .meta-row, .bh-hero .meta-row,
  .cap-hero .meta-row, .hero-s .meta-row, .ab-hero .meta-row, .tx-hero .meta-row {
    flex-direction: column !important; gap: 8px !important; align-items: flex-start !important;
    margin-bottom: 32px !important;
  }
  .hero .meta-row .dot-row { gap: 12px !important; flex-wrap: wrap; }

  /* Hero grid */
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hero { padding: 32px 0 56px !important; }

  /* Hero stat band: 5 → 2 cols on tablet */
  .hero .stats { grid-template-columns: repeat(2, 1fr) !important; }
  .hero .stats .cell { padding: 22px 18px !important; border-right: 1px solid var(--ink-20); border-bottom: 1px solid var(--ink-20); }
  .hero .stats .cell:nth-child(2n) { border-right: none; }
  .hero .stats .cell:nth-last-child(-n+1):nth-child(odd) { border-right: none; grid-column: 1 / -1; }
  .hero .stats .num { font-size: 38px !important; }

  /* All multi-col grids → 1 col */
  .audience .head, .audience .cards,
  .flow .header,
  .caps .header, .caps .grid,
  .bids-teaser .header,
  .record .header, .record .grid, .record .grid.four,
  .cta-band .row,
  .pillars .hdr, .pillars-grid,
  .expertise .hdr,
  .why .grid,
  .network .industries,
  .rfq .steps, .rfq .hdr,
  .compliance .grid,
  .rfq-form .inner,
  .problem .pains,
  .sol .hdr,
  .pricing .hdr, .pricing .plans,
  .eligible .grid,
  .form .inner,
  .hero-s .grid,
  .story .grid,
  .values .grid,
  .team .grid,
  .timeline .line,
  .cta-a .inner,
  .cap-toc, .cap-section .grid, .cap-cta .inner,
  .routing .grid, .form-c .inner, .offices .grid,
  .a-footer .top,
  .bh-hero .title-row,
  .bh-cta .box {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Fix borders for stacked cards */
  .audience .card, .pillars .pillar, .pricing .plan, .caps .item, .flow .step,
  .values .v, .compliance .card, .problem .pain, .why .item,
  .cap-toc a, .routing .card, .offices .office, .team .person,
  .rfq .step {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .audience .card:last-child, .pillars .pillar:last-child, .pricing .plan:last-child,
  .caps .item:last-child, .flow .step:last-child, .values .v:last-child,
  .compliance .card:last-child, .problem .pain:last-child, .why .item:last-child,
  .cap-toc a:last-child, .routing .card:last-child, .offices .office:last-child,
  .team .person:last-child, .rfq .step:last-child {
    border-bottom: none;
  }
  /* Light-bg variants of the same stacked-card border */
  .caps .item, .why .item, .cap-toc a, .routing .card, .offices .office, .team .person {
    border-bottom: 1px solid var(--ink-20) !important;
  }

  /* Two-col stat bands → 2 cols at tablet, 1 col at phone */
  .hero-b .facts { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-b .facts .cell { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px !important; }
  .hero-b .facts .cell:nth-child(2n) { border-right: none; }
  .bh-hero .counters { grid-template-columns: repeat(2, 1fr) !important; }
  .bh-hero .counter { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px !important; }
  .bh-hero .counter:nth-child(2n) { border-right: none; }
  .expertise .ex-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .expertise .ex-cell { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 22px !important; }
  .expertise .ex-cell:nth-child(2n) { border-right: none; }
  .expertise .ex-cell .big { font-size: 40px !important; }
  .record .grid.four { grid-template-columns: repeat(2, 1fr) !important; }

  /* Sol step grid (4-col custom) → 1 col */
  .sol .step { grid-template-columns: 1fr !important; gap: 12px !important; padding: 28px 0 !important; border-bottom: 1px solid var(--ink-20); }
  .sol .step .n { font-size: 32px !important; }
  .sol .step .meta { text-align: left !important; }

  /* Capability right items (56px+1fr+auto) */
  .cap-section .right .item { grid-template-columns: 1fr !important; gap: 8px !important; padding: 22px !important; }
  .cap-section .left .stat .big { font-size: 56px !important; }

  /* Form rows stack */
  form .row { grid-template-columns: 1fr !important; gap: 14px !important; }
  .form form, .form-c form, .rfq-form form { padding: 28px !important; }
  form .submit-row { flex-direction: column; gap: 12px; align-items: stretch; }
  form .submit-row .btn { justify-content: center; }
  form .submit-row .legal { text-align: center; }

  /* Tables — wrap in horizontal scroll */
  .bh-table-section .wrap, .bids-teaser .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bh-table, .bids-teaser table { min-width: 760px; }

  /* Network matrix — scrollable */
  .network .matrix { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .network .matrix > * { display: inline-block; min-width: 130px; vertical-align: top; }

  /* CTA boxes */
  .cap-cta .inner, .cta-a .inner, .bh-cta .box { padding: 36px !important; gap: 32px !important; }

  /* CTAs stack */
  .hero .ctas, .cta-band .ctas, .hero-b .ctas, .hero-s .ctas,
  .cta-a .right > div, .bh-cta .right, .cta-band .row > div .ctas {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero .ctas .btn, .cta-band .btn, .hero-b .ctas .btn, .hero-s .ctas .btn,
  .bh-cta .btn {
    justify-content: center !important;
  }

  /* Pillars unifier — smaller padding */
  .pillars-unify { font-size: 16px !important; padding: 24px 28px !important; line-height: 1.5 !important; }
  .pillars .pillar { padding: 36px 28px !important; }
  .pillars .pillar h3 { font-size: 28px !important; }

  /* Thanks page */
  .tx-hero { padding: 56px 0 80px !important; min-height: auto !important; }
  .tx-hero h1 { font-size: 44px !important; }
  .tx-hero .receipt { gap: 14px; padding: 18px 20px !important; font-size: 11px !important; }

  /* About */
  .ab-hero h1 { font-size: clamp(40px, 9vw, 64px) !important; }
  .ab-hero { padding: 36px 0 64px !important; }
  .story p:first-child::first-letter { font-size: 64px !important; }

  /* Bids hub filters wrap */
  .bh-filters { padding: 16px 0 !important; }
  .bh-filters .row { gap: 8px !important; flex-wrap: wrap; }
  .bh-filters .chip { font-size: 11px !important; padding: 6px 10px !important; }
  .bh-filters .search { min-width: 100% !important; margin-top: 8px; }

  /* Footer */
  .a-footer { padding: 64px 0 32px !important; }
  .a-footer .top { padding: 0 20px 32px !important; gap: 32px !important; }
  .a-footer .bottom { flex-direction: column; gap: 10px; align-items: flex-start; padding: 20px 20px 0 !important; }
  .a-footer .fineprint { padding: 22px 20px 0 !important; font-size: 10px !important; line-height: 1.6 !important; }
  .a-footer .logo-block .tag { font-size: 16px !important; }
}

@media (max-width: 480px) {
  /* All stat bands → 1 col */
  .hero .stats { grid-template-columns: 1fr !important; }
  .hero .stats .cell { border-right: none !important; border-bottom: 1px solid var(--ink-20); padding: 22px !important; }
  .hero .stats .cell:last-child { border-bottom: none; }
  .hero .stats .num { font-size: 44px !important; }

  .hero-b .facts { grid-template-columns: 1fr !important; }
  .hero-b .facts .cell { border-right: none !important; }

  .bh-hero .counters { grid-template-columns: 1fr !important; }
  .bh-hero .counter { border-right: none !important; }

  .expertise .ex-grid { grid-template-columns: 1fr !important; }
  .expertise .ex-cell { border-right: none !important; }

  .record .grid.four { grid-template-columns: 1fr !important; }

  /* Tighter headings */
  .h-display { font-size: clamp(32px, 11vw, 44px) !important; }
  .h-hero    { font-size: clamp(28px, 10vw, 38px) !important; }
  .h-section { font-size: clamp(24px, 9vw, 32px) !important; }

  /* Tighter CTAs box */
  .cap-cta .inner, .cta-a .inner, .bh-cta .box { padding: 28px !important; }
}
