/* ==========================================================================
   SION Semiconductors — corporate site stylesheet
   1. Tokens & resets
   2. Typography
   3. Layout primitives
   4. Header & navigation
   5. Buttons, links & small UI
   6. Heroes
   7. Sections & cards
   8. Lifecycle diagram
   9. Map & locations
  10. Detail-page content blocks
  11. Forms
  12. Footer
  13. Motion & print
   ========================================================================== */

/* 1. Tokens & resets ------------------------------------------------------ */
:root {
  --paper: #f5f5f3;
  --white: #ffffff;
  --gray-soft: #e6e7e8;
  --gray-mid: #d3d5d6;
  --graphite: #25272a;
  --ink: #131416;
  --red: #b52032;
  --red-dark: #961a29;

  --text: #25272a;
  --text-muted: #5b5f64;
  --text-faint: #7d8287;
  --on-dark: #f4f4f2;
  --on-dark-muted: #b3b6b9;

  --line: rgba(37, 39, 42, 0.14);
  --line-soft: rgba(37, 39, 42, 0.08);
  --line-dark: rgba(244, 244, 242, 0.18);

  --font-display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-h1: clamp(2.35rem, 5.1vw, 4.05rem);
  --fs-h2: clamp(1.85rem, 3.1vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.38rem);
  --fs-h4: clamp(1rem, 1.15vw, 1.08rem);
  --fs-lede: clamp(1.03rem, 1.35vw, 1.28rem);
  --fs-body: 1.0125rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.72rem;

  --gutter: clamp(1.25rem, 4.6vw, 4.25rem);
  --shell: 1360px;
  --measure: 62ch;

  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: clamp(4rem, 8vw, 7.5rem);

  --radius: 2px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 74px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; }

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--graphite);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-size: var(--fs-small);
}
.skip-link:focus { left: 0; }

/* 2. Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.028em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.22; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.008em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

strong { font-weight: 600; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
  flex: none;
}
.eyebrow--light { color: var(--on-dark-muted); }
.eyebrow--light::before { background: var(--red); }
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
}
.lede--light { color: var(--on-dark-muted); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section-head { max-width: 78ch; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lede { max-width: 62ch; }

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

.section { padding-block: var(--space-7); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--gray { background: var(--gray-soft); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section--dark .lede { color: var(--on-dark-muted); }
.section--tight { padding-block: var(--space-6); }
.section--flush-top { padding-top: 0; }

.hairline { border-top: 1px solid var(--line); }
.hairline-dark { border-top: 1px solid var(--line-dark); }

.stack > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-4); }

.grid { display: grid; gap: clamp(1.25rem, 2.3vw, 2.25rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.grid--split-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* 4. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  height: var(--header-h);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
  padding-block: 0.4rem;
}
.brand__logo { height: 30px; width: auto; }
.brand__fallback { display: none; }
.brand__fallback-text {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand__fallback-text span { color: var(--red); }
.brand__fallback-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.no-logo .brand__logo { display: none; }
.no-logo .brand__fallback { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.55rem);
  margin-left: auto;
}
.nav-item { position: relative; }

.nav-link,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0.55rem 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link:hover,
.nav-toggle:hover { color: var(--red); }
.nav-item.is-active > .nav-link,
.nav-item.is-active > .nav-toggle {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav-toggle::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 0.15rem;
  opacity: 0.75;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -1.15rem;
  min-width: 292px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  box-shadow: 0 18px 40px -22px rgba(19, 20, 22, 0.45);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
  z-index: 20;
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel,
.nav-item.is-open > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.845rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--text);
  border-radius: 1px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-panel a:hover { background: var(--paper); color: var(--red); }
.nav-panel .nav-panel__all {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
  padding-top: 0.7rem;
}

.header-cta { flex: none; }

.nav-burger {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-burger__bars { display: grid; gap: 3px; }
.nav-burger__bars span {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-open .nav-burger__bars span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-burger__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger__bars span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  padding: 1.25rem var(--gutter) 3rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-group { border-bottom: 1px solid var(--line); }
.mobile-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.mobile-group__summary::-webkit-details-marker { display: none; }
.mobile-group__summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.4px solid var(--text-muted);
  border-bottom: 1.4px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.mobile-group[open] .mobile-group__summary::after { transform: rotate(-135deg); }
.mobile-group ul { padding: 0 0 0.9rem 0; }
.mobile-group li a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  text-decoration: none;
}
.mobile-group li a:hover { color: var(--red); }
.mobile-only-link {
  display: block;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.06rem;
  text-decoration: none;
}
.mobile-nav__cta { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.mobile-nav__meta {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 2;
}

/* 5. Buttons, links & small UI ------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.55rem 0.9rem; font-size: 0.78rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: rgba(37, 39, 42, 0.28);
}
.btn--ghost:hover {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.42);
}
.btn--on-dark:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}
.btn--light:hover { background: var(--gray-soft); border-color: var(--gray-soft); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), gap 0.18s var(--ease);
}
.arrow-link::after {
  content: "\2192";
  font-size: 0.95em;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}
.arrow-link:hover { color: var(--red); border-color: var(--red); }
.arrow-link:hover::after { transform: translateX(3px); }
.arrow-link--light { color: var(--on-dark); border-color: var(--line-dark); }
.arrow-link--light:hover { color: #fff; border-color: var(--red); }

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--white);
}
.tag--red { color: var(--red); border-color: rgba(181, 32, 50, 0.35); background: rgba(181, 32, 50, 0.04); }
.tag--dark { background: transparent; border-color: var(--line-dark); color: var(--on-dark-muted); }

/* 6. Heroes --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--graphite);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }

/* Homepage hero: infinite cross-fading monochrome sequence.
   Four frames, 10 s each, 40 s cycle. Negative delays offset the frames so the
   loop is seamless from the first paint (no leading pause). Frame 1 is the
   static poster: it carries a real src and stays opaque unless JS adds
   .is-live, so the hero is complete without JavaScript and with reduced motion. */
