/* =====================================================================
   Bluestaq Limited (UK) — visual system
   Palette: Brand Navy, Brand Blue 1, Brand Blue 2, brand greys.
   Green reserved for live/operational status. No Copper-Amber on web
   (document system accent only, per Bluestaq Ltd brand guidelines).
   ===================================================================== */

/* Brand marketing typeface. Drops in automatically if the licensed
   Avenir Next LT Pro web fonts are placed in /assets/fonts/. Until then
   the tuned system stack below is used. */
@font-face {
  font-family: "Avenir Next LT Pro";
  src: url("/assets/fonts/AvenirNextLTPro-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avenir Next LT Pro";
  src: url("/assets/fonts/AvenirNextLTPro-Demi.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avenir Next LT Pro";
  src: url("/assets/fonts/AvenirNextLTPro-Bold.woff2") format("woff2");
  font-weight: 700 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (Bluestaq, LLC Brand Guidelines) */
  --navy: #162646;          /* Secondary: Navy */
  --navy-deep: #0e1a30;     /* Navy, deepened for gradient depth only */
  --blue-1: #385faf;        /* Primary: Blue 1 */
  --blue-2: #739bcf;        /* Primary: Blue 2 */
  --blue-3: #9cadd7;        /* Secondary: Blue 3 */
  --grey-1: #b8c0c2;        /* Primary: Grey 1 */
  --grey-2: #d6d6da;        /* Primary: Grey 2 */
  --grey-3: #494c4d;        /* Secondary: Grey 3 */

  /* Working tones (functional neutrals derived from the brand greys) */
  --body: #2c3e50;          /* readability ink, per Bluestaq document standard */
  --body-soft: #494c4d;     /* Grey 3 */
  --meta: #494c4d;          /* Grey 3 */
  --ink: #f4f6f8;           /* near-white, for text on navy */
  --ink-soft: #b8c0c2;      /* Grey 1 */
  --ink-faint: #9cadd7;     /* Blue 3 */
  --paper: #ffffff;
  --tint: #f2f4f6;          /* light neutral surface */
  --tint-2: #e8ebef;        /* light neutral surface */
  --line: #d6d6da;          /* Grey 2 */
  --line-strong: #b8c0c2;   /* Grey 1 */
  --line-dark: rgba(184, 192, 194, 0.18);  /* Grey 1, low alpha on navy */

  /* Elevation */
  --sh-1: 0 1px 2px rgba(22, 38, 70, 0.06);
  --sh-2: 0 2px 6px rgba(22, 38, 70, 0.06), 0 18px 38px -26px rgba(22, 38, 70, 0.55);
  --sh-3: 0 4px 12px rgba(22, 38, 70, 0.08), 0 30px 60px -32px rgba(22, 38, 70, 0.6);

  /* Type. Primary: Avenir Next LT Pro. Secondary: Arial (per brand guidelines). */
  --font-display: "Avenir Next LT Pro", Arial, Helvetica, sans-serif;
  --font-body: var(--font-display);

  --fs-eyebrow: 0.74rem;
  --fs-small: 0.92rem;
  --fs-body: 1.05rem;
  --fs-lede: clamp(1.1rem, 1.7vw, 1.32rem);
  --fs-h3: 1.3rem;
  --fs-h2: clamp(1.75rem, 3.4vw, 2.6rem);
  --fs-hero: clamp(2.6rem, 6vw, 4.6rem);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(4.25rem, 8.5vw, 7.5rem);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  /* Signature: isometric cube lattice (static), echoes the brand mark */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 32 L32 0 L64 32 L32 64 Z' fill='none' stroke='%23739bcf' stroke-width='1'/%3E%3Cpath d='M32 0 L32 64 M0 32 L64 32' stroke='%23739bcf' stroke-width='0.5' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-1); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
em { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 600;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.section { padding-block: var(--section-y); }
.section .container > .section__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

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

.section--navy {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(56, 95, 175, 0.4) 0%, rgba(56, 95, 175, 0) 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ink);
}
.section--navy::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--lattice);
  background-size: 78px 78px;
  opacity: 0.05;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: var(--ink-soft); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-1);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--blue-1);
}
.eyebrow--ondark { color: var(--blue-2); }
.eyebrow--ondark::before { background: var(--blue-2); }
.hero__eyebrow::before { display: none; }

