/* ==========================================================================
   APEX INSPECTION AUTHORITY — styles.css
   Doc ref: APEX-WEB-001 • Rev 01 • June 2026
   Design language: industrial luxury / controlled-document aesthetic.
   Tokens documented in STYLE-TOKENS.md — change them there first.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, WOFF2) --------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens ---------------------------------------------- */
:root {
  /* Colour */
  --ink-900: #1a1a1a;            /* primary dark background */
  --ink-950: #121212;            /* deepest bands / footer */
  --panel: #11151c;              /* navy-charcoal card panels */
  --panel-2: #171c25;            /* raised panel */
  --red: #cc1f1f;                /* Apex Red — rules, markers, CTAs */
  --red-hover: #e32b2b;
  --gold: #c9a14a;               /* credential labels, attributions */
  --paper: #f4f4f4;              /* light sections */
  --paper-2: #eaeaea;

  --text-dark-bg: #e9e9e9;       /* body text on dark */
  --muted-dark-bg: #9da3ad;      /* secondary text on dark */
  --text-light-bg: #1a1a1a;      /* body text on light */
  --muted-light-bg: #50545b;     /* secondary text on light */

  --line-dark: rgba(255, 255, 255, 0.1);   /* hairlines on dark */
  --line-light: rgba(26, 26, 26, 0.14);    /* hairlines on light */

  /* Type scale (fluid) */
  --fs-micro: 0.6875rem;                       /* 11px micro-labels */
  --fs-small: 0.8125rem;                       /* 13px small print  */
  --fs-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  --fs-h3: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.4rem + 3.6vw, 4rem);
  --fs-stat: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Tracking */
  --track-micro: 0.32em;
  --track-label: 0.18em;

  /* Spacing */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --space-gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Geometry — sharp, controlled-document corners */
  --radius: 2px;

  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-dark-bg);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 4. Layout primitives ------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.section--dark {
  background: var(--ink-900);
  color: var(--text-dark-bg);
}

.section--light {
  background: var(--paper);
  color: var(--text-light-bg);
}

.section--light .micro-label { color: var(--red); }
.section--light .section-head p { color: var(--muted-light-bg); }
.section--dark .section-head p { color: var(--muted-dark-bg); }

/* Numbered micro-label, e.g. "01 — ABOUT APEX" */
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.micro-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
}

.section-head p {
  font-size: var(--fs-lead);
  margin-bottom: 0;
}

/* Red keyline used under headings inside cards */
.keyline {
  width: 34px;
  height: 2px;
  background: var(--red);
  border: 0;
  margin: 0 0 1rem;
}

/* ---------- 5. Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--red-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark-bg);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost-light {
  background: transparent;
  color: var(--text-light-bg);
  border-color: rgba(26, 26, 26, 0.4);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- 6. Header / navigation ----------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 18, 18, 0.92);
  border-bottom-color: var(--line-dark);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand__mark {
  width: 42px;
  height: auto;
  flex: none;
}

.brand__word {
  line-height: 1.05;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand__name .dot { color: var(--red); }

.brand__sub {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.site-nav a:not(.btn) {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark-bg);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: #fff;
  border-bottom-color: var(--red);
}

.site-nav .btn {
  padding: 0.7em 1.4em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-950);
    border-bottom: 2px solid var(--red);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a:not(.btn) {
    padding: 0.9em 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .site-nav .btn {
    margin-top: 1rem;
  }
}

/* ---------- 7. Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink-950);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 18%;
}

/* Red-duotone treatment + legibility scrim, in one layer */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(78deg, rgba(18, 18, 18, 0.96) 18%, rgba(18, 18, 18, 0.62) 48%, rgba(18, 18, 18, 0.18) 78%),
    linear-gradient(200deg, rgba(204, 31, 31, 0.18), rgba(17, 21, 28, 0.42) 62%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}

.hero__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.6rem;
}

.hero__label::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  color: #fff;
  max-width: 13ch;
  margin-bottom: 0.5em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red-hover);
}