.hero__loop { position: absolute; inset: 0; }
.hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  opacity: 0;
}
.hero__frame:first-child { opacity: 1; }
.hero__frame.is-missing { display: none; }
.hero__loop.is-paused .hero__frame,
.hero__loop.is-paused .hero__frame:first-child { animation-play-state: paused; }

.hero__loop.is-live .hero__frame {
  animation: heroCycle 40s linear infinite, heroDrift 40s ease-in-out infinite;
}
.hero__loop.is-live .hero__frame:nth-child(1) { animation-delay: 0s, 0s; }
.hero__loop.is-live .hero__frame:nth-child(2) { animation-delay: -30s, -7s; }
.hero__loop.is-live .hero__frame:nth-child(3) { animation-delay: -20s, -13s; }
.hero__loop.is-live .hero__frame:nth-child(4) { animation-delay: -10s, -19s; }

@keyframes heroCycle {
  0%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  95%  { opacity: 0; }
  100% { opacity: 1; }
}
/* Slow drift. Start and end values match, so the reset is invisible. */
@keyframes heroDrift {
  0%   { transform: scale(1.02); }
  50%  { transform: scale(1.085); }
  100% { transform: scale(1.02); }
}

/* Homepage hero video (optional layer) ------------------------------------
   Sits ABOVE the four cross-fading stills and stays fully transparent until
   JS has confirmed the file decoded and is actually playing — so this layer can
   never produce a black panel, a half-loaded frame or a stall. If the file is
   missing, fails, or the visitor prefers reduced motion, nothing here ever
   becomes visible and the stills sequence carries the hero. Decorative only:
   it carries no information, so it is aria-hidden and pointer-transparent.   */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  opacity: 0;
  pointer-events: none;          /* never intercepts a click or a focus ring */
  background: var(--graphite);   /* only visible if it ever does come on */
  filter: grayscale(1) contrast(1.02);
  transition: opacity 0.9s var(--ease);
}
.hero__video.is-on { opacity: 1; }

/* Once the video owns the frame, retire the stills loop so the browser is not
   compositing two full-bleed layers at once. Cross-fade avoids a visible cut. */
