/* ==========================================================================
   Lucavra Solutions LLC — site stylesheet
   Single source of truth. build.py copies this into site/assets/css/site.css.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts --
   Public Sans, self-hosted. No third-party request, and the CSP needs no
   allowance for an external font host. Files in assets/fonts/, SIL OFL 1.1.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --navy-900: #0a1b2e;
  --navy-800: #0e2340;
  --navy-700: #17314f;
  --navy-600: #24425f;

  --ink: #1d2732;
  --ink-soft: #54606e;
  --ink-faint: #6b7683;

  --line: #d9dfe6;
  --field-line: #7f8b99;
  --line-soft: #e8ecf1;
  --surface: #f4f6f9;
  --white: #ffffff;

  --steel: #2f618e;
  --steel-dark: #23507a;
  --steel-light: #9fc0de;
  --copper: #a2703c;
  --copper-text: #8a5c2c;

  --on-navy: #ffffff;
  --on-navy-soft: #b3c4d6;
  --on-navy-line: rgba(255, 255, 255, 0.16);

  --r: 4px;
  --r-lg: 6px;

  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);

  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* the header is sticky, so anchored targets need clearance */
[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--navy-800); font-weight: 700; }

h1 {
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.017em;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--steel-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

strong { font-weight: 600; color: var(--navy-800); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------- structure -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(40px, 5.5vw, 68px); padding-bottom: clamp(40px, 5.5vw, 68px); }
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--navy { background: var(--navy-800); color: var(--on-navy-soft); }
.section--navy h2,
.section--navy h3 { color: var(--on-navy); }
.section--navy p { color: var(--on-navy-soft); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--navy .lede { color: var(--on-navy-soft); }

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--steel-dark);
  margin: 0 0 0.85rem;
}
.label::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--copper);
  margin-bottom: 0.85rem;
}
.section--navy .label { color: var(--steel-light); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.section-head p { margin-bottom: 0; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7em 1.5em;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--steel-dark); color: #fff; border-color: var(--steel-dark); }
.btn--primary:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--steel); }
.btn--outline:hover { border-color: var(--navy-800); background: var(--white); color: var(--navy-800); }

.btn--on-navy { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--on-navy:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.btn--light { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--light:hover { background: var(--surface); border-color: var(--surface); color: var(--navy-800); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.btn-row--flush { margin-top: 0; }

/* ------------------------------------------------------- utility strip -- */

.utility {
  background: var(--navy-900);
  color: var(--on-navy-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.utility .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.utility a { color: var(--on-navy-soft); text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility .sep { width: 1px; height: 13px; background: var(--on-navy-line); }
.utility .push { margin-left: auto; }

/* Below 640px the strip keeps only what someone actually taps from a phone:
   the phone number and the general inbox, on one row. Location and the NAICS
   line are on the page itself and in the footer. */
@media (max-width: 640px) {
  .utility .container {
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: flex-start;
  }
  .utility-location,
  .utility-naics,
  .sep--before-phone { display: none; }
  .utility .push { margin-left: 0; }
  .utility-phone,
  .utility-email { white-space: nowrap; }
}

@media (max-width: 400px) {
  .utility .container { font-size: 0.78125rem; }
}

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  line-height: 1.15;
}
.brand__sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 44px;
  padding: 9px 13px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--navy-800); border-bottom-color: var(--line); }
.nav-link.is-current { color: var(--navy-800); font-weight: 600; border-bottom-color: var(--copper); }

.header-cta { margin-left: 8px; }

@media (max-width: 560px) {
  .brand__sub { display: none; }
  .site-header .container { min-height: 60px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 1rem; }
}

@media (max-width: 400px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px; min-width: 44px; justify-content: center; }
  .brand { gap: 9px; }
  .brand__name { font-size: 0.9375rem; }
}
.site-nav .nav-cta { display: none; }

@media (max-width: 1120px) {
  .site-header .container { flex-wrap: wrap; min-height: 66px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    padding-bottom: 16px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { margin: 0; }
  .nav-link {
    display: block;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 3px solid transparent;
    padding-left: 10px;
  }
  .nav-link.is-current { border-bottom-color: var(--line-soft); border-left-color: var(--copper); }
  .site-nav .nav-cta { display: block; }
  .site-nav .btn { margin-top: 14px; width: 100%; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  background: var(--navy-800);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 68px 68px, 68px 68px;
  color: var(--on-navy-soft);
  border-bottom: 3px solid var(--copper);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero h1 { color: #fff; margin-bottom: 0.55em; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-light);
  border-left: 3px solid var(--copper);
  padding-left: 12px;
  margin-bottom: 1.4rem;
}
.hero p { color: var(--on-navy-soft); font-size: 1.0625rem; max-width: 56ch; }

.glance {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--on-navy-line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.glance h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--on-navy-line);
}
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel-light);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.glance dd { margin: 0; font-size: 0.9375rem; color: #fff; line-height: 1.45; }
.glance dd a { color: #fff; }

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

/* --------------------------------------------------------- page header -- */

.page-head {
  background: var(--navy-800);
  color: var(--on-navy-soft);
  border-bottom: 3px solid var(--copper);
}
.page-head .container { padding-top: clamp(44px, 6vw, 78px); padding-bottom: clamp(44px, 6vw, 78px); }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head p { color: var(--on-navy-soft); max-width: 62ch; margin-bottom: 0; font-size: 1.0625rem; }
.page-head .label { color: var(--steel-light); }

/* --------------------------------------------------------------- grids -- */

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards -- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1rem; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0.3em;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 2px;
  background: var(--copper);
}

/* ------------------------------------------------------- process steps -- */

.steps { counter-reset: step; display: grid; gap: 0; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  counter-increment: step;
  padding: 26px clamp(16px, 2vw, 26px) 6px 0;
  border-top: 2px solid var(--navy-800);
  margin-right: clamp(16px, 2vw, 26px);
}
.step:last-child { margin-right: 0; padding-right: 0; }
.step__n {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--copper-text);
  margin-bottom: 10px;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .steps--4 { grid-template-columns: 1fr; }
  .step { margin-right: 0; padding-right: 0; }
}

/* --------------------------------------------------- lists and callouts -- */

.marker-list { list-style: none; margin: 0; padding: 0; }
.marker-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.6em;
  color: var(--ink-soft);
}
.marker-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--steel);
  border-radius: 1px;
}
.section--navy .marker-list li { color: var(--on-navy-soft); }
.section--navy .marker-list li::before { border-color: var(--steel-light); }

