/* ==========================================================================
   BioMetrix — Managed IT Services
   Design tokens. Swap the brand values below for your official palette.
   ========================================================================== */

:root {
  /* --- BRAND (sampled from the BioMetrix SAC logo: navy + orange) ---
     This is the default palette. The alternate lives in the [data-theme]
     block below; the footer switcher toggles between them.
     --accent-rgb / --brand-rgb exist so rgba() tints can follow the theme. */
  --brand-900: #072544;
  --brand-800: #0a2c50;
  --brand-700: #12457c;
  --brand-600: #1a5c9e;
  --brand-500: #2a76c0;
  --accent-500: #ee7f2d;
  --accent-400: #f9b233;
  --accent-300: #fcd08a;
  --accent-rgb: 238, 127, 45;
  --brand-rgb: 26, 92, 158;

  /* --- Neutrals --- */
  --ink-900: #0b1220;
  --ink-700: #2b3648;
  --ink-500: #55617a;
  --ink-300: #8d97ac;
  --line: #e2e7f0;
  --surface: #ffffff;
  --surface-alt: #f5f8fc;
  --surface-deep: var(--brand-900);

  /* --- Type --- */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.75vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.7rem + 3vw, 4rem);

  /* --- Layout --- */
  --wrap: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 4px 12px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 6px 28px rgba(11, 18, 32, 0.1);
  --header-h: 76px;
}

/* Alternate palette — the original blue/teal placeholder scheme.
   Same specificity as :root, so being declared later wins. */
[data-theme="original"] {
  --brand-900: #06182e;
  --brand-800: #0a2545;
  --brand-700: #0e3260;
  --brand-600: #14497f;
  --brand-500: #1d63a8;
  --accent-500: #00b8a9;
  --accent-400: #17d4c3;
  --accent-300: #7ceadf;
  --accent-rgb: 0, 184, 169;
  --brand-rgb: 20, 73, 127;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--deep { background: var(--surface-deep); color: #c9d6e8; }
.section--deep h2,
.section--deep h3 { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent-500); color: var(--brand-900); }
.btn--primary:hover { background: var(--accent-400); }

.btn--outline { border-color: currentColor; color: var(--brand-700); background: transparent; }
.btn--outline:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--brand-900); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--brand-900);
  margin-right: auto;
}
/* Brand mark — shape only (matches assets/logos/biometrix-mark.svg), used as
   a mask and painted with a CSS gradient. The color comes from --accent-500
   / --brand-500 rather than the file's own fill, so the mark switches with
   the theme automatically — no JS, no per-page duplication.
   Inlined as a data URI rather than referencing the file by url() — an
   external mask reference is unreliable when the page is opened directly
   (file://) instead of through a server, and this removes that dependency
   entirely. mask-mode is forced to alpha so browsers that default SVG masks
   to luminance still render the full shape instead of a dimmed one. */