.hero__media.is-video .hero__loop {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(19, 20, 22, 0.94) 0%, rgba(19, 20, 22, 0.88) 30%, rgba(19, 20, 22, 0.42) 58%, rgba(19, 20, 22, 0.12) 78%),
    linear-gradient(0deg, rgba(19, 20, 22, 0.35), rgba(19, 20, 22, 0) 45%);
}
.hero__inner {
  position: relative;
  min-height: clamp(30rem, 76vh, 44rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero__body { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero__lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: #d9dad8;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__meta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9fa3a6;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  flex: none;
}

/* 6b. Image treatment — desaturated imagery -------------------------------
   Client direction: photography is monochrome across the whole site. Applied at
   render time so a single rule governs every image (heroes, cards, figures,
   feature splits, product visuals) without re-encoding 26 assets. The approved
   brand logo is deliberately excluded: it is a supplied brand asset, not
   photography, and must keep its approved appearance and proportions.        */
img { filter: grayscale(1); }

.brand__logo,
.brand__fallback,
.footer-brand__logo,
img.is-color { filter: none; }

/* Slightly lift local contrast so desaturated scenes keep their depth on the
   warm off-white surfaces instead of reading flat. */
.hero__media img,
.page-figure img,
.card__media img,
.feature-split__media img { filter: grayscale(1) contrast(1.02); }
@media (forced-colors: active) {
  img { filter: none; }
}

/* Interior page header */
.page-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2.5rem, 4.5vw, 3.75rem);
}
.page-head--tight { padding-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.breadcrumb a:hover { color: var(--red); border-color: var(--red); }
.breadcrumb span[aria-current] { color: var(--text); }
.breadcrumb__sep { color: var(--gray-mid); }
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.page-head h1 { margin-bottom: 1.15rem; max-width: 24ch; }
.page-head .lede { max-width: 54ch; }
.page-head__aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 2vw, 1.75rem);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.page-head__aside dl { margin: 0; }
.page-head__aside dt {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.page-head__aside dd { margin: 0 0 1rem; color: var(--text); font-size: 0.9rem; }
.page-head__aside dd:last-child { margin-bottom: 0; }

.page-figure {
  background: var(--gray-soft);
  position: relative;
  overflow: hidden;
}
.page-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.page-figure figcaption {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.7rem var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.page-figure-wrap { padding-bottom: 0.85rem; background: var(--gray-soft); border-bottom: 1px solid var(--line); }

/* 7. Sections & cards ----------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
a.card:hover {
  border-color: rgba(37, 39, 42, 0.32);
  box-shadow: 0 22px 44px -34px rgba(19, 20, 22, 0.55);
  transform: translateY(-2px);
}
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--gray-soft);
}
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
a.card:hover .card__media img { transform: scale(1.025); }
.card__index {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  background: rgba(19, 20, 22, 0.82);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.24rem 0.45rem;
}
.card__body {
  padding: clamp(1.15rem, 1.7vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.card__body h3 { font-size: var(--fs-h3); }
.card__body p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.card__foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card__cta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__cta::after { content: "\2192"; transition: transform 0.18s var(--ease); }
a.card:hover .card__cta::after { transform: translateX(3px); }
.card__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.card--dark { background: var(--graphite); border-color: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.card--dark .card__body p { color: var(--on-dark-muted); }
.card--dark .card__meta { color: #8d9195; }

.card--flat { background: transparent; border: 0; border-top: 1px solid var(--line); padding-top: 1.15rem; }
.card--flat .card__body { padding: 0; }
a.card.card--flat:hover { transform: none; box-shadow: none; border-top-color: var(--red); }

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.feature-split--reverse > .feature-split__media { order: 2; }
.feature-split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--gray-soft);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-row div { padding-right: 1rem; }
.stat-row dt, .stat-row .stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.stat-row dd, .stat-row .stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}

.cta-band {
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}
.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; max-width: 24ch; }
.cta-band p { color: var(--on-dark-muted); max-width: 46ch; margin-bottom: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }

/* Hero crop variants: the technology pages use the same scene as their homepage
   card, re-framed for a wide hero so the subject sits off-centre. */
.crop-hero { object-position: 50% 50%; }
.crop-hero--analog { object-position: 42% 52%; }
.crop-hero--digital { object-position: 55% 46%; }
.crop-hero--rf { object-position: 48% 54%; }
.crop-hero--microwave { object-position: 58% 52%; }
.crop-hero--wireless { object-position: 50% 48%; }
.crop-hero--optics { object-position: 46% 50%; }

@media (max-width: 640px) {
  .crop-hero { object-position: 50% 50%; }
  .crop-hero--analog { object-position: 55% 45%; }
  .crop-hero--digital { object-position: 62% 40%; }
  .crop-hero--rf { object-position: 55% 50%; }
  .crop-hero--microwave { object-position: 64% 48%; }
  .crop-hero--wireless { object-position: 50% 42%; }
  .crop-hero--optics { object-position: 52% 46%; }
}

/* 8. Lifecycle diagram ---------------------------------------------------- */
.lifecycle { margin-top: clamp(2rem, 4vw, 3.25rem); }
.lifecycle__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.lifecycle__step {
  position: relative;
  padding: 1.5rem 1.1rem 0.25rem 0;
  border-right: 1px solid var(--line-soft);
}
.lifecycle__step:last-child { border-right: 0; padding-right: 0; }
.lifecycle__step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}
.lifecycle__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.55rem;
}
.lifecycle__step h3 {
  font-size: 0.98rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  padding-right: 0.5rem;
}
.lifecycle__step p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* 8b. Program flow — homepage "One engineering program" --------------------
   A real flow diagram: one continuous hairline rail carrying six numbered
   nodes, left to right. Each node shows the stage, one illustrative scene and
   the single artefact that changes hands, so the section reads as a sequence
   rather than a list of claims. No legend to decode, no icon set, no panel.
   Below 1180px the rail restarts per row (three stages, then three); on phones
   it becomes three rows of two. Imagery is the existing capability scenes, so
   this section adds no new assets to the project.                            */