.section__head { max-width: 56rem; }
.section__head h2 { font-size: var(--fs-h2); }
.section__head .section__lede {
  margin-top: 1.1rem;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--body-soft);
  max-width: 52rem;
}
.section--navy .section__head .section__lede { color: var(--ink-soft); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 26, 48, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 19, 34, 0.94);
  border-bottom-color: var(--line-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 92px;
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 60px; width: auto; }
.brand-logo--compact { display: none; }
.brand__tag {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600; color: var(--blue-2);
  padding-left: 0.85rem; border-left: 1px solid var(--line-dark);
}

.primary-nav ul {
  display: flex; align-items: center; gap: 0.35rem;
  list-style: none; padding: 0;
}
.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
}
.primary-nav a:hover { color: #fff; text-decoration: none; }
.primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.34rem;
  height: 2px; background: var(--blue-2);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 0.6rem;
  background: var(--blue-1);
  color: #fff !important;
  font-weight: 600;
  padding: 0.6rem 1.15rem !important;
  border-radius: var(--r-sm);
}
.nav-cta::after { display: none; }
.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 0.4rem; border-radius: var(--r-sm);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  color: var(--ink);
  padding-block: clamp(5.5rem, 12vw, 9.5rem);
  background:
    radial-gradient(90% 70% at 82% 8%, rgba(56, 95, 175, 0.55) 0%, rgba(56, 95, 175, 0) 52%),
    radial-gradient(70% 90% at 110% 110%, rgba(115, 155, 207, 0.22) 0%, rgba(115, 155, 207, 0) 50%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero::before { /* cube lattice */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--lattice);
  background-size: 76px 76px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(80% 80% at 78% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(80% 80% at 78% 18%, #000 0%, transparent 72%);
}
.hero::after { /* fade for text legibility */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, var(--navy-deep) 18%, rgba(14, 26, 48, 0.2) 70%, rgba(14, 26, 48, 0) 100%);
}
.hero__inner { position: relative; }
.hero__copy { max-width: 47rem; }
.hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-top: 0.4rem;
}
.hero h1 em { color: var(--blue-2); }
.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.hero__promise {
  margin-top: 2.5rem;
  font-size: 0.82rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; color: var(--blue-2);
  display: flex; align-items: center; gap: 0.85rem;
}
.hero__promise::before { content: ""; width: 2.25rem; height: 1px; background: var(--blue-2); opacity: 0.7; }

.hero__credibility {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  list-style: none; padding: 1.5rem 0 0; margin: 1.5rem 0 0;
  border-top: 1px solid var(--line-dark);
}
.hero__credibility li {
  position: relative;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__credibility li + li::before {
  content: ""; position: absolute; left: -0.85rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--blue-2); transform: translateY(-50%);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(115, 155, 207, 0.28);
  flex: none;
}