.logo__mark {
  flex: none;
  width: 42px;
  height: 30px;
  background: linear-gradient(100deg, var(--accent-500), var(--brand-500));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='100.69 216.10 88.77 64.15'%3E%3Cpath fill='white' d='M120.993,249.569c0.418,0.543,0.908,0.94,1.517,1.217c0.532-0.001,1.065-0.002,1.597-0.002l0,0c0.419-0.276,0.839-0.552,1.258-0.828c0,0,0,0,0,0c0.82-1.153,0.838-2.248,0.112-3.45c-0.215-0.355-0.531-0.666-0.596-1.105c-0.36-0.3-0.5-0.686-0.452-1.147l0,0c0,0,0,0,0,0c-0.013-0.043-0.02-0.086-0.021-0.131c-0.649-1.446-0.635-2.891,0.003-4.336c0,0,0,0,0,0c0.43-1.782,1.408-3.194,2.881-4.272c0.895-0.843,1.93-1.378,3.177-1.451c1.171-0.457,2.34-0.424,3.508,0.01c0.93-0.008,1.695,0.396,2.399,0.955c0,0,0,0,0,0c0.218,0.143,0.437,0.285,0.655,0.428l0,0l0,0c0.425,0.156,0.728,0.446,0.931,0.846c0,0,0,0,0,0c0,0,0,0,0,0c0.115,0.107,0.253,0.197,0.342,0.322c2.056,2.895,4.111,5.791,6.158,8.693c1.866,2.644,3.695,5.315,5.596,7.934c0.949,1.307,2.575,1.531,3.773,0.647c1.29-0.952,1.535-2.584,0.522-3.935c-0.767-1.024-1.451-2.103-2.197-3.141c-2.856-3.973-5.601-8.027-8.445-12.01c-1.894-2.653-2.493-5.439-1.189-8.505c1.196-2.813,3.372-4.42,6.362-4.808c3.071-0.398,5.664,0.662,7.513,3.153c2.038,2.745,3.931,5.597,5.892,8.399c3.469,4.955,6.939,9.909,10.412,14.861c2.962,4.223,5.902,8.462,8.903,12.657c1.518,2.123,2.855,4.271,2.503,7.042c-0.389,3.061-1.94,5.278-4.763,6.573c-1.556,1.057-4.979,1.065-6.56,0.015c0,0,0,0,0,0c-0.307-0.165-0.613-0.329-0.92-0.494c-0.518-0.066-0.833-0.416-1.124-0.801c0,0,0,0,0,0c0,0,0,0,0,0c-0.161-0.133-0.338-0.251-0.479-0.403c-1.101-1.177-1.917-2.565-2.843-3.871c-2.249-3.172-4.476-6.36-6.688-9.557c-0.971-1.404-2.913-1.456-3.912-0.67c-1.118,0.88-1.429,2.47-0.574,3.745c0.624,0.93,1.043,1.934,1.288,3.027c0.815,3.634-1.422,7.891-4.757,9.019c-0.399,0.416-0.903,0.509-1.449,0.475c-1.123,0.425-2.247,0.45-3.373,0.013c0,0,0,0,0,0l-0.064,0.002l-0.06-0.021c-0.558,0.065-1.041-0.105-1.464-0.465c0,0,0,0,0,0c-1.453-0.601-2.634-1.531-3.474-2.873c-0.702-0.772-1.34-1.59-1.759-2.557c0,0,0,0,0,0c0,0,0,0,0,0c-0.15-0.221-0.3-0.442-0.45-0.663l0,0c-0.514-0.335-0.805-0.83-0.999-1.394l0,0c0,0,0,0,0,0c-0.784-1.087-1.577-2.167-2.351-3.262c-1.906-2.696-3.786-5.41-5.711-8.092c-0.704-0.981-1.851-1.272-2.963-0.877c-1.331,0.473-1.875,1.401-1.834,3.132c0.312,0.59,0.753,1.108,0.962,1.755c0.477,0.315,0.727,0.792,0.931,1.302c0,0,0,0,0,0c0,0,0,0,0,0c0.337,0.475,0.666,0.955,1.012,1.423c2.967,4.008,1.439,10.195-3.37,12.105c-0.401,0.414-0.906,0.509-1.454,0.472c-1.124,0.432-2.25,0.462-3.378,0.017c0,0,0,0,0,0l-0.061,0.001l-0.059-0.018c-0.551,0.04-1.062-0.046-1.462-0.473c0,0,0,0,0,0c-1.533-0.533-2.654-1.595-3.561-2.883c-2.847-4.039-5.683-8.087-8.491-12.153c-1.951-2.825-2.206-5.858-0.475-8.81C110.435,245.203,117.359,244.853,120.993,249.569z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='100.69 216.10 88.77 64.15'%3E%3Cpath fill='white' d='M120.993,249.569c0.418,0.543,0.908,0.94,1.517,1.217c0.532-0.001,1.065-0.002,1.597-0.002l0,0c0.419-0.276,0.839-0.552,1.258-0.828c0,0,0,0,0,0c0.82-1.153,0.838-2.248,0.112-3.45c-0.215-0.355-0.531-0.666-0.596-1.105c-0.36-0.3-0.5-0.686-0.452-1.147l0,0c0,0,0,0,0,0c-0.013-0.043-0.02-0.086-0.021-0.131c-0.649-1.446-0.635-2.891,0.003-4.336c0,0,0,0,0,0c0.43-1.782,1.408-3.194,2.881-4.272c0.895-0.843,1.93-1.378,3.177-1.451c1.171-0.457,2.34-0.424,3.508,0.01c0.93-0.008,1.695,0.396,2.399,0.955c0,0,0,0,0,0c0.218,0.143,0.437,0.285,0.655,0.428l0,0l0,0c0.425,0.156,0.728,0.446,0.931,0.846c0,0,0,0,0,0c0,0,0,0,0,0c0.115,0.107,0.253,0.197,0.342,0.322c2.056,2.895,4.111,5.791,6.158,8.693c1.866,2.644,3.695,5.315,5.596,7.934c0.949,1.307,2.575,1.531,3.773,0.647c1.29-0.952,1.535-2.584,0.522-3.935c-0.767-1.024-1.451-2.103-2.197-3.141c-2.856-3.973-5.601-8.027-8.445-12.01c-1.894-2.653-2.493-5.439-1.189-8.505c1.196-2.813,3.372-4.42,6.362-4.808c3.071-0.398,5.664,0.662,7.513,3.153c2.038,2.745,3.931,5.597,5.892,8.399c3.469,4.955,6.939,9.909,10.412,14.861c2.962,4.223,5.902,8.462,8.903,12.657c1.518,2.123,2.855,4.271,2.503,7.042c-0.389,3.061-1.94,5.278-4.763,6.573c-1.556,1.057-4.979,1.065-6.56,0.015c0,0,0,0,0,0c-0.307-0.165-0.613-0.329-0.92-0.494c-0.518-0.066-0.833-0.416-1.124-0.801c0,0,0,0,0,0c0,0,0,0,0,0c-0.161-0.133-0.338-0.251-0.479-0.403c-1.101-1.177-1.917-2.565-2.843-3.871c-2.249-3.172-4.476-6.36-6.688-9.557c-0.971-1.404-2.913-1.456-3.912-0.67c-1.118,0.88-1.429,2.47-0.574,3.745c0.624,0.93,1.043,1.934,1.288,3.027c0.815,3.634-1.422,7.891-4.757,9.019c-0.399,0.416-0.903,0.509-1.449,0.475c-1.123,0.425-2.247,0.45-3.373,0.013c0,0,0,0,0,0l-0.064,0.002l-0.06-0.021c-0.558,0.065-1.041-0.105-1.464-0.465c0,0,0,0,0,0c-1.453-0.601-2.634-1.531-3.474-2.873c-0.702-0.772-1.34-1.59-1.759-2.557c0,0,0,0,0,0c0,0,0,0,0,0c-0.15-0.221-0.3-0.442-0.45-0.663l0,0c-0.514-0.335-0.805-0.83-0.999-1.394l0,0c0,0,0,0,0,0c-0.784-1.087-1.577-2.167-2.351-3.262c-1.906-2.696-3.786-5.41-5.711-8.092c-0.704-0.981-1.851-1.272-2.963-0.877c-1.331,0.473-1.875,1.401-1.834,3.132c0.312,0.59,0.753,1.108,0.962,1.755c0.477,0.315,0.727,0.792,0.931,1.302c0,0,0,0,0,0c0,0,0,0,0,0c0.337,0.475,0.666,0.955,1.012,1.423c2.967,4.008,1.439,10.195-3.37,12.105c-0.401,0.414-0.906,0.509-1.454,0.472c-1.124,0.432-2.25,0.462-3.378,0.017c0,0,0,0,0,0l-0.061,0.001l-0.059-0.018c-0.551,0.04-1.062-0.046-1.462-0.473c0,0,0,0,0,0c-1.533-0.533-2.654-1.595-3.561-2.883c-2.847-4.039-5.683-8.087-8.491-12.153c-1.951-2.825-2.206-5.858-0.475-8.81C110.435,245.203,117.359,244.853,120.993,249.569z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-mode: alpha;
}
.logo__bio { color: var(--brand-800); }
.logo__metrix { color: var(--accent-500); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
}
.nav a:hover { background: var(--surface-alt); color: var(--brand-700); }
.nav a[aria-current="page"] { color: var(--brand-700); box-shadow: inset 0 -2px 0 var(--accent-500); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Language toggle */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-alt);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-500);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand-700); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-900);
  margin-inline: auto;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* landing02 trial: NOC-room photo (assets/img/bkgnd_01.png) behind the same
   scrim gradient .hero always used, so headline/eyebrow contrast is
   unchanged. color-mix() derives transparent versions of the theme's brand
   tokens instead of hardcoding hex, so the scrim still switches with the
   palette. To go back to the flat-gradient background (no photo), drop the
   trailing url(...) layer and restore the solid stop colors — see CLAUDE.md
   "Home hero art" for the exact snippet. */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(var(--accent-rgb), 0.20), transparent 60%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--brand-900) 78%, transparent),
      color-mix(in srgb, var(--brand-800) 65%, transparent) 55%,
      color-mix(in srgb, var(--brand-600) 45%, transparent)),
    url('../img/bkgnd_01.png') center / cover no-repeat;
  color: #d8e4f2;
  padding: clamp(3.5rem, 2rem + 7vw, 7.5rem) 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 { color: #fff; max-width: 15ch; }
.hero__lead { font-size: var(--step-1); max-width: 56ch; color: #c3d4e8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Hero split: copy on the left, artwork on the right. Collapses under 900px. */
.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__art { justify-self: center; width: 100%; max-width: 520px; }
.hero__art img { width: 100%; height: auto; }
@media (max-width: 899px) {
  .hero__art { max-width: 380px; opacity: 0.9; }
}

/* ==========================================================================
   Media — artwork frames and photography placeholders
   ========================================================================== */

.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder frame: marks where real photography belongs.
   Set the ratio with --ar. Delete the element once a real <img> replaces it. */
.imgph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: var(--radius);
  border: 1px dashed rgba(var(--brand-rgb), 0.42);
  background:
    linear-gradient(135deg, rgba(var(--brand-rgb), 0.10), rgba(var(--accent-rgb), 0.12)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(var(--brand-rgb), 0.06) 12px 24px);
  color: var(--brand-700);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}
.imgph__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.imgph__dim {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.65;
}
.section--deep .imgph,
.hero .imgph {
  border-color: rgba(255, 255, 255, 0.3);
  color: #dbe7f5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(var(--accent-rgb), 0.16)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.05) 12px 24px);
}

/* Image cards: a picture above the card body */
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { padding: 1.6rem 1.9rem 1.9rem; display: flex; flex-direction: column; }
.card--media .imgph { border: 0; border-radius: 0; }

/* Illustrated card header — gradient band with a line-art motif.
   Used on the sector and solution cards in place of photography. */
.card--art { padding: 0; overflow: hidden; }
.card--art .card__body { padding: 1.6rem 1.9rem 1.9rem; display: flex; flex-direction: column; }

.art-band {
  position: relative;
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  overflow: hidden;
}
.art-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 72% 28%, #000, transparent 78%);
}
.art-band::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 14px solid rgba(var(--accent-rgb), 0.28);
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.art-band svg {
  position: relative;
  width: 42%;
  max-width: 96px;
  height: auto;
  fill: none;
  stroke: #eaf2fb;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-band svg .accent { stroke: var(--accent-400); }
.art-band svg .accent-fill { fill: var(--accent-400); stroke: none; }

/* Rotate the gradient across the grid so the cards don't read as identical */
.grid > .card--art:nth-child(4n+2) .art-band { background: linear-gradient(135deg, var(--brand-900), var(--brand-500)); }
.grid > .card--art:nth-child(4n+3) .art-band { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); }
.grid > .card--art:nth-child(4n+4) .art-band { background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); }

