/* =============================================================================
   ICRS Service — styles.css  (formal theme, v2)
   Light, institutional design for a government-facing engineering firm.
   Plain CSS, no framework, no build step.

   1  Fonts            7  Hero (home)          13 Contact & forms
   2  Tokens           8  Page hero            14 Footer
   3  Base             9  Section components   15 Cybersecurity & charts
   4  Layout           10 Service components   16 Lightbox
   5  Buttons & links  11 Media & galleries    17 Motion
   6  Header & nav     12 About & projects     18 Print
   ============================================================================= */

/* 1 · Fonts (self-hosted, SIL Open Font License — see /assets/fonts) ---------- */
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
/* Only the cybersecurity console illustration uses this face; browsers fetch it
   on pages that actually render it. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* 2 · Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-2: #f4f6f9;          /* alternate sections */
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e7ef;
  --line-2: #cdd5e1;

  --heading: #0e1a33;       /* navy-black headings */
  --text: #1b2433;          /* 15.6:1 on white */
  --text-2: #4a5568;        /* 7.5:1 on white, 6.9:1 on --bg-2 */
  --text-3: #5b6577;        /* 5.9:1 on white, 5.4:1 on --bg-2 */

  --brand: #33388b;         /* indigo from the ICRS logo — 10.1:1 with white */
  --brand-dark: #262a6b;
  --brand-tint: #eceefa;
  --navy: #0e1a33;          /* stats band, CTA panel, footer */
  --navy-2: #16264a;
  --on-navy: #ffffff;
  --on-navy-2: #c3cbd9;     /* 10.4:1 on --navy */
  --on-navy-3: #8f9bb3;     /* 6.2:1 on --navy */
  --ok: #1d7a4f;
  --ok-tint: #e7f4ed;
  --danger: #b42318;

  --font-sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3 · Base -------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
address { font-style: normal; }
abbr[title] { text-decoration: underline dotted rgba(74, 85, 104, 0.6); text-underline-offset: 3px; cursor: help; }
::selection { background: #cfd5f5; color: var(--heading); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 4 · Layout ------------------------------------------------------------------ */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { position: relative; padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.grid-bg { display: none; }

.split { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split--top { align-items: start; }
}

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--split { max-width: none; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; column-gap: 64px; }
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Section label: small caps with a brand rule. Numbers are kept in the markup
   but hidden in this theme. */
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--brand);
}
.kicker::before,
.eyebrow::before { content: ""; width: 24px; height: 2px; flex: none; background: currentColor; }
.kicker b,
.eyebrow b { display: none; }
.dot { display: none; }

.h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); }
.lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); line-height: 1.6; color: var(--text-2); }
.muted { color: var(--text-2); }
.text-grad { color: var(--brand); }

.prose { color: var(--text-2); font-size: 1.0625rem; }
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a,
.feature__text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-2);
}

.stack > * + * { margin-top: var(--stack, 1.5rem); }
.stack--sm { --stack: 0.9rem; }
.stack--lg { --stack: 2.25rem; }
.section-cta { margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5 · Buttons & links ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line-2); background: var(--surface); color: var(--heading); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--heading);
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.icon-btn .icon { width: 20px; height: 20px; }

/* 6 · Header & navigation -------------------------------------------------------- */
.topbar {
  display: none;
  position: relative;
  z-index: 51;
  background: var(--navy);
  font-size: 0.8rem;
  color: var(--on-navy-2);
}
@media (min-width: 1024px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 38px; }
.topbar__group { display: flex; align-items: center; gap: 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; color: #aab3f2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  view-transition-name: site-header;
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled,
.site-header.is-menu-open { box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 46px; } }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 14px;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--brand); }
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--brand); }
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  background: var(--brand);
}
.nav__trigger .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.scroll-progress { display: none; }