.hero__lead {
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: var(--text-dark-bg);
  margin-bottom: 2.2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Credential strip under hero */
.cred-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-dark);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cred-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.2rem, 3vw, 3rem);
  justify-content: space-between;
  padding-block: 1.1rem;
}

.cred-strip li {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark-bg);
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.cred-strip li::before {
  content: "\25C6"; /* ◆ */
  color: var(--red);
  font-size: 0.6em;
}

/* ---------- 8. Stats / trust bar -------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.7rem;
}

.stat-card__value {
  font-size: var(--fs-stat);
  font-weight: 900;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.stat-card__value span {
  color: var(--red);
}

.stat-card__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.9rem 0 0.5rem;
}

.stat-card p {
  font-size: var(--fs-small);
  color: var(--muted-light-bg);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- 9. About ---------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy .section-head { margin-bottom: 1.6rem; }

.rule-callout {
  border-left: 3px solid var(--red);
  background: var(--panel);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.rule-callout p {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.rule-callout .rule-tag {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.about-media {
  position: relative;
}

.about-media figure {
  margin: 0;
  position: relative;
  border: 1px solid var(--line-dark);
}

.about-media img {
  width: 100%;
  filter: saturate(0.92) contrast(1.04);
}

.about-media figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(195deg, rgba(204, 31, 31, 0.14), rgba(17, 21, 28, 0.35) 70%);
  pointer-events: none;
}

/* Founder pull-quote panel */
.quote-panel {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  margin-top: -3.5rem;
  margin-left: clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.quote-panel blockquote {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
}

.quote-panel blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.quote-panel figcaption {
  margin-top: 1.2rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .quote-panel { margin-top: -2.5rem; margin-right: 1rem; }
}

/* ---------- 10. Services -------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.svc-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.svc-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.svc-card__media {
  position: relative;
  aspect-ratio: 980 / 560;
  overflow: hidden;
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(204, 31, 31, 0.1), rgba(17, 21, 28, 0.28));
}

.svc-card__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.45em 0.9em;
}

.svc-card__body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.svc-card p {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--muted-light-bg);
  margin: 0;
}

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* Adjacent capabilities strip */
.cap-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--red);
  background: #fff;
  padding: 1.3rem 1.6rem;
}

.cap-strip h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.cap-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.cap-strip li {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-light-bg);
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.cap-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  flex: none;
}

/* Evidence block — dark panel inside light section */
.evidence-block {
  margin-top: var(--space-gap);
  background: var(--panel);
  color: var(--text-dark-bg);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.evidence-block h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.evidence-block h3 em {
  font-style: normal;
  color: var(--gold);
}

.evidence-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
}

.evidence-block li {
  font-size: var(--fs-small);
  display: flex;
  align-items: baseline;
  gap: 0.7em;
}

.evidence-block li::before {
  content: "\25A0"; /* ■ */
  color: var(--red);
  font-size: 0.55em;
  position: relative;
  top: -0.15em;
}

@media (max-width: 820px) {
  .evidence-block { grid-template-columns: 1fr; }
  .evidence-block ul { grid-template-columns: 1fr; }
}

/* ---------- 11. Sectors ---------------------------------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-gap);
}

.sector-tile {
  position: relative;
  aspect-ratio: 13 / 8;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
}

.sector-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sector-tile:hover img {
  transform: scale(1.04);
}

.sector-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(190deg, rgba(204, 31, 31, 0.12), transparent 45%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.88) 8%, rgba(13, 13, 13, 0.25) 55%, transparent 80%);
}

.sector-tile__body {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.6rem;
}

.sector-tile__body h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}

.sector-tile__body p {
  font-size: var(--fs-small);
  color: var(--muted-dark-bg);
  margin: 0;
  max-width: 46ch;
}

@media (max-width: 700px) {
  .sector-grid { grid-template-columns: 1fr; }
}

/* "Also active in" strip */
.also-strip {
  margin-top: var(--space-gap);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-gap);
}

.also-strip > h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.also-strip ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.also-strip li {
  position: relative;
  aspect-ratio: 64 / 30;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
}

