/* ==========================================================================
   AerBuhl, LLC — Business Aviation Parts Sourcing
   Landing page stylesheet
   --------------------------------------------------------------------------
   Design system: black / white / graphite with brushed-aluminium silver
   accents and a restrained deep aviation-blue accent for actions.
   No third-party CSS frameworks. No web fonts (system stack for performance
   and zero third-party requests). See docs/ for how to self-host a webfont.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Neutrals */
  --ink:            #0A0C0F;
  --graphite-900:   #101418;
  --graphite-800:   #171B1F;
  --graphite-700:   #22272C;
  --graphite-600:   #2E353B;
  --graphite-400:   #6B757D;
  --silver-500:     #9AA4AD;
  --silver-300:     #C3CAD1;
  --silver-200:     #DDE2E7;
  --silver-100:     #EDF0F3;
  --paper:          #F7F8FA;
  --white:          #FFFFFF;

  /* Restrained deep aviation blue — actions only */
  --blue:           #1D4E89;
  --blue-dark:      #143A69;
  --blue-light:     #2F6BA8;
  --blue-wash:      #EEF3F9;

  /* Semantic */
  --text:           #14181C;
  --text-muted:     #4C565E;
  --text-invert:    #F2F5F7;
  --text-invert-mut:#A7B1B9;
  --line:           #D9DEE4;
  --line-invert:    rgba(255, 255, 255, 0.14);
  --focus:          #2F6BA8;
  --danger:         #A8322A;

  /* Type */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Fluid type scale */
  --fs-display: clamp(2.25rem, 1.35rem + 3.6vw, 4.1rem);
  --fs-h2:      clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  --fs-h3:      clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
  --fs-lead:    clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;
  --sp-10: 7.5rem;

  --radius-sm: 3px;
  --radius:    5px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(10, 12, 15, 0.06), 0 2px 6px rgba(10, 12, 15, 0.05);
  --shadow-md: 0 4px 14px rgba(10, 12, 15, 0.08), 0 1px 3px rgba(10, 12, 15, 0.06);
  --shadow-lg: 0 18px 48px rgba(10, 12, 15, 0.14);

  --container: 1180px;
  --container-narrow: 860px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); letter-spacing: -0.028em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }

strong { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 7vw, var(--sp-10)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-8)); }

.section--dark {
  background: var(--graphite-900);
  color: var(--text-invert);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-invert-mut); }

.section--paper { background: var(--paper); }

.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-bottom: 0;
}
.section--dark .section-head p { color: var(--text-invert-mut); }

/* Technical eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section--dark .eyebrow { color: var(--silver-300); }

/* Blueprint grid overlay — subtle technical texture */
.blueprint {
  position: relative;
  isolation: isolate;
}
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.blueprint--light::before {
  background-image:
    linear-gradient(to right, rgba(10,12,15,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,12,15,0.045) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-bd: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  min-height: 46px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255,255,255,0.42);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--blue);
  --btn-bd: var(--blue);
}
.btn--outline:hover {
  background: var(--blue-wash);
  border-color: var(--blue-dark);
  color: var(--blue-dark);
  box-shadow: none;
}

.btn--silver {
  --btn-bg: var(--silver-100);
  --btn-fg: var(--ink);
  --btn-bd: var(--silver-200);
}
.btn--silver:hover {
  background: var(--white);
  border-color: var(--silver-300);
  color: var(--ink);
}

.btn--sm { padding: 0.6rem 1.1rem; min-height: 40px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
}
.link-arrow:hover { border-bottom-color: currentColor; gap: 0.6rem; }
.link-arrow::after { content: "\2192"; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(10, 12, 15, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 74px; height: auto; aspect-ratio: 1413 / 569; object-fit: contain; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  position: relative;
  display: block;
  padding: 0.4rem 0.15rem;
  color: var(--text);
  font-size: 0.9125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.primary-nav a:hover { color: var(--blue); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="true"] { color: var(--blue); }

.header-cta { margin-left: var(--sp-4); flex-shrink: 0; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars { position: relative; width: 19px; height: 2px; background: var(--ink); display: block; transition: background 0.16s var(--ease); }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}
.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 { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--graphite-900);
  color: var(--text-invert);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--graphite-900);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
  opacity: 0.90;
  filter: brightness(1.10) contrast(1.02) saturate(1.02);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  opacity: 0.62;
}
.hero__media video + picture { display: none; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__media video + picture { display: block; }
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.75rem, 8vw, 7rem) clamp(2.75rem, 5vw, 4.5rem);
  max-width: 780px;
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-5); }
.hero__lead {
  font-size: var(--fs-lead);
  color: #C6CFD7;
  max-width: 620px;
  margin-bottom: var(--sp-6);
}
.hero .btn-row { margin-bottom: var(--sp-7); }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-invert);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.trust-line span { display: inline-flex; align-items: center; gap: 0.9rem; }
.trust-line span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.3);
}