/* Hero entrance (play-once; skipped under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: heroUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero__copy > *:nth-child(2) { animation-delay: 0.13s; }
  .hero__copy > *:nth-child(3) { animation-delay: 0.21s; }
  .hero__copy > *:nth-child(4) { animation-delay: 0.29s; }
  .hero__copy > *:nth-child(5) { animation-delay: 0.37s; }
  .hero__copy > *:nth-child(6) { animation-delay: 0.45s; }
}
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; isolation: isolate;
  color: var(--ink);
  padding-block: clamp(3.75rem, 8vw, 6rem);
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(56, 95, 175, 0.42) 0%, rgba(56, 95, 175, 0) 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--lattice); background-size: 70px 70px; opacity: 0.07;
  -webkit-mask-image: radial-gradient(70% 90% at 85% 10%, #000, transparent 75%);
  mask-image: radial-gradient(70% 90% at 85% 10%, #000, transparent 75%);
}
.page-hero h1 {
  color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.25rem); letter-spacing: -0.025em; max-width: 18ch;
}
.page-hero > .container > p {
  margin-top: 1.15rem; max-width: 46rem; font-size: var(--fs-lede); color: var(--ink-soft); line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.98rem; font-weight: 600; line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--blue-1); color: #fff; box-shadow: 0 12px 26px -14px rgba(56, 95, 175, 0.9); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(56, 95, 175, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost-dark:hover { border-color: var(--blue-1); color: var(--blue-1); }
.btn-arrow::after { content: "\2192"; font-size: 1.05em; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.85rem 1.65rem;
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue-1); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s ease;
}
.card:nth-child(2)::before { background: var(--blue-2); }
.card:nth-child(3)::before { background: var(--blue-3); }
.card:nth-child(4)::before { background: var(--blue-1); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--tint-2); color: var(--blue-1);
  margin-bottom: 1.15rem;
}
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.card p { color: var(--body-soft); font-size: 0.98rem; }

.card--ghost {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  box-shadow: none;
}
.card--ghost::before { background: var(--blue-2); }
.card--ghost h3 { color: #fff; }
.card--ghost p { color: var(--ink-soft); }
.card--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(184, 192, 194, 0.3); transform: translateY(-4px); box-shadow: none; }

/* ---------- Capability rows ---------- */
.capability {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.capability:first-child { border-top: 0; padding-top: 0; }
.capability:last-child { padding-bottom: 0; }
.capability__num {
  font-size: 2.75rem; font-weight: 700; line-height: 1;
  color: var(--blue-2); opacity: 0.5; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.capability__label h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
.capability__body p { color: var(--body-soft); margin-bottom: 1.1rem; }
.capability__body p:first-child { color: var(--body); font-size: 1.08rem; }

/* ---------- Ethos ---------- */
.ethos {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ethos__item { padding-top: 1.4rem; border-top: 2px solid var(--blue-1); }
.ethos__item:nth-child(2) { border-top-color: var(--blue-2); }
.ethos__item:nth-child(3) { border-top-color: var(--blue-3); }
.ethos__item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.ethos__item p { color: var(--body-soft); }
.section--navy .ethos__item p { color: var(--ink-soft); }
.section--tint .ethos__item p { color: var(--body-soft); }

/* ---------- Values ---------- */
.values {
  display: grid; gap: 1.1rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.values li {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.35rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  border-left: 3px solid var(--blue-1);
}
.values li:nth-child(3n+2) { border-left-color: var(--blue-2); }
.values li:nth-child(3n) { border-left-color: var(--blue-3); }
.values strong { font-size: 1.12rem; color: var(--navy); font-weight: 700; }
.values span { color: var(--body-soft); font-size: 0.96rem; }

/* ---------- People ---------- */
.people {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem 1.6rem; box-shadow: var(--sh-1);
}
.person__name { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.person__role {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue-1); margin: 0.3rem 0 0.85rem;
}
.person p { color: var(--body-soft); font-size: 0.97rem; }

/* ---------- Commitment & CTA band ---------- */
.commitment {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(1.9rem, 4vw, 3rem); border-left: 4px solid var(--blue-1);
}
.commitment::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--lattice); background-size: 72px 72px; opacity: 0.05;
}
.commitment h2 { color: #fff; }
.commitment p { color: var(--ink-soft); }
.commitment .commitment__statement { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0.4rem 0 0.9rem; }

.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(56, 95, 175, 0.5) 0%, rgba(56, 95, 175, 0) 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--lattice); background-size: 80px 80px; opacity: 0.06;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: var(--ink-soft); max-width: 44rem; margin: 1rem auto 1.85rem; }
.cta-band--spaced { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Policy index ---------- */
.policy-index {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.policy-index a {
  display: block; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.25rem; font-weight: 700; color: var(--navy);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.policy-index a:hover { border-color: var(--blue-1); transform: translateY(-2px); box-shadow: var(--sh-2); text-decoration: none; }
.policy-index span {
  display: block; margin-top: 0.35rem; font-weight: 400; font-size: var(--fs-small); color: var(--body-soft);
}

/* ---------- Policy blocks ---------- */
.policy-block {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3.5vw, 2.75rem); margin-bottom: 1.5rem;
}
.policy-block h3 { font-size: 1.4rem; margin-top: 2rem; }
.policy-block > h3:first-child, .policy-block > *:first-child { margin-top: 0; }
.policy-block h4 { color: var(--navy); font-size: 1.06rem; margin: 1.65rem 0 0.5rem; font-weight: 700; }
.policy-block p { margin-top: 0.85rem; color: var(--body); }
.policy-block p:first-child { margin-top: 0; }

/* ---------- Data tables ---------- */
table.data {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: var(--fs-small);
}
table.data caption {
  text-align: left; font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--meta); margin-bottom: 0.6rem;
}
table.data th, table.data td {
  text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data thead th { background: var(--navy); color: #fff; font-weight: 600; border-bottom: 0; }
table.data thead th:first-child { border-top-left-radius: var(--r-sm); }
table.data thead th:last-child { border-top-right-radius: var(--r-sm); }
table.data tbody tr:nth-child(even) { background: var(--tint); }
table.data tbody tr:last-child td { border-bottom: 0; font-weight: 600; }

/* ---------- Document meta & callout ---------- */
.doc-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem 1.5rem; margin: 0 0 1.5rem; padding: 1.2rem 1.4rem;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r);
}
.doc-meta div { margin: 0; }
.doc-meta dt {
  font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-1); font-weight: 600;
}
.doc-meta dd { margin: 0.2rem 0 0; font-size: var(--fs-small); color: var(--body); }
.callout {
  background: var(--tint-2); border-left: 4px solid var(--blue-1);
  border-radius: var(--r-sm); padding: 1rem 1.2rem; margin: 1.1rem 0 1.3rem;
}

/* ---------- Tick lists ---------- */
.tick-list { list-style: none; margin: 0 0 1.1em; padding: 0; }
.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--body); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 1px; background: var(--blue-1);
  transform: rotate(45deg);
}
.tick-list--green li::before { background: var(--blue-2); }
.section--navy .tick-list li { color: var(--ink-soft); }

