/* ==========================================================================
   SeaPort Resources LLC — site styles
   Palette sampled from the official logo. Edit tokens here, not in components.
   ========================================================================== */

:root {
  /* Brand primitives (from logo) */
  --navy-900: #061a38;
  --navy-800: #09264f;   /* wordmark navy */
  --navy-700: #164075;   /* compass face */
  --navy-500: #3d6aa8;
  --navy-100: #dfe7f2;
  --navy-50:  #f1f5fa;
  --red-700:  #a51b28;   /* "RESOURCES LLC" red */
  --red-100:  #f4e1e2;
  --gold-500: #e9ae26;   /* rule highlight */
  --gold-700: #b87d13;   /* rule shadow */
  --gold-800: #8a5c0a;   /* gold that passes 4.5:1 on light tints */
  --gold-100: #f7edd5;
  --sand-100: #efe9dd;

  /* Semantic roles */
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef2f7;
  --fg: #0d1b2e;
  --fg-muted: #4a5568;
  --border: #dde3eb;
  --primary: var(--navy-800);
  --on-primary: #ffffff;
  --accent: var(--red-700);
  --ring: var(--gold-500);

  /* Card tints (reference: blue / sage / peach → navy / gold / red) */
  --tint-navy: #dbe4f0;
  --tint-gold: #f3ead6;
  --tint-red:  #f2e0de;
  --tint-sand: #e9e6df;

  /* Type */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(9, 38, 79, .06), 0 1px 1px rgba(9, 38, 79, .04);
  --shadow-2: 0 10px 30px -12px rgba(9, 38, 79, .22);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { margin: 0; color: var(--navy-800); font-weight: 400; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); text-wrap: balance; }
h3, h4 { font-family: var(--font-serif); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s4); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .container { padding: 0 var(--s6); } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Placeholder marker: content that SeaPort must confirm or replace.
   Delete this rule (or the .ph classes) once real content is in. */
.ph {
  background: #fff3c4;
  box-shadow: inset 0 -2px 0 var(--gold-700);
  border-radius: 3px;
  padding: 0 .2em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 18px;
  font: 600 .9375rem/1.2 var(--font-sans);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-2); }
.btn-light { background: #fff; color: var(--navy-800); border-color: var(--border); box-shadow: var(--shadow-1); }
.btn-light:hover { color: var(--navy-800); border-color: var(--navy-500); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--border); }
.btn-ghost:hover { color: var(--navy-800); background: var(--navy-50); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: #f2c04b; color: var(--navy-900); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; color: var(--navy-800); text-decoration: none;
}
.link-arrow .ring {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1.5px solid currentColor; border-radius: 50%;
  transition: transform .2s var(--ease);
}
.link-arrow .ring svg { width: 13px; height: 13px; }
.link-arrow:hover { color: var(--red-700); }
.link-arrow:hover .ring { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 44px; } }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: var(--s1); }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--fg); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.primary-nav a:hover { background: var(--surface-2); color: var(--navy-800); }
.primary-nav a[aria-current="page"] { background: var(--navy-100); color: var(--navy-800); font-weight: 600; }
.header-actions { display: flex; gap: var(--s2); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--navy-800);
  cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .header-actions .btn-ghost { display: none; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    padding: var(--s3) var(--s4) var(--s5);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { min-height: 48px; width: 100%; font-size: 1rem; }
  .header-actions { order: 3; }
}
@media (max-width: 559px) {
  .header-actions { display: none; }
  .brand img { height: 34px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
@media (min-width: 1024px) { .section { padding: var(--s9) 0; } }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--s7); }
.section-head h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }
.section-head p { margin-top: var(--s3); color: var(--fg-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-700); margin-bottom: var(--s3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--gold-700), var(--gold-500)); }

