/* rttg.net — public site. Visual language matches the careers pages
   (styles.css): near-black, gold accents, square corners, heavy uppercase
   labels. Same font stack as styles.css, so both render alike everywhere. */
:root {
  --black: #050505;
  --jet: #0D0D0D;
  --carbon: #161616;
  --bg: var(--black);
  --surface: rgba(22, 22, 22, 0.78);
  --surface-solid: #121212;
  --line: rgba(226, 181, 60, 0.18);
  --line-2: rgba(226, 181, 60, 0.22);
  --line-3: rgba(226, 181, 60, 0.45);
  --line-hover: rgba(226, 181, 60, 0.55);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.84);
  --muted: #BDB59C;
  --gold: #E2B53C;
  --gold-bright: #F5C842;
  --gold-deep: #9C7E2A;
  --gold-ink: #050505;
  --gold-label: #4A3A06;
  --on-gold: #050505;
  /* Cream band (careers "mission focus") */
  --cream-1: #FAF6E8;
  --cream-2: #F3ECD1;
  --cream-card: #FFFFFF;
  --cream-text: #050505;
  --cream-muted: #4A463C;
  --cream-accent: #7A6118;   /* gold-deep darkened to pass 4.5:1 on cream */
  --max: 1280px;
  --gutter: 32px;
  --section: 112px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
[hidden] { display: none !important; }  /* .section etc. set display, which would otherwise win */
img, svg { max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--cream-accent); }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }
strong { font-weight: 800; }

