/* ============================================================
   MissionCorp Group — Capability Site
   Federal-corporate aesthetic (navy / white / blue accent)
   NOTE: url() paths are relative to this file (css/), so
   image references use ../assets/...
   ============================================================ */
:root {
  --navy-900: #081a30;
  --navy-800: #0a2342;
  --navy-700: #102f54;
  --navy-600: #16406f;
  --accent:   #2b7de9;   /* clean federal blue */
  --accent-2: #c9a227;   /* restrained gold authority line */

  --white:   #ffffff;
  --grey-50: #f7f9fc;
  --grey-100:#eef2f7;
  --border:  #e2e8f0;
  --border-dk: rgba(255,255,255,0.14);

  --ink:      #14223a;
  --ink-soft: #2d3748;
  --ink-mute: #5a6678;
  --ink-faint:#8a93a3;
  --on-navy:  #e8eef6;
  --on-navy-mute: #a9bad2;

  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Accessible visually-hidden helper (no layout overflow) */
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--ink); margin: 0; font-weight: 700; line-height: 1.15; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.eyebrow.on-navy { color: var(--accent-2); }

/* Formal serif display for section headings (White House editorial style) */
.serve h2, .who h2, .cap-head h2, .cert h2, .contact h2 {
  font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.005em;
}

/* ---------- A. Utility banner ---------- */
.util {
  background: var(--navy-900); color: var(--on-navy-mute);
  font-size: 12px; line-height: 1.4; border-bottom: 1px solid var(--border-dk);
}
.util .wrap { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.util .flag { flex: 0 0 auto; width: 17px; height: 11px; border-radius: 1px; position: relative;
  background: repeating-linear-gradient(to bottom,#b22234 0 1.57px,#fff 1.57px 3.14px); }
.util .flag::before { content:""; position:absolute; top:0; left:0; width:7px; height:6px; background: var(--navy-600); }
.util strong { color: #fff; font-weight: 600; }
.util .sep { opacity: .4; }

/* ---------- B. Header (dynamic) ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-800);
  border-bottom: 1px solid var(--border-dk);
  transition: background .25s ease, box-shadow .25s ease, min-height .25s ease;
}
.header.scrolled {
  background: rgba(8,26,48,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; flex: 0 0 auto; border: 1.5px solid var(--accent-2);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .04em;
  transition: background .2s ease;
}
.brand:hover .mark { background: var(--accent-2); color: var(--navy-900); }
.brand .txt .name { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .01em; line-height: 1.1; }
.brand .txt .sub { color: var(--on-navy-mute); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav .links { display: flex; gap: 32px; }
.nav .links a {
  color: var(--on-navy); font-size: 13.5px; font-weight: 500; letter-spacing: .03em;
  position: relative; padding: 6px 0;
}
.nav .links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent-2); transition: right .22s ease;
}
.nav .links a:hover { color: #fff; text-decoration: none; }
.nav .links a:hover::after,
.nav .links a.active::after { right: 0; }
.nav .links a.active { color: #fff; }
.nav .cta { border: 1px solid var(--accent); color: #fff; padding: 9px 18px; border-radius: 2px;
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  transition: background .15s, border-color .15s; }
.nav .cta:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; }

/* Mobile menu toggle (hamburger -> X) */
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-dk);
  background: transparent; border-radius: 3px; cursor: pointer; padding: 0;
  position: relative;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: #fff; border-radius: 1px; transform: translateX(-50%);
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background .15s ease;
}
.menu-toggle span { top: 50%; margin-top: -1px; }     /* middle bar */
.menu-toggle span::before { top: -7px; }              /* top bar */
.menu-toggle span::after  { top: 7px; }               /* bottom bar */
.header.menu-open .menu-toggle span { background: transparent; }
.header.menu-open .menu-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.header.menu-open .menu-toggle span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- C. Hero (Washington Monument time-lapse video) ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 760px); display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2;
  background: url("../assets/flag.jpg") center center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,26,48,0.95) 0%, rgba(10,35,66,0.88) 46%, rgba(10,35,66,0.62) 100%); }