/* ---------- Hero (home) ---------- */
.hero { padding: var(--s4) 0 var(--s5); }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 78% 55%, #ffffff 0%, rgba(255,255,255,0) 55%),
    linear-gradient(160deg, #e6edf7 0%, #cfdcee 55%, #bccde6 100%);
  padding: var(--s7) var(--s5);
  min-height: 520px;
  display: grid; align-items: center;
}
@media (min-width: 900px) {
  .hero-panel { padding: var(--s8) var(--s8); grid-template-columns: 1.05fr .95fr; min-height: 560px; }
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; }
.hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4rem);
  line-height: 1.04; text-transform: uppercase; letter-spacing: .01em;
}
.hero h1 .accent { color: var(--red-700); }
.hero-lead { margin-top: var(--s5); font-size: 1.0625rem; color: #26364d; max-width: 46ch; }
.hero-cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 300px; margin-top: var(--s6); }
@media (min-width: 900px) { .hero-art { margin-top: 0; min-height: 420px; } }
.hero-art .ripples { position: absolute; width: 150%; max-width: 760px; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.hero-art .bearings { position: absolute; width: 92%; max-width: 470px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-art .mark {
  position: relative; width: 58%; max-width: 300px;
  filter: drop-shadow(0 26px 30px rgba(9, 38, 79, .28));
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-coords {
  position: absolute; right: var(--s5); bottom: var(--s4); z-index: 2;
  font: 500 .75rem/1 var(--font-sans); letter-spacing: .12em; color: #3c5577;
}

/* Small page hero (inner pages) */
.page-hero { padding: var(--s4) 0 0; }
.page-hero .hero-panel { min-height: 0; padding: var(--s7) var(--s5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .page-hero .hero-panel { padding: var(--s8); grid-template-columns: 1.4fr .6fr; } }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); text-transform: none; }
.page-hero .hero-lead { margin-top: var(--s4); }
.page-hero .page-mark { display: none; justify-self: end; width: 170px; opacity: .95; filter: drop-shadow(0 18px 22px rgba(9,38,79,.22)); }
@media (min-width: 900px) { .page-hero .page-mark { display: block; } }
.breadcrumb { display: flex; gap: var(--s2); font-size: .875rem; color: #3c5577; margin-bottom: var(--s4); }
.breadcrumb a { color: inherit; }

/* ---------- Tinted audience cards (under hero) ---------- */
.tint-grid { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 768px) { .tint-grid { grid-template-columns: repeat(3, 1fr); } }
.tint-card {
  border-radius: var(--radius); padding: var(--s5);
  border: 1px solid rgba(9, 38, 79, .06);
}
.tint-card.navy { background: var(--tint-navy); }
.tint-card.gold { background: var(--tint-gold); }
.tint-card.red  { background: var(--tint-red); }
.tint-card.sand { background: var(--tint-sand); }
.tint-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.tint-card h3 { font-size: 1.375rem; }
.icon-badge {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-800); color: #fff;
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge.light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-1); }
.check-list li { display: flex; gap: var(--s2); align-items: flex-start; padding: 5px 0; font-size: .9375rem; color: #1f2e44; }
.check-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--navy-700); }
.check-list a { color: inherit; text-decoration: none; }
.check-list a:hover { color: var(--red-700); text-decoration: underline; }

/* ---------- Services mosaic (reference: "Manage benefits") ---------- */
.mosaic { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .mosaic { grid-template-columns: .9fr 2fr; } }
.mosaic-feature {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: var(--s5);
}
.mosaic-feature svg.chart { flex: 1; width: 100%; height: 100%; min-height: 200px; }
.mosaic-feature .sig { display: flex; align-items: center; gap: var(--s2); font-family: var(--font-serif); color: var(--navy-800); }
.mosaic-feature .sig img { width: 28px; height: 28px; }
.mosaic-cards { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .mosaic-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Resource cards (reference: "More Support & Resources") ---------- */
.res-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }
.res-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.res-card:hover { box-shadow: var(--shadow-2); border-color: #c8d3e2; transform: translateY(-2px); color: inherit; }
.res-card .res-body { padding: var(--s5); display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); }
.res-card .res-body .bullet { grid-row: span 2; width: 22px; height: 22px; margin-top: 4px; color: var(--navy-800); }
.res-card h3 { font-size: 1.3125rem; }
.res-card p { font-size: .9375rem; color: var(--fg-muted); }
.res-card .res-art { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); padding: var(--s4); }
.res-card .res-art svg { width: 100%; height: auto; }

