/* =========================================================================
   Advanced Four Solutions JV - Design System
   Mission-grade editorial aesthetic for federal IT contractor
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..900;1,8..60,300..900&family=Public+Sans:ital,wght@0,300..900;1,300..900&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- 1. Tokens --------------------------------------------------- */
:root {
  /* Brand colors (sampled from logo) */
  --c-ink: #0B1E33;          /* Deep navy - primary text & dark surfaces */
  --c-navy: #14365B;          /* Logo "ADVANCED" gray-navy */
  --c-federal: #004A87;       /* Logo "FOUR" blue - primary accent */
  --c-federal-deep: #003561;
  --c-mission: #7FBF2A;       /* Logo "SOLUTIONS JV" green */
  --c-mission-deep: #6AA31E;
  --c-signal: #F18C00;        /* Logo orange ring - rare accent */

  /* Neutrals */
  --c-slate: #2F3E52;
  --c-mist: #6B7889;
  --c-line: #D9DEE5;
  --c-line-warm: #DCD6C8;
  --c-bone: #FBFAF6;
  --c-paper: #F4F1EA;         /* Warm parchment */
  --c-paper-2: #ECE6D8;
  --c-white: #FFFFFF;

  /* Type scale (fluid clamp) */
  --fs-eyebrow: 0.78rem;
  --fs-meta: 0.86rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 0.95rem + 0.6vw, 1.375rem);
  --fs-h4: clamp(1.125rem, 0.95rem + 0.6vw, 1.375rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 5.5rem);
  --fs-display: clamp(3rem, 1.8rem + 5.6vw, 7rem);

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 10rem;

  /* Layout */
  --container: 78rem;        /* 1248px */
  --container-narrow: 62rem; /* 992px */
  --gutter: clamp(1.25rem, 2vw, 2.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 30, 51, 0.04), 0 1px 3px rgba(11, 30, 51, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 30, 51, 0.07), 0 2px 4px rgba(11, 30, 51, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(11, 30, 51, 0.14), 0 8px 16px -8px rgba(11, 30, 51, 0.08);

  /* Header height (overridden at narrow viewports) */
  --header-h: 104px;
}
@media (max-width: 880px) {
  :root { --header-h: 100px; }
}
@media (max-width: 600px) {
  :root { --header-h: 80px; }
}

/* ---------- 2. Reset & base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-slate);
  background: var(--c-paper);
  font-feature-settings: 'ss01', 'cv11';
  /* Subtle paper grain */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 54, 91, 0.025) 1px, transparent 0);
  background-size: 24px 24px;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--c-federal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-federal-deep); }

/* ---------- 3. Typography ---------------------------------------------- */
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mission-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--center::before { display: none; }
.eyebrow--orange { color: var(--c-signal); }
.eyebrow--blue { color: var(--c-federal); }
.eyebrow--on-dark { color: var(--c-signal); }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--c-ink);
  margin: 0 0 var(--s-4);
  font-variation-settings: 'opsz' 60;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }

h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: 'opsz' 60;
  color: var(--c-federal);
  font-weight: 400;
}

p { margin: 0 0 var(--s-4); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-slate);
  font-weight: 400;
}
.muted { color: var(--c-mist); }