.hero .wrap { padding: clamp(56px, 9vw, 120px) 0; width: 100%; }
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 {
  font-family: var(--serif); color: #fff; font-weight: 700; letter-spacing: -0.005em;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-2); }
.hero .lead { color: var(--on-navy); font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; max-width: 60ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 2px; font-size: 13.5px;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: all .15s; }
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: #1f6cd0; border-color: #1f6cd0; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--border-dk); }
.hero-stats .s { padding: 22px 36px 0 0; margin-right: 36px; border-right: 1px solid var(--border-dk); }
.hero-stats .s:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats .s .v { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.hero-stats .s .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-mute); }

/* ---------- D. Who We Serve (seal band) ---------- */
.serve { background: var(--navy-800); color: #fff; padding: clamp(56px,8vw,92px) 0;
  border-top: 3px solid var(--accent-2); }
.serve .head { text-align: center; margin-bottom: 48px; }
.serve h2 { color: #fff; font-size: clamp(22px,3vw,30px); }
.serve .head p { color: var(--on-navy-mute); max-width: 60ch; margin: 12px auto 0; }
.seal-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--border-dk); border: 1px solid var(--border-dk);
}
.seal {
  background: var(--navy-700); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 28px 16px 22px; transition: background .2s; text-align: center;
}
.seal:hover { background: var(--navy-600); }
.seal img { height: 84px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: transform .2s ease; }
.seal:hover img { transform: scale(1.06); }
.seal.gsa img { height: 44px; margin: 20px 0; }
.seal-name { font-size: 11px; line-height: 1.35; letter-spacing: .04em; color: var(--on-navy-mute);
  text-transform: uppercase; font-weight: 600; max-width: 18ch; }
.serve .note { text-align: center; color: var(--on-navy-mute); font-size: 12px; margin-top: 26px; max-width: 80ch; margin-left:auto; margin-right:auto; }

/* ---------- Section scaffold ---------- */
section.block { padding: clamp(64px, 9vw, 116px) 0; }
.bg-grey { background: var(--grey-50); }
.bordered { border-bottom: 1px solid var(--border); }

/* ---------- E. Who We Are ---------- */
.who-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px,6vw,80px); align-items: center; }
.who h2 { font-size: clamp(28px,3.6vw,42px); letter-spacing: -0.01em; margin-bottom: 22px; }
.who .lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 20px; max-width: 60ch; }
.who p { color: var(--ink-mute); max-width: 62ch; }
.who .facts { margin-top: 30px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(2,1fr); }
.who .facts .f { padding: 18px 20px 4px 0; border-right: 1px solid var(--border); }
.who .facts .f:nth-child(2n) { border-right: 0; }
.who .facts .k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.who .facts .v { font-size: 15px; font-weight: 600; color: var(--ink); }