.prog {
  --prog-gap: clamp(0.5rem, 1.05vw, 0.9rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--prog-gap);
  margin: clamp(1.5rem, 2.6vw, 2.1rem) 0 0;
  padding: 0;
  list-style: none;
}

.prog-node {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The rail. Drawn from this node's number chip across the gutter to the next
   node's chip, which masks it with an opaque background — so the line reads as
   unbroken without any absolute positioning across the whole grid. */
.prog-node::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0;
  right: calc(-1 * var(--prog-gap));
  height: 1px;
  background: var(--line);
}
.prog-node:last-child::before { display: none; }

.prog-node__idx {
  position: relative;
  z-index: 1;
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.prog-node:hover .prog-node__idx { border-color: var(--red); color: var(--red); }

.prog-node__media {
  margin-top: 0.85rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-soft);
}
.prog-node__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.prog-node:hover .prog-node__media img { transform: scale(1.04); }

.prog-node__name {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* Deliverable strip. Pushed to the bottom of the node so the six "what changes
   hands" lines share one baseline even when titles wrap to different depths. */
.prog-node__out {
  margin: auto 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.755rem;
  line-height: 1.35;
  color: var(--text);
}
.prog-node__out-k {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Closing note: the records argument, then one onward link. */
.prog-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1.1rem, 1.8vw, 1.5rem);
  padding-top: clamp(1rem, 1.6vw, 1.35rem);
  border-top: 1px solid var(--line);
}
.prog-foot p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.855rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.prog-foot strong { color: var(--text); font-weight: 500; }

/* Reveal is handled by the block's own [data-reveal] fade, exactly like every
   other homepage section. The nodes deliberately have no separate opacity gate:
   an earlier per-row stagger meant the section needed two classes before any
   text appeared, so a slow or missed observer callback rendered it blank. */

/* 8c. Homepage sections — compact systems --------------------------------
   These replace the repeated "eyebrow + lede / 3-up bordered image card" pattern
   that every homepage section previously used. Each section now has a layout
   shaped by its content instead of a shared template:
     sec-head   two-column header, note sits beside the heading (not under it)
     ind-grid   image-led overlay cards
     ledger     a scannable numbered list (no imagery, so it stays light)
     tech-grid  six compact photographic tiles
     prod-groups two grouped thumbnail lists
     loc-strip  a single row of locations
   The interior pages keep the original .card system untouched.               */