/* ---------- 4. Layout primitives --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(4rem, 6vw, 7rem) 0;
}
.section--sm { padding: clamp(3rem, 4vw, 4.5rem) 0; }
.section--lg { padding: clamp(5rem, 8vw, 9rem) 0; }

.section--paper { background: var(--c-paper); }
.section--bone { background: var(--c-bone); }
.section--ink {
  background: var(--c-ink);
  color: #B7C5D6;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(0, 74, 135, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(127, 191, 42, 0.08), transparent 50%);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #FBFAF6; }
.section--ink h2 em, .section--ink h3 em { color: #8BB8E0; }

/* ---------- 5. Header & nav -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  padding: 18px 0;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(251, 250, 246, 0.95);
  padding: 14px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--s-6);
}
@media (max-width: 600px) {
  .site-header { padding: 14px 0; min-height: 80px; }
  .nav { min-height: 52px; }
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.nav__logo img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .nav__logo img { height: 52px; max-width: 220px; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--c-ink);
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-federal);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--c-federal); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--c-federal);
  color: var(--c-white);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav__cta:hover { background: var(--c-federal-deep); color: var(--c-white); transform: translateY(-1px); }
.nav__cta svg { width: 14px; height: 14px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- 6. Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  text-align: center;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--c-mission);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-mission-deep); color: var(--c-white); }

.btn--federal {
  background: var(--c-federal);
  color: var(--c-white);
}
.btn--federal:hover { background: var(--c-federal-deep); color: var(--c-white); }

.btn--ink {
  background: var(--c-ink);
  color: var(--c-bone);
}
.btn--ink:hover { background: var(--c-federal); color: var(--c-white); }

.btn--outline {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn--outline:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-bone); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.18); color: var(--c-white); }

.btn--lg { padding: 1.1rem 1.85rem; font-size: 1rem; }

/* ---------- 7. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-white);
  isolation: isolate;
}
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero__inner { padding-block: var(--s-5) var(--s-5); }
  .hero__eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .hero__eyebrow::before { width: 1rem; }
  .hero__title { font-size: clamp(1.75rem, 1.1rem + 3vw, 2.25rem); margin-bottom: 0.85rem; }
  .hero__lead { font-size: 0.95rem; line-height: 1.45; margin-bottom: 1rem; max-width: none; }
  .hero__actions { gap: 0.55rem; }
  .hero__actions .btn--lg { padding: 0.8rem 1.25rem; font-size: 0.9rem; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--c-ink);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(11, 30, 51, 0.92) 0%, rgba(11, 30, 51, 0.78) 30%, rgba(11, 30, 51, 0.5) 55%, rgba(11, 30, 51, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 30, 51, 0.35) 0%, rgba(11, 30, 51, 0.0) 30%, rgba(11, 30, 51, 0.5) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--s-7);
  width: 100%;
}
.hero__eyebrow {
  color: var(--c-signal);
  margin-bottom: var(--s-5);
}
.hero__eyebrow::before { background: var(--c-signal); }

.hero__title {
  color: var(--c-white);
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem);
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: var(--s-5);
  font-variation-settings: 'opsz' 60;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
@media (min-width: 880px) {
  .hero__title { max-width: 22ch; }
}
@media (min-width: 1180px) {
  .hero__title { max-width: 36ch; }
}
.hero__title em { color: #A8CCEC; font-variation-settings: 'opsz' 60; }
.hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }

.hero__lead {
  max-width: 56ch;
  color: rgba(251, 250, 246, 0.88);
  font-size: var(--fs-lead);
  margin-bottom: var(--s-6);
}
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero__badges {
  position: absolute;
  bottom: var(--s-7);
  right: var(--gutter);
  display: none;
  gap: var(--s-5);
  align-items: center;
  z-index: 2;
}
.hero__badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(11, 30, 51, 0.4);
}

/* Compact hero for inner pages */
.hero--compact {
  min-height: clamp(360px, 50vh, 520px);
}
.hero--compact .hero__inner { padding-block: var(--s-9) var(--s-7); }

/* ---------- 8. Mission band -------------------------------------------- */
.mission {
  text-align: center;
  position: relative;
}
.mission__quote {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 60;
  line-height: 1.25;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  max-width: 32ch;
  margin: 0 auto var(--s-5);
}
.mission__quote em {
  font-style: italic;
  color: var(--c-federal);
  font-variation-settings: 'opsz' 60;
}
.mission__attribution {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
}

/* ---------- 9. Capabilities grid --------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
.section-head > :last-child { text-align: right; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 4rem; }
  .section-head > :last-child { text-align: left; }
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cap-grid { grid-template-columns: 1fr; }
}
.cap {
  background: var(--c-bone);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  transition: background 0.3s ease;
}
.cap:hover { background: var(--c-white); }
.cap__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--c-mist);
}
.cap__title {
  font-family: 'Source Serif 4', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.2;
}
.cap__desc {
  color: var(--c-slate);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}
.cap__icon {
  width: 28px;
  height: 28px;
  color: var(--c-federal);
  margin-bottom: var(--s-2);
}

/* ---------- 10. Two-column split --------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--c-line);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__media--framed {
  border: 1px solid var(--c-line-warm);
  padding: 12px;
  background: var(--c-paper);
  border-radius: 12px;
}
.split__media--framed img { border-radius: 4px; }

/* ---------- 11. Partner cards ------------------------------------------ */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

