/* ==========================================================================
   NovaArk Technologies — main stylesheet
   Structure: 1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Header/nav ·
   6 Buttons/links · 7 Heroes · 8 Content components · 9 Forms · 10 Footer ·
   11 Utilities · 12 Motion/print
   ========================================================================== */

/* 1. Fonts (self-hosted, Latin subset, variable weight 400–800 / width 100–125) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
/* Archivo's stylised ampersand reads like "Ɛ" at small sizes; use a neutral system ampersand instead */
@font-face {
  font-family: "Amp";
  src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("Liberation Sans"), local("Roboto");
  unicode-range: U+0026;
}
/* Metric-matched fallback reduces layout shift while the web font loads */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 21%;
}

/* 2. Design tokens */
:root {
  /* Brand (from logo) */
  --navy: #002352;
  --navy-deep: #001a3d;
  --navy-soft: #0a3466;
  --blue: #0066b8;
  --blue-hover: #00559a;
  --blue-on-dark: #8cc3f2;
  --graphite: #545454;
  --gold: #c9a227; /* ENIG pad accent — artwork only, never text */

  /* Neutrals */
  --ink: #14213a;
  --text: #2b3445;
  --muted: #545f70;
  --line: #dde3ea;
  --line-strong: #c3ccd8;
  --surface: #ffffff;
  --surface-alt: #f2f5f8;
  --surface-tint: #e8f0f8;

  /* Feedback */
  --success: #146c43;
  --success-bg: #e8f5ee;
  --error: #b42318;
  --error-bg: #fdecea;
  --warning-bg: #fff6db;
  --warning-line: #e0b84a;

  /* Type */
  --font: "Amp", "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h4: 1.0625rem;
  --fs-h3: clamp(1.15rem, 1.1rem + 0.25vw, 1.3rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.9vw, 3.6rem);
  --fs-display: clamp(2.2rem, 1.3rem + 3.9vw, 4.25rem);
  --wide: 118%;   /* extended width for headings, echoing the wordmark */

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 1200px;
  --measure: 66ch;

  /* Shape */
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-raise: 0 1px 2px rgba(0, 35, 82, .06), 0 8px 24px -12px rgba(0, 35, 82, .18);
  --header-h: 72px;
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--blue);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 var(--s-4); line-height: 1.15; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-stretch: var(--wide); letter-spacing: -0.015em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; }
h4 { font-size: var(--fs-h4); font-weight: 650; line-height: 1.35; }
p { margin: 0 0 var(--s-4); }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
strong { font-weight: 650; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
address { font-style: normal; }
::selection { background: #cfe3f6; color: var(--ink); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); color: #fff; }
.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;
}

/* 4. Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: calc(var(--section-y) * .65); }
.section:not(.section--alt) + .section:not(.section--alt) { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 0; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose > :first-child { margin-top: 0; }

.split { display: grid; gap: var(--s-6); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split__sticky { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* 5. Header & navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* No backdrop-filter here: it would become the containing block for the fixed mobile menu panel */
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(0, 35, 82, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--radius-sm); }
.brand img { width: 196px; height: auto; aspect-ratio: 4.37 / 1; }
@media (max-width: 380px) { .brand img { width: 168px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  color: var(--ink); font: 600 var(--fs-sm)/1 var(--font); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; overflow-y: auto; padding: var(--s-5) var(--gutter) var(--s-7);
  border-top: 1px solid var(--line);
}
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 600; font-stretch: 108%;
}
.site-nav__list a[aria-current="page"] { color: var(--blue); }
.site-nav__cta { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.site-nav__contact { margin-top: var(--s-5); color: var(--muted); font-size: var(--fs-sm); }
.site-nav__contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.header-phone { display: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: var(--s-6);
    position: static; padding: 0; border: 0; background: none; overflow: visible;
  }
  .site-nav__list { display: flex; gap: var(--s-1); }
  .site-nav__list a {
    position: relative; padding: var(--s-2) var(--s-3); border: 0;
    font-size: var(--fs-sm); font-stretch: 100%; color: var(--text); border-radius: var(--radius-sm);
  }
  .site-nav__list a:hover { color: var(--blue); }
  .site-nav__list a[aria-current="page"] { color: var(--navy); }
  .site-nav__list a[aria-current="page"]::after {
    content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; background: var(--blue);
  }
  .site-nav__cta { margin: 0; display: flex; align-items: center; gap: var(--s-4); }
  .site-nav__contact { display: none; }
  .header-phone {
    display: inline-flex; align-items: center; gap: var(--s-2);
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
  }
  .header-phone .icon { width: 18px; height: 18px; color: var(--blue); }
  .brand img { width: 214px; }
}