.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px;
  font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px;
}
.skip:focus { top: 12px; color: var(--on-gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: 48px; }
.section-top { padding-bottom: 48px; gap: 56px; }
.section-bottom { padding-top: 48px; gap: 32px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 760px; }

/* Type */
.eyebrow {
  font-size: 12.5px; font-weight: 900; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow-dark { color: var(--cream-accent); }
h1 {
  font-weight: 900; font-size: clamp(28px, 3vw, 44px); line-height: 1.06;
  letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold); }
h2 {
  font-weight: 900; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1;
  letter-spacing: 0.05em; text-transform: uppercase; text-wrap: balance;
}
.h2-md { font-size: clamp(24px, 2.4vw, 34px); }
.h2-sm { font-size: 20px; letter-spacing: 0.12em; }
h3 {
  font-size: 15px; font-weight: 900; line-height: 1.35;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.h3-lg { font-size: 20px; letter-spacing: 0.06em; }
.lede { font-size: 18px; color: var(--text-2); max-width: 600px; }
.lede strong { color: var(--text); }
.muted-lg { color: var(--muted); }

/* Buttons — square, uppercase, tracked (careers .button) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-size: 13px; font-weight: 900; line-height: 1.2;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  border: 1px solid var(--line-3); border-radius: 0; cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 12.5px; }
.btn-accent { background: var(--gold); border-color: var(--gold); color: var(--on-gold); box-shadow: 0 18px 48px rgba(226, 181, 60, 0.22); }
.btn-accent:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--on-gold); }
.btn-ghost { background: rgba(226, 181, 60, 0.06); color: var(--gold); }
.btn-ghost:hover { background: rgba(226, 181, 60, 0.14); color: var(--gold); }
.btn-nav { background: rgba(226, 181, 60, 0.08); color: var(--gold); box-shadow: none; }
.btn-nav:hover { background: rgba(226, 181, 60, 0.18); color: var(--gold); }
.btn-start { align-self: flex-start; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 86px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: clamp(50px, 4.6vw, 64px); width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 24px; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a:not(.btn) { padding: 10px 0; color: rgba(255, 255, 255, 0.78); transition: color 160ms ease; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: rgba(226, 181, 60, 0.06); color: var(--gold); border: 1px solid rgba(226, 181, 60, 0.36); cursor: pointer;
}

/* Hero */
.hero-band {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(226, 181, 60, 0.20), transparent 36%),
    radial-gradient(circle at 18% 90%, rgba(226, 181, 60, 0.08), transparent 32%),
    linear-gradient(110deg, #050505, rgba(5, 5, 5, 0.98) 48%, #0D0D0D);
  border-bottom: 1px solid rgba(226, 181, 60, 0.12);
}
.hero-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.14;
  background:
    linear-gradient(rgba(226, 181, 60, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 181, 60, 0.18) 1px, transparent 1px);
  background-size: 78px 78px;
}
.hero-band::after {
  content: ""; position: absolute; z-index: -1; right: clamp(22px, 7vw, 112px); top: 40px;
  width: min(52vw, 680px); aspect-ratio: 1.65;
  border-top: 1px solid rgba(226, 181, 60, 0.42); border-right: 1px solid rgba(226, 181, 60, 0.2);
  border-radius: 50%; transform: rotate(-14deg); opacity: 0.7; pointer-events: none;
}
.hero { padding-top: 88px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

/* Inner-page header: the hero band, shorter, text only */
.page-head { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.page-head h1 { max-width: 900px; }
.page-head .lede { max-width: 760px; }

/* Closing call to action at the foot of inner pages */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 50%, rgba(226, 181, 60, 0.14), transparent 40%),
    linear-gradient(180deg, #0D0D0D, #050505);
}
.cta { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta .stack { flex: 1 1 480px; min-width: 0; max-width: 720px; }

.hud {
  background-color: var(--jet);
  background-image:
    linear-gradient(rgba(226, 181, 60, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 181, 60, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-photo {
  flex: 1 1 520px; min-width: 0; margin: 0; background: var(--jet);
  border: 1px solid rgba(226, 181, 60, 0.34);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.hero-photo img { display: block; width: 100%; height: auto; }

/* Stats banner */
.stats { background: var(--gold); color: var(--gold-ink); border-top: 4px solid var(--gold-ink); border-bottom: 4px solid var(--gold-ink); }
.stats-grid {
  padding-top: 32px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; align-items: center;
}
.stat-label { font-size: 11.5px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-label); }
.stat-text { margin-top: 4px; font-weight: 800; font-size: 18px; line-height: 1.35; }
.stat-num { margin-top: 2px; font-weight: 900; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-note { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--gold-label); }

/* Remote piloting */
.split-head { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; }
.split-head > .stack { flex: 1 1 520px; min-width: 0; }
.split-head > p { flex: 1 1 400px; min-width: 0; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line-2);
}
.steps li {
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.94), rgba(5, 5, 5, 0.96)),
    linear-gradient(135deg, rgba(226, 181, 60, 0.15), transparent 50%);
}
.step-num { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 900; letter-spacing: 0.14em; color: var(--gold); }
.steps p { color: var(--muted); font-size: 16px; }

/* Operations center */
.ops-photo { margin: 0; border: 1px solid var(--line-2); border-top: 3px solid var(--gold); }
.ops-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: 50% 12%; }
.ops-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ops-features li {
  background: var(--surface); border: 1px solid rgba(226, 181, 60, 0.12); border-top: 3px solid var(--gold);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.ops-features svg { margin-bottom: 6px; filter: drop-shadow(0 0 12px rgba(226, 181, 60, 0.34)); }
.ops-features p { color: var(--muted); font-size: 16px; }

/* Coverage */
.coverage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid rgba(226, 181, 60, 0.12);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}
.card:hover { border-color: var(--line-hover); background: rgba(22, 22, 22, 0.95); }
.card p { color: var(--muted); font-size: 16px; }
.card .price { margin-top: auto; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.card-featured { border-color: var(--gold); border-top-width: 3px; background: rgba(226, 181, 60, 0.06); }
.card .badge { font-size: 11.5px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* Services (cream band, careers "mission focus") */
.light { background: linear-gradient(180deg, var(--cream-1), var(--cream-2)); color: var(--cream-text); }
.light h2 { color: var(--cream-text); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  color: var(--cream-text); background: var(--cream-card); padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(156, 126, 42, 0.18); border-top: 3px solid var(--gold);
}
.svc p { color: var(--cream-muted); font-size: 16px; }
a.svc { transition: border-color 160ms ease, transform 160ms ease; }
a.svc:hover { color: var(--cream-text); border-color: var(--gold-deep); }
@media (prefers-reduced-motion: no-preference) { a.svc:hover { transform: translateY(-2px); } }

/* Two-column sections */
.two-col { flex-direction: row; flex-wrap: wrap; gap: 56px; }
.col-narrow { flex: 1 1 380px; min-width: 0; gap: 18px; }
.col-wide { flex: 2 1 560px; min-width: 0; }

/* Training */
.courses {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.courses li {
  padding: 26px 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  background: var(--surface); border: 1px solid rgba(226, 181, 60, 0.12); border-left: 3px solid var(--gold);
  transition: border-color 160ms ease, background 160ms ease;
}
.courses li:hover { background: rgba(22, 22, 22, 0.96); border-color: var(--line-hover); border-left-color: var(--gold); }
.courses li > div { flex: 1 1 320px; min-width: 0; }
.courses h3 { margin-bottom: 8px; }
.courses li > div p { color: var(--muted); font-size: 16px; }
.meta { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Integration & FPV */
.rule-top { border-top: 1px solid var(--line); }
.equipment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.eq-card { background: var(--surface); border: 1px solid rgba(226, 181, 60, 0.12); overflow: hidden; display: flex; flex-direction: column; }
.eq-photo { height: 240px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; border-bottom: 1px solid var(--line); }
.eq-photo span { font-size: 15px; color: var(--muted); }
.eq-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.eq-body > p:last-child { color: var(--muted); font-size: 16px; }

/* Why RTTG (careers "differentiators") */
.glow {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(13, 13, 13, 0.94)),
    radial-gradient(circle at 15% 0%, rgba(226, 181, 60, 0.15), transparent 28%);
  position: relative; overflow: hidden;
}
.glow::after {
  content: ""; position: absolute; right: 4vw; top: 50%; width: min(420px, 40vw); height: 260px;
  transform: translateY(-50%); background: url("assets/rttg-logo.png") center / contain no-repeat;
  opacity: 0.06; pointer-events: none;
}
.why { flex-direction: row; flex-wrap: wrap; gap: 56px; position: relative; z-index: 1; }
.why-head { flex: 1 1 420px; min-width: 0; }
.why-facts {
  flex: 1.4 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; border-top: 1px solid var(--line-2);
}
.why-facts li { display: grid; grid-template-columns: 48px 1fr; gap: 6px 20px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.why-facts svg { grid-row: span 2; width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(226, 181, 60, 0.34)); }
.why-facts p { color: rgba(255, 255, 255, 0.78); font-size: 16px; }

/* About: mission statement */
.mission {
  max-width: 980px; padding: 6px 0 6px 28px; border-left: 4px solid var(--gold);
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.3; color: var(--text); text-wrap: pretty;
}

/* Leadership */
.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.leader { display: flex; flex-direction: column; gap: 8px; }
.leader-photo { aspect-ratio: 4 / 5; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.leader-photo span, .life-photo span { font-size: 15px; color: var(--muted); padding: 16px; text-align: center; }
.leader-title { font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.leader > p:last-child { color: var(--muted); font-size: 16px; }

/* Life at RTTG */
.life-copy { flex: 1 1 400px; min-width: 0; }
.life-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.life-grid > :first-child { grid-row: span 2; }
.life-grid > :last-child { grid-column: span 2; }
.life-photo { border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }

/* Industries */
.band {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(13, 13, 13, 0.95)),
    radial-gradient(circle at 78% 18%, rgba(226, 181, 60, 0.18), transparent 36%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band .section { gap: 40px; }
.industries {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line-2);
}
.industries > div { padding: 28px 24px; background: rgba(13, 13, 13, 0.96); }
.industries > div::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 18px; background: var(--gold); }
.industries h3 { margin-bottom: 10px; }
.industries p { color: var(--muted); font-size: 16px; }

/* Agencies we've helped (assets/agencies/agencies.json; a tile grows to fit a badge when it has one) */
.light .muted-lg { color: var(--cream-muted); }
.agencies {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 16px;
}
.agencies li {
  background: var(--cream-card); border: 1px solid rgba(156, 126, 42, 0.18); border-top: 3px solid var(--gold);
  padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
}
.agencies img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 8px; }
.agency-name { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--cream-text); }
.agency-type { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-accent); }
.agencies .agency-badge, .agencies .agency-empty { min-height: 190px; }
.agencies .agency-empty { background: rgba(255, 255, 255, 0.5); border-style: dashed; border-top-style: solid; }
.agency-empty span { font-size: 13px; font-weight: 700; color: var(--cream-muted); }
.agencies-more { display: none; align-self: flex-start; background: transparent; color: var(--cream-text); border-color: var(--cream-accent); }
.agencies-more:hover { background: rgba(122, 97, 24, 0.08); }

/* Contact */
.contact-lines { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; color: var(--muted); font-size: 16px; }
.contact-lines a { color: var(--gold); }
.quote {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px;
  background: var(--surface); border: 1px solid rgba(226, 181, 60, 0.12); border-top: 3px solid var(--gold);
  padding: 32px; align-content: start;
}
.quote label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.quote .full { grid-column: 1 / -1; }
.quote input, .quote select, .quote textarea {
  font: inherit; font-size: 16px; font-weight: 400; letter-spacing: normal; text-transform: none;
  padding: 12px 14px; min-height: 48px; width: 100%;
  background: var(--black); color: var(--text); border: 1px solid var(--line-2); border-radius: 0;
}
.quote textarea { resize: vertical; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.quote [aria-invalid="true"] { border-color: #F08A8A; }
.quote .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 15px; color: var(--text-2); }
.form-status.ok { color: #7BD389; }
.form-status.err { color: #F08A8A; }
.form-status a { color: var(--gold); text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--black); }
.footer-row { padding-top: 40px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 44px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a, .footer-legal a { color: var(--muted); }
.footer-links a:hover, .footer-legal a:hover { color: var(--gold); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 32px; font-size: 13px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Plain text pages (privacy, accessibility) */
.doc { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); }
.doc h2 { font-size: 18px; letter-spacing: 0.1em; margin-top: 18px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc a { color: var(--gold); text-decoration: underline; }
.doc .updated { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Tablet and down: collapse nav into a menu */
@media (max-width: 1180px) {
  .steps, .coverage, .services, .ops-features { grid-template-columns: repeat(2, 1fr); }
  /* Stats banner: the two facts on one row, the three counters on the next */
  .stats-grid { grid-template-columns: repeat(6, 1fr); }
  .stats-grid > * { grid-column: span 2; }
  .stats-grid > :nth-child(-n+2) { grid-column: span 3; }
  .services > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .menu-btn { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 12px; border-top: 1px solid var(--line); margin-top: 6px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 14px; font-weight: 900; }
  .nav-links .btn { margin-top: 10px; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: 16px; }
  .steps, .coverage, .services, .ops-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > *, .stats-grid > :nth-child(-n+2) { grid-column: auto; }
  .life-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .life-grid > :first-child { grid-row: auto; grid-column: span 2; }
  .life-grid > :last-child { grid-column: span 2; }
  .nav { min-height: 72px; }
  .brand-logo { height: 48px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .page-head { padding-top: 48px; padding-bottom: 52px; gap: 18px; }
  .cta { padding-top: 56px; padding-bottom: 56px; }
  .cta .btn { width: 100%; }
  .mission { padding-left: 18px; }
  .lede { font-size: 17px; }
  .actions .btn { width: 100%; }
  .section-top { padding-bottom: 32px; gap: 40px; }
  .section-bottom { padding-top: 32px; }
  .two-col, .why { gap: 40px; }
  .steps li, .card, .svc, .eq-body, .quote, .ops-features li { padding: 24px; }
  .courses li { padding: 24px; }
  .eq-photo { height: 200px; }
  .agencies { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .agencies li { padding: 14px 10px; }
  .agencies .agency-badge, .agencies .agency-empty { min-height: 150px; }
  .agencies img { height: 90px; }
  .agency-name { font-size: 14px; }
  .agencies.is-collapsed li:nth-child(n+13) { display: none; }
  .agencies-more { display: inline-flex; }
  .form-foot .btn { width: 100%; }
  .glow::after { display: none; }
}
