/* America First Staffing — site stylesheet
   Theme: the approved brand identity (Brand Identity Guidelines v1.0, 20 November 2026).
   Old Glory Blue and Old Glory Red on white; Inter throughout; the light lockup on a white header,
   the white reverse on navy. Red is the accent, used deliberately; blue dominates; white makes room.
   Motion only on state changes, 150–250 ms. Illustration is measured technical linework. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-Italic.ttf") format("truetype");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --navy: #002147;          /* Old Glory Blue: primary text, navigation, dark surfaces (16.05:1 on white) */
  --red: #8A1A2C;           /* Old Glory Red, a crimson for text, accents and, since 2026-11-20, the logo artwork itself (9.3:1 on white). */
  --white: #FFFFFF;         /* primary light surface; reverse artwork and type */
  --parchment-warm: #E5E0D7;/* optional warm secondary surface */
  --charcoal: #4E535C;      /* optional secondary text and technical linework */

  /* aliases kept so the component rules below read the same as before */
  --slate: var(--charcoal);
  --midnight: var(--navy);
  --parchment: var(--white);
  --blue: var(--red);       /* the accent on light grounds */
  --blue-light: var(--white); /* numerals and marks on dark grounds */

  --ink: var(--navy);
  --ink-inverse: var(--white);
  --text-secondary-dark: rgba(255, 255, 255, 0.8);
  --line: #C9CDD3;
  --line-soft: rgba(78, 83, 92, 0.25);
  --line-mid: rgba(127, 131, 140, 0.45);
  --line-dark: rgba(255, 255, 255, 0.2);
  --card-dark-border: rgba(255, 255, 255, 0.18);
  --surface-dark: rgba(255, 255, 255, 0.06);

  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --r-sm: 2px; --r-md: 4px; --r-lg: 8px;
  --shadow-card: 0 2px 8px rgba(0, 33, 71, 0.08);
  --shadow-card-hover: 0 4px 16px rgba(0, 33, 71, 0.14);
  --t-fast: 150ms ease;
  --t: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }

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

a { color: var(--navy); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast), text-decoration-color var(--t-fast); }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.section-dark :focus-visible, .hero :focus-visible, .pagehead :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0 0 1rem; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 18ch; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 0 0 0.75rem; }

p { margin: 0 0 1.1em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 60ch; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; max-width: 70ch; }
li { margin-bottom: 0.35em; }

/* overline / data label: Inter 500, tracked caps. Blue on light, parchment on dark. */
.label {
  display: block; font-family: var(--body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0; line-height: 1.4; color: var(--blue); margin-bottom: 0.75rem;
}
.label-copper { color: var(--blue); }
.mono { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.section-dark .label, .hero .label, .pagehead .label, .site-footer .label { color: var(--parchment); }

.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--navy); color: var(--white); padding: 0.5rem 0.75rem; z-index: 1000; font-size: 0.9375rem; border-radius: var(--r-md); }
.skip-link:focus { top: 1rem; }

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

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sheet { position: relative; }

.section { padding: clamp(3rem, 7vw, 6rem) 0; position: relative; }
.section + .section::before, .section-tight + .section::before, .section + .section-tight::before {
  content: ""; display: block; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line);
}
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; position: relative; }

.section-dark { background: var(--midnight); color: var(--parchment); padding: clamp(3rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.section-dark > .wrap { position: relative; z-index: 1; }
.section-dark a { color: var(--parchment); text-decoration-color: rgba(255,255,255,0.5); }
.section-dark a:hover { color: var(--white); text-decoration-color: currentColor; }
.section-dark h2, .section-dark h3 { color: var(--parchment); }
.section-dark .lede, .section-dark .muted { color: var(--text-secondary-dark); }
.section-dark hr { border-color: var(--line-dark); }

/* circuit-trace texture on dark sections */
.circuit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("/assets/img/circuit-trace.svg"); background-size: 240px 240px; opacity: 0.9;
}

/* numbered section header */
.sec { display: grid; grid-template-columns: 1fr; gap: 1.25rem 3rem; }
@media (min-width: 900px) { .sec { grid-template-columns: 170px minmax(0, 1fr); } }
.sec-num { display: flex; flex-direction: column; gap: 0.35rem; }
.sec-num .num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.sec-num .num::after { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--red); margin-top: 0.5rem; }
.section-dark .sec-num .num { color: var(--white); }
.section-dark .sec-num .num::after { background: var(--white); }
.sec-num .label { margin: 0; color: var(--navy); }
.section-dark .sec-num .label { color: var(--parchment); }
.sec-body { min-width: 0; }