/* --------------------------------------------------------------------------
   7. Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: var(--sp-5);
  width: 34px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.card:hover {
  border-color: var(--silver-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 0; }

.card__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--silver-500);
  margin-bottom: var(--sp-3);
  display: block;
}

.card--dark {
  background: var(--graphite-800);
  border-color: rgba(255,255,255,0.09);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--text-invert-mut); }
.card--dark:hover { border-color: rgba(255,255,255,0.2); }

/* High-priority AOG sourcing callout */
.aog-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin: calc(var(--sp-2) * -1) 0 var(--sp-7);
  padding: var(--sp-6) var(--sp-7);
  border-left: 4px solid var(--blue);
  background: var(--graphite-900);
  color: var(--white);
}
.aog-callout__label {
  margin: 0 0 var(--sp-2);
  color: #9FC3E6;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.aog-callout h3 { margin-bottom: var(--sp-2); color: var(--white); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.aog-callout p:last-child { margin: 0; max-width: 760px; color: var(--text-invert-mut); }
.aog-callout .btn { flex-shrink: 0; white-space: nowrap; }

/* Product-capabilities overview */
.capabilities {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.capabilities__head { max-width: 760px; margin-bottom: var(--sp-6); }
.capabilities__head h3 { margin-bottom: var(--sp-2); }
.capabilities__head p { color: var(--text-muted); margin-bottom: 0; }
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.capability {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.capability img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.capability h4 { margin: var(--sp-5) var(--sp-5) var(--sp-2); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.capability p { margin: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; }
.capabilities__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.capabilities__cta p { margin: 0; color: var(--text-muted); max-width: 760px; }

/* Icon */
.icon-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-wash);
  color: var(--blue);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.card--dark .icon-badge { background: rgba(47,107,168,0.18); color: #8FB6DF; }
.icon-badge svg { width: 21px; height: 21px; }

/* --------------------------------------------------------------------------
   8. Notice / note strips
   -------------------------------------------------------------------------- */
.note {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--blue-wash);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
  color: #22303D;
}
.note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--blue); }
.note p { margin: 0; }
.note--dark {
  background: rgba(255,255,255,0.05);
  border-left-color: var(--blue-light);
  color: var(--text-invert-mut);
}
.note--dark svg { color: #8FB6DF; }

/* --------------------------------------------------------------------------
   9. Steps (How it works)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }

.step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue);
  line-height: 1.35;
  border-right: 1px solid var(--line);
  padding-right: var(--sp-5);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); margin-bottom: 0; font-size: 0.9375rem; max-width: 720px; }

/* --------------------------------------------------------------------------
   10. Quality bullets
   -------------------------------------------------------------------------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-6);
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-invert-mut);
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(143,182,223,0.55);
  background: rgba(47,107,168,0.2);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.62em;
  width: 5px;
  height: 8.5px;
  border-right: 1.8px solid #8FB6DF;
  border-bottom: 1.8px solid #8FB6DF;
  transform: rotate(40deg);
}
.section--dark .check-list { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.section--dark .check-list li strong { color: var(--white); }

/* Quality layout: copy left, image right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-invert);
  background: var(--graphite-800);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-invert-mut);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--line-invert);
}
.quality-media-grid { display: grid; gap: var(--sp-5); }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.section--dark .form-card,
.section--dark .form-card h3 { color: var(--text); }
.section--dark .form-card p { color: var(--text-muted); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-5);
}
.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
}
.field .req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 2px;
}
.field .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234C565E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--silver-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(168, 50, 42, 0.13);
}

.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 500;
  min-height: 0;
}
.field-error:empty { display: none; }

/* Radio / choice group */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.15rem 0 0;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.choice:hover { border-color: var(--silver-300); background: var(--paper); }
.choice input { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; }
.choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-wash);
  font-weight: 500;
}
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Consent */
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.consent label { font-weight: 400; font-size: 0.875rem; color: var(--text-muted); }

/* File upload */
.file-drop {
  position: relative;
  border: 1.5px dashed var(--silver-300);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--blue); background: var(--blue-wash); }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop__icon { color: var(--silver-500); margin: 0 auto var(--sp-2); width: 24px; height: 24px; }