.also-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.also-strip li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 13, 13, 0.85) 12%, rgba(13, 13, 13, 0.15) 60%);
}

.also-strip li span {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: #fff;
}

@media (max-width: 700px) {
  .also-strip ul { grid-template-columns: 1fr; }
  .also-strip li { aspect-ratio: 64 / 22; }
}

/* ---------- 12. Methodology -------------------------------------------------------- */
.method-band {
  position: relative;
  height: clamp(120px, 18vw, 220px);
  overflow: hidden;
  border-block: 1px solid var(--line-light);
}

.method-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(204, 31, 31, 0.15), rgba(17, 21, 28, 0.4));
}

.timeline {
  max-width: 760px;
  position: relative;
  padding-left: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.4rem;
}

/* vertical connector */
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--line-light);
}

.timeline__num {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex: none;
}

.timeline__body h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin: 0.45rem 0 0.35rem;
}

.timeline__body p {
  font-size: var(--fs-small);
  color: var(--muted-light-bg);
  margin-bottom: 0.6rem;
  max-width: 58ch;
}

.timeline__output {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}

.timeline__output::before {
  content: "OUTPUT";
  color: var(--text-light-bg);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.2em 0.6em;
  font-size: 0.85em;
}

.method-close {
  margin-top: 1rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1.8rem;
  font-size: var(--fs-lead);
  max-width: 720px;
}

.method-close strong { color: var(--red); }

/* ---------- 13. Credentials ----------------------------------------------------------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gap);
}

.cred-card {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.cred-card h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cred-card .cred-tag {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.cred-card p {
  font-size: var(--fs-small);
  color: var(--muted-dark-bg);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 920px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cred-grid { grid-template-columns: 1fr; }
}

/* Standards strip */
.standards-strip {
  margin-top: var(--space-gap);
  border: 1px solid var(--line-dark);
  background: var(--panel);
  padding: 1.2rem 1.6rem;
}

.standards-strip h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.standards-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
}

.standards-strip li {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-dark-bg);
  display: flex;
  align-items: center;
}

.standards-strip li:not(:last-child)::after {
  content: "\25C6";
  color: var(--red);
  font-size: 0.5em;
  margin-inline: 1.1em;
}

/* Supporting panels */
.support-panels {
  margin-top: var(--space-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-gap);
}

.support-panel {
  background: var(--panel-2);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}

.support-panel h3 {
  font-size: var(--fs-h3);
  color: #fff;
  margin-bottom: 0.6rem;
}

.support-panel p {
  font-size: var(--fs-small);
  color: var(--muted-dark-bg);
  margin: 0;
}

@media (max-width: 820px) {
  .support-panels { grid-template-columns: 1fr; }
}

/* Quality-policy pull quote */
.policy-quote {
  margin: var(--space-gap) 0 0;
  border-left: 3px solid var(--red);
  padding: 0.6rem 0 0.6rem 1.8rem;
}

.policy-quote blockquote {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: #fff;
  max-width: 56ch;
}

.policy-quote figcaption {
  margin-top: 0.9rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}

.compliance-note {
  margin-top: 2.2rem;
  font-size: 0.75rem;
  color: var(--muted-dark-bg);
  max-width: 76ch;
}

/* ---------- 14. Why Apex ----------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-gap);
}

.why-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}

.why-card .why-num {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  color: var(--red);
  display: block;
  margin-bottom: 0.9rem;
}

.why-card h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: var(--fs-small);
  color: var(--muted-light-bg);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Commitment band with photo */
.commit-band {
  position: relative;
  margin-top: var(--space-section);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.commit-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commit-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.9) 25%, rgba(13, 13, 13, 0.45) 70%),
    linear-gradient(200deg, rgba(204, 31, 31, 0.2), transparent 60%);
}

.commit-band .container {
  position: relative;
  z-index: 1;
}

.commit-band p {
  font-size: clamp(1.375rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  max-width: 22ch;
  line-height: 1.25;
  margin: 0;
}

.commit-band p strong { color: var(--red-hover); }

/* ---------- 15. Contact / RFQ ---------------------------------------------------------------- */
.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
}