/* 6. Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0.75rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 650 var(--fs-sm)/1.2 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--on-dark { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--on-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 42px; padding: .55rem 1.05rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

.link-strong { font-weight: 650; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-strong:hover { border-bottom-width: 2px; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* 7. Heroes */
.hero {
  position: relative; color: #d6e2f0; background: var(--navy);
  overflow: hidden; isolation: isolate;
}
.hero::before { /* faint routing grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(140, 195, 242, .07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(140, 195, 242, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
}
.hero h1, .hero h2 { color: #fff; }
.hero a:not(.btn) { color: var(--blue-on-dark); }
.hero--home .container { display: grid; gap: var(--s-7); padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.hero--home h1 { font-size: var(--fs-display); max-width: 15ch; margin-bottom: var(--s-5); }
.hero__lead { font-size: var(--fs-lead); max-width: 36rem; color: #c8d6e6; margin-bottom: var(--s-6); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: #a9bdd4; }
.hero__meta li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__meta .icon { width: 18px; height: 18px; color: var(--blue-on-dark); }
.hero__art { margin: 0 calc(var(--gutter) * -1) 0 0; }
.hero__art img { width: 100%; max-width: 720px; filter: drop-shadow(0 30px 40px rgba(0, 10, 30, .45)); }
@media (min-width: 960px) {
  .hero--home .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero__art { margin-right: calc((100vw - min(100vw, var(--container) + var(--gutter) * 2)) / -2 - var(--s-7)); }
}
@media (max-width: 959px) {
  .hero__art { max-width: 560px; }
}

.page-hero { padding-block: clamp(2.5rem, 2rem + 3.5vw, 5rem); }
.page-hero h1 { max-width: 20ch; margin-bottom: var(--s-4); }
.page-hero .hero__lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero::after { /* trace motif, decorative */
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: min(46vw, 560px); z-index: -1;
  background: url("../img/trace-motif.svg") right center / contain no-repeat; opacity: .55;
}
@media (max-width: 759px) { .page-hero::after { opacity: .18; } }

.breadcrumb { font-size: var(--fs-xs); margin-bottom: var(--s-5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); color: #a9bdd4; }
.breadcrumb li + li::before { content: "/"; opacity: .6; }
.breadcrumb a { color: #d6e2f0 !important; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 8. Content components */

/* Service index: rows separated by rules, used on Home */
.service-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-2) var(--s-4);
  padding: var(--s-5) 0; color: inherit; text-decoration: none;
}
.service-index .icon { width: 32px; height: 32px; color: var(--blue); margin-top: 2px; }
.service-index h3 { margin: 0 0 var(--s-1); transition: color .15s; }
.service-index p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.service-index a:hover h3 { color: var(--blue); }
.service-index a:focus-visible { box-shadow: none; outline: 2px solid var(--blue); outline-offset: 4px; }

/* Feature list (icon + heading + text), no card chrome */
.features { display: grid; gap: var(--s-6) var(--s-7); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); }
.feature__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--blue); background: #fff;
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: var(--s-2); }
.feature p { margin: 0; color: var(--muted); }

/* Audience chips */
.audience { display: grid; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .audience { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.audience li { padding: var(--s-5); border-top: 3px solid var(--navy); background: #fff; }
.audience h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.audience p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Process stepper — a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-left: 56px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 2px solid var(--blue); border-radius: 50%; background: #fff;
  font-weight: 700; color: var(--navy); font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: calc(var(--s-5) * -1 + 4px); width: 2px; background: var(--line-strong); }
.steps h3 { font-size: var(--fs-h4); margin: 6px 0 var(--s-1); }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 960px) {
  .steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
  .steps--row > li { padding: 56px 0 0; }
  .steps--row > li:not(:last-child)::after { left: 44px; right: calc(var(--s-5) * -1 + 4px); top: 18px; bottom: auto; width: auto; height: 2px; }
}

/* Detailed process timeline (How It Works) */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.stage { counter-increment: stage; display: grid; gap: var(--s-4); padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.stage:first-child { border-top: 0; padding-top: 0; }
.stage__num {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 800; font-stretch: 125%; line-height: 1;
  color: var(--surface-tint); -webkit-text-stroke: 1.5px var(--blue); font-variant-numeric: tabular-nums;
}
.stage__num::before { content: counter(stage, decimal-leading-zero); }
.stage h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); margin-bottom: var(--s-3); }
.stage__intro { color: var(--muted); max-width: var(--measure); }
.stage__grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 760px) { .stage__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .stage { grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-6); } }
.stage__col { padding: var(--s-5); background: var(--surface-alt); border-radius: var(--radius); }
.stage__col h3 { font-size: var(--fs-sm); color: var(--navy); margin-bottom: var(--s-2); letter-spacing: .01em; }
.stage__col ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.stage__col li + li { margin-top: var(--s-1); }