/* Shared section header --------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: end;
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
.sec-head__lead h2 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: -0.022em;
}
.sec-head__lead .eyebrow { margin-bottom: 0.7rem; }
.sec-head__note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 52ch;
}
.sec-head--dark { border-bottom-color: var(--line-dark); }
.sec-head--dark .sec-head__note { color: var(--on-dark-muted); }
.sec-head--dark .sec-head__lead h2 { color: #fff; }

/* Industries — overlay cards --------------------------------------------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.2vw, 1rem);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.ind-card {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  background: var(--graphite);
  text-decoration: none;
  color: #fff;
}
.ind-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.82;
}
.ind-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 20, 22, 0.1) 0%, rgba(19, 20, 22, 0.42) 46%, rgba(19, 20, 22, 0.93) 100%);
  pointer-events: none;
}
.ind-card:hover img { transform: scale(1.04); opacity: 0.9; }
.ind-card__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1rem, 1.6vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ind-card__idx {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9bdbf;
}
.ind-card h3 {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
.ind-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c6c9cb;
  margin: 0;
}
.ind-card__go {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ind-card__go::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.ind-card:hover .ind-card__go::after { transform: translateX(4px); }
.ind-card:hover .ind-card__go { color: #ff8a97; }

/* Capabilities — two groups, split by what the work does ------------------
   The five areas are not a flat list: three create the design, two prove it
   and keep it producible. The old single ledger buried that in a small tag and
   then explained it again in a footnote, so the reader had to read to the end
   to learn the point. Here the split is structural — two labelled groups, each
   with its own rule colour — and the footnote only adds the consequence.      */
.cap-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
  align-items: start;
}
.cap-group { min-width: 0; }

.cap-group__head {
  padding-top: 0.7rem;
  padding-bottom: 0.75rem;
  border-top: 2px solid var(--graphite);
  border-bottom: 1px solid var(--line);
}
/* The only red in the block: it marks the group that produces the evidence. */
.cap-group--assure .cap-group__head { border-top-color: var(--red); }

.cap-group__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.cap-group__label span { color: var(--text-faint); letter-spacing: 0.08em; }
.cap-group--assure .cap-group__label { color: var(--red); }

.cap-group__note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.815rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cap-row {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.3rem clamp(0.7rem, 1.4vw, 1.1rem);
  padding: clamp(0.8rem, 1.2vw, 1rem) 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.cap-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.cap-row:hover { background: rgba(181, 32, 50, 0.03); padding-left: 0.7rem; }
.cap-row:hover::before { transform: scaleY(1); }

.cap-row__num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.cap-row__body { display: block; min-width: 0; }
.cap-row__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.cap-row:hover .cap-row__name { color: var(--red); }
.cap-row__desc {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Closing note under a section */
.sec-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  margin-top: clamp(1.5rem, 2.4vw, 2rem);
  padding: clamp(1rem, 1.6vw, 1.35rem) clamp(1rem, 1.8vw, 1.5rem);
  background: var(--paper);
  border-left: 2px solid var(--red);
}
.sec-note p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 68ch;
}
.sec-note strong { color: var(--text); }