/* Decorative artwork inside the inner-page hero band */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero__art {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: min(400px, 36%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.page-hero__art img { width: 100%; height: auto; }
@media (max-width: 820px) { .page-hero__art { display: none; } }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: 1rem;
}
.section--alt .eyebrow,
.section .eyebrow { color: var(--brand-500); }
.section--deep .eyebrow { color: var(--accent-400); }

.page-hero {
  background: linear-gradient(160deg, var(--brand-900), var(--brand-700));
  color: #c3d4e8;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { max-width: 62ch; font-size: var(--step-1); }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
}
.stat__num {
  font-size: var(--step-3);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-300);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-300);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-500); font-size: var(--step--1); flex-grow: 1; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.9; }

.card__link {
  margin-top: 1.2rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--brand-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__link:hover { color: var(--accent-500); }
.card__link::after { content: "→"; transition: transform 0.2s ease; }
.card__link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Partner marquee — continuous left-scrolling strip of partner tiles.
   Full-bleed: sits as a direct sibling of .wrap inside its parent <section>
   so it can scroll edge to edge instead of being capped at --wrap.
   Tiles are placeholders — see the HTML comment above the markup for what
   needs to happen before this ships with real partner logos.
   ========================================================================== */

/* Dark band, matching the hero/.section--deep treatment: --surface-deep
   background, --accent-400 eyebrow, white body text. All three are theme
   tokens, so this stays in sync automatically when the palette switches. */
.partner-strip {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding: clamp(2.4rem, 1.7rem + 2.5vw, 3.75rem) 0;
  background: var(--surface-deep);
}
.partner-strip__label {
  text-align: center;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin: 0 0 1.5rem;
}

.partner-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partner-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  width: max-content;
  animation: partner-scroll 63s linear infinite;
}
.partner-marquee:hover .partner-marquee__track { animation-play-state: paused; }

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-tile {
  flex: none;
  display: grid;
  place-items: center;
  height: 56px;
  padding: 0 0.5rem;
}
.partner-tile__name {
  font-size: var(--step-0);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.partner-tile:hover .partner-tile__name { opacity: 1; color: var(--accent-300); }

.partner-tile--empty {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0 1.1rem;
}
.partner-tile--empty .partner-tile__name {
  font-weight: 600;
  font-style: italic;
  opacity: 0.55;
}

/* Method steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0; top: -0.3rem;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--accent-500);
  opacity: 0.55;
}

/* Sector list */
.sector-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.sector-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--ink-500);
}
.sector-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--accent-500);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

