/* ============================================
   MIDGARD SCIENTIFIC — Design Tokens
   Blue accent sampled from the corporate logo.
   ============================================ */
:root {
  --ink: #0E141B;
  --ink-soft: #131C26;
  --steel: #1B2733;
  --steel-light: #2C3B4A;
  --brand: #005E9E;        /* logo blue — for light backgrounds */
  --brand-deep: #004B7F;
  --azure: #1E90D6;        /* interactive accent on dark */
  --azure-dim: #1578B4;
  --cyan: #4FD0E4;         /* eyebrow / trace secondary */
  --ash: #8FA0AE;
  --slate: #4B5A66;
  --fog: #E8EDF0;
  --line: #D8DEE3;
  --paper: #F6F8F9;
  --white: #ffffff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 82px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Base display sizes for headings used outside a .section-head */
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HEADER — light bar (the supplied logo has an
   opaque white background, so the chrome stays light)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }

@media (max-width: 860px) { .logo img { height: 38px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--white) !important;
  padding: 0.55rem 1.15rem;
  border-radius: 2px;
  padding-bottom: 0.55rem !important;
}
.nav-cta:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.35rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(14,20,27,0.35);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--azure); color: var(--ink); }
.btn-primary:hover { background: var(--cyan); transform: translateY(-1px); }

.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-deep); transform: translateY(-1px); }

.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

.btn-ghost-dark { border-color: var(--steel-light); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 380px at 78% 18%, rgba(0, 94, 158, 0.30), transparent 70%),
    radial-gradient(420px 320px at 8% 92%, rgba(79, 208, 228, 0.10), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 15ch;
}

.hero .lede {
  color: #B4C2CD;
  font-size: 1.08rem;
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
}
.hero-badge strong { color: var(--cyan); font-weight: 500; }

/* ---- C-scan signature panel ---- */
.cscan-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1.1rem 1.1rem 0.9rem;
}

.cscan-header,
.cscan-readout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ash);
  text-transform: uppercase;
}

.cscan-header { margin-bottom: 0.65rem; }

.cscan-header .rec { color: var(--cyan); }
.cscan-header .rec::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 6px;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

canvas#cscan {
  width: 100%;
  height: 230px;
  display: block;
  border-radius: 2px;
  background: #070B10;
}

.cscan-readout {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(255,255,255,0.14);
}

.cscan-readout .flag { color: var(--cyan); transition: color 0.2s ease; }
.cscan-readout .flag.hit { color: #FFB454; }

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at 85% 10%, rgba(0,94,158,0.32), transparent 70%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; }
.page-hero p { color: #B4C2CD; max-width: 62ch; font-size: 1.05rem; margin: 0; }

/* ============================================
   STATS BAND
   ============================================ */
.stats-band {
  background: var(--steel);
  color: var(--white);
  padding: 2.6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
@media (max-width: 460px) { .stats-grid { grid-template-columns: 1fr; } }

.stat .num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 500;
  line-height: 1.1;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.4rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 5rem 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.section-head .eyebrow { color: var(--brand); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); }
.section-head p { color: var(--slate); font-size: 1.02rem; margin-bottom: 0; }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-head p { color: var(--ash); }
.section-dark .eyebrow { color: var(--cyan); }

.section-fog { background: var(--fog); }

/* ============================================
   CAPABILITY LANES
   ============================================ */
.lane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 860px) { .lane-grid { grid-template-columns: 1fr; } }

.lane {
  background: var(--ink);
  padding: 2.2rem 2rem;
}

.lane svg { width: 34px; height: 34px; margin-bottom: 1rem; stroke: var(--azure); fill: none; }

.lane .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

.lane h3 { font-size: 1.25rem; margin: 0.6rem 0; color: var(--white); }
.lane p { color: var(--ash); font-size: 0.95rem; margin: 0 0 1rem; }

.lane a.lane-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure);
  text-decoration: none;
  border-bottom: 1px solid rgba(30,144,214,0.4);
}
.lane a.lane-link:hover { border-bottom-color: var(--azure); }

/* ============================================
   METHOD INDEX (home) — grouped by what it finds
   ============================================ */
.method-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) { .method-index { grid-template-columns: 1fr; } }

.index-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 3px;
  padding: 1.6rem 1.5rem 1.4rem;
}

.index-group h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.index-group p { font-size: 0.92rem; color: var(--slate); margin-bottom: 1.1rem; }

.codes { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.codes a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--steel);
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.3rem 0.65rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.codes a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.section-cta { margin-top: 2rem; }

/* ============================================
   METHOD ROWS (services page)
   ============================================ */
.method-list { display: grid; gap: 1.1rem; }

.method-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.75rem 1.9rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

@media (max-width: 700px) {
  .method-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 1.4rem; }
}

.method-row .code {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}

.method-row .full {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.5rem;
}

.method-row h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.method-row .method-body > p { color: var(--slate); font-size: 0.97rem; }

.method-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

@media (max-width: 560px) { .method-specs { grid-template-columns: 1fr; } }

.method-specs dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.method-specs dd { margin: 0; font-size: 0.9rem; color: var(--slate); }