.contact-section > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.92));
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info h2 {
  font-size: var(--fs-h2);
  color: #fff;
  max-width: 16ch;
}

.contact-info > p {
  color: var(--muted-dark-bg);
  max-width: 46ch;
}

.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact-list li {
  border-left: 2px solid var(--red);
  padding-left: 1.1rem;
}

.contact-list .contact-label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.contact-list a,
.contact-list span.val {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.contact-list a:hover { color: var(--gold); }

.contact-list .contact-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-dark-bg);
  margin-top: 0.2rem;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 2rem;
  border: 1px solid #25d366;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  transition: background-color 0.18s ease;
}

.wa-btn:hover,
.wa-btn:focus-visible {
  background: rgba(37, 211, 102, 0.14);
}

.wa-btn svg { width: 18px; height: 18px; fill: #25d366; flex: none; }

/* RFQ form */
.rfq-form {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
}

.rfq-form h3 {
  font-size: var(--fs-h3);
  color: #fff;
  margin-bottom: 0.3rem;
}

.rfq-form > p {
  font-size: var(--fs-small);
  color: var(--muted-dark-bg);
  margin-bottom: 1.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-dark-bg);
  margin-bottom: 0.45rem;
}

.form-field label .req { color: var(--red-hover); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--ink-950);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.8em 0.9em;
  transition: border-color 0.15s ease;
}

.form-field select { appearance: auto; }

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Service multi-select as checkboxes */
.svc-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.svc-choices label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dark-bg);
  margin: 0;
  cursor: pointer;
}

.svc-choices input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex: none;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin: 1.2rem 0 1.5rem;
}

.consent-field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 0.2em;
  accent-color: var(--red);
  flex: none;
}

.consent-field label {
  font-size: 0.75rem;
  color: var(--muted-dark-bg);
  line-height: 1.6;
}

.consent-field a {
  color: var(--gold);
  text-decoration: underline;
}

.rfq-form .btn { width: 100%; }

.form-status {
  margin-top: 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  display: none;
}

.form-status.ok { display: block; color: #7fc97f; }
.form-status.err { display: block; color: var(--red-hover); }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .svc-choices { grid-template-columns: 1fr; }
}

/* ---------- 16. Footer ------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  border-top: 2px solid var(--red);
  color: var(--muted-dark-bg);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-gap);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand .brand__mark { width: 48px; margin-bottom: 0.9rem; }

.footer-brand p {
  max-width: 40ch;
  margin-top: 0.9rem;
  line-height: 1.7;
}

.footer-col h3 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a:hover { color: #fff; }

.footer-doc {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.footer-doc span { color: var(--muted-dark-bg); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 17. Mobile sticky action bar ------------------------------------------------------- */
.mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  body { padding-bottom: 58px; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 99;
    background: var(--ink-950);
    border-top: 1px solid var(--line-dark);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1em 0.4em;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
  }

  .mobile-bar a + a { border-left: 1px solid var(--line-dark); }

  .mobile-bar .mb-quote { background: var(--red); }

  .mobile-bar svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

  .mobile-bar .mb-wa svg { fill: #25d366; }
}

/* ---------- 18. Reveal animation ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .hero__label,
  .micro-label { letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sector-tile img,
  .svc-card { transition: none; }
}

/* ---------- 19. Legal pages (privacy / terms) ---------------------------------------------------- */
.legal-page {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem));
}

.legal-page .container { max-width: 820px; }

.legal-page h1 { font-size: var(--fs-h2); color: #fff; }

.legal-page h2 {
  font-size: 1.125rem;
  color: #fff;
  margin-top: 2.2rem;
}

.legal-page p,
.legal-page li {
  font-size: var(--fs-small);
  color: var(--muted-dark-bg);
  line-height: 1.8;
}

.legal-page ul {
  list-style: square;
  padding-left: 1.2rem;
  margin-bottom: 1.1em;
}

.legal-page a { color: var(--gold); text-decoration: underline; }

.legal-meta {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