.partner {
  background: var(--c-bone);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.partner__role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mission-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.partner__role::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-mission);
}
.partner--protege .partner__role { color: var(--c-federal); }
.partner--protege .partner__role::before { background: var(--c-federal); }

.partner__name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.partner__desc {
  color: var(--c-slate);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}
.partner__link {
  margin-top: auto;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-federal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
}
.partner__link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.partner__link:hover svg { transform: translate(2px, -2px); }

/* ---------- 12. Trust strip -------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-line-warm);
  border-bottom: 1px solid var(--c-line-warm);
}
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
}
.trust__value {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}

/* ---------- 13. CTA band ----------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background: var(--c-ink);
  color: var(--c-bone);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(127, 191, 42, 0.18), transparent 45%),
    radial-gradient(circle at 88% 50%, rgba(0, 74, 135, 0.22), transparent 50%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr; }
}
.cta-band h2 {
  color: var(--c-white);
  margin: 0;
  max-width: 18ch;
  font-variation-settings: 'opsz' 60;
}
.cta-band h2 em { color: #8BB8E0; }
.cta-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- 14. Footer ------------------------------------------------- */
.site-footer {
  background: #061321;
  color: #94A3B8;
  padding: var(--s-9) 0 var(--s-5);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-federal) 0%, var(--c-federal) 50%, var(--c-signal) 50%, var(--c-signal) 75%, var(--c-mission) 75%, var(--c-mission) 100%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo-link {
  display: inline-block;
  margin-bottom: var(--s-4);
}
.footer__logo-img {
  height: 70px;
  width: auto;
  max-width: 310px;
  display: block;
}
@media (max-width: 600px) {
  .footer__logo-img { height: 58px; max-width: 245px; }
}
.footer__tag {
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
}

.footer__heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-signal);
  margin: 0 0 var(--s-4);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__list a {
  color: #CBD5E1;
  font-size: 0.95rem;
}
.footer__list a:hover { color: var(--c-white); }

.footer__office {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94A3B8;
}
.footer__office strong { color: #E2E8F0; font-weight: 600; }
.footer__office + .footer__office { margin-top: var(--s-4); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: 0.82rem;
  color: #6B7889;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}
.footer__cred {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer__cred span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94A3B8;
}

/* ---------- 15. Forms -------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-4);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mist);
  font-weight: 500;
}
.field__label .req { color: var(--c-signal); margin-left: 2px; }

.field__input,
.field__textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-bone);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.field__input:focus,
.field__textarea:focus {
  border-color: var(--c-federal);
  background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(0, 74, 135, 0.12);
}
.field__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}
.form__submit { margin-top: var(--s-3); justify-self: start; }

.form__status {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-success { background: rgba(127, 191, 42, 0.12); color: var(--c-mission-deep); border: 1px solid rgba(127, 191, 42, 0.3); }
.form__status.is-error { background: rgba(241, 140, 0, 0.1); color: #B36A1F; border: 1px solid rgba(241, 140, 0, 0.3); }

/* ---------- 16. News empty state --------------------------------------- */
.empty {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
  padding: 0;
}
.empty__mark {
  width: 92px;
  height: 92px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(0, 74, 135, 0.1) 0%, transparent 70%);
  position: relative;
}
.empty__mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed var(--c-line);
  border-radius: 50%;
  animation: slow-spin 60s linear infinite;
}
.empty__mark svg { width: 36px; height: 36px; color: var(--c-federal); position: relative; z-index: 1; }
@keyframes slow-spin { to { transform: rotate(360deg); } }

.empty h2 { margin-bottom: var(--s-4); }
.empty p { color: var(--c-slate); font-size: var(--fs-lead); line-height: 1.55; margin-bottom: var(--s-5); }

