/* ==========================================================================
   Nicola Holdings Group — Site Styles
   Palette (brand board): Charcoal #1A1A1A · Beige #D9C9B1 · Cream #F6F1EA
                          Gold #C9A96A · Stone #8A8A8A
   Derived tones are for accessibility/layering only (noted below).
   ========================================================================== */

:root {
  /* Brand palette */
  --charcoal: #1A1A1A;
  --beige: #D9C9B1;
  --cream: #F6F1EA;
  --gold: #C9A96A;
  --stone: #8A8A8A;

  /* Derived tones (tints/shades of the palette, used for contrast & depth) */
  --black: #0F0F0F;            /* deeper charcoal for hero/footer */
  --charcoal-2: #242322;       /* raised surfaces on dark */
  --paper: #EFE7DB;            /* between cream and beige, section alternation */
  --ink: #1A1A1A;
  --ink-muted: #58534C;        /* body-secondary text on light — passes WCAG AA */
  --on-dark: #F6F1EA;
  --on-dark-muted: #B9B2A8;    /* secondary text on dark — passes WCAG AA */
  --rule-light: rgba(26, 26, 26, 0.14);
  --rule-dark: rgba(217, 201, 177, 0.18);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section--cream :focus-visible, .section--paper :focus-visible, .site-header :focus-visible {
  outline-color: var(--charcoal);
}

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: .75rem 1.25rem; background: var(--charcoal); color: var(--cream);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Placeholders (unverified info) ----------
   Every unverified value is wrapped in .ph with a data-placeholder label.
   Search the HTML for data-placeholder to find everything that still needs Marina's input. */
.ph {
  font-style: italic;
  color: var(--ink-muted);
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
}
.section--dark .ph, .section--charcoal-band .ph, .credentials .ph, .ph--dark { color: var(--on-dark-muted); }

/* Certification preview tag — shown until SITE.WOSB_CERTIFIED is true in main.js
   (or when viewing with ?preview=final). Remove nothing else when certification is awarded. */
.cert-preview {
  display: inline-block; margin-left: .4rem; padding: .1rem .4rem; vertical-align: .1em;
  font-size: .5938rem; font-weight: 600; font-style: normal; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border: 1px dashed currentColor; border-radius: var(--radius);
}
.section--cream .cert-preview, .naics__meta .cert-preview { color: var(--ink-muted); }
.cert-final .cert-preview { display: none; }

/* Official SBA WOSB badge — hidden until certification is awarded (SITE.WOSB_CERTIFIED). */
.wosb-badge { display: none; height: auto; }
.cert-final .wosb-badge { display: block; }
.wosb-badge--panel { width: 84px; margin-top: .9rem; box-shadow: 0 0 0 1px var(--rule-light); }
.site-footer__brand { display: flex; align-items: center; gap: 2rem; }
.site-footer__brand .wosb-badge--footer { width: 78px; }
.contact__link { text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact__link:hover { color: var(--ink-muted); }
.contact__link--dark { color: var(--on-dark); }
.contact__link--dark:hover { color: var(--gold); }

/* Verified identifiers (UEI, CAGE) */
.data-id { font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .75rem; }
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--beige); }
.btn--dark { background: var(--charcoal); color: var(--cream); }
.btn--dark:hover { background: #333; }
.btn--ghost-light { border-color: rgba(246, 241, 234, .35); color: var(--cream); }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn__note {
  font-size: .625rem; letter-spacing: .12em; color: var(--beige);
  border-left: 1px solid rgba(217, 201, 177, .4); padding-left: .6rem;
}
.site-header .btn--sm { padding-inline: .9rem; letter-spacing: .12em; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.teaming > *, .gov > *, .naics > *, .split > *, .hero__inner > * { min-width: 0; }

.text-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 234, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule-light); box-shadow: 0 8px 30px -20px rgba(0,0,0,.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.brand { flex-shrink: 0; display: block; }
.brand__logo { height: 54px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav__list { display: flex; gap: clamp(.8rem, 1vw, 1.15rem); }
.primary-nav__list a {
  position: relative; display: inline-block; padding: .4rem 0;
  font-size: .7188rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.primary-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav__list a:hover::after,
.primary-nav__list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--rule-light); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 1.5px; margin-inline: auto; background: var(--charcoal);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1320px) {
  /* backdrop-filter would trap the fixed drawer inside the header */
  .site-header { backdrop-filter: none; background: var(--cream); }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 2rem var(--gutter) 3rem;
    background: var(--cream); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav__list { flex-direction: column; gap: 0; }
  .primary-nav__list li { border-bottom: 1px solid var(--rule-light); }
  .primary-nav__list a { display: block; padding: 1.05rem 0; font-size: .875rem; }
  .primary-nav__list a::after { display: none; }
  .primary-nav .btn { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .brand__logo { height: 40px; } }

/* ---------- Shared type ---------- */
.eyebrow, .section-index {
  font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow--light { color: var(--gold); }

.section-index { display: flex; align-items: center; gap: .9rem; color: var(--ink-muted); margin-bottom: 1.5rem; }
.section-index::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--gold); order: 1; }
.section-index span { order: 2; }
.section-index--light { color: var(--on-dark-muted); }

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.005em;
  max-width: 20ch; text-wrap: balance;
}
.section-intro { margin-top: 1.4rem; max-width: 62ch; color: var(--ink-muted); font-size: 1.0625rem; }
.section--dark .section-intro, .section--charcoal-band .section-intro { color: var(--on-dark-muted); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; }
.lead--light { color: var(--on-dark); }
.prose p + p { margin-top: 1.1rem; }
.prose p:not(.lead) { color: var(--ink-muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--charcoal-band { background: var(--black); color: var(--on-dark); }
/* architectural hairline at top of each section */
.section::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; height: 1px;
  background: var(--rule-light);
}
.section--dark::before, .section--charcoal-band::before { background: var(--rule-dark); }
.section--paper::before, #about::before { display: none; }

.section-head--wide { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(201,169,106,.10), transparent 70%),
    var(--black);
  color: var(--on-dark);
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem);
}
/* drafting grid */
.hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(217,201,177,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217,201,177,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero__title {
  margin-top: 1.6rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--beige); font-style: italic; }