.cols-2 { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
.cols-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.muted { color: var(--slate); }
.small { font-size: 0.9375rem; }

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

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); color: var(--navy); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; }
.wordmark .lockup { width: clamp(210px, 22vw, 280px); height: auto; display: block; }
.wordmark .emblem { width: 76px; height: auto; display: none; }
.wordmark-text { display: none; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 699px) { .wordmark .lockup { display: none; } .wordmark .emblem, .wordmark-text { display: block; } }
.wordmark:hover { color: var(--navy); }

/* brand line beside the mark: a tagline, not a heading. Drops under the mark on narrow screens, stays in the DOM below 375 px. */
.brand { display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 1rem; min-width: 0; padding: 0.6rem 0; }
.brand-line { margin: 0; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; letter-spacing: 0; color: var(--charcoal); white-space: nowrap; padding-left: 1rem; border-left: 1px solid var(--line); }
@media (max-width: 1299px) { .brand-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; } }

.nav { display: none; align-items: center; gap: 1.25rem; }
.nav a { font-size: 0.9375rem; font-weight: 500; color: var(--navy); text-decoration: none; white-space: nowrap; padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.nav a:hover { border-bottom-color: var(--red); color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav a.btn { padding: 0.7rem 1.1rem; border-bottom: 0; margin-left: 0.5rem; }
@media (min-width: 1100px) { .nav { display: flex; } .nav-toggle { display: none; } }

.nav-toggle {
  appearance: none; background: transparent; border: 2px solid var(--navy); color: var(--navy);
  font-family: var(--body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0;
  padding: 0.5rem 0.8rem; cursor: pointer; border-radius: var(--r-md); transition: background-color var(--t-fast), color var(--t-fast);
}
.nav-toggle:hover { background: var(--navy); color: var(--white); }

.nav-mobile { display: none; background: var(--white); border-top: 1px solid var(--line); }
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0 0 1.25rem; max-width: none; }
.nav-mobile li { margin: 0; }
.nav-mobile a { display: block; padding: 0.85rem var(--gutter); color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 500; }
.nav-mobile a[aria-current="page"] { color: var(--red); }
.nav-mobile a.btn { margin: 1.25rem var(--gutter) 0; display: inline-block; border-bottom: 0; font-size: 1rem; padding: 0.9rem 1.4rem; }
@media (min-width: 1100px) { .nav-mobile { display: none !important; } }

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

.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 0.9375rem; line-height: 1; letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem; border: 2px solid transparent; border-radius: var(--r-md); text-decoration: none; cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.btn-primary { background: var(--blue); color: var(--parchment); border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); text-decoration-color: transparent; }
.section-dark .btn-primary, .hero .btn-primary, .pagehead .btn-primary { background: var(--white); border-color: var(--white); color: var(--navy); }
.section-dark .btn-primary:hover, .hero .btn-primary:hover, .pagehead .btn-primary:hover { background: var(--red); border-color: var(--white); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); text-decoration-color: transparent; }
.section-dark .btn-secondary, .hero .btn-secondary { color: var(--parchment); border-color: var(--parchment); }
.section-dark .btn-secondary:hover, .hero .btn-secondary:hover { background: var(--parchment); color: var(--midnight); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 1.75rem; }
.link-arrow { font-weight: 600; }

/* ---------- hero (midnight, two column) ---------- */

.hero { background: var(--midnight); color: var(--parchment); padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--parchment); }
.hero .lede { color: var(--text-secondary-dark); margin-top: 1.25rem; }
.hero a:not(.btn) { color: var(--parchment); text-decoration-color: rgba(255,255,255,0.5); }
.hero a:not(.btn):hover { color: var(--white); text-decoration-color: currentColor; }
.hero-grid { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.star { display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.08em; margin-right: 0.4em; }
.star path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* spec card: charcoal on dark heroes, parchment card on light sections */
.spec { background: var(--surface-dark); color: var(--white); border: 1px solid var(--card-dark-border); border-radius: var(--r-md); padding: 1.5rem; }
.spec-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line-dark); padding-bottom: 0.75rem; margin-bottom: 0.25rem; }
.spec-head .label { margin: 0; color: var(--parchment); }
.spec-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.spec-list li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); margin: 0; font-size: 1rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .n { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--parchment); }
.spec-list .v { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; color: var(--white); text-align: right; font-variant-numeric: tabular-nums; }
.spec-foot { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line-dark); font-size: 0.9375rem; color: var(--text-secondary-dark); }
.spec a { color: var(--parchment); text-decoration-color: rgba(255,255,255,0.5); }
.spec a:hover { color: var(--white); text-decoration-color: currentColor; }
.section .spec { background: var(--white); color: var(--navy); border-color: var(--line); }
.section .spec .spec-head { border-bottom-color: var(--line); }
.section .spec .label, .section .spec .v, .section .spec .n { color: var(--navy); }
.section .spec li { border-bottom-color: var(--line-soft); }
.section .spec .spec-foot { color: var(--charcoal); border-top-color: var(--line); }

