/* ==========================================================================
   Stella Bids
   Palette: navy ink for authority, federal blue for action, brass used
   sparingly as a seal/accent, cool paper tones instead of warm cream.
   Type: Public Sans (the U.S. Web Design System typeface) for body,
   Source Serif 4 for headings.
   ========================================================================== */

:root {
  --ink: #0E2240;
  --ink-2: #16305A;
  --blue: #1F4E8C;
  --blue-hover: #173E71;
  --brass: #A67C2E;
  --brass-text: #7F5E1F;
  --paper: #FFFFFF;
  --mist: #F2F4F7;
  --slate: #3B4658;
  --muted: #5B6778;
  --line: #D6DCE4;
  --ok: #1D6B4A;
  --no: #9B2C2C;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1.25 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  padding-block: 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink); color: #C9D3E3; font-size: .85rem; }
.utility__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.utility p { margin: 0; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility__contact { display: flex; gap: 20px; }
@media (max-width: 760px) {
  .utility__row > p:first-child { display: none; }
  .utility__row { justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 28px; height: 28px; color: var(--ink); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand--light, .brand--light:hover, .brand--light .brand__mark { color: #fff; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--blue); text-decoration: underline; }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle__bar { display: block; height: 2px; background: var(--ink); transition: transform 200ms var(--ease-out); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  background:
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  overflow: hidden;
}
/* faint column rule: nod to classical federal architecture without an image */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(14,34,64,.035) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: .45em; }
.hero__lede { font-size: 1.2rem; max-width: 58ch; color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__assurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .97rem; color: var(--muted); }
.hero__assurances li { position: relative; padding-left: 26px; }
.hero__assurances li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* The award record visual */
.record {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 24px 18px;
  box-shadow: 0 1px 0 rgba(14,34,64,.04), 0 24px 48px -24px rgba(14,34,64,.28);
}
.record__head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.record__seal {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--brass);
  background: radial-gradient(circle, #fff 0 38%, var(--brass) 39% 44%, #fff 45%);
}
.record__kicker { margin: 0; font-size: .8rem; font-weight: 600; color: var(--brass-text); }
.record__title { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.record__rows { margin: 0; }
.record__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.record__rows dt { color: var(--muted); }
.record__rows dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.record__value { font-family: var(--serif); font-size: 1.35rem; font-weight: 600 !important; }

.record__track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0; margin: 18px 0 12px; }
.record__track li { font-size: .72rem; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); text-align: left; }
.record__track .is-done { border-top-color: var(--ink); color: var(--ink); }
.record__track .is-now { border-top-color: var(--brass); color: var(--brass-text); font-weight: 600; }
.record__note { font-size: .78rem; color: var(--muted); margin: 0; }

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

/* Single orchestrated load moment: hero copy, then the record assembles. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .record { animation: rise 700ms var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; }
  .record { animation-delay: 220ms; }
  .record__track li { animation: fill 500ms var(--ease-out) both; }
  .record__track li:nth-child(1) { animation-delay: 600ms; }
  .record__track li:nth-child(2) { animation-delay: 680ms; }
  .record__track li:nth-child(3) { animation-delay: 760ms; }
  .record__track li:nth-child(4) { animation-delay: 840ms; }
  .record__track li:nth-child(5) { animation-delay: 920ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fill { from { opacity: .2; } }

/* ---------- Credentials strip ---------- */
.creds { border-block: 1px solid var(--line); background: #fff; }
.creds__row { display: flex; flex-wrap: wrap; }
.cred { flex: 1 1 180px; padding: 18px 20px; border-left: 1px solid var(--line); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred__label { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.cred__value { display: block; color: var(--ink); font-weight: 500; font-size: .95rem; }
@media (max-width: 760px) {
  .cred { flex-basis: 50%; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--mist); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--mist); }
.section--ink { background: var(--ink); color: #C9D3E3; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* Who we serve */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.path { padding: 28px 28px 8px 0; }
.path + .path { padding-left: 28px; border-left: 1px solid var(--line); }
.path__fit { font-size: .92rem; color: var(--brass-text); font-weight: 600; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 24px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Services */
.svc-group { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.svc-group:last-child { border-bottom: 1px solid var(--line); }
.svc-group__label h3 { font-size: 1.9rem; margin-bottom: .2em; }
.svc-group__label p { color: var(--muted); margin: 0; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.svc h4 { margin-bottom: .35em; }
.svc p { margin: 0; font-size: .98rem; }
@media (max-width: 860px) {
  .svc-group { grid-template-columns: 1fr; gap: 20px; }
  .svc-list { grid-template-columns: 1fr; }
}

/* Process */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { counter-increment: step; position: relative; padding: 56px 20px 0 0; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem;
}
.step::after { content: ""; position: absolute; top: 18px; left: 44px; right: 8px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step__time { display: block; font-size: .85rem; font-weight: 600; color: var(--brass-text); margin-bottom: 6px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .95rem; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 32px 56px; }
  .step::after { top: 44px; left: 17px; right: auto; bottom: 8px; width: 1px; height: auto; }
  .step:last-child { padding-bottom: 0; }
}

/* Confidentiality */
.confid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.confid__intro p { font-size: 1.1rem; color: var(--muted); }
.confid__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 2px solid var(--ink); }
.confid__list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.confid__list dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.confid__list dd { margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .confid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .confid__list { grid-template-columns: 1fr; } }

/* Commitments */
.commit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.commit__intro p { font-size: 1.1rem; }
.commit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.commit__cols h3 { font-family: var(--sans); font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid rgba(255,255,255,.08); color: #E3E9F2; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 7px;
  border-left: 2px solid #7BC4A0; border-bottom: 2px solid #7BC4A0; transform: rotate(-45deg);
}
.crosses li::before, .crosses li::after {
  content: ""; position: absolute; left: 2px; top: 1.3em; width: 14px; height: 2px; background: #E59A9A;
}
.crosses li::before { transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .commit { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .commit__cols { grid-template-columns: 1fr; } }

/* Pricing */
.feature-offer {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 36px);
  background: var(--mist); border-radius: var(--radius); border-top: 4px solid var(--ink);
  margin-bottom: 40px;
}
.feature-offer h3 { font-size: 1.7rem; margin-bottom: .3em; }
.feature-offer p:last-child { margin: 0; max-width: 56ch; }
.feature-offer__founding { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--brass); font-size: .95rem; }
.feature-offer__tag { font-size: .85rem; font-weight: 600; color: var(--brass-text); margin-bottom: 6px; }
.feature-offer__price { text-align: right; }
.feature-offer__price .price__amt { font-size: 2.8rem; margin-bottom: 12px; line-height: 1; }
.price__amt { font-family: var(--serif); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .feature-offer { grid-template-columns: 1fr; }
  .feature-offer__price { text-align: left; }
}

.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.menu__group h3 { font-family: var(--sans); font-size: 1rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.menu dl { margin: 0; }
.menu dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu dt { color: var(--slate); }
.menu dd { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing__note { margin-top: 28px; color: var(--muted); font-size: .95rem; max-width: 70ch; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 960px; }
.about__photo {
  width: 220px; aspect-ratio: 4 / 5; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--serif); font-size: 2.6rem;
}
.about__copy p { font-size: 1.08rem; max-width: 62ch; }
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { width: 140px; font-size: 1.8rem; }
}
/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--ink);
  transition: transform 200ms var(--ease-out);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding-right: 44px; margin: -4px 0 22px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info > p { font-size: 1.1rem; }
.contact__list { margin: 32px 0 0; }
.contact__list > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list dt { font-weight: 600; color: var(--ink); }
.contact__list dd { margin: 0; }

.form { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); border-top: 4px solid var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #A9B4C4; border-radius: 4px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,78,140,.2); }
.field [aria-invalid="true"] { border-color: var(--no); }
.form__fine { font-size: .85rem; color: var(--muted); }
.form__turnstile:not(:empty) { margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; font-weight: 500; min-height: 1.6em; }
.form__status.is-error { color: var(--no); }
.form__status.is-ok { color: var(--ok); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B7C3D6; padding: 64px 0 28px; font-size: .95rem; }
.footer a { color: #E3E9F2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand p { margin: 14px 0 20px; max-width: 32ch; }
.footer__h { font-family: var(--sans); font-size: .9rem; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__legal { padding-top: 24px; font-size: .85rem; }
.footer__legal p { margin: 0 0 12px; max-width: 90ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Simple content pages (privacy, capability) ---------- */
.doc { padding: clamp(48px, 7vw, 88px) 0; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2em; }
.doc .updated { color: var(--muted); }