.hero__lede { margin-top: 1.8rem; max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-dark-muted); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; }
.hero__textlink { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); text-decoration: none; border-bottom: 1px solid rgba(217,201,177,.4); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.hero__textlink:hover { color: var(--gold); border-color: var(--gold); }

.hero__sheet {
  position: relative; border: 1px solid var(--rule-dark); padding: 2rem 2rem 1.5rem;
  background: rgba(36,35,34,.55);
}
.hero__sheet::before, .hero__sheet::after { /* corner registration marks */
  content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--gold); border-style: solid;
}
.hero__sheet::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hero__sheet::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.hero__elevation { color: var(--gold); width: 100%; opacity: .85; }
.hero__sheet-caption { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); }
.hero__sheet-label { display: block; font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.hero__disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.25rem; font-size: .875rem; color: var(--on-dark-muted); }
.hero__disciplines li { position: relative; padding-left: 1rem; }
.hero__disciplines li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--gold); }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__sheet { max-width: 560px; }
}
@media (max-width: 480px) {
  .hero__disciplines { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Credential bar ---------- */
.credentials { background: var(--charcoal); color: var(--on-dark); border-top: 1px solid var(--rule-dark); }
.credentials__list { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; }
.credentials__item { padding: 1.6rem 1.5rem; border-left: 1px solid var(--rule-dark); }
.credentials__item:first-child { border-left: 0; padding-left: 0; }
.credentials dt { font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.credentials dd { font-size: .9375rem; }
@media (max-width: 960px) {
  .credentials__list { grid-template-columns: repeat(2, 1fr); }
  .credentials__item, .credentials__item:first-child { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .credentials__item:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--rule-dark); }
  .credentials__list { justify-content: stretch; }
  .credentials__item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- About ---------- */
.about-facts { margin-top: 2.5rem; border-top: 1px solid var(--rule-light); }
.about-facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-light); }
.about-facts dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); padding-top: .15rem; }
@media (max-width: 520px) { .about-facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-light); border-left: 1px solid var(--rule-light);
}
.cap {
  position: relative; padding: 2.25rem 2rem 2.5rem;
  border-right: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light);
  background: transparent; transition: background-color .4s var(--ease);
}
.cap::before { /* gold rule that draws in on hover */
  content: ""; position: absolute; top: -1px; left: -1px; height: 2px; width: calc(100% + 2px);
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.cap:hover { background: var(--cream); }
.cap:hover::before { transform: scaleX(1); }
.cap__icon { width: 40px; height: 40px; fill: none; stroke: var(--charcoal); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.cap__num { position: absolute; top: 2.25rem; right: 2rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--stone); }
.cap__title { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
.cap__list { margin-top: 1.1rem; }
.cap__list li { position: relative; padding: .3rem 0 .3rem 1.1rem; font-size: .9375rem; color: var(--ink-muted); }
.cap__list li::before { content: ""; position: absolute; left: 0; top: 1em; width: 7px; height: 1px; background: var(--gold); }
@media (max-width: 960px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap { padding: 1.9rem 1.5rem 2.1rem; }
  .cap__num { right: 1.5rem; top: 1.9rem; }
}

/* Secondary capabilities (lighter weight than the core grid) */
.cap-secondary { margin-top: clamp(2.25rem, 4vw, 3rem); display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem 2.5rem; align-items: start; }
.cap-secondary__label { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); padding-top: 1.1rem; border-top: 1px solid var(--gold); }
.cap-secondary__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.cap-sm { padding-top: 1rem; border-top: 1px solid var(--rule-light); }
.cap-sm__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.cap-sm__text { margin-top: .4rem; font-size: .9375rem; color: var(--ink-muted); }
.cap-sm__link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.cap-sm__link:hover { color: var(--ink-muted); }
@media (max-width: 900px) { .cap-secondary { grid-template-columns: 1fr; gap: 1rem; } .cap-secondary__label { padding-top: .9rem; } }
@media (max-width: 620px) { .cap-secondary__grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); counter-reset: mk; }
.market { counter-increment: mk; padding: 1.75rem 0 2rem; border-top: 1px solid var(--rule-light); }
.market h3 { display: flex; align-items: baseline; gap: .8rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.market h3::before { content: counter(mk, decimal-leading-zero); font-family: var(--font-body); font-size: .75rem; letter-spacing: .12em; color: var(--stone); font-weight: 500; }
.market p { margin-top: .6rem; color: var(--ink-muted); font-size: .9688rem; }
@media (max-width: 900px) { .markets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .markets { grid-template-columns: 1fr; } }

/* ---------- Government ---------- */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.gov__heading { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding-bottom: 1rem; border-bottom: 1px solid var(--rule-dark); }
.gov__buyers li { display: grid; gap: .25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule-dark); }
.gov__buyers strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; }
.gov__buyers span { color: var(--on-dark-muted); font-size: .9375rem; }
.process li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule-dark); }
.process__step { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1.1; }
.process strong { display: block; font-weight: 500; letter-spacing: .02em; }
.process p { color: var(--on-dark-muted); font-size: .9375rem; margin-top: .2rem; }
@media (max-width: 860px) { .gov { grid-template-columns: 1fr; } }