/* ---------- proof strip: charcoal band ---------- */

.proof { background: var(--navy); color: var(--white); border-top: 4px solid var(--red); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); }
@media (min-width: 800px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-item { padding: 1.3rem 1.25rem; background: var(--navy); }
.proof-item .label { margin-bottom: 0.35rem; color: var(--parchment); font-size: 0.8125rem; }
.proof-item .fact { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }

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

.card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0 0; min-width: 0; }
.card .num { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--blue); display: block; margin-bottom: 0.75rem; letter-spacing: 0; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1rem; }
.role-list { list-style: none; padding: 0; margin: 1rem 0 0; max-width: none; }
.role-list li { padding: 0.5rem 0 0.5rem 1.1rem; border-top: 1px solid var(--line-soft); margin: 0; font-size: 1rem; position: relative; }
.role-list li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.role-list li:last-child { border-bottom: 1px solid var(--line-soft); }

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

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--body); font-size: 0.8125rem; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--navy); }
.section-dark th { color: var(--parchment); }
.section-dark td { border-bottom-color: var(--line-dark); }

/* ---------- comparison table: the signature proof element ---------- */

.compare { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; }
.compare-head { padding: 1.25rem 0 1rem; border-bottom: 1px solid var(--line); }
.compare-head .label { margin-bottom: 0.35rem; }
.compare-head h3 { margin: 0; }
.compare .table-wrap { padding: 0; }
.compare-table { font-size: 0.9375rem; }
.compare-table th, .compare-table td { padding: 0.9rem 1rem 0.9rem 0; }
.compare-table thead th { border-bottom: 2px solid var(--navy); }
.compare-table thead th.us { color: var(--blue); }
.compare-table tbody th { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--navy); border-bottom: 1px solid var(--line-soft); width: 11rem; vertical-align: top; padding-top: 0.8rem; }
.compare-table td { color: var(--navy); }
.compare-table td.us { font-weight: 500; position: relative; padding-left: 1rem; }
.compare-table td.us::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 6px; background: var(--blue); transform: rotate(45deg); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-foot { padding: 1rem 0 1.25rem; border-top: 1px solid var(--line-soft); margin: 0; }
@media (max-width: 799px) { .compare-table tbody th { width: 7rem; font-size: 1rem; } .compare-table { min-width: 560px; } }

/* ---------- attestation sample (spec sheet, blue callout rule) ---------- */

.attest { background: var(--parchment); color: var(--slate); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-lg); padding: 0; max-width: 720px; box-shadow: var(--shadow-card); overflow: hidden; }
.attest-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--navy); color: var(--white); }
.attest-head strong { font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: block; }
.attest-head .label { margin: 0 0 0.25rem; color: var(--parchment); }
.attest-body { padding: 1.25rem 1.5rem; }
.attest-row { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 600px) { .attest-row { grid-template-columns: 200px 1fr; } }
.attest-row:last-child { border-bottom: 0; }
.attest-row .k { font-size: 0.8125rem; font-weight: 600; color: var(--slate); padding-top: 0.2rem; }
.attest-row .v { font-size: 1rem; }
.attest-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9375rem; color: var(--slate); }
.stamp { display: inline-block; border: 2px solid var(--white); color: var(--white); font-size: 0.8125rem; font-weight: 600; padding: 0.3rem 0.5rem; border-radius: var(--r-sm); align-self: start; }

/* ---------- diagram ---------- */

.diagram-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 1.25rem 0; }
.diagram-wrap svg { min-width: 1120px; width: 100%; }
@media (min-width: 1240px) { .diagram-wrap { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); } }
.diagram-caption { margin-top: 0.9rem; color: var(--slate); }

/* ---------- iconographic panels (replace photography) ---------- */