/* ---------- Credentials & badges ---------- */
.creds-subhead {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-1); margin: 2.25rem 0 1.1rem; font-weight: 700;
}
.creds-subhead:first-of-type { margin-top: 0.5rem; }
.creds-note { margin: 0 0 1.25rem; max-width: 56ch; color: var(--body-soft); }
.badge-grid {
  list-style: none; margin: 0 0 0.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem;
}
.badge-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  min-height: 116px; display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.2rem; box-shadow: var(--sh-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.badge-tile img { max-width: 100%; max-height: 78px; width: auto; height: auto; object-fit: contain; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.cert-badge { width: 175px; height: 175px; border: 0; }
.cert-badges:not(.is-loaded) .cert-badge { display: none; }
.cert-badges.is-loaded .cert-consent { display: none; }
.cert-consent { max-width: 64ch; }
.cert-consent p { color: var(--body-soft); font-size: var(--fs-small); margin-bottom: 1rem; }
.reset-status { margin-left: 0.85rem; color: var(--blue-1); font-size: var(--fs-small); }

/* ---------- Contact ---------- */
.contact-single {
  max-width: 680px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-1);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--sh-2);
}
.contact-lede { margin: 0 0 1.6rem; max-width: 52ch; color: var(--body-soft); font-size: var(--fs-lede); }
.contact-details dl { margin: 0; }
.contact-details dt {
  font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-1); font-weight: 600; margin-top: 1.5rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0.35rem 0 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: var(--ink-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  font-size: var(--fs-small);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding-bottom: 2.5rem;
}
.footer-brand .brand-plate { margin-bottom: 1.1rem; }
.brand-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--grey-2); border-radius: var(--r);
  padding: 0.85rem 1.2rem; line-height: 0;
}
.brand-plate:hover { text-decoration: none; }
.brand-plate img { height: 60px; width: auto; max-width: 100%; }
.footer-brand .brand-plate img { display: block; }
.footer-brand p { max-width: 24rem; color: var(--ink-faint); }
.footer-col h4 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid var(--line-dark); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  color: var(--ink-faint); font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-1); color: #fff; padding: 0.75rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.placeholder {
  background: var(--tint-2); border-bottom: 1px dotted var(--blue-2);
  padding: 0 0.2em; color: var(--meta); font-style: italic;
}

/* Scroll reveal (JS adds .reveal to below-the-fold items, then .is-visible) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .brand-logo--full { display: none; }
  .brand-logo--compact { display: block; }
  .brand-plate { padding: 0.55rem 0.7rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 70vh; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .primary-nav a { padding: 0.85rem 0.25rem; width: 100%; }
  .primary-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: 0.6rem 0 0; text-align: center; }
  .capability { grid-template-columns: 1fr; gap: 1rem; }
  .capability__num { font-size: 2.2rem; margin-bottom: 0.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