/* ---------- Real estate credential ---------- */
/* Leadership / professional credentials (About section) */
.leader-cred { margin-top: 2rem; padding: 1.25rem 0 0 1.25rem; border-left: 2px solid var(--gold); }
.leader-cred__label { font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.leader-cred__name { margin-top: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.leader-cred__name span { margin-left: .5rem; font-family: var(--font-body); font-weight: 400; font-size: .875rem; color: var(--ink-muted); }
.leader-cred__item { margin-top: .3rem; font-size: .9375rem; }
.leader-cred__sep { color: var(--gold); margin-inline: .4rem; }
.leader-cred__note { margin-top: .6rem; font-size: .8125rem; line-height: 1.55; color: var(--ink-muted); max-width: 62ch; }
.disclosure { margin-top: 1.5rem; font-size: .875rem; line-height: 1.6; color: var(--ink-muted); max-width: 64ch; }
.disclosure--light { color: var(--on-dark-muted); border-left: 1px solid var(--gold); padding-left: 1rem; margin-top: 2rem; }

/* ---------- Veteran housing ---------- */
.split--reverse > .section-head { order: 0; }
.vet-list { margin-top: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-dark); }
.vet-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule-dark); font-family: var(--font-display); font-size: 1.3rem; }
.vet-list li:nth-child(odd) { padding-right: 1.5rem; }
.vet-list span { display: flex; gap: .8rem; align-items: baseline; }
.vet-list span::before { content: ""; flex: 0 0 6px; height: 6px; transform: rotate(45deg) translateY(-2px); border: 1px solid var(--gold); }
@media (max-width: 560px) { .vet-list { grid-template-columns: 1fr; } }