/* ---------- Ready-to-award panel (reference: performance panel) ---------- */
.award-wrap { background: var(--surface); }
.award-panel {
  display: grid; gap: var(--s6); align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s6) var(--s5); box-shadow: var(--shadow-1);
  max-width: 980px; margin: 0 auto;
}
@media (min-width: 900px) { .award-panel { grid-template-columns: 1.1fr 1fr; padding: var(--s7); } }
.award-panel h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem); }
.award-panel p { margin-top: var(--s3); color: var(--fg-muted); }
.award-panel .btn { margin-top: var(--s5); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #fff; padding: var(--s4); }
.facts dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.facts dd { margin: 6px 0 0; font: 400 1.0625rem/1.3 var(--font-serif); color: var(--navy-800); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy-800); color: #dfe7f2;
  border-radius: var(--radius-lg); padding: var(--s7) var(--s5);
  display: grid; gap: var(--s5); align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.5fr auto; padding: var(--s8); } }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: 50%; width: 420px; aspect-ratio: 1;
  transform: translateY(-50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(233,174,38,.18) 0 1px, transparent 1px 28px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.cta-band p { margin-top: var(--s3); max-width: 56ch; }
.cta-band .actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta-band .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.cta-band .btn-light:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Services page detail ---------- */
.service-detail {
  display: grid; gap: var(--s5);
  padding: var(--s7) 0; border-top: 1px solid var(--border);
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service-detail { grid-template-columns: 1fr 1.2fr; gap: var(--s8); } }
.service-detail .num { font: 400 .875rem/1 var(--font-sans); letter-spacing: .14em; color: var(--gold-800); font-weight: 700; }
.service-detail h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-top: var(--s3); }
.service-detail .intro { margin-top: var(--s4); color: var(--fg-muted); }
.service-detail .tint-card { align-self: start; }
.two-col-list { display: grid; gap: 0 var(--s5); }
@media (min-width: 560px) { .two-col-list { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 400 2rem/1 var(--font-display); color: var(--gold-700); margin-bottom: var(--s4);
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: var(--s2); font-size: .9375rem; color: var(--fg-muted); }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .cap-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.table-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-card header { padding: var(--s5) var(--s5) var(--s3); }
.table-card h3 { font-size: 1.375rem; }
.table-card .table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 14px var(--s5); border-top: 1px solid var(--border); vertical-align: top; }
th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; background: var(--surface); }
td.code { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--navy-50); border: 1px solid var(--navy-100);
  font-size: .875rem; font-weight: 500; color: var(--navy-800);
}
.chip svg { width: 15px; height: 15px; }
.stack { display: grid; gap: var(--s4); }
.download-card {
  display: grid; gap: var(--s4); grid-template-columns: auto 1fr; align-items: center;
  background: var(--navy-800); color: #dfe7f2; border-radius: var(--radius); padding: var(--s5);
}
.download-card h3 { color: #fff; font-size: 1.25rem; }
.download-card p { font-size: .9375rem; }
.download-card .btn { grid-column: 1 / -1; justify-self: start; }
.download-card img { width: 56px; height: 56px; }

/* ---------- About ---------- */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.split h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }
.prose p + p { margin-top: var(--s4); }
.prose p { color: #2d3b50; }
.values { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value h3 { font-size: 1.25rem; margin-top: var(--s4); }
.value p { margin-top: var(--s2); font-size: .9375rem; color: var(--fg-muted); }
.team { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--gold-500); font: 400 1.375rem/1 var(--font-display);
  box-shadow: inset 0 0 0 3px var(--gold-700);
}
.person h3 { margin-top: var(--s4); font-size: 1.25rem; }
.person .role { font-size: .875rem; color: var(--red-700); font-weight: 600; margin-top: 2px; }
.person p { margin-top: var(--s3); font-size: .9375rem; color: var(--fg-muted); }
.map-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #e6edf7, #cfdcee); border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.map-card svg { width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow-1); }
@media (min-width: 768px) { .form-card { padding: var(--s7); } }
.form-card h2 { font-size: 2rem; }
.form-card > p { margin-top: var(--s2); color: var(--fg-muted); }
.form-grid { display: grid; gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--fg); }
.field .req { color: var(--red-700); }
.field .hint { font-size: .8125rem; color: var(--fg-muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-sans); color: var(--fg);
  background: #fff; border: 1px solid #c3ccd8; border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(233, 174, 38, .55);
}
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--red-700); }
.field .error { display: none; align-items: center; gap: 6px; margin-top: 6px; font-size: .875rem; color: var(--red-700); font-weight: 500; }
.field .error svg { width: 16px; height: 16px; flex: none; }
.field[data-invalid] .error { display: flex; }
.form-actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.form-actions .note { font-size: .8125rem; color: var(--fg-muted); }
.form-status { margin-top: var(--s4); padding: var(--s4); border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-success { display: block; background: #e5f3ea; color: #145a32; }
.form-status.is-error { display: block; background: var(--red-100); color: var(--red-700); }
.error-summary { display: none; margin-top: var(--s5); padding: var(--s4); border-radius: var(--radius-sm); border: 2px solid var(--red-700); background: #fdf3f3; }
.error-summary.is-visible { display: block; }
.error-summary h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--red-700); }
.error-summary ul { margin-top: var(--s2); padding-left: 1.1em; list-style: disc; }
.error-summary a { color: var(--red-700); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.contact-list li { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4) 0; border-top: 1px solid rgba(9,38,79,.1); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .icon-badge { width: 36px; height: 36px; }
.contact-list strong { display: block; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.contact-list a, .contact-list span { color: var(--navy-800); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6d8; margin-top: var(--s9); }
.footer-rule { height: 3px; background: linear-gradient(90deg, var(--gold-700), var(--gold-500) 50%, var(--gold-700)); }
.footer-main { display: grid; gap: var(--s6); padding: var(--s8) 0 var(--s7); }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .logo-tile { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius-sm); }
.footer-brand .logo-tile img { height: 40px; width: auto; }
.footer-brand p { margin-top: var(--s4); font-size: .9375rem; max-width: 34ch; }
.site-footer h2 { font: 700 .75rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: var(--s4); }
.site-footer ul li { padding: 5px 0; }
.site-footer a { color: #dfe7f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.site-footer .ph { background: rgba(233,174,38,.18); color: #f6e3b3; box-shadow: inset 0 -2px 0 var(--gold-500); }
.footer-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); margin: 0; font-size: .9375rem; }
.footer-meta dt { color: #8ea0b8; }
.footer-meta dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: var(--s5) 0; display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: .875rem; color: #8ea0b8; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer .footer-bottom { display: none; }
  .ph { background: none; box-shadow: none; }
}

/* NAICS grouping */
tr.group-row th {
  background: var(--navy-50); color: var(--navy-800);
  font: 700 .75rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  padding-top: 12px; padding-bottom: 12px;
}
.table-card h3 .count {
  display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; margin-left: 6px;
  border-radius: 999px; background: var(--navy-800); color: #fff;
  font: 600 .8125rem/1 var(--font-sans); vertical-align: middle;
}
@media (min-width: 900px) { .cap-grid > .stack:last-child { position: sticky; top: 96px; } }