.check-list { list-style: none; margin: 0; padding: 0; column-gap: 40px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.55em;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  break-inside: avoid;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.36em;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: rotate(42deg);
}
@media (min-width: 760px) { .check-list--2 { column-count: 2; } }

.note {
  border-left: 3px solid var(--copper);
  background: var(--surface);
  padding: 18px 22px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.note strong { color: var(--navy-800); }
.section--surface .note,
.panel--surface .note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
}
.section--navy .note {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-navy-soft);
  border-left-color: var(--copper);
}
.section--navy .note strong { color: #fff; }

.pull {
  border-left: 3px solid var(--copper);
  padding-left: clamp(18px, 2.5vw, 28px);
  font-size: clamp(1.1875rem, 1rem + 1vw, 1.5rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
}
.panel--surface { background: var(--surface); }

/* --------------------------------------------------------- definitions -- */

.defs { margin: 0; display: grid; gap: 0; }
.defs > div {
  display: grid;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.defs > div:first-child { padding-top: 0; }
.defs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.defs dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-faint); }
.defs dd { margin: 0; font-size: 0.9375rem; color: var(--ink); }
@media (max-width: 560px) {
  .defs > div { grid-template-columns: 1fr; gap: 2px; }
}

/* -------------------------------------------------------------- tables -- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
caption { text-align: left; font-size: 0.875rem; color: var(--ink-faint); padding-bottom: 10px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: var(--surface);
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--navy-800); white-space: nowrap; }

.naics-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
}
.naics-primary .code { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.naics-primary .desc { font-size: 1rem; color: var(--on-navy-soft); }
.naics-primary .tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--steel-light);
  border-radius: 999px;
  padding: 4px 12px;
}
@media (max-width: 560px) { .naics-primary .tag { margin-left: 0; } }

/* ---------------------------------------------------------------- form -- */

.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.field .opt { font-weight: 400; color: var(--ink-faint); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: var(--r);
  min-height: 44px;
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--navy-600); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a8342b; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(47, 97, 142, 0.18);
}
::placeholder { color: var(--ink-faint); opacity: 1; }

/* .field label is more specific than .checkbox, so the checkbox label has to
   out-specify it or it inherits the bold navy of a required-field label. */