/* ---------- Differentiators ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); }
.diff { padding-top: 1.5rem; border-top: 1px solid var(--charcoal); }
.diff h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.diff p { margin-top: .65rem; color: var(--ink-muted); font-size: .9688rem; }
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- NAICS ---------- */
.naics { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.naics__table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.naics__table th {
  text-align: left; font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-muted); padding: 0 1rem .9rem 0; border-bottom: 1px solid var(--charcoal);
}
.naics__table td { padding: 1.05rem 1rem 1.05rem 0; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
.naics__table tbody tr { transition: background-color .25s; }
.naics__table tbody tr:hover { background: var(--paper); }
.naics__code { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.naics__table td:nth-child(3) { color: var(--ink-muted); }
.status {
  display: inline-block; padding: .2rem .55rem; font-size: .6563rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; border-radius: var(--radius);
  white-space: nowrap;
}
.status--target { color: var(--ink-muted); }
.naics__primary { display: inline-block; margin-left: .35rem; font-size: .6563rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.text-link--sm { margin-left: .5rem; font-size: .8125rem; }
.status--confirmed { color: var(--charcoal); background: var(--beige); border-color: var(--beige); }
.naics__meta { background: var(--paper); padding: 1.75rem; }
.naics__meta div + div { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-light); }
.naics__meta dt { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .35rem; }
.naics__meta dd { font-size: .9375rem; }
.naics__meta .status { margin-left: .35rem; }
@media (max-width: 960px) { .naics { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  /* stack the table into labeled rows on small screens */
  .naics__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .naics__table tr { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-light); }
  .naics__table td { padding: 0; border: 0; }
  .naics__table td:nth-child(1) { grid-row: span 2; }
  .naics__table td:nth-child(3) { font-size: .8125rem; }
  .naics__table td:nth-child(4) { grid-column: 2; }
}

/* ---------- Teaming ---------- */
.teaming { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.teaming__list li { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule-dark); }
.teaming__list li:first-child { border-top: 1px solid var(--rule-dark); }
.teaming__list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.teaming__list p { color: var(--on-dark-muted); font-size: .9375rem; }
.teaming__note { position: sticky; top: calc(var(--header-h) + 2rem); padding: 2.25rem; border: 1px solid var(--rule-dark); background: var(--charcoal-2); }
.teaming__note-label { font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.teaming__note p:not(.teaming__note-label) { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.teaming__note .btn { margin-top: 1.75rem; }
@media (max-width: 960px) {
  .teaming { grid-template-columns: 1fr; }
  .teaming__note { position: static; }
}
@media (max-width: 620px) { .teaming__list li { grid-template-columns: 1fr; gap: .35rem; } }

/* ---------- Contact ---------- */
.contact__details { margin-top: 2.5rem; border-top: 1px solid var(--rule-light); }
.contact__details div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-light); }
.contact__details dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); padding-top: .15rem; }

.contact-call { position: relative; padding: clamp(2rem, 4vw, 3rem); background: var(--charcoal); color: var(--on-dark); }
.contact-call::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.contact-call__label { font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.contact-call__number { display: inline-block; margin-top: .9rem; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--on-dark); text-decoration: none; letter-spacing: .01em; }
.contact-call__number:hover { color: var(--beige); }
.contact-call__text { margin-top: 1.25rem; max-width: 46ch; color: var(--on-dark-muted); }
.contact-call__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-form[hidden] { display: none; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; padding: clamp(1.75rem, 4vw, 3rem); background: #fff; border: 1px solid var(--rule-light); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .1rem; background: transparent;
  border: 0; border-bottom: 1px solid rgba(26,26,26,.35); border-radius: 0;
  font-size: 1rem; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--charcoal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--gold); }
.field [aria-invalid="true"] { border-bottom-color: #9B2C1F; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-size: .9375rem; color: var(--ink-muted); }
.form-status.is-error { color: #9B2C1F; }
@media (max-width: 620px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding-block: 4rem 2.5rem; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem 3rem; align-items: center; }
.site-footer__brand img { width: 260px; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.site-footer__nav a { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--on-dark); }
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--rule-dark); font-size: .8125rem; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__brand img { width: 220px; }
}

/* ---------- Reveal on scroll (only when JS is running & motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .nav-toggle, .contact-form, .hero__grid-lines { display: none !important; }
  .section, .hero, .credentials, .site-footer { background: #fff !important; color: #000 !important; padding-block: 1.5rem; }
}