/* Mission card */
.leader { background: var(--navy-800); color: #fff; padding: 38px 34px; border-top: 3px solid var(--accent-2); }
.leader .badge { display:inline-flex; align-items:center; gap:8px; font-size: 11px; letter-spacing:.14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.leader .badge .dot { width: 7px; height: 7px; background: var(--accent-2); border-radius: 50%; }
.leader blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: #fff; font-weight: 500; }
.leader .who-name { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-dk); }
.leader .who-name .n { color: #fff; font-weight: 700; font-size: 16px; }
.leader .who-name .r { color: var(--on-navy-mute); font-size: 13px; }

/* ---------- F. Capabilities ---------- */
.cap-head { max-width: 720px; margin-bottom: 50px; }
.cap-head h2 { font-size: clamp(28px,3.6vw,42px); letter-spacing: -0.01em; }
.cap-head p { color: var(--ink-mute); margin: 14px 0 0; }
.cap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cap { background: var(--white); padding: 36px 32px 40px; transition: transform .18s, box-shadow .18s, background .18s; }
.cap:hover { background: var(--grey-50); }
.cap .ic { width: 44px; height: 44px; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px; transition: background .2s, color .2s; }
.cap:hover .ic { background: var(--accent); color: #fff; }
.cap .ic svg { width: 22px; height: 22px; }
.cap .num { font-size: 12px; letter-spacing: .12em; color: var(--ink-faint); font-weight: 600; margin-bottom: 12px; }
.cap h3 { font-size: 17px; margin-bottom: 10px; }
.cap p { font-size: 14px; color: var(--ink-mute); margin: 0; line-height: 1.6; }

/* ---------- G. Certifications / SB ---------- */
.cert { background: var(--grey-100); }
.cert-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(40px,6vw,72px); align-items: center; }
.cert-logo { background: #fff; border: 1px solid var(--border); padding: 44px; display: grid; place-items: center; }
.cert-logo img { width: 100%; max-width: 220px; }
.cert h2 { font-size: clamp(24px,3vw,34px); margin-bottom: 16px; }
.cert p { color: var(--ink-mute); max-width: 60ch; }
.cert .chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cert .chip { border: 1px solid var(--border); background: #fff; padding: 9px 16px; border-radius: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cert .chip b { color: var(--accent); }

/* ---------- H. Contact ---------- */
.contact { background: var(--navy-800); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,6vw,76px); align-items: start; }
.contact h2 { color: #fff; font-size: clamp(28px,3.6vw,42px); letter-spacing: -0.01em; margin-bottom: 18px; }
.contact .lead { color: var(--on-navy); max-width: 44ch; }
.contact .direct { margin-top: 30px; border-top: 1px solid var(--border-dk); padding-top: 22px; }
.contact .direct .k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-mute); margin-bottom: 6px; }
.contact .direct a { color: #fff; font-size: 18px; font-weight: 600; }
.contact .direct a:hover { color: var(--accent-2); }

.form-card { background: #fff; padding: clamp(28px,3.5vw,42px); border-top: 3px solid var(--accent-2); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.req { color: #c0392b; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  border: 1px solid var(--border); border-radius: 2px; padding: 12px 13px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,125,233,.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.btn-submit { appearance: none; border: 1px solid var(--navy-800); background: var(--navy-800); color: #fff;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 2px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-submit:hover { background: var(--accent); border-color: var(--accent); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }
.form-note { font-size: 12px; color: var(--ink-faint); margin: 16px 0 0; line-height: 1.5; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; font-size: 14px; border-radius: 2px; }
.form-status.ok { display: block; background: #eef5ef; border: 1px solid #cfe3d2; color: #285a32; }
.form-status.err { display: block; background: #fbeeec; border: 1px solid #f0cdc7; color: #8a2f23; }

/* ---------- I. Footer ---------- */
.footer { background: var(--navy-900); color: var(--on-navy-mute); padding: 60px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--border-dk); }
.footer .name { color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand p { font-size: 13px; margin: 12px 0 0; max-width: 42ch; line-height: 1.65; }
.footer h4 { color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 13.5px; }
.footer a { color: var(--on-navy); }
.footer a:hover { color: #fff; }
.footer-legal { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 12px; }
.footer-legal .badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-dk);
  padding: 5px 11px; border-radius: 2px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 600; }
.footer-legal .badge .dot { width: 7px; height: 7px; background: var(--accent-2); border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.footer-legal a { color: var(--on-navy); }
.footer-legal a:hover { color: #fff; }
.footer-disclosure { margin-top: 22px; font-size: 11.5px; color: var(--ink-faint); line-height: 1.7; max-width: 96ch; }
.footer-credit { margin-top: 14px; font-size: 11px; color: var(--ink-faint); }
.footer-credit a { color: var(--on-navy-mute); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-hero { background: var(--navy-800); color: #fff; padding: clamp(56px,8vw,88px) 0 clamp(40px,6vw,56px);
  border-bottom: 3px solid var(--accent-2); }
.legal-hero .eyebrow { color: var(--accent-2); }
.legal-hero h1 { font-family: var(--serif); color: #fff; font-weight: 700;
  font-size: clamp(28px,4vw,44px); line-height: 1.18; }
.legal-hero p { color: var(--on-navy-mute); margin: 14px 0 0; font-size: 14px; }
.legal { padding: clamp(48px,7vw,80px) 0 clamp(56px,8vw,96px); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-family: var(--serif); font-size: 22px; margin: 40px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--border); color: var(--ink); }
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.legal-body h3 { font-size: 16px; margin: 22px 0 8px; color: var(--ink); }
.legal-body p { color: var(--ink-mute); margin: 0 0 14px; }
.legal-body ul { color: var(--ink-mute); margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent); }
.legal-body .toc-back { display: inline-block; margin-bottom: 26px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* ---------- Success modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8,26,48,0.62); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; max-width: 460px; width: 100%; border-top: 4px solid var(--accent-2);
  padding: 40px 38px 34px; text-align: center; border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transform: translateY(14px) scale(.98); transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal .modal-icon {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  background: #eef5ef; border: 1px solid #cfe3d2; display: grid; place-items: center;
}
.modal .modal-icon svg { width: 30px; height: 30px; color: #2f8f46; }
.modal h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; color: var(--ink); }
.modal p { color: var(--ink-mute); font-size: 15px; margin: 0 0 26px; }
.modal .modal-close {
  appearance: none; cursor: pointer; border: 1px solid var(--navy-800); background: var(--navy-800);
  color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 12px 30px; border-radius: 2px; transition: background .15s, border-color .15s;
}
.modal .modal-close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Reveal-on-scroll (dynamic) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .who-grid, .contact-grid, .cert-grid { grid-template-columns: 1fr; }
  .cert-logo { max-width: 320px; }
  .cap-grid { grid-template-columns: repeat(2,1fr); }
  .seal-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Mobile nav — anchored to the header bottom so the banner offset can't overlap it */
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-900);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px;
    border-bottom: 1px solid var(--border-dk); box-shadow: 0 18px 30px rgba(0,0,0,.35);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .header.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav .links { flex-direction: column; gap: 0; width: 100%; }
  .nav .links a { padding: 14px var(--gutter); border-bottom: 1px solid var(--border-dk); }
  .nav .links a::after { display: none; }
  .nav .cta { margin: 14px var(--gutter) 0; text-align: center; }
}
@media (max-width: 760px) {
  /* Center the hero on small screens for balance */
  .hero { min-height: 0; text-align: center; }
  .hero .wrap { padding: clamp(48px, 13vw, 76px) 0; }
  .hero-inner { max-width: 640px; margin: 0 auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 0; }

  /* iOS Safari does not support webm; show the reliable flag image instead */
  .hero-video { display: none; }
  .hero-bg { background-position: center 32%; }

  /* Center section intros */
  .cap-head { text-align: center; margin-left: auto; margin-right: auto; }
  .cap-head p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  section.block { padding: 56px 0; }

  .cap-grid { grid-template-columns: 1fr; }
  .seal-grid { grid-template-columns: repeat(2,1fr); }
  .seal { padding: 22px 10px 18px; gap: 10px; }
  .seal img { height: 60px; }
  .seal.gsa img { height: 34px; margin: 13px 0; }
  .seal-name { font-size: 10px; letter-spacing: .03em; }
  .form-row { grid-template-columns: 1fr; }
  .who .facts { grid-template-columns: 1fr; }
  .who .facts .f { border-right: 0; border-bottom: 1px solid var(--border); padding: 16px 0 12px; }
  .footer-top { grid-template-columns: 1fr; }

  /* Stat strip stacks cleanly */
  .hero-stats { flex-direction: column; align-items: stretch; }
  .hero-stats .s { border-right: 0; border-bottom: 1px solid var(--border-dk);
    margin: 0; padding: 14px 0; }
  .hero-stats .s:last-child { border-bottom: 0; }

  .util .hide-sm { display: none; }
  .util .wrap { font-size: 11.5px; }
  .brand .txt .name { font-size: 16px; }
  .brand .txt .sub { display: none; }
  .brand .mark { width: 34px; height: 34px; font-size: 14px; }
}