/* ---------- 17. Contact layout ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.office-card {
  background: var(--c-bone);
  border: 1px solid var(--c-line-warm);
  padding: var(--s-5) var(--s-5);
  border-radius: 8px;
  position: relative;
}
.office-card + .office-card { margin-top: var(--s-4); }
.office-card__role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-signal);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.office-card__role::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.office-card__name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--c-ink);
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.office-card__address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-slate);
}
.office-card__contact {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.office-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--c-ink);
  font-weight: 500;
}
.office-card__contact a:hover { color: var(--c-federal); }
.office-card__contact svg { width: 16px; height: 16px; color: var(--c-federal); flex-shrink: 0; }

/* ---------- 18. Spec strip --------------------------------------------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-paper-2);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 760px) { .spec-strip { grid-template-columns: 1fr 1fr; } }
.spec {
  padding: var(--s-5) var(--s-4);
  border-right: 1px solid var(--c-line-warm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spec:last-child { border-right: 0; }
@media (max-width: 760px) { .spec:nth-child(2) { border-right: 0; } }

.spec__value {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.4rem);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 60;
}
.spec__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
}

/* ---------- 19. Page title block --------------------------------------- */
.page-head {
  position: relative;
  padding-block: var(--s-8) var(--s-7);
  background: var(--c-ink);
  color: var(--c-bone);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 340px;
}
.page-head--imaged {
  min-height: clamp(360px, 46vh, 480px);
}
.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-head__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 30, 51, 0.6) 0%, rgba(11, 30, 51, 0.4) 50%, rgba(11, 30, 51, 0.95) 100%);
}
.page-head__inner { position: relative; z-index: 1; }
.page-head h1 {
  color: var(--c-white);
  margin-bottom: var(--s-4);
  max-width: 18ch;
  font-variation-settings: 'opsz' 60;
}
.page-head h1 em { color: #8BB8E0; }
.page-head__lead {
  max-width: 56ch;
  color: rgba(251, 250, 246, 0.82);
  font-size: var(--fs-lead);
}
.page-head .eyebrow {
  color: var(--c-signal);
  margin-bottom: var(--s-4);
}
.page-head .eyebrow::before { background: var(--c-signal); }

/* ---------- 21. Anim ---------------------------------------------------- */
/* Only hide for animation when JS is confirmed active.
   Without JS or before observers fire, content stays visible. */
.js .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .fade-up.is-in { opacity: 1; transform: translateY(0); }
.fade-up--d1 { transition-delay: 0.08s; }
.fade-up--d2 { transition-delay: 0.16s; }
.fade-up--d3 { transition-delay: 0.24s; }
.fade-up--d4 { transition-delay: 0.32s; }
.fade-up--d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 22. Mobile menu ------------------------------------------- */
@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--c-paper);
    padding: var(--s-7) var(--gutter) var(--s-6);
    display: none;
    flex-direction: column;
    gap: var(--s-5);
    z-index: 60;
    overflow-y: auto;
    border-top: 1px solid var(--c-line-warm);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    width: 100%;
  }
  .nav__link {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-line-warm);
    font-variation-settings: 'opsz' 60;
  }
  .nav__link.is-active { color: var(--c-federal); }
  .nav__link::after { display: none; }
  .nav__cta { align-self: flex-start; margin-top: var(--s-5); }
  /* Animated burger -> X */
  .nav__toggle svg { transition: transform 0.3s var(--ease-out); }
  .nav__menu.is-open ~ .nav__toggle,
  body:has(.nav__menu.is-open) .nav__toggle svg { transform: rotate(90deg); }
}
@media (min-width: 881px) {
  .nav__menu { display: flex; align-items: center; gap: var(--s-7); }
}

/* ---------- 24. Map illustration -------------------------------------- */
.map-art {
  position: relative;
  background: linear-gradient(135deg, var(--c-ink) 0%, #0E2942 100%);
  border-radius: 8px;
  overflow: hidden;
  padding: var(--s-6);
  color: var(--c-bone);
}
.map-art__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-signal);
  margin-bottom: var(--s-4);
}
.map-art__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.map-art__loc {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  color: var(--c-white);
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.map-art__loc:last-child { border-bottom: 0; }
.map-art__loc span:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--c-mission);
  text-transform: uppercase;
  min-width: 4rem;
}