/* Service detail blocks (Services page) */
.service-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.service-nav a {
  display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; background: #fff;
}
.service-nav a:hover { border-color: var(--blue); color: var(--blue); }
.service-block { display: grid; gap: var(--s-5); padding-block: var(--s-8); border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: var(--s-6); }
@media (min-width: 960px) { .service-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }
.service-block__head .icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: var(--s-4); }
.service-block__head h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.service-block__head p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); }
.checklist .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 4px; }
@media (min-width: 700px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.spec-note { font-size: var(--fs-sm); color: var(--muted); border-left: 3px solid var(--line-strong); padding-left: var(--s-4); margin: 0; }

/* File checklist (quote prep) */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.file-list li { background: #fff; padding: var(--s-4) var(--s-5); display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); }
.file-list .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.file-list strong { display: block; }
.file-list span { font-size: var(--fs-sm); color: var(--muted); }
.file-list .tag { font-size: var(--fs-xs); font-weight: 600; color: var(--navy); background: var(--surface-tint); padding: 1px 8px; border-radius: 999px; margin-left: var(--s-2); white-space: nowrap; }

/* Certifications table / stacked cards */
.cert-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cert-table caption { text-align: left; color: var(--muted); padding-bottom: var(--s-4); }
.cert-table th, .cert-table td { text-align: left; vertical-align: top; padding: var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); }
.cert-table thead th { font-size: var(--fs-xs); color: var(--muted); font-weight: 650; border-bottom: 2px solid var(--navy); padding-block: var(--s-3); }
.cert-table tbody th { width: 26%; color: var(--ink); font-size: var(--fs-base); font-weight: 650; }
.cert-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; white-space: nowrap; padding: 3px 10px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending { background: var(--warning-bg); color: #7a5a00; border: 1px dashed var(--warning-line); }
.status--held { background: var(--success-bg); color: var(--success); }
@media (max-width: 759px) {
  .cert-table thead { display: none; }
  .cert-table, .cert-table tbody, .cert-table tr, .cert-table th, .cert-table td { display: block; width: 100%; }
  .cert-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s-4); padding: var(--s-2) 0; background: #fff; }
  .cert-table th, .cert-table td { border: 0; padding: var(--s-2) var(--s-4); }
  .cert-table tbody th { width: 100%; }
  .cert-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 650; color: var(--muted); }
}