/* Mega menu (services) */
.nav__item--mega { position: static; }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1100px, calc(100vw - 48px));
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav__item--mega.is-open .mega,
.nav:not(.is-enhanced) .nav__item--mega:hover .mega,
.nav:not(.is-enhanced) .nav__item--mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.mega__panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.mega__intro { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--bg-2); }
.mega__title { font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--heading); }
.mega__text { font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }
.mega__intro .link-arrow { margin-top: auto; font-size: 0.95rem; }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.mega__link { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 14px 16px; border-radius: var(--radius); transition: background-color 0.2s; }
.mega__link:hover,
.mega__link:focus-visible,
.mega__link[aria-current="page"] { background: var(--bg-2); }
.mega__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
}
.mega__icon .icon { width: 21px; height: 21px; }
.mega__name { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--heading); }
.mega__desc { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.45; color: var(--text-3); }
.mega__item--wide { grid-column: 1 / -1; margin-top: 4px; }
.mega__link--wide { align-items: center; border: 1px solid var(--line); background: var(--surface-2); }
.mega__link--wide:hover,
.mega__link--wide[aria-current="page"] { border-color: #b9bfe6; background: var(--brand-tint); }
.mega__go { margin-left: auto; width: 18px; height: 18px; color: var(--brand); }

/* Mobile menu */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #fff;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading);
  transition: transform 0.3s var(--ease), background-color 0.2s, width 0.3s var(--ease);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 48;
  inset: var(--header-h) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px var(--gutter) 48px;
  background: #fff;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
}
.mobile-menu__nav a[aria-current="page"] { color: var(--brand); }
.mobile-menu__nav .icon { width: 20px; height: 20px; color: var(--text-3); }
.mobile-menu__label { margin: 26px 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.mobile-menu__systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-menu__systems a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
}
.mobile-menu__systems a[aria-current="page"] { border-color: var(--brand); background: var(--brand-tint); }
.mobile-menu__systems .icon { color: var(--brand); }
.mobile-menu__contact { display: grid; gap: 12px; margin-top: 26px; color: var(--text-2); }
.mobile-menu__contact a { display: inline-flex; align-items: center; gap: 10px; }
.mobile-menu__contact .icon { color: var(--brand); }
.mobile-menu .btn { width: 100%; margin-top: 26px; }
body.has-menu-open { overflow: hidden; }

/* 7 · Hero (home) --------------------------------------------------------------- */
.hero { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: var(--bg-2);
  pointer-events: none;
}
@media (max-width: 999px) { .hero::before { display: none; } }
.hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 48px;
  padding-block: clamp(48px, 7vw, 96px);
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
}
.hero__title { margin: 20px 0 20px; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; }
.hero__lead { max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: grid; gap: 10px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: 0.95rem; }
.hero__facts .icon { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); stroke-width: 2.4; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero__badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  max-width: 320px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
@media (max-width: 999px) { .hero__badge { left: 12px; bottom: -20px; } }
.hero__badge-title { display: block; font-size: 0.98rem; font-weight: 700; line-height: 1.3; color: var(--heading); }
.hero__badge-text { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.5; color: var(--text-3); }

/* 8 · Page hero (inner pages) ------------------------------------------------------ */
.page-hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.page-hero__bg { display: none; }
.page-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
}
.page-hero__title { margin: 18px 0 18px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; }
.page-hero__title small { display: block; margin-top: 10px; font-size: 0.45em; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--text-2); }
.page-hero__lead { max-width: 640px; }
.page-hero .chips { margin-top: 24px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .page-hero__actions { justify-content: center; }
.page-hero--center .eyebrow { justify-content: center; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-3); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-2); }
.breadcrumb a { color: var(--text-2); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--heading); font-weight: 600; }
.breadcrumb + .eyebrow { margin-top: 24px; }

/* 9 · Section components ------------------------------------------------------------- */