/* ============================================
   LEVEL TABLE (services — Level I/II/III)
   ============================================ */
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) { .level-grid { grid-template-columns: 1fr; } }

.level-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 1.75rem 1.6rem;
}

.level-card .lv {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.level-card h3 { color: var(--white); font-size: 1.15rem; margin: 0.5rem 0 0.9rem; }

.level-card ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0.7rem;
}

.level-card li {
  color: var(--ash);
  font-size: 0.92rem;
  padding-left: 1.15rem;
  position: relative;
}

.level-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--azure);
  border-radius: 1px;
}

/* ============================================
   SERVICE COLUMNS (Level III consulting list)
   ============================================ */
.service-cols {
  columns: 3;
  column-gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 860px) { .service-cols { columns: 2; } }
@media (max-width: 540px) { .service-cols { columns: 1; } }

.service-cols li {
  break-inside: avoid;
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
}

.service-cols li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 7px; height: 1px;
  background: var(--brand);
}

/* ============================================
   INDUSTRIES
   ============================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.6rem 1.5rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.industry-card svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; margin-bottom: 0.9rem; }
.industry-card h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.industry-card p { font-size: 0.92rem; color: var(--slate); margin: 0 0 1rem; }

.industry-card .codes a { font-size: 0.72rem; padding: 0.22rem 0.5rem; }

/* Compact chip list for the long tail of sectors */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--fog);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  padding: 0.4rem 0.8rem;
}

/* ============================================
   FEATURES / VALUES
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.feature .mark {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.6rem;
}

.feature h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.94rem; color: var(--slate); margin: 0; }

.value-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.1rem;
}

.value-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) { .value-list li { grid-template-columns: 1fr; gap: 0.35rem; } }

.value-list .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  padding-top: 0.15rem;
}

.value-list p { margin: 0; color: var(--slate); }
.value-list strong { display: block; margin-bottom: 0.2rem; color: var(--ink); }

/* ============================================
   CREDENTIALS / STANDARDS
   ============================================ */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 860px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cred-grid { grid-template-columns: 1fr; } }

.cred {
  background: var(--ink);
  padding: 1.5rem 1.4rem;
}

.cred .std {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.4rem;
}

.cred p { color: var(--ash); font-size: 0.86rem; margin: 0; }

/* Veteran-owned callout */
.sdvosb {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--steel);
  border-left: 3px solid var(--azure);
  border-radius: 3px;
  padding: 1.75rem 1.9rem;
  color: var(--white);
}

@media (max-width: 600px) { .sdvosb { grid-template-columns: 1fr; gap: 1rem; } }

.sdvosb svg { width: 44px; height: 44px; stroke: var(--cyan); fill: none; }
.sdvosb h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.4rem; }
.sdvosb p { color: var(--ash); margin: 0; font-size: 0.95rem; }

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--steel);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: var(--ash); max-width: 52ch; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 3px;
  padding: 2rem 1.9rem;
}

.contact-card .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-card .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
  text-decoration: none;
  display: inline-block;
  color: var(--ink);
  word-break: break-word;
}

.contact-card .big:hover { color: var(--brand); }
.contact-card .sub { color: var(--slate); font-size: 0.94rem; margin: 0.65rem 0 0; }

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }

.contact-list .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0.35rem;
}

.contact-list p { margin: 0; color: var(--slate); font-size: 0.95rem; }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brand); }
.contact-list a:hover { color: var(--brand); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--ash);
  padding: 4.25rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Soft brand glow behind the call-to-action block */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 320px at 12% 0%, rgba(0, 94, 158, 0.28), transparent 72%);
  pointer-events: none;
}

.site-footer .wrap { position: relative; z-index: 1; }

.footer-lead {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Typographic wordmark — the supplied logo has an opaque white
   background, so it cannot sit on the dark footer. */
.footer-wordmark {
  display: inline-block;   /* not block — a full-width <a> makes the whole row a click target */
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 2rem;
}
.footer-wordmark span { color: var(--azure); }

.site-footer .eyebrow { color: var(--cyan); margin-bottom: 0.85rem; }

/* Email carries the footer now — the phone lives in the CTA band above,
   so repeating it here was the same number twice in one screen. */
.footer-email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.footer-email:hover { color: var(--cyan); }

.footer-note {
  margin: 1.9rem 0 0;
  max-width: 54ch;
  font-size: 0.92rem;
  color: var(--ash);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin-top: 2.1rem;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #5F6D79;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-bottom a { color: #7C8994; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom .sep { opacity: 0.5; margin: 0 0.4rem; }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal { max-width: 76ch; }

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
}

.legal h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}
.legal h2:first-of-type { margin-top: 0; }

.legal h3 { margin-top: 1.75rem; font-size: 1.02rem; }
.legal p { color: var(--slate); }

.legal ul {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1em;
}

.legal li { color: var(--slate); }
.legal li::marker { color: var(--brand); }

.legal a { color: var(--brand); }
.legal a:hover { color: var(--brand-deep); }

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
/* Gated on .js so the page is fully readable without
   scripting — no-JS visitors and crawlers never see a blank page. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