/* Technologies — compact tiles ------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.2vw, 1rem);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.tech-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--graphite);
  text-decoration: none;
  color: #fff;
}
.tech-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tech-tile:hover img { transform: scale(1.05); }
.tech-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 20, 22, 0) 40%, rgba(19, 20, 22, 0.88) 100%);
}
.tech-tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(0.8rem, 1.3vw, 1.1rem);
}
.tech-tile__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: #fff;
}
.tech-tile__meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8acaf;
  text-align: right;
}
.tech-tile:hover .tech-tile__meta { color: #ff8a97; }

/* Products — two grouped lists ------------------------------------------- */
.prod-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.prod-group__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.prod-group__title span { color: var(--text-faint); letter-spacing: 0.08em; }
.prod-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "thumb text" "thumb meta";
  align-items: center;
  gap: 0.1rem 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s var(--ease);
}
.prod-row:hover { background: rgba(37, 39, 42, 0.025); }
.prod-row img {
  grid-area: thumb;
  width: 76px;
  height: 56px;
  object-fit: cover;
  background: var(--gray-soft);
  transition: transform 0.5s var(--ease);
}
.prod-row:hover img { transform: scale(1.03); }
.prod-row__text { grid-area: text; display: block; }
.prod-row__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.prod-row:hover .prod-row__name { color: var(--red); }
.prod-row__desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.prod-row__meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.prod-note {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.prod-note p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.prod-note strong { color: var(--text); }

/* Locations — one compact strip ----------------------------------------- */
.loc-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  padding-top: clamp(1.15rem, 1.8vw, 1.5rem);
  border-top: 1px solid var(--line-dark);
}
.loc__role {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ba0a4;
}
.loc__role--sales { color: var(--red); }
.loc h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  letter-spacing: -0.012em;
  color: #fff;
}
.loc h3 span { color: #9ba0a4; font-weight: 400; }
.loc__body {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c2c5c7;
}
.loc__addr {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.55;
  color: #8f9397;
}

/* CTA — compact closing band -------------------------------------------- */
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
}
.cta-inner__text h2 {
  margin: 0 0 0.7rem;
  max-width: 22ch;
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  letter-spacing: -0.022em;
}
.cta-inner__text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 46ch;
}
.cta-inner__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* 9. Map & locations ------------------------------------------------------ */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1010 / 620;
  margin-block: clamp(1.75rem, 3vw, 2.75rem) 0;
}
.map-frame__land {
  position: absolute;
  inset: 0;
  background: #cfd1d2;
  -webkit-mask-image: url("../images/map/world.min.svg");
  mask-image: url("../images/map/world.min.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  opacity: 0.85;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.map-pin__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(181, 32, 50, 0.16);
}
.map-pin__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(245, 245, 243, 0.94);
  padding: 0.16rem 0.35rem;
  white-space: nowrap;
}
.section--dark .map-figure .map-frame__land { background: #4a4d51; opacity: 0.9; }
.section--dark .map-pin__label { background: rgba(19, 20, 22, 0.8); color: #e9e9e7; }

.locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-top: clamp(2rem, 3.5vw, 3rem);
}
.location {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.location h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.location__role {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}
.location p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* 10. Detail-page content blocks ----------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.25rem; margin-bottom: 0.9rem; }
.prose h3 { margin-top: 1.85rem; margin-bottom: 0.6rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { margin: 0 0 1.15rem; display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-left: 1.1rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 1px;
  background: var(--red);
}
.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-left: 1.6rem; counter-increment: item; }
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red);
}

.block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}
.block {
  border-top: 1px solid var(--line);
  padding-block: 1.35rem 1.5rem;
}
.block h3 {
  font-size: 1.04rem;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.block h3 span {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--red);
  letter-spacing: 0.06em;
}
.block p { font-size: 0.9rem; line-height: 1.62; color: var(--text-muted); margin: 0; }