.file-drop__label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.file-drop__hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.file-list {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 0.8125rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  margin: 0;
}
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.6875rem; flex-shrink: 0; }

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.form-foot .fine { font-size: 0.75rem; color: var(--text-muted); max-width: 460px; margin: 0; }

/* Status messages */
.form-status {
  display: none;
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid #BBD1E6;
  background: var(--blue-wash);
  color: #1E2C39;
  font-size: 0.9375rem;
}
.form-status.is-visible { display: block; }
.form-status h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); color: var(--blue-dark); }
.form-status p { margin: 0; }
.form-status--error { border-color: #E0B4B0; background: #FBF0EF; color: #6B211B; }
.form-status--error h3 { color: var(--danger); }

/* --------------------------------------------------------------------------
   12. About / stats strip
   -------------------------------------------------------------------------- */
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.fact__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.fact__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Final CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--graphite-900);
  color: var(--text-invert);
  overflow: hidden;
}
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,0.9), rgba(10,12,15,0.97));
}
.cta-band__inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin-inline: auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--text-invert-mut); font-size: var(--fs-lead); margin-bottom: var(--sp-6); }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-invert-mut);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7) var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .brand { color: var(--white); }
.site-footer .brand__sub { color: var(--text-invert-mut); }
.site-footer .brand__mark { filter: invert(1); }
.footer-about { margin-top: var(--sp-4); max-width: 330px; font-size: 0.8125rem; line-height: 1.6; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--text-invert-mut); text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col address { font-style: normal; line-height: 1.7; }

.footer-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-300);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
}
.footer-launch::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(47,107,168,0.25);
}

.footer-disclaimer {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-left: 2px solid rgba(255,255,255,0.18);
  font-size: 0.75rem;
  line-height: 1.65;
  color: #8B949C;
  max-width: 900px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-6);
  font-size: 0.75rem;
  color: #7C858D;
}
.footer-bottom nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom li { margin: 0; }
.footer-bottom a { color: #9AA4AD; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. Legal / policy pages
   -------------------------------------------------------------------------- */
.doc-page { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--sp-9); }
.doc-page .container { max-width: 780px; }
.doc-page h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-7);
}
.doc-page h2 { font-size: 1.35rem; margin-top: var(--sp-7); }
.doc-page h3 { font-size: 1.05rem; margin-top: var(--sp-5); }
.doc-page p, .doc-page li { font-size: 0.9375rem; color: #2A3138; }
.doc-page .legal-emphasis { padding: var(--sp-4) var(--sp-5); border-left: 3px solid var(--blue); background: var(--blue-wash); }
.doc-page ul { padding-left: 1.25rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--sp-5);
}
.back-link::before { content: "\2190"; }
.legal-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--silver-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-7);
}

/* --------------------------------------------------------------------------
   16. Reveal animation (subtle, respects reduced motion)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin: 0;
    background: var(--white);
    padding: var(--sp-6) var(--sp-5) var(--sp-8);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a {
    padding: 1rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
  }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-mobile-cta {
    margin-top: var(--sp-6);
    border-bottom: 0;
  }
  .primary-nav .nav-mobile-cta .btn { width: 100%; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .about-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 961px) {
  .nav-mobile-cta { display: none; }
}
@media (min-width: 761px) {
  .hero { min-height: clamp(640px, 56.25vw, 900px); }
}

@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .capabilities__grid { grid-template-columns: minmax(0, 1fr); }
  .capabilities__cta { align-items: stretch; flex-direction: column; }
  .capabilities__cta .btn { width: 100%; }
  .aog-callout { align-items: stretch; flex-direction: column; padding: var(--sp-5); }
  .aog-callout .btn { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__video { object-position: 28% 50%; }
  .hero__media img { object-position: 62% 50%; }
  .hero__media::after {
    background: transparent;
  }
  .hero__inner { max-width: none; }
  .step { grid-template-columns: 1fr; gap: var(--sp-2); }
  .step::before {
    border-right: 0;
    padding-right: 0;
    padding-bottom: var(--sp-2);
  }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .about-facts { grid-template-columns: 1fr; gap: var(--sp-4); }
  .btn-row .btn { width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .trust-line span:not(:last-child)::after { display: none; }
  .trust-line { gap: 0.35rem; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__mark { width: 60px; height: auto; }
}

/* --------------------------------------------------------------------------
   18. Print & motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band__media, .hero__media, .form-card { display: none; }
  body { color: #000; background: #fff; }
  .section--dark, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