/* Quote */
.quote {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  max-width: 24ch;
  letter-spacing: -0.02em;
}
.quote__attr {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-300);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.cta-band h2 { color: #fff; margin: 0; max-width: 20ch; }
.cta-band p { color: #d5e5f5; margin: 0.5rem 0 0; max-width: 50ch; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-900); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--step--1);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-900);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent-500); outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.18); }
.field textarea { min-height: 140px; resize: vertical; }
.field--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }

.form-note { font-size: var(--step--1); color: var(--ink-300); }

.contact-panel {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.contact-item { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item strong { display: block; color: var(--ink-900); font-size: var(--step--1); }
.contact-item span { font-size: var(--step--1); color: var(--ink-500); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--brand-900);
  color: #93a6bf;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem;
  font-size: var(--step--1);
}
/* Brand block spans the full width on its own row; the three link groups sit
   side by side beneath it as even columns, separated by rules so the block
   reads as a table rather than a stack. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid > :first-child {
  grid-column: 1 / -1;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid > :nth-child(n + 3) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 2.5rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-grid > :nth-child(n + 3) { border-left: 0; padding-left: 0; }
}
.site-footer h4 {
  color: #fff;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #93a6bf; text-decoration: none; }
.site-footer a:hover { color: var(--accent-400); }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo__bio { color: #fff; }

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: #6c7f99;
}

/* Palette switcher — development aid. Remove this block, the markup in each
   footer and initTheme() in main.js once the final palette is signed off. */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.theme-switch label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #93a6bf;
}
.theme-switch select {
  font: inherit;
  font-size: var(--step--1);
  color: #eaf2fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}
.theme-switch select:hover { border-color: var(--accent-400); }
.theme-switch select:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}
/* Native dropdown lists render on the OS surface, so force readable colours */
.theme-switch option { color: #0b1220; background: #fff; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