.panel {
  margin: 0; border: 1px solid var(--line); border-radius: 0; background: var(--parchment);
  background-image: url("/assets/img/dot-grid.svg"); background-size: 24px 24px;
  display: grid; grid-template-rows: 1fr auto; min-height: 260px; padding: 1.5rem;
}
.panel-art { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0 1.25rem; }
.panel-art svg { width: min(100%, 320px); height: auto; }
.panel figcaption { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); padding-top: 0.75rem; }
.ico { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ico .acc { stroke: var(--blue); }
.ico .gold { stroke: var(--navy); }
.ico .fill-gold { fill: var(--red); stroke: none; }
.ico .fill-red { fill: var(--blue); stroke: none; }
.ico .thin { stroke-width: 1.5; }
.ico text { font-family: var(--body); font-size: 11px; font-weight: 600; fill: var(--slate); stroke: none; }

/* ---------- forms ---------- */

.form { max-width: 640px; }
.field { margin-bottom: 1.25rem; }
.field label, .fieldset legend { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 1rem; }
.field .hint { display: block; font-size: 0.9375rem; color: var(--slate); margin-bottom: 0.45rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--slate); background: var(--parchment);
  border: 1px solid var(--slate); padding: 0.7rem 0.8rem; border-radius: var(--r-md); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%234E535C' stroke-width='2' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 0.8rem center;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--midnight); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.field .error { display: none; color: var(--blue); font-size: 0.9375rem; font-weight: 500; margin-top: 0.4rem; }
.field.has-error .error { display: block; }
.fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.fieldset legend { padding: 0; }
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; margin: 0; font-size: 1rem; }
.radio-row input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); margin: 0; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--slate); border-radius: var(--r-md); background: var(--parchment); display: none; font-size: 0.9375rem; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--blue); }
.form-status.is-ok { border-left-color: var(--navy); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--blue); }
.form .small { margin-top: 1rem; }

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

.site-footer { background: var(--midnight); color: var(--parchment); padding: 3.5rem 0 2rem; font-size: 0.9375rem; position: relative; overflow: hidden; }
.site-footer > .wrap { position: relative; z-index: 1; }
.site-footer a { color: var(--parchment); text-decoration-color: rgba(255,255,255,0.4); }
.site-footer a:hover { color: var(--white); text-decoration-color: currentColor; }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid p { max-width: 36ch; color: var(--text-secondary-dark); }
.site-footer .wordmark { margin-bottom: 1rem; }
.site-footer .wordmark .lockup { display: block; width: clamp(220px, 50vw, 340px); }
.site-footer .wordmark .emblem, .site-footer .wordmark-text { display: none; }
.footer-notices { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: grid; gap: 1.25rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-notices { grid-template-columns: 1fr 1fr; } }
.footer-notices p { color: var(--text-secondary-dark); font-size: 0.9375rem; max-width: 60ch; }
.footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; color: var(--text-secondary-dark); font-size: 0.8125rem; }
.footer-bottom a { color: var(--text-secondary-dark); }
.placeholder { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--slate); text-transform: none; }
.section-dark .placeholder, .site-footer .placeholder, .hero .placeholder { color: var(--text-secondary-dark); }

/* ---------- privacy choices bar ---------- */

.privacy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white); color: var(--navy); border-top: 3px solid var(--navy); padding: 0.9rem var(--gutter);
  display: none; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.9375rem; box-shadow: 0 -4px 16px rgba(27,30,37,0.12);
}
.privacy-bar.is-visible { display: flex; }
.privacy-bar p { margin: 0; max-width: 70ch; }
.privacy-bar .btn { padding: 0.6rem 1rem; font-size: 0.9375rem; }
.privacy-bar .btn-row { margin: 0; }

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

/* page header band: charcoal slate, like a report chapter header */
.pagehead { background: var(--midnight); color: var(--parchment); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.pagehead > .wrap { position: relative; z-index: 1; }
.pagehead h1 { color: var(--parchment); }
.pagehead .lede { margin-top: 1rem; color: var(--text-secondary-dark); }
.kv { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; margin: 0; }
@media (min-width: 600px) { .kv { grid-template-columns: 180px 1fr; } }
.kv dt { font-size: 0.8125rem; font-weight: 600; color: var(--slate); padding-top: 0.25rem; }
.kv dd { margin: 0 0 1rem; }
.section-dark .kv dt { color: var(--parchment); }
.check-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.check-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.85rem; padding: 0.9rem 0; border-top: 1px solid var(--line-soft); margin: 0; }
.check-list li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55rem; background: var(--red); transform: rotate(45deg); }
.section-dark .check-list li { border-top-color: var(--line-dark); }
.ethos-item { border-top: 1px solid var(--line-mid); padding-top: 1.25rem; }
.ethos-item h3 { margin-bottom: 0.5rem; }
.ethos-item p { color: var(--text-secondary-dark); font-size: 1rem; }
.tagline { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.01em; color: inherit; margin: 2.5rem 0 0; }
.tagline .star { width: 0.6em; height: 0.6em; margin-right: 0.35em; vertical-align: 0.05em; }
.footer-tagline { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-tagline .star { width: 0.6em; height: 0.6em; margin-right: 0.35em; vertical-align: 0.05em; }
.big-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--blue); line-height: 1; letter-spacing: -0.02em; }
.section-dark .big-num, .hero .big-num { color: var(--blue-light); }
.steps-ol { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 70ch; }
.steps-ol li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-soft); margin: 0; }
.steps-ol li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--blue); padding-top: 0.1rem; }
.steps-ol li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps-ol strong { display: block; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