/* Pre-launch placeholder marker — REMOVE/REPLACE all before publishing */
.placeholder {
  background: var(--warning-bg); border: 1px dashed var(--warning-line); border-radius: var(--radius-sm);
  padding: 0 .35em; color: #5c4400; font-size: .95em;
}
.prelaunch-note {
  background: var(--warning-bg); border: 1px dashed var(--warning-line); border-radius: var(--radius);
  padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: #5c4400; margin-bottom: var(--s-6);
}
.prelaunch-note strong { color: #3f2f00; }

/* FAQ (native details/summary) */
.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; font-weight: 650; color: var(--ink); font-size: var(--fs-h4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:focus-visible { box-shadow: none; outline: 2px solid var(--blue); outline-offset: 2px; }
.faq .faq__body { padding: 0 0 var(--s-5); color: var(--muted); max-width: var(--measure); }
.faq .faq__body p:last-child { margin: 0; }

/* Panels & callouts */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.panel--raised { box-shadow: var(--shadow-raise); }
.panel h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.pullquote { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.15; border-left: 4px solid var(--blue); padding-left: var(--s-5); font-stretch: 110%; font-weight: 600; color: var(--navy); line-height: 1.3; max-width: 30ch; margin: 0; }

/* Location cards */
.locations { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .locations { grid-template-columns: 1fr 1fr; } }
.location { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.location__label { font-size: var(--fs-xs); font-weight: 650; color: var(--blue); margin: 0 0 var(--s-2); }
.location h3 { margin-bottom: var(--s-2); }
.location address { color: var(--text); margin-bottom: var(--s-3); }
.location a { font-size: var(--fs-sm); font-weight: 600; }

/* Contact methods */
.contact-methods { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4); }
.contact-methods li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.contact-methods .feature__icon { width: 44px; height: 44px; }
.contact-methods small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-methods a { font-weight: 650; color: var(--ink); text-decoration: none; font-size: 1.1rem; word-break: break-word; }
.contact-methods a:hover { color: var(--blue); }

/* CTA band */
.cta-band { background: var(--navy); color: #c8d6e6; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after {
  content: ""; position: absolute; right: -200px; top: 50%; transform: translateY(-50%); width: 520px; height: 420px; z-index: -1;
  background: url("../img/trace-motif.svg") center / contain no-repeat; opacity: .32;
}
.cta-band .container { padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } }
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { margin: 0; max-width: 40rem; }
.cta-band a:not(.btn) { color: var(--blue-on-dark); }

/* Tagline device */
.tagline { font-size: var(--fs-sm); font-weight: 600; color: var(--graphite); letter-spacing: .02em; }

/* 9. Forms */
.form { display: grid; gap: var(--s-5); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-weight: 700; color: var(--ink); font-size: var(--fs-h4); padding: 0; margin-bottom: var(--s-4); font-stretch: 108%; }
.form__group { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); } .form__row > .field { margin: 0; } }
.form__row { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .req { color: var(--error); margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); margin-left: 4px; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002352' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #8f9cad; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 184, .22); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-xs); font-weight: 600; margin: 0; display: none; }
.field__error:not(:empty) { display: block; }

.choice-group { display: grid; gap: var(--s-2); }
@media (min-width: 560px) { .choice-group--2 { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: var(--s-3); padding: .75rem .9rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-sm);
}
.choice:hover { border-color: #8f9cad; }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--surface-tint); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0, 102, 184, .3); }
.choice small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.choice--inline { border: 0; padding: 0; background: none !important; }

.dropzone {
  position: relative; display: grid; justify-items: center; gap: var(--s-2); text-align: center;
  padding: var(--s-6) var(--s-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-alt);
  transition: border-color .15s, background-color .15s;
}
.dropzone.is-dragover { border-color: var(--blue); background: var(--surface-tint); }
.dropzone .icon { width: 30px; height: 30px; color: var(--blue); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone:has(input:focus-visible) { box-shadow: var(--focus); }
.dropzone p { margin: 0; font-size: var(--fs-sm); }
.dropzone .hint { font-size: var(--fs-xs); color: var(--muted); }
.file-chosen { list-style: none; margin: var(--s-2) 0 0; padding: 0; font-size: var(--fs-sm); display: grid; gap: var(--s-1); }
.file-chosen li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-3); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-chosen span:last-child { color: var(--muted); white-space: nowrap; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: grid; gap: var(--s-4); }
.form__legal { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.form-status { border-radius: var(--radius); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); display: none; }
.form-status.is-error { display: block; background: var(--error-bg); color: var(--error); border: 1px solid #f3b8b2; }
.form-status.is-info { display: block; background: var(--surface-tint); color: var(--navy); }
.form-success { text-align: left; padding: var(--s-6); border: 1px solid #b7dfc8; background: var(--success-bg); border-radius: var(--radius-lg); }
.form-success h2, .form-success h3 { color: var(--success); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.form-success p { color: var(--text); }
.form-success:focus { outline: none; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-submitting .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 10. Footer */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.site-footer__main { display: grid; gap: var(--s-7); padding-block: var(--s-8) var(--s-7); }
@media (min-width: 720px) { .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .site-footer__main { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.site-footer__brand img { width: 220px; margin-bottom: var(--s-4); }
.site-footer__brand p { max-width: 30ch; }
.site-footer h2 { font-size: var(--fs-sm); font-stretch: 100%; color: var(--ink); margin-bottom: var(--s-4); letter-spacing: .01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer address { margin-bottom: var(--s-4); line-height: 1.55; }
.site-footer address strong { display: block; color: var(--ink); }
.site-footer__contact a { font-weight: 600; color: var(--ink); }
.site-footer__bar { background: var(--navy); color: #a9bdd4; font-size: var(--fs-xs); }
.site-footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-4); }
.site-footer__bar a { color: #d6e2f0; }
.site-footer__bar ul { display: flex; gap: var(--s-5); }

/* 11. Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-6 { margin-top: var(--s-6); }
.text-muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }

/* 12. Motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-nav, .cta-band, .site-footer__bar, .skip-link, .hero__art, form { display: none !important; }
  .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .hero h1 { color: #000 !important; }
  a { color: #000; }
}

/* Page-specific layout additions */
@media (min-width: 900px) { .split--quote { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 899px) { .split--quote > aside { order: 2; } }
.h3-like { font-size: var(--fs-h3); font-stretch: 100%; font-weight: 650; line-height: 1.3; margin: 0 0 var(--s-1); }
.service-index a:hover .h3-like { color: var(--blue); }
.panel h3 { margin-bottom: var(--s-3); }
.location a { display: inline-block; padding-block: 6px; }