.field label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
}
.field label.checkbox input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--steel-dark); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 0.9375rem;
  border-left: 3px solid var(--steel);
  background: var(--surface);
  color: var(--ink);
}
.form-status[hidden] { display: none; }
.form-status--error { border-left-color: #a8342b; }

.form-legal { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 16px; }

/* -------------------------------------------------------------- footer -- */

.site-footer { background: var(--navy-900); color: var(--on-navy-soft); font-size: 0.9375rem; }
.site-footer .container { padding-top: clamp(44px, 6vw, 68px); padding-bottom: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer a { color: var(--on-navy-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand__name { font-size: 1.0625rem; font-weight: 700; color: #fff; margin: 0 0 10px; letter-spacing: -0.01em; }
.footer-brand ul li { color: var(--on-navy-soft); }

.footer-bottom {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--on-navy-line);
  padding-top: 22px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.8125rem;
  color: #8fa1b5;
}
.footer-bottom p { margin: 0; max-width: 74ch; }

/* --------------------------------------------------------------- misc -- */

.center-narrow { max-width: 62ch; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }
.mb-0 { margin-bottom: 0; }

.error-page { padding-top: clamp(70px, 12vw, 150px); padding-bottom: clamp(70px, 12vw, 150px); }

@media print {
  .site-header, .nav-toggle, .btn-row { display: none !important; }
  .utility { background: #fff !important; color: #000 !important; border-bottom: 1px solid #999; }
  .utility a { color: #000 !important; }
  .site-footer { background: #fff !important; color: #000 !important; }
  .site-footer a, .site-footer h2, .footer-brand__name, .footer-bottom { color: #000 !important; }
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(4) { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero, .page-head, .section--navy { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1, .section--navy h2, .section--navy h3 { color: #000 !important; }
  .hero p, .page-head p, .section--navy p { color: #222 !important; }
}

/* ------------------------------------------------- round-3 components -- */

.nav-phone { display: none; }
@media (max-width: 1120px) {
  .nav-phone { display: block; }
  .nav-phone a {
    display: block;
    padding: 12px 10px;
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
  }
}

address, .inline-address, .footer-address { font-style: normal; }
.footer-address { margin-top: 12px; line-height: 1.5; color: var(--on-navy-soft); }
.inline-address { line-height: 1.45; }

/* Visible restricted-information warning. Deliberately louder than a .note:
   this one has to be read before the submit button, not after the fact. */
.notice {
  margin-top: 2rem;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.notice strong { display: block; margin-bottom: 4px; color: var(--navy-800); }
.notice--warn { border-left-color: #a8342b; }

.field-count {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  min-height: 1em;
}
.field-count--low { color: #8a2f27; font-weight: 600; }

.form-status--ok { border-left-color: var(--steel); }
.form-status:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* ==========================================================================
   INTERACTION LAYER
   All of it is CSS + vanilla JS. No framework, no animation library, nothing
   loaded from a third party. Everything below degrades to a readable static
   page with JavaScript off and with motion disabled.
   ========================================================================== */

/* ------------------------------------------------------- scroll reveal -- */

/* Applied only BELOW the fold. Above-the-fold content is never hidden waiting
   on a deferred script, so there is no flash of blank hero. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------- hero motif -- */

.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }

.hero__motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.hero__motif .motif-line {
  stroke: var(--steel-light);
  stroke-width: 1;
  opacity: 0.28;
  /* Paths carry pathLength="1", so one unit is the whole line whatever its
     real geometry. A fixed dash length produced a segmented reveal instead. */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: motif-draw 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero__motif .motif-node {
  fill: var(--steel-light);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: motif-node 900ms ease-out forwards;
}
.hero__motif .motif-node--accent { fill: var(--copper); }

@keyframes motif-draw { to { stroke-dashoffset: 0; } }
@keyframes motif-node {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 0.75; transform: scale(1); }
}

.hero__copy { animation: hero-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero .glance { animation: hero-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 140ms both; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__motif .motif-line { stroke-dashoffset: 0; animation: none; }
  .hero__motif .motif-node { opacity: 0.75; animation: none; }
  .hero__copy, .hero .glance { animation: none; }
}

/* --------------------------------------------------------- trust strip -- */

.trust {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  list-style: none;
  margin: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
.trust li {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-navy-soft);
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--copper);
}

/* ------------------------------------------------- card microinteraction -- */

.card {
  position: relative;
  border-top-color: var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  height: 3px;
  width: 0;
  background: var(--steel);
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Focus states apply everywhere. The lift is gated behind a real pointer,
   because :hover can stick after a tap on touch screens. */
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(14, 35, 64, 0.55);
  border-color: #c6cfda;
}
.card:focus-within::before { width: calc(100% + 2px); }

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -18px rgba(14, 35, 64, 0.55);
    border-color: #c6cfda;
  }
  .card:hover::before { width: calc(100% + 2px); }
}

/* Card accents are decorative; the content never depends on hover. */
@media (prefers-reduced-motion: reduce) {
  .card, .card::before { transition: none; }
  .card::before { width: calc(100% + 2px); }
}

/* ------------------------------------------------------------ timeline -- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  counter-reset: tl;
}
/* The rail is a pseudo-element. An <ol> may only contain <li>, so a decorative
   <span> sitting inside the list was invalid content model. */
.timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.timeline.is-revealed::before { transform: scaleX(1); }

.timeline__step {
  counter-increment: tl;
  position: relative;
  margin: 0;
  padding-top: 46px;
}
.timeline__step::before {
  content: counter(tl, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--steel);
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.timeline__step:focus-within::before {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  transform: scale(1.06);
}

@media (hover: hover) and (pointer: fine) {
  .timeline__step:hover::before {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
    transform: scale(1.06);
  }
}
.timeline__step h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.timeline__step p { font-size: 0.9375rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__step { padding: 0 0 26px 52px; }
  .timeline__step:last-child { padding-bottom: 0; }
  .timeline__step::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--line);
  }
  .timeline__step:last-child::after { display: none; }
}

/* ------------------------------------------------------- coverage map -- */

.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } }

.map { width: 100%; height: auto; display: block; }
.map__land {
  fill: rgba(255, 255, 255, 0.035);
  stroke: var(--steel-light);
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0.55;
}
.map__link {
  stroke: var(--steel-light);
  stroke-width: 1.1;
  opacity: 0.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.is-revealed .map__link { animation: motif-draw 1.5s ease-out forwards; }
.map__node { fill: var(--steel-light); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-revealed .map__node { animation: motif-node 700ms ease-out forwards; }
.map__node--home { fill: var(--copper); }
.map__pulse { fill: none; stroke: var(--copper); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
/* Two cycles, then it stops. Nothing on this site moves forever. */
.is-revealed .map__pulse { animation: map-pulse 3.4s ease-out 2 1s; }

@keyframes map-pulse {
  0%   { r: 5;  opacity: 0.65; }
  70%  { r: 20; opacity: 0; }
  100% { r: 20; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .map__link { stroke-dashoffset: 0; animation: none !important; }
  .map__node { opacity: 0.75; animation: none !important; }
  .map__pulse { animation: none !important; }
}

.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 0.8125rem; color: var(--on-navy-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--steel-light); }
.map-legend i.is-home { background: var(--copper); }

/* --------------------------------------------------------- disclosure -- */

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  margin-bottom: 10px;
}
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > summary:hover { background: var(--surface); }
.disclosure > div { padding: 0 18px 16px 38px; font-size: 0.9375rem; color: var(--ink-soft); }
.disclosure > div p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- button + header polish -- */

.btn--primary, .btn--light { position: relative; }
.btn--primary { transition: background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(14, 35, 64, 0.7); }
  .btn--arrow:hover::after { transform: rotate(45deg) translate(2px, -2px); }
}

/* Chevron drawn from borders rather than a text glyph, so no screen reader
   announces a stray character. */
.btn--arrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 2px;
}

/* Header gains weight on scroll. Height is deliberately unchanged — altering
   it would shift every sticky offset and jump the page under the reader. */
.site-header { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.site-header.is-scrolled {
  box-shadow: 0 6px 20px -14px rgba(14, 35, 64, 0.5);
  border-bottom-color: #c6cfda;
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary, .btn--arrow::after, .site-header { transition: none; }
  .btn--primary:hover { transform: none; }
}

/* Animation delays live in CSS because a strict style-src blocks inline style
   attributes in markup. JS setting a custom property via CSSOM is unaffected. */
.hero__motif .motif-lines path:nth-child(1) { animation-delay: 150ms; }
.hero__motif .motif-lines path:nth-child(2) { animation-delay: 400ms; }
.hero__motif .motif-lines path:nth-child(3) { animation-delay: 650ms; }
.hero__motif .motif-lines path:nth-child(4) { animation-delay: 900ms; }
.hero__motif .motif-lines path:nth-child(5) { animation-delay: 1150ms; }
.hero__motif .motif-nodes circle:nth-child(n)   { animation-delay: 700ms; }
.hero__motif .motif-nodes circle:nth-child(2n)  { animation-delay: 950ms; }
.hero__motif .motif-nodes circle:nth-child(3n)  { animation-delay: 1200ms; }
.hero__motif .motif-nodes circle:nth-child(5n)  { animation-delay: 1450ms; }

.map__nodes circle:nth-child(2n)  { animation-delay: 200ms; }
.map__nodes circle:nth-child(3n)  { animation-delay: 400ms; }
.map__nodes circle:nth-child(5n)  { animation-delay: 600ms; }

/* -------------------------------------------------- copy-details control -- */

.panel__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.panel__tools:has(button[hidden]) { display: none; }
.btn--compact { min-height: 38px; padding: 0.45em 1em; font-size: 0.875rem; }
.copy-status { font-size: 0.8125rem; color: var(--steel-dark); }