/* Lifecycle */
.lifecycle { position: relative; display: grid; }
.lifecycle::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.lifecycle__step { position: relative; padding: 0 0 36px 76px; }
.lifecycle__step:last-child { padding-bottom: 0; }
.lifecycle__node {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand);
  box-shadow: 0 0 0 8px var(--bg);
}
.section--alt .lifecycle__node { box-shadow: 0 0 0 8px var(--bg-2); }
.lifecycle__node .icon { width: 22px; height: 22px; }
.lifecycle__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.lifecycle__title { margin: 6px 0 8px; font-size: 1.2rem; }
.lifecycle__text { color: var(--text-2); font-size: 0.95rem; }
@media (min-width: 900px) {
  .lifecycle { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lifecycle::before { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 2px; }
  .lifecycle__step { padding: 0 28px 0 0; }
  .lifecycle__node { position: relative; margin-bottom: 26px; }
}

/* Stats band */
.stats { background: var(--navy); color: var(--on-navy); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stat:nth-child(odd) { border-left: 0; }
.stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(n) { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .stat:first-child { border-left: 0; }
}
.stat__value { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.stat__label { display: block; margin-top: 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-navy-2); }

/* Project log */
.log { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.log__head,
.log__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1.35fr) minmax(0, 1.65fr) 56px;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
}
.log__head { border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.log__row + .log__row { border-top: 1px solid var(--line); }
.log__name { font-weight: 700; line-height: 1.35; color: var(--heading); }
.log__name small { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 400; color: var(--text-3); }
.log__scope { color: var(--text-2); font-size: 0.95rem; }
.log__loc {
  justify-self: end;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
@media (max-width: 799px) {
  .log__head { display: none; }
  .log__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "state loc" "name name" "scope scope"; gap: 8px 12px; }
  .log__row .state { grid-area: state; }
  .log__name { grid-area: name; }
  .log__scope { grid-area: scope; }
  .log__loc { grid-area: loc; }
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.state::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; }
.state--live { background: var(--ok-tint); color: var(--ok); }
.state--live::before { background: var(--ok); }
.state--done { background: var(--bg-2); color: var(--text-2); }
.state--done::before { background: #9aa3b2; }

/* Philosophy quote */
.quote__mark { display: block; height: 0.55em; font-size: 5rem; font-weight: 700; line-height: 1; color: var(--brand); }
.quote blockquote p { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-style: italic; font-weight: 500; line-height: 1.35; color: var(--heading); }
.quote figcaption { margin-top: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

.statement { max-width: 980px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; line-height: 1.4; color: var(--text-2); }
.statement strong { font-weight: 700; color: var(--heading); }

/* Feature cards */
.feature-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .feature-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.feature__icon,
.node__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
}
.feature__icon .icon,
.node__icon .icon { width: 22px; height: 22px; }
.feature__title { margin: 20px 0 8px; font-size: 1.15rem; line-height: 1.3; }
.feature__text { color: var(--text-2); font-size: 0.95rem; }
.feature__num { position: absolute; top: 28px; right: 28px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); }

/* Equipment brands */
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .brands { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brands--compact { display: flex; flex-wrap: wrap; }
.brand-chip {
  display: grid;
  place-items: center;
  height: 92px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s;
}
.brand-chip img { width: auto; max-width: 100%; max-height: 44px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s, opacity 0.25s; }
.brand-chip--tall img { max-height: 60px; }
.brand-chip:hover { border-color: var(--line-2); }
.brand-chip:hover img { filter: none; opacity: 1; }
.brands-label { margin-bottom: 22px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.brand-mark { display: inline-grid; place-items: center; height: 60px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brand-mark img { max-height: 36px; width: auto; filter: grayscale(1); opacity: 0.8; }

/* CTA panel */
.cta-panel {
  position: relative;
  display: grid;
  gap: 36px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--on-navy);
}
@media (min-width: 960px) {
  .cta-panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 56px; }
}
.cta-panel .eyebrow { color: #aab3f2; }
.cta-panel__title { margin: 16px 0 14px; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.15; color: #fff; }
.cta-panel .text-grad { color: #c4c9f7; }
.cta-panel .lead { color: var(--on-navy-2); }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-panel .btn--primary { background: #fff; color: var(--navy); }
.cta-panel .btn--primary:hover { background: #e6e9f8; }

.contact-lines { display: grid; gap: 10px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background-color 0.2s;
}
a.contact-line:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.contact-line__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.1); color: #fff; }
.contact-line__icon .icon { width: 20px; height: 20px; }
.contact-line__label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-3); }
.contact-line__value { display: block; font-size: 1.02rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.contact-line .icon--end { margin-left: auto; width: 18px; height: 18px; color: var(--on-navy-3); }
@media (max-width: 480px) {
  .cta-panel { padding: 26px 18px; }
  .contact-line { padding: 14px; gap: 12px; }
  .contact-line .icon--end { display: none; }
  .contact-line__value { font-size: 1rem; overflow-wrap: normal; }
}

/* 10 · Service components -------------------------------------------------------------- */
.service-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.service-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.03); }
.service-card__code { display: none; }
.service-card__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 10px; margin-top: -28px; padding: 0 24px 24px; }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__title { margin-top: 8px; font-size: 1.2rem; }
.service-card__text { color: var(--text-2); font-size: 0.95rem; }
.service-card__list { display: grid; gap: 6px; margin-top: 4px; color: var(--text-2); font-size: 0.92rem; }
.service-card__list li { position: relative; padding-left: 16px; }
.service-card__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 1px; background: var(--brand); }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 0.92rem; font-weight: 700; color: var(--brand); }
.service-card__more .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }

/* Capability groups (numbering continues across groups) */
.cap-grid { display: grid; gap: 18px; counter-reset: cap; }
@media (min-width: 900px) { .cap-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cap-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cap { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.cap__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.cap__code {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.cap__title { font-size: 1.15rem; }
.cap__sub { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.numlist li {
  counter-increment: cap;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.numlist li:last-child { border-bottom: 0; }
.numlist li::before { content: counter(cap, decimal-leading-zero); padding-top: 1px; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); }

/* Scope matrix table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.scope-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.scope-table th,
.scope-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.scope-table thead th { background: var(--bg-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.scope-table thead th:first-child,
.scope-table tbody th { text-align: left; }
.scope-table tbody th { font-size: 0.98rem; font-weight: 600; line-height: 1.35; color: var(--heading); }
.scope-table tbody th small { display: block; margin-bottom: 3px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); }
.scope-table tbody tr:last-child > * { border-bottom: 0; }
.scope-table tbody tr:nth-child(even) { background: #fbfcfd; }
.tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; }
.tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.nil { display: inline-block; width: 12px; height: 2px; background: var(--line-2); vertical-align: middle; }

/* Process steps */
.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .steps--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { position: relative; padding: 22px 20px 24px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); background: #fff; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--brand); }
.step__title { font-size: 1.02rem; line-height: 1.3; }
.step__text { margin-top: 6px; color: var(--text-2); font-size: 0.9rem; }

/* Integration hub (system diagram) */
.hub { display: grid; gap: 14px; }
.hub__core { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; text-align: center; box-shadow: var(--shadow); }
.hub__core-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-inline: auto; border-radius: var(--radius); background: #fff; color: var(--brand); }
.hub__core-icon .icon { width: 30px; height: 30px; }
.hub__core h3 { margin-top: 18px; font-size: 1.25rem; color: #fff; }
.hub__core p { margin-top: 6px; color: var(--on-navy-2); font-size: 0.9rem; }
.node {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.node__title { font-size: 1rem; line-height: 1.3; }
.node__text { margin-top: 4px; color: var(--text-2); font-size: 0.92rem; }
.node--wide { border-style: dashed; box-shadow: none; }
@media (min-width: 1000px) {
  .hub { grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) minmax(0, 1fr); grid-auto-flow: dense; column-gap: 56px; row-gap: 14px; align-items: center; }
  .hub__core { grid-column: 2; grid-row: 1 / span 3; }
  .hub--2 .hub__core { grid-row: 1 / span 2; }
  .node--l { grid-column: 1; }
  .node--r { grid-column: 3; }
  .node--wide { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); }
  .node--l::after,
  .node--r::after { content: ""; position: absolute; top: 50%; width: 56px; height: 2px; background: var(--line-2); }
  .node--l::after { left: 100%; }
  .node--r::after { right: 100%; }
  .node--l::before,
  .node--r::before { content: ""; position: absolute; z-index: 1; top: calc(50% - 4px); width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); }
  .node--l::before { right: -5px; }
  .node--r::before { left: -5px; }
}

/* Equipment spec cards (product shots on light wells) */
.spec-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.spec { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.spec__media { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.spec__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spec__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.spec__name { font-weight: 700; line-height: 1.3; color: var(--heading); }
.spec__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

.diagram { max-width: 980px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.diagram__media { display: grid; place-items: center; padding: clamp(16px, 3vw, 36px); background: #fff; }
.diagram__media img { width: auto; max-width: 100%; mix-blend-mode: multiply; }
.diagram figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}

/* Related systems */
.related { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.related a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}
.related a:hover { border-color: var(--brand); }
.related a:hover .related__name { color: var(--brand); }
.related .icon { width: 22px; height: 22px; color: var(--brand); }
.related__name { font-weight: 700; line-height: 1.25; color: var(--heading); transition: color 0.2s; }
.related__go { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); }
.related-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }

/* Featured project */
.featured { display: grid; gap: 28px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 960px) { .featured { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 48px; } }
.featured__title { margin: 16px 0 12px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; }
.featured__text { color: var(--text-2); }
.featured .chips { margin-top: 20px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-tint);
  color: var(--text);
  font-size: 0.95rem;
}
.notice .icon { margin-top: 2px; color: var(--brand); }
.notice .link-arrow .icon { margin-top: 0; }
* + .notice { margin-top: 24px; }

.zones { display: grid; gap: 12px; }
@media (min-width: 700px) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zone { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 700; color: var(--heading); }
.zone .icon { width: 24px; height: 24px; color: var(--brand); }

/* 11 · Media & galleries ----------------------------------------------------------- */
.frame { position: relative; }
.frame__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: var(--shadow); }
.frame--wide .frame__media { aspect-ratio: 16 / 9; }
.frame--pano .frame__media { aspect-ratio: 21 / 9; }
.frame__media img { width: 100%; height: 100%; object-fit: cover; }
.frame__scan,
.frame__tag { display: none; }
.frame__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.frame__caption::before { content: ""; width: 14px; height: 2px; flex: none; background: var(--brand); }
.frame__caption b { display: none; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; } }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--full { grid-column: 1 / -1; }
.gallery__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__link:hover img { transform: scale(1.04); }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 26, 51, 0.82)); pointer-events: none; }
.gallery__caption { position: absolute; z-index: 1; left: 14px; right: 48px; bottom: 11px; font-size: 0.85rem; font-weight: 600; line-height: 1.35; color: #fff; }
.gallery__zoom {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery__zoom .icon { width: 15px; height: 15px; }
.gallery__link:hover .gallery__zoom,
.gallery__link:focus-visible .gallery__zoom { opacity: 1; }
.gallery--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
@media (min-width: 700px) { .gallery--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; } }
.gallery--compact .gallery__caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gallery--compact .gallery__link::after { display: none; }

/* Field-work reel: photo cards with captions below */
.reel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.reel-head .section-head { margin-bottom: 0; }
.reel__controls { display: flex; gap: 8px; }
.reel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 72vw, 320px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px max(var(--gutter), calc((100% - var(--container)) / 2)) 20px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.reel__item { scroll-snap-align: start; }
.reel__card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, border-color 0.2s; }
.reel__card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.reel__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reel__meta { display: block; padding: 16px 18px 18px; }
.reel__tag { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.reel__title { display: block; margin-top: 6px; font-weight: 700; line-height: 1.35; color: var(--heading); }

/* 12 · About & projects ------------------------------------------------------------ */
.project-groups { display: grid; gap: 44px; }
.project-group__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--heading); }
.project-group__title { font-size: 1.25rem; }
.project-group__meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.project-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
/* Two, then three cards per row. A short last row is shared out evenly instead of leaving an orphan. */
@media (min-width: 640px) and (max-width: 999.98px) {
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-list > :nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .project-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .project-list > * { grid-column: span 2; }
  .project-list > :nth-child(3n+1):nth-last-child(2),
  .project-list > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
  .project-list > :nth-child(3n+1):last-child { grid-column: span 6; }
}
.project { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project__loc { font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.project__name { font-size: 1.1rem; line-height: 1.3; }
.project__note { color: var(--text-3); font-size: 0.9rem; }
.project .chips { margin-top: auto; padding-top: 4px; }

.countries { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .countries { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.country { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); background: #fff; }
@media (max-width: 559.98px) { .country { flex-direction: column; align-items: flex-start; } }
.country--hq { grid-row: span 2; border-top-color: var(--heading); background: var(--brand-tint); }
.country__code { font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--heading); }
.country__name { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--text-2); }
.country__hq { display: block; margin-top: 6px; font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
.country__count { font-size: 0.78rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* 13 · Contact & forms ------------------------------------------------------------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; } }
.contact-stack { display: grid; gap: 16px; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card__title { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.contact-card__title .icon { color: var(--brand); }
.contact-card address,
.contact-card p { margin-top: 12px; color: var(--text-2); line-height: 1.7; }
.phone-list { display: grid; gap: 6px; margin-top: 12px; }
.phone-list a { font-size: 1.15rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; transition: color 0.2s; }
.phone-list a:hover,
.contact-card a.contact-card__mail:hover { color: var(--brand); }
.contact-card__mail { display: inline-block; margin-top: 12px; font-size: 1.15rem; font-weight: 700; color: var(--heading); transition: color 0.2s; }

.map-visual { position: relative; overflow: hidden; margin-top: 16px; aspect-ratio: 16 / 8; border: 1px solid var(--line); border-radius: var(--radius); background: #eef2f8; }
.map-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-visual__pin { position: absolute; left: 63%; top: 44%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(51, 56, 139, 0.2); }
.map-visual__label { position: absolute; left: calc(63% + 14px); top: calc(44% - 10px); padding: 2px 8px; border-radius: 4px; background: #fff; font-size: 0.75rem; font-weight: 700; color: var(--heading); box-shadow: var(--shadow-sm); }

.form-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form-card__title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.form-card__text { margin-top: 8px; color: var(--text-2); }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--heading); }
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a93a3; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51, 56, 139, 0.18); }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: 0.85rem; color: var(--danger); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { max-width: 340px; font-size: 0.85rem; color: var(--text-3); }
.form__status { padding: 14px 16px; border: 1px solid #a6d8bd; border-radius: 4px; background: var(--ok-tint); color: #14532d; font-size: 0.95rem; }
.form__status.is-error { border-color: #f1b3ad; background: #fdecea; color: #7a1a12; }
.form__status:empty { padding: 0; border: 0; }

/* 14 · Footer ---------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--navy); color: var(--on-navy-2); }
.site-footer__glow,
.footer-wordmark { display: none; }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 44px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.35fr 0.75fr 1fr 1.2fr; gap: 48px; } }
.footer-brand img { height: 50px; width: auto; }
.footer-brand p { max-width: 340px; margin-top: 18px; font-size: 0.93rem; }
.footer-title { margin-bottom: 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { font-size: 0.93rem; transition: color 0.2s; }
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: #fff; }
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { display: grid; gap: 14px; font-size: 0.93rem; }
.footer-contact li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #aab3f2; }
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: var(--on-navy-3); }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* 15 · Cybersecurity & charts --------------------------------------------------------- */
.icon-list { display: grid; gap: 10px; }
@media (min-width: 560px) { .icon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.icon-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.3; color: var(--heading); }
.icon-list .icon { width: 20px; height: 20px; color: var(--brand); }

.node-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .node-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.level-list { display: grid; }
.level-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.level-list li:last-child { border-bottom: 0; }
.level-list b { font-weight: 700; color: var(--brand); }
.level-list strong { font-weight: 700; color: var(--heading); }

/* Threat-surface console: the one deliberately dark, animated element. It keeps
   its own colour values so the light theme tokens never leak into it. */
.frame__media--viz { background: radial-gradient(70% 70% at 50% 50%, rgba(84, 104, 255, 0.18), transparent 70%), #0b1226; }
.cyber-viz { display: block; width: 100%; height: 100%; }
.cyber-viz text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; fill: #a9b4c7; }
.cyber-viz .cv-hud { font-size: 10.5px; fill: #7a879c; }
.cyber-viz .cv-node rect { fill: #0f1729; stroke: rgba(110, 123, 255, 0.5); }
.cyber-viz .cv-node text { fill: #e8edf5; text-anchor: middle; }
.cyber-viz .cv-ok { fill: #34d399; }
.cyber-viz .cv-warn { fill: #ffb547; }
.cyber-viz .cv-link { stroke: rgba(148, 163, 196, 0.2); }
.cyber-viz .cv-packet { stroke: #22d3ee; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 240; animation: cv-packet 3.2s linear infinite; }
.cyber-viz .cv-packet--2 { animation-delay: -1.1s; }
.cyber-viz .cv-packet--3 { animation-delay: -2.1s; }
.cyber-viz .cv-shield { stroke: #e8edf5; }
.cyber-viz__sweep { transform-box: view-box; transform-origin: 280px 210px; animation: cv-spin 6s linear infinite; }
.cyber-viz .cv-pulse { transform-box: view-box; transform-origin: 280px 210px; animation: cv-pulse 2.8s var(--ease) infinite; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
@keyframes cv-packet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -246; } }
@keyframes cv-pulse { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

/* Maturity dumbbell chart. Colours validated (dataviz ordinal check) on white. */
.viz {
  --viz-current: #33388b;
  --viz-target: #7e85cc;
  --viz-grid: #e5e9f0;
  --viz-link: #9ba4b4;
  --viz-surface: #ffffff;
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--viz-surface);
  box-shadow: var(--shadow-sm);
}
.viz__head { display: grid; gap: 4px; }
.viz__title { font-size: 1.05rem; font-weight: 700; color: var(--heading); }
.viz__sub { font-size: 0.85rem; color: var(--text-2); }
.viz__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 8px; font-size: 0.85rem; color: var(--text-2); }
.viz__legend li { display: inline-flex; align-items: center; gap: 8px; }
.viz__key { width: 12px; height: 12px; border-radius: 50%; }
.viz__key--current { background: var(--viz-current); }
.viz__key--target { border: 2px solid var(--viz-target); }
.viz__axis,
.viz__row { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; column-gap: 8px; }
.viz__scale { position: relative; height: 22px; margin: 0 12px; }
.viz__scale span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--text-3); }
.viz__row { min-height: 50px; border-radius: 6px; outline: none; transition: background-color 0.2s; }
.viz__row:hover,
.viz__row:focus-visible { background: var(--bg-2); }
.viz__row:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.viz__label { display: flex; flex-direction: column; padding-left: 10px; font-size: 0.9rem; line-height: 1.25; color: var(--heading); }
.viz__label b { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); }
.viz__flag { margin-top: 3px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.viz__track {
  position: relative;
  align-self: stretch;
  margin: 0 12px;
  background:
    linear-gradient(90deg, var(--viz-grid) 0 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
    linear-gradient(var(--viz-grid), var(--viz-grid)) 100% 0 / 1px 100% no-repeat;
}
.viz__link { position: absolute; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--viz-link); }
.viz__dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.viz__dot--current { background: var(--viz-current); box-shadow: 0 0 0 2px var(--viz-surface); }
.viz__dot--target { border: 2.5px solid var(--viz-target); background: var(--viz-surface); box-shadow: 0 0 0 2px var(--viz-surface); }
.viz [data-at="1"] { left: 0%; }
.viz [data-at="2"] { left: 25%; }
.viz [data-at="3"] { left: 50%; }
.viz [data-at="4"] { left: 75%; }
.viz [data-at="5"] { left: 100%; }
.viz__link[data-from="1"] { left: 0%; }
.viz__link[data-from="2"] { left: 25%; }
.viz__link[data-from="3"] { left: 50%; }
.viz__link[data-from="4"] { left: 75%; }
.viz__link[data-to="2"] { right: 75%; }
.viz__link[data-to="3"] { right: 50%; }
.viz__link[data-to="4"] { right: 25%; }
.viz__link[data-to="5"] { right: 0%; }
.viz__tip {
  position: absolute;
  z-index: 5;
  left: var(--x, 50%);
  top: var(--y, 0);
  transform: translate(-50%, calc(-100% - 8px));
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--navy);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  white-space: nowrap;
  color: #fff;
  pointer-events: none;
}
.viz__table { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.viz__table summary { cursor: pointer; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.viz__table table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 0.9rem; }
.viz__table th,
.viz__table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.viz__table th { font-weight: 600; color: var(--heading); }
.viz__table thead th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.viz__table td { font-variant-numeric: tabular-nums; color: var(--text-2); }
.viz__note { margin-top: 12px; font-size: 0.82rem; color: var(--text-3); }

/* 16 · Lightbox -------------------------------------------------------------------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(9, 15, 30, 0.92); }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 72px 88px; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox__img { width: auto; height: auto; max-width: min(1400px, 100%); max-height: calc(100dvh - 180px); border-radius: 4px; }
.lightbox__caption { font-size: 0.9rem; text-align: center; color: #dfe4ee; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; background: rgba(9, 15, 30, 0.6); color: #fff; transition: border-color 0.2s; }
.lightbox__btn:hover { border-color: #fff; }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 28px; left: 24px; font-size: 0.85rem; color: #b8c1d1; }
@media (max-width: 640px) {
  .lightbox__inner { padding: 72px 12px 96px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

/* 17 · Motion ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-revealed { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__content > *,
  .hero__media,
  .page-hero__content > *,
  .page-hero__media { animation: rise 0.7s var(--ease) both; }
  .hero__content > :nth-child(2),
  .page-hero__content > :nth-child(2) { animation-delay: 0.05s; }
  .hero__content > :nth-child(3),
  .page-hero__content > :nth-child(3) { animation-delay: 0.1s; }
  .hero__content > :nth-child(n + 4),
  .page-hero__content > :nth-child(n + 4) { animation-delay: 0.15s; }
  .hero__media,
  .page-hero__media { animation-delay: 0.15s; }
}

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* 18 · Print ----------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .mobile-menu, .reel__controls, .lightbox { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stats, .cta-panel, .site-footer, .hub__core { background: #fff !important; color: #000 !important; }
  .stat__value, .cta-panel__title, .hub__core h3 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