.deliverables {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.deliverable {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.deliverable dt {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.deliverable dd { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.checklist { display: grid; gap: 0.65rem; }
.checklist li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-left: 1.2px solid var(--red);
  border-bottom: 1.2px solid var(--red);
  transform: rotate(-45deg);
}
.checklist--light li { color: var(--on-dark-muted); }

.aside-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.aside-panel h3 { font-size: 1rem; margin-bottom: 0.85rem; }
.aside-panel .arrow-link { margin-top: 0.35rem; }
.aside-panel ul { display: grid; gap: 0.55rem; }
.aside-panel ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  transition: color 0.16s var(--ease);
}
.aside-panel ul a::before { content: "\2192"; color: var(--red); font-size: 0.8em; }
.aside-panel ul a:hover { color: var(--red); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 0.75rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.8rem 0.9rem 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table th {
  font-weight: 500;
  color: var(--text);
  width: 42%;
  font-size: 0.875rem;
}
.spec-table td { color: var(--text-muted); }

.note {
  border-left: 2px solid var(--red);
  background: rgba(181, 32, 50, 0.04);
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.note strong { color: var(--text); }

/* Leadership cards */
.leaders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem);
}
.leader {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.leader__initials {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}
.leader h3 { font-size: 1.06rem; line-height: 1.3; }
.leader__role {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.leader p { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Timeline */
.timeline { border-top: 1px solid var(--line); }
.timeline__item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--red);
  padding-top: 0.2rem;
}
.timeline__body h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.timeline__body p { font-size: 0.9rem; line-height: 1.62; color: var(--text-muted); margin: 0; }

/* 11. Forms -------------------------------------------------------------- */
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}
.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-field .req { color: var(--red); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(37, 39, 42, 0.24);
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.form-field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #5b5f64 50%), linear-gradient(135deg, #5b5f64 50%, transparent 50%); background-position: calc(100% - 18px) 1.15rem, calc(100% - 13px) 1.15rem; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: rgba(181, 32, 50, 0.03);
}
.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.35rem;
}
.field-error.is-visible { display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.15rem; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.form-note { font-size: 0.78rem; line-height: 1.55; color: var(--text-faint); max-width: 38ch; }
.form-status {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(181, 32, 50, 0.3);
  background: rgba(181, 32, 50, 0.05);
  color: var(--red-dark);
}
.form-status:empty { display: none; }
.form-success {
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-success h2 { margin-bottom: 0.9rem; }
.form-success p { color: var(--text-muted); max-width: 46ch; }
.form-success .arrow-link { margin-top: 1.25rem; }
[hidden] { display: none !important; }

/* 12. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: clamp(3rem, 5vw, 4.5rem) 1.75rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand__logo { height: 30px; width: auto; }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 32ch;
  margin-top: 1.1rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.footer-col h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d9195;
  margin-bottom: 0.85rem;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a {
  font-size: 0.855rem;
  color: var(--on-dark);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-offices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.office { font-size: 0.83rem; line-height: 1.6; color: var(--on-dark-muted); }
.office strong { display: block; color: var(--on-dark); font-weight: 500; font-size: 0.875rem; }
.office .office__role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-top: 0.2rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.4rem;
  font-size: 0.76rem;
  color: #8d9195;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: #b3b6b9; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 13. Motion & print ----------------------------------------------------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  a.card:hover { transform: none; }
  a.card:hover .card__media img { transform: none; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .primary-nav { gap: 1rem; }
  .nav-link, .nav-toggle { font-size: 0.78rem; }
  .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Capabilities: the two groups stay side by side but the gap tightens so the
     narrower assurance column keeps a workable measure for its descriptions. */
  .cap-groups { gap: clamp(1.25rem, 2.6vw, 2.25rem); }

  /* Program flow: six nodes across 1180px leaves each column too narrow to
     hold a readable title, so the rail folds to three per row (3 + 3). The last
     node in each visual row must not draw a rail stub into the gutter, so the
     rail is suppressed on every third node instead of only the final one. */
  .prog { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(1.5rem, 2.6vw, 2rem); }
  .prog-node::before { right: calc(-1 * var(--prog-gap)); }
  .prog-node:nth-child(3n)::before { display: none; }
  .prog-node__name { font-size: 0.95rem; }
  .prog-node__out { font-size: 0.8rem; }
}

@media (max-width: 1040px) {
  :root { --header-h: 66px; }
  .primary-nav, .header-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .brand { margin-right: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split, .grid--split-wide, .form-shell, .feature-split,
  .page-head__grid, .cta-band__grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .feature-split--reverse > .feature-split__media { order: 0; }
  .page-head__aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.1rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__actions { justify-content: flex-start; }

  /* Homepage sections: header note and CTA actions move under the heading; the
     two product groups stack. */
  .sec-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0.85rem; }
  .sec-head__lead h2 { max-width: 32ch; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.5rem; }
  .prod-groups { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

  .lifecycle__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lifecycle__step { padding-bottom: 1.25rem; }
  .lifecycle__step:nth-child(3n) { border-right: 0; }
  .lifecycle__step:nth-child(n + 4) { border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
  .lifecycle__step:nth-child(n + 4)::before { top: -3px; }
}

@media (max-width: 860px) {
  .hero__inner { min-height: 0; }
  .grid--2, .grid--3, .grid--4, .stat-row, .locations, .footer-offices,
  .block-list, .leaders, .form-row { grid-template-columns: minmax(0, 1fr); }
  .stat-row { gap: 1.25rem; }
  .stat-row div { padding-right: 0; }
  .page-figure img { aspect-ratio: 16 / 9; }
  .deliverable { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .timeline__item { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .grid--3 > :nth-child(3) { grid-column: auto; }

  /* Homepage sections: overlay cards stack, technologies go two-up, locations
     become a single column so the address lines keep a readable measure. */
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-card { aspect-ratio: 16 / 9; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-strip { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .loc { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --fs-h1: clamp(2rem, 8.4vw, 2.6rem);
    --fs-h2: clamp(1.62rem, 6.4vw, 2rem);
    --fs-body: 1rem;
  }
  .hero { background: var(--graphite); }
  .hero__media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero__loop { position: absolute; inset: 0; }
  .hero__frame { object-position: 70% 52%; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(19, 20, 22, 0.18) 0%, rgba(19, 20, 22, 0.55) 45%, rgba(19, 20, 22, 0.92) 62%, var(--graphite) 78%);
  }
  .hero__inner {
    position: relative;
    margin-top: -34%;
    padding-top: 1rem;
    padding-bottom: 2.75rem;
  }
  .hero__meta { gap: 0.35rem 1rem; margin-top: 2rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .lifecycle__list { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .lifecycle__step {
    border-right: 0;
    border-top: 1px solid var(--line-soft);
    padding: 1.1rem 0 1.1rem 1.4rem;
    border-left: 1px solid var(--line);
  }
  .lifecycle__step:last-child { padding-bottom: 0; }
  .lifecycle__step::before { top: 1.35rem; left: -3px; }
  .map-pin__label { font-size: 0.5rem; padding: 0.1rem 0.25rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .page-figure figcaption { font-size: 0.6rem; }
  .spec-table th { width: 45%; }
  .form-actions .btn { width: 100%; }

  /* Program flow on phones: the rail has already folded to three per row at
     1180px; here it becomes three rows of two, with slightly tighter chips and
     titles. The rail is suppressed on every second node so no stub is drawn
     into the gutter at the end of a row. */
  .prog { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .prog-node:nth-child(3n)::before { display: block; }
  .prog-node:nth-child(2n)::before { display: none; }
  .prog-node__idx { width: 1.75rem; height: 1.75rem; font-size: 0.57rem; }
  .prog-node::before { top: 0.875rem; }
  .prog-node__media { margin-top: 0.7rem; }
  .prog-node__name { font-size: 0.87rem; margin-top: 0.6rem; }
  .prog-node__out { font-size: 0.775rem; padding-top: 0.45rem; }
  .prog-foot { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0.9rem; }
  .prog-foot .arrow-link { justify-self: start; }

  /* Homepage sections on phones */
  .sec-head__lead h2 { font-size: clamp(1.42rem, 6vw, 1.8rem); }
  .sec-head { padding-bottom: 1.1rem; }
  /* Capabilities on phones: the two groups stack in reading order, and each
     group's label keeps its rule so the build/assure distinction survives the
     fold rather than collapsing into one undifferentiated list. */
  .cap-groups { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .cap-row { padding: 0.85rem 0; }
  .sec-note { flex-direction: column; align-items: flex-start; }
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
  .tech-tile { aspect-ratio: 16 / 9; }
  .prod-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.1rem 0.7rem;
  }
  .prod-row img { width: 58px; height: 44px; }
  .cta-inner__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .map-pin__label { display: none; }
  .map-pin--end .map-pin__label { display: block; }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .site-footer, .hero__scrim { display: none; }
  body { background: #fff; }
  a { text-decoration: underline; }
}

.footer-contact { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
