/* =====================================================
   CenterNode Energy Services
   A CenterNode Group company, so the system is CNG's: the wordmark's
   own green (#5B9E03, large elements only), a text-safe deep green,
   Archivo + Manrope, hairlines instead of cards. CNES adds one layer
   of its own: the survey annotation (reticles, leaders, callouts),
   used only where the page is showing inspection.
   ============================================================ */

:root {
  /* Brand (shared with CenterNode Group) */
  --brand:        #5B9E03;  /* the logo node. Large elements only, 3.33:1 on white */
  --brand-deep:   #46700E;  /* text-safe green, 6.5:1 on white */
  --brand-dark:   #2C3F18;  /* dark institutional green, section anchor */
  --brand-ink:    #1B2810;  /* deepest green, footer */

  /* Neutrals */
  --ink:          #1A1A1A;
  --body:         #33404E;
  --muted:        #57647A;
  --hairline:     #DCE3D3;
  --surface:      #FFFFFF;
  --surface-alt:  #F6F8F2;
  --surface-card: #EEF3E6;

  /* On dark */
  --on-dark:          #EEF2E8;
  --on-dark-muted:    #AFBFA2;
  --on-dark-hairline: rgba(238, 242, 232, 0.16);

  /* Type */
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --text:    'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* Rhythm */
  --shell:     1200px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --radius:    4px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(27, 40, 16, 0.06), 0 2px 8px rgba(27, 40, 16, 0.05);
  --shadow-md: 0 2px 4px rgba(27, 40, 16, 0.06), 0 12px 28px rgba(27, 40, 16, 0.10);
}

/* ─────────────────────────── Reset ─────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
/* No single word hanging on the last line of any running text. build.py also joins
   the last two words with a non-breaking space for browsers without this. */
p, dd, li, figcaption, .row-line, .impact-src, .what { text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

/* ───────────────── Browser surfaces (themed, not default) ───────────────── */

::selection { background: rgba(91, 158, 3, 0.24); color: var(--ink); }
:root { caret-color: var(--brand-deep); accent-color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.page-hero :focus-visible,
.lifecycle :focus-visible,
.cta :focus-visible,
.contact :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--brand); }

@supports (scrollbar-color: red blue) {
  html { scrollbar-color: #9DB588 var(--surface-alt); scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb {
  background: #9DB588;
  border-radius: 99px;
  border: 3px solid var(--surface-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-deep); }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  background: var(--brand-ink); color: var(--on-dark);
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-family: var(--display); font-weight: 600; text-decoration: none;
}

/* Anything still waiting on a real value (contact address, license number)
   says so in the page instead of carrying plausible filler. */
.tbd {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px dashed currentColor;
  border-radius: 2px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  vertical-align: 0.1em;
  opacity: 0.85;
}

/* ─────────────────────────── Layout ─────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }

.shell > .h-section:first-child:not(:only-child) { margin-bottom: clamp(2rem, 4vw, 3rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

/* ─────────────────────────── Typography ─────────────────────────── */

.h-display {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.h-sub {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.68;
  max-width: 60ch;
}
.lede + .lede { margin-top: 1.1rem; }

.intro { margin-top: 1.5rem; max-width: 46ch; }
.intro + .intro { margin-top: 1rem; }

.fine {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}
.fine + .fine { margin-top: 0.75rem; padding-top: 0; border-top: 0; }

/* Closing line on every scope section: the list is a starting point, not a menu. */
.scope-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--brand-deep);
}
.scope-note::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.scope-note + .note { margin-top: 0.75rem; }

.note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 80ch;
}

/* Inline "go further" link. Arrow is drawn, not a glyph. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}
.more svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.more:hover svg { transform: translateX(3px); }
.more:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ─────────────────────────── Buttons ─────────────────────────── */

.btn {
  --btn-bg: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-lg { padding: 0.95rem 1.9rem; font-size: 0.9375rem; }

.btn-solid {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-solid:hover {
  background: #3B5D0B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-solid:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─────────────────────────── Header ─────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  background: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 28px rgba(27, 40, 16, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}

/* The approved CNES horizontal logo (white, for dark grounds). Sized by width so
   "ENERGY SERVICES" stays legible: it is about 10.6 times wider than tall. */
.lockup {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  text-decoration: none;
}
.lockup img { width: 340px; height: auto; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2rem; }
.nav a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-family: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover, .nav-trigger:hover { color: #fff; border-bottom-color: var(--brand); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand); }
.nav-trigger svg { width: 0.75rem; height: 0.75rem; transition: transform 0.25s var(--ease); }
.nav-trigger[aria-expanded="true"] { color: #fff; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-trigger.is-current { color: #fff; border-bottom-color: var(--brand); }

.nav-menu { position: relative; }
.menu-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -1.25rem;
  width: 25rem;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(27, 40, 16, 0.08), 0 18px 40px rgba(27, 40, 16, 0.22);
}
.menu-panel[hidden] { display: none; }
.menu-panel li + li { border-top: 1px solid var(--hairline); }
.nav .menu-panel a {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.nav .menu-panel a:hover { background: var(--surface-alt); }
.menu-name { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.menu-line { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.nav .menu-panel a:hover .menu-name,
.nav .menu-panel a[aria-current="page"] .menu-name { color: var(--brand-deep); }

.header-cta { flex: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.menu-bars { display: block; width: 26px; }
.menu-bars span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.menu-bars span + span { margin-top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav { background: var(--brand-ink); max-height: calc(100svh - 4.75rem); overflow-y: auto; }
.mobile-nav ul { padding: 0.5rem var(--gutter) 1.5rem; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  border-bottom: 1px solid var(--on-dark-hairline);
}
.mobile-nav .mobile-group {
  padding: 1.1rem 0 0.25rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.mobile-nav .mobile-sub a { padding-left: 1rem; font-weight: 500; }

/* ─────────────────────────── Hero (home) ─────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 9rem 7rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-ink);
}
@supports not (height: 100svh) {
  .hero { min-height: 100vh; }
}

.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; will-change: transform; }

/* The photograph and its survey overlay share one frame, so the reticles stay
   pinned to the modules they point at. */
.hero-frame {
  position: absolute;
  inset: 0;
  transform-origin: 58% 42%;
  animation: hero-drift 34s ease-in-out infinite alternate;
}

/* The slow drift is safe because the survey layer has no text: reticles are pure
   strokes and don't shimmer as they scale. Don't put SVG text back on a drifting
   frame. */
@keyframes hero-drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }

/* On the home hero the wash lives inside the frame, beneath the survey marks, so
   the annotations sit on top of the treated photograph rather than under it. */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--wash);
}

/* CNG's heavier overlay pairing (tuned against this same still: worst point 3.9:1
   on the headline against a 3:1 floor), kept identical so the family reads as one.
   Re-measure if the photograph changes. */
:root {
  --wash:
    linear-gradient(100deg, rgba(27, 40, 16, 0.80) 0%, rgba(27, 40, 16, 0.50) 44%, rgba(27, 40, 16, 0.18) 70%, rgba(27, 40, 16, 0.04) 88%),
    linear-gradient(118deg, rgba(44, 63, 24, 0.80) 0%, rgba(70, 112, 14, 0.64) 46%, rgba(91, 158, 3, 0.44) 100%),
    linear-gradient(to bottom, rgba(27, 40, 16, 0.50) 0%, rgba(27, 40, 16, 0.24) 45%, rgba(27, 40, 16, 0.62) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wash);
}

/* ── Survey overlay ─────────────────────────────────────────
   The CNES layer: reticles on the photograph with callouts, the way a field
   report marks up an aerial. Same viewBox as the photo and `slice`, which
   crops exactly as object-fit: cover does, so every mark stays on its module. */
.survey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.survey .reticle circle {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.survey .reticle .ring-outer {
  stroke: var(--brand);
  stroke-width: 3;
  stroke-dasharray: 26 12;
}
.survey .reticle .dot { fill: #fff; stroke: none; }
.survey .leader {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.survey .tag-box { fill: rgba(27, 40, 16, 0.86); stroke: rgba(238, 242, 232, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Hinting snaps each glyph to the pixel grid, which makes SVG text wobble on
   anything short of a perfectly still frame. Geometric precision lets it scale
   smoothly instead. */
.survey text { text-rendering: geometricPrecision; }
.survey .tag-kind {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: #CBE8A6;
}
.survey .tag-text {
  font-family: var(--text);
  font-size: 17px;
  font-weight: 500;
  fill: #fff;
}

/* One authored sequence: the ring draws round "fix it", then each mark lands in
   reading order. Opacity and transform only. */
.survey .mark {
  opacity: 0;
  transform-box: fill-box;
  animation: mark-in 0.7s var(--ease) forwards;
}
.survey .mark:nth-of-type(1) { animation-delay: 1.2s; }
.survey .mark:nth-of-type(2) { animation-delay: 1.35s; }
.survey .mark:nth-of-type(3) { animation-delay: 1.5s; }
.survey .mark:nth-of-type(4) { animation-delay: 1.65s; }
.survey .mark:nth-of-type(5) { animation-delay: 1.85s; }
/* Quiet marks: survey texture, not content. Thinner and a touch dimmer than the
   one reticle that carries a callout. */
.survey .mark-quiet .ring-outer { stroke-width: 2; stroke-dasharray: 14 8; }
.survey .mark-quiet circle:not(.ring-outer):not(.dot) { stroke: rgba(255, 255, 255, 0.8); stroke-width: 1.5; }
@keyframes mark-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.hero-inner { position: relative; z-index: 2; }

.hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: none;
}

/* The marker ring, CNG's one authored motion moment, inherited. */
.marked { position: relative; display: inline-block; white-space: nowrap; margin-left: 0.3em; padding-right: 0.04em; }
.marked .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132%;
  height: 160%;
  transform: translate(-50%, -44%);
  overflow: visible;
  pointer-events: none;
}
.marked .ring path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: ring-draw 1.15s var(--ease) 0.45s forwards;
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }

.hero-lede {
  margin-top: 1.75rem;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.62;
}

/* Keeps a short phrase together so no word hangs alone on the last line. */
.keep { white-space: nowrap; }

.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ─────────────────────────── Page hero (inner pages) ─────────────────────────── */

.page-hero {
  position: relative;
  padding-block: clamp(8.5rem, 16vw, 11rem) clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-ink);
  color: var(--on-dark);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 60% 50%);
  transform: scale(var(--zoom, 1.06));
  transform-origin: var(--focus, 60% 50%);
}

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.crumbs li {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-inline: 0.6rem;
  color: rgba(175, 191, 162, 0.6);
}
.crumbs a { color: var(--on-dark); text-decoration-color: rgba(238, 242, 232, 0.35); }
.crumbs a:hover { color: #fff; text-decoration-color: var(--brand); }

.page-title {
  margin-top: 1.5rem;
  color: #fff;
  font-size: clamp(2.375rem, 5.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.034em;
  max-width: 17ch;
  text-wrap: balance;
}
.page-lede {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
}
.page-hero .hero-actions { margin-top: 2.25rem; }

/* ── Mini rail: where this counterparty engages, at a glance ── */
.mini-rail {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-dark-hairline);
}
.mini-rail-caption {
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}
.mini-rail ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1.25rem;
}
.mini-rail ol::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.5rem;
  height: 1px;
  background: rgba(238, 242, 232, 0.28);
}
.mini-rail a {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding-top: 1.75rem;
  padding-right: 0.5rem;
  color: var(--on-dark-muted);
  text-decoration: none;
}
.mini-rail a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(238, 242, 232, 0.4);
  background: var(--brand-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mini-rail .num { font-family: var(--display); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-rail .name { font-family: var(--display); font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.mini-rail .is-on a { color: #fff; }
.mini-rail .is-on a::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 158, 3, 0.22); }
.mini-rail .is-on .num { color: #CBE8A6; }
.mini-rail a:hover::before { transform: scale(1.15); }
.mini-rail a:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Proof points under the positioning lede: CNG's split, copy on the right. */
.points + .fine { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.points {
  margin-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  max-width: 60ch;
}
.points > div {
  position: relative;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
/* CNG's row reward: a green rule grows in, the text steps over, the title turns green.
   Transform and colour only. */
.points > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.points dt, .points dd { transition: transform 0.35s var(--ease), color 0.25s var(--ease); }
.points > div:hover::before { transform: scaleY(1); }
.points > div:hover dt, .points > div:hover dd { transform: translateX(14px); }
.points > div:hover dt { color: var(--brand-deep); }
.points dt { font-family: var(--display); font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.points dd { margin-top: 0.2rem; font-size: 1rem; line-height: 1.6; color: var(--body); }

/* One line of proof under the services: plain facts, hairline-separated. */
.facts {
  display: grid;
  /* A grid, not a flowing line: one row when all four fit, otherwise a clean
     2x2, never one item hanging on its own. */
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  gap: 0.9rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 1180px) { .facts { grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 3.5rem; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.facts li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}
.stage-panel { grid-template-columns: minmax(0, 1fr) !important; max-width: 46rem; }

/* ─────────────────────────── Track record (home) ───────────────────────────
   The one loud section below the hero: deepest green, figures at near-hero scale.
   All four share one treatment; the note under the grid attributes them to the
   predecessor businesses and leadership, since CNES launched in 2026. */

.impact { background: var(--brand-ink); color: var(--on-dark); }
.impact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.impact .h-display { color: #fff; }
.impact-head p {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--on-dark-hairline);
}
.impact-item {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2.4vw, 2rem) 0.5rem 0;
}
.impact-item + .impact-item {
  padding-left: clamp(1rem, 2.4vw, 2rem);
  border-left: 1px solid var(--on-dark-hairline);
}
.impact-fig {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #fff;
  white-space: nowrap;
}
.impact-num { font-size: clamp(3rem, 5.8vw, 4.75rem); font-variant-numeric: tabular-nums; }
.impact-unit {
  font-size: clamp(1.25rem, 2.1vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}
/* Hover: the figure warms to light node green, a reward for reading, not a link. */
.impact-num, .impact-unit { transition: color 0.3s var(--ease); }
.impact-item:hover .impact-num { color: #CBE8A6; }
.impact-item:hover .impact-unit { color: #8FD14F; }
.impact-item dd { display: grid; gap: 0.3rem; margin-top: 1.1rem; }
.impact-label { font-family: var(--display); font-size: 1.0625rem; font-weight: 700; color: #fff; line-height: 1.3; }
.impact-src { font-size: 0.9375rem; line-height: 1.45; color: var(--on-dark-muted); }
.impact :focus-visible { outline-color: var(--brand); }
.impact-note {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  max-width: 72ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .impact-item:nth-child(n+3) { margin-top: 1.5rem; border-top: 1px solid var(--on-dark-hairline); }
}
@media (max-width: 420px) {
  .impact-num { font-size: 3rem; }
  .impact-unit { font-size: 1.375rem; }
}

/* ─────────────────────────── Three columns ─────────────────────────── */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.cols-3 > div { padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.cols-3 h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.016em; line-height: 1.25; }
.cols-3 p { margin-top: 0.6rem; font-size: 1rem; line-height: 1.6; max-width: 34ch; }

/* ── Test families, home: name and one line, nothing more ── */

/* ─────────────────────────── Pillars (why CNES) ─────────────────────────── */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.1rem;
}
.tags li {
  position: relative;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-deep);
}
.tags li + li::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: 0.35em;
  width: 1px;
  height: 0.85em;
  background: var(--hairline);
}

/* ─────────────────────────── Audiences (home) ─────────────────────────── */

.audiences .h-section { margin-bottom: clamp(2rem, 4vw, 3rem); }
.switcher .audience-rows { margin-top: 0; }

/* Owners lead: most visitors are owners, so their row is the only one that
   opens up its scope on the home page. Still a row, not a card. */

.scope-list { border-top: 1px solid var(--hairline); }
.scope-list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
  line-height: 1.5;
}
.scope-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5em;
  border-radius: 50%;
  border: 2px solid var(--brand);
}

.audience-rows > li { border-bottom: 1px solid var(--hairline); }
.audience-rows { border-top: 1px solid var(--hairline); }
.audience-rows a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 2.6vw, 2rem);
  padding-left: clamp(0.75rem, 2vw, 1.75rem);
  color: inherit;
  text-decoration: none;
}
.audience-rows a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.audience-rows a:hover::before, .audience-rows a:focus-visible::before { transform: scaleY(1); }
.audience-rows .row-name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.row-id { display: grid; gap: 0.3rem; transition: transform 0.35s var(--ease); }
.audience-rows .row-line { font-size: 1rem; line-height: 1.5; color: var(--body); }
.row-tags { margin-top: 0; transition: transform 0.35s var(--ease); }
.row-tags li { font-size: 1rem; }
.row-tags { gap: 0.4rem 1.4rem; }
.row-tags li + li::before { left: -0.75rem; }
/* Below 1180px a tag can wrap; drop the dividers so none dangles at a line start. */
@media (max-width: 1180px) { .row-tags { gap: 0.35rem 1.1rem; } .row-tags li + li::before { display: none; } }
.audience-rows .row-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: #7E9068;
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}
.audience-rows a:hover .row-name { color: var(--brand-deep); }
.audience-rows a:hover .row-id, .audience-rows a:hover .row-tags { transform: translateX(8px); }
.audience-rows a:hover .row-arrow { color: var(--brand); transform: translateX(4px); }
.audience-rows a:focus-visible { outline-offset: -2px; }

/* ─────────────────────────── Lifecycle (home, tabs) ─────────────────────────── */

.lifecycle { background: var(--brand-dark); color: var(--on-dark); }
.lifecycle .h-display { color: #fff; max-width: 20ch; }

.stage-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.stage-track {
  position: absolute;
  left: 0.5rem;
  right: calc(100% / 6 - 0.5rem);
  top: calc(0.5rem - 1px);
  height: 2px;
  background: rgba(238, 242, 232, 0.2);
  overflow: hidden;
}
.stage-track span {
  display: block;
  height: 100%;
  background: var(--brand);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.stage-tab {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.2rem;
  padding: 1.9rem 1rem 0.75rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--on-dark-muted);
}
.stage-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(238, 242, 232, 0.4);
  background: var(--brand-dark);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stage-tab .num { font-family: var(--display); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-tab .name { font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
/* Line breaks are set in the markup (two lines per stage); never add a third. */
.stage-tab .name { white-space: nowrap; }
@media (max-width: 780px) { .stage-tab { padding-right: 0.25rem; } }
@media (max-width: 420px) { .stage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.stage-tab:hover { color: var(--on-dark); }
.stage-tab:hover::before { transform: scale(1.15); border-color: var(--brand); }
.stage-tab.is-past::before { border-color: var(--brand); }
.stage-tab[aria-selected="true"] { color: #fff; }
.stage-tab[aria-selected="true"] .num { color: #CBE8A6; }
.stage-tab[aria-selected="true"]::before {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.2);
  box-shadow: 0 0 0 5px rgba(91, 158, 3, 0.24);
}
.stage-tab:focus-visible { outline-offset: 2px; }

.stage-panels { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.stage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--on-dark-hairline);
}
.stage-panel[hidden] { display: none; }
.stage-panel.is-entering > * { animation: panel-in 0.45s var(--ease) both; }
.stage-panel.is-entering > *:nth-child(2) { animation-delay: 70ms; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.stage-panel h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.12;
}
.stage-panel .dark-list { margin-top: 1.25rem; }
.stage-panel .more { margin-top: 1.5rem; color: #CBE8A6; }

.dark-list { border-top: 1px solid var(--on-dark-hairline); }
.dark-list li {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--on-dark-hairline);
  color: var(--on-dark);
  line-height: 1.5;
}

/* ── Survey plate: a marked-up crop beside the test methods ── */
.plate { margin: clamp(2rem, 4vw, 2.75rem) 0 0; }
.plate-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-ink);
  isolation: isolate;
}
.plate-frame img { width: 100%; height: 100%; object-fit: cover; }
.plate-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(118deg, rgba(44, 63, 24, 0.72) 0%, rgba(70, 112, 14, 0.5) 55%, rgba(91, 158, 3, 0.36) 100%);
}
.plate .survey { z-index: 1; }
.plate .survey .mark { opacity: 1; animation: none; }
.plate .survey .tag-kind { font-size: 40px; }
.plate .survey .tag-text { font-size: 44px; }
.plate figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate figcaption::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

/* ─────────────────────────── Diagnostics ledger ─────────────────────────── */

/* ── Method matrix: six families, each a column of real methods ── */
.methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.method {
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--hairline);
}
.method h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.016em; line-height: 1.2; }
.method-line {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-deep);
}
.method ul { margin-top: 1.1rem; }
.method li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.method li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.5rem;
  height: 1px;
  background: var(--brand);
}
/* Named standards carry display weight so a reader scanning for "IEC 62446"
   finds it. */
.std { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: 0.005em; }

/* ─────────────────────────── Stage rail (vertical) ─────────────────────────── */

.rail-list { position: relative; padding-left: 2.5rem; }
.rail-track {
  position: absolute;
  left: 0.4375rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: var(--hairline);
  overflow: hidden;
}
.rail-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand) 0%, var(--brand-deep) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease);
}
.rail-list:has(.rail-stages.is-revealed) .rail-track span { transform: scaleY(1); }

.rail-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.rail-stage:first-of-type { padding-top: 0.25rem; }
/* Arriving from a link (e.g. owners.html#stage-04): land below the fixed header and
   briefly light the stage so it's obvious where you are. */
.rail-stage { scroll-margin-top: 6.5rem; isolation: isolate; }
.rail-stage:target::after {
  content: "";
  position: absolute;
  inset: 0 -1rem 0 -3.5rem;
  z-index: -1;
  border-radius: var(--radius);
  background: rgba(91, 158, 3, 0.10);
  animation: target-fade 2.4s var(--ease) 0.6s forwards;
}
.rail-stage:target .rail-head h3 { color: var(--brand-deep); }
@keyframes target-fade { to { background: rgba(91, 158, 3, 0); } }
.rail-stage:last-of-type { border-bottom: 0; padding-bottom: 0.25rem; }
.rail-node {
  position: absolute;
  left: -2.5rem;
  top: 2.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--hairline);
}
.rail-stage:first-of-type .rail-node { top: 0.45rem; }
.rail-stage.is-on .rail-node { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px rgba(91, 158, 3, 0.16); }
.rail-stages.is-revealed .rail-stage:not(.is-on) .rail-node { border-color: #B9CBA5; }

.rail-head .num {
  display: block;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rail-stage.is-on .rail-head .num { color: var(--brand-deep); }
.rail-head h3 { margin-top: 0.15rem; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.rail-stage:not(.is-on) .rail-head h3 { color: var(--muted); }

.rail-body .scope-list { border-top: 0; }
.rail-body .scope-list li:first-child { padding-top: 0.2rem; }
.rail-body .scope-list li:last-child { border-bottom: 0; }

/* Capabilities page variant: every stage is lit, and each carries who engages. */
.stage-block {
  position: relative;
  padding-block: clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 6rem;
}
.stage-block:first-of-type { padding-top: 0.25rem; }
.stage-block:last-of-type { border-bottom: 0; }
.stage-block .rail-node { top: calc(clamp(2.25rem, 4vw, 3rem) + 0.45rem); background: var(--brand); border-color: var(--brand); }
.stage-block:first-of-type .rail-node { top: 0.7rem; }
.stage-block-head { display: flex; align-items: baseline; gap: 1rem; }
.stage-block-head .num { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.stage-block-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.1; }
.stage-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.5rem;
}
.label {
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.col-head { margin-bottom: 0.75rem; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.who-list li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--hairline);
}
.who-list li:last-child { border-bottom: 1px solid var(--hairline); }
/* Only the audience name navigates, and it looks like it: green, arrowed. */
.who-list .who {
  align-self: start;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-deep);
  text-decoration: none;
}
.who-list .who svg {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.2em;
  vertical-align: -0.08em;
  transition: transform 0.25s var(--ease);
}
.who-list .who:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.who-list .who:hover svg { transform: translateX(3px); }
.who-list .what { font-size: 0.9375rem; line-height: 1.5; }

/* "+N more" reveals the rest in place. */
.more-toggle {
  margin-left: 0.35rem;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--display);
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: var(--brand-deep);
  white-space: nowrap;
  cursor: pointer;
}
.more-toggle:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.more-rest[hidden] { display: none; }

/* ─────────────────────────── Track record ─────────────────────────── */

.quals-1 { grid-template-columns: 1fr !important; }
.quals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.5rem;
}
.quals li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--hairline);
  font-size: 1rem;
  line-height: 1.5;
}
.quals li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--brand);
}

/* ─────────────────────────── Representative work ─────────────────────────── */

.work-list { border-top: 1px solid var(--hairline); }
.work-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.5;
}
.work-src {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

/* ─────────────────────────── Dark band (why, compact) ─────────────────────────── */

/* ─────────────────────────── Team ─────────────────────────── */

/* Uniform photographic headshots, per the CenterNode family standard. Until the
   shots land, every portrait uses assets/headshot-placeholder.svg (see portrait()
   in build.py). */

.person-name { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; }
.person-role {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-deep);
}
.person-bio { margin-top: 1.1rem; max-width: 62ch; }
.person-bio + .person-bio { margin-top: 0.9rem; }

/* ─────────────────────────── Switcher ─────────────────────────── */

.switcher .h-sub { margin-bottom: 1.25rem; }

/* ── Team roster: one list, no photos. Seniority order; CNG titles carry their
   company so nobody reads as a CNES engineer who isn't one. ── */
.people {
  display: grid;
  /* Two columns: ten people make five even rows, with no orphan. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--hairline);
}
.person {
  padding-block: clamp(1.25rem, 2.4vw, 1.75rem);
  border-bottom: 1px solid var(--hairline);
}
.person-org {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  color: var(--muted);
}
.person .person-bio { margin-top: 0.6rem; font-size: 0.9875rem; line-height: 1.6; max-width: 52ch; }
.team-group-label { margin-bottom: 1rem; }
.team-group-next { margin-top: clamp(3rem, 6vw, 4.5rem); }
.people-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.people-4 .person-name { font-size: 1.1875rem; }
.people-4 .person-role { font-size: 0.875rem; }

/* Company marks, as on the CenterNode Group site: CenterNode's node on its own
   chip, Forest Road's tree in white on navy. */
.person-tagged { position: relative; padding-right: 2rem; }
.affil {
  position: absolute;
  top: clamp(1.25rem, 2.4vw, 1.75rem);
  right: 0;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.3125rem;
  line-height: 0;
}
.affil-cn { background: url(assets/cn-node.png) center / contain no-repeat; border-radius: 0; }
.affil-fr { background: #1A2744; }
.affil-fr::before {
  content: "";
  width: 0.875rem;
  height: 0.757rem;
  background: #fff;
  -webkit-mask: url(assets/fr-tree.png) center / contain no-repeat;
  mask: url(assets/fr-tree.png) center / contain no-repeat;
}
.affil-inline { position: static; display: inline-grid; vertical-align: -0.35em; margin-right: 0.45rem; }
.roster-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.roster-key > span { display: inline-flex; align-items: center; }
@media (max-width: 900px) { .people-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* ─────────────────────────── CTA + contact ─────────────────────────── */

.cta { background: var(--brand-dark); color: var(--on-dark); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.cta .h-display { color: #fff; max-width: 20ch; }
.cta p { margin-top: 1.25rem; max-width: 52ch; }

/* Deepest green, one step down from the lifecycle band above it, so the two dark
   sections read as separate. The footer continues it below a hairline. */
.contact { background: var(--brand-ink); color: var(--on-dark); }
.contact + .site-footer, main:has(> .contact:last-child) + .site-footer { border-top: 1px solid var(--on-dark-hairline); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact .h-display { color: #fff; }
.contact-lead p { margin-top: 1.25rem; max-width: 42ch; line-height: 1.7; }
.contact-direct { color: var(--on-dark-muted); }
.contact-direct a { color: #fff; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.contact-direct a:hover { color: var(--brand); }

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

.field label {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #F4F7EF;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346700E' stroke-width='2.2' 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 0.85rem center;
  background-size: 1rem;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #66735B; }

.field input:hover, .field textarea:hover, .field select:hover { background-color: #FAFCF6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 158, 3, 0.32);
}
.field [aria-invalid="true"] {
  border-color: #E5A3A3;
  box-shadow: 0 0 0 3px rgba(214, 106, 106, 0.22);
}

.error { font-size: 0.8125rem; font-weight: 500; line-height: 1.45; color: #F3BFBF; }

.btn-submit { justify-self: start; --btn-bg: var(--brand); color: #10230A; }
.btn-submit:hover { background: #6DB80A; }

.form-status { font-size: 0.9375rem; line-height: 1.6; color: var(--on-dark); }
.form-status:empty { display: none; }
.form-status.is-ok { color: #CBE8A6; font-weight: 500; }

/* ─────────────────────────── Legal pages ───────────────────────────
   Read mode: a quiet dark band for the title, then a long-form column with an
   "On this page" index beside it. */

.legal-hero {
  background: var(--brand-ink);
  color: var(--on-dark);
  padding-block: clamp(8rem, 13vw, 9.5rem) clamp(2.75rem, 5vw, 3.75rem);
}
.legal-hero .page-title { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.legal-date { margin-top: 1rem; font-size: 0.9375rem; color: var(--on-dark-muted); }
.legal-date .tbd { color: var(--on-dark); }

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.legal-toc { position: sticky; top: 6.5rem; }
.legal-toc ol { counter-reset: toc; border-top: 1px solid var(--hairline); }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--hairline); }
.legal-toc a {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  padding-block: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--body);
  text-decoration: none;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.legal-toc a:hover { color: var(--brand-deep); }

.prose { max-width: 70ch; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: 0.75rem; }
.prose ul + p { margin-top: 1rem; }
.prose li { position: relative; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.5rem;
  height: 1px;
  background: var(--brand);
}
.prose strong { font-weight: 600; color: var(--ink); }
.legal-section { padding-top: 2rem; scroll-margin-top: 6.5rem; }
.legal-section + .legal-section { margin-top: 2rem; border-top: 1px solid var(--hairline); }
.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.2;
}
.legal-num { font-size: 0.875rem; font-weight: 600; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.legal-aside { padding: 0.9rem 1rem; background: var(--surface-alt); border-radius: var(--radius); font-size: 0.9375rem !important; }

/* Draft banner: visible until the CCO signs off (LEGAL_DRAFT in build.py). */
.draft-banner {
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--brand-deep);
  border-radius: var(--radius);
  background: var(--surface-card);
  font-size: 0.9375rem !important;
  color: var(--brand-deep);
}
.draft-banner strong { color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--display); }

/* CCPA form: the contact form's fields, on a dark panel. */
.ccpa-wrap { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); max-width: 58rem; }
.ccpa-form {
  margin-top: 0.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: var(--on-dark);
}
.ccpa-form :focus-visible { outline-color: var(--brand); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend {
  margin-bottom: 0.6rem;
  padding: 0;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.choices { display: grid; gap: 0.5rem; }
.choice {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-dark);
  cursor: pointer;
}
.choice input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.field .choice, .ccpa-form .choice {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.ccpa-form .choice-confirm { font-size: 0.9375rem; }
.field-note { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.55; color: var(--on-dark-muted); }
.agent-fields[hidden] { display: none; }

/* Legal links in the footer. */
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.75rem; }
.footer-legal .legal-links a { color: var(--on-dark-muted); text-decoration-color: rgba(175, 191, 162, 0.4); }
.footer-legal .legal-links a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ─────────────────────────── Footer ─────────────────────────── */

.site-footer {
  background: var(--brand-ink);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.7fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-brand .lockup { margin-bottom: 1.5rem; }
.footer-brand .lockup img { width: 300px; max-width: 100%; }
.footer-brand address { color: var(--on-dark); }
.footer-contact { margin-top: 0.75rem; color: var(--on-dark); }
.footer-contact a { color: var(--on-dark); text-decoration-color: rgba(238, 242, 232, 0.4); }
.footer-contact a:hover { color: var(--brand); }

.footer-nav li + li { margin-top: 0.35rem; }
.footer-nav a, .footer-legal a { color: var(--on-dark); text-decoration-color: rgba(238, 242, 232, 0.3); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--brand); }
.footer-nav .label { color: var(--on-dark-muted); }
/* Top-level pages sit at the same rank as "Who We Serve", so they share its type. */
.footer-top { margin-top: 1.5rem; }
.footer-top li + li { margin-top: 0.6rem; }
.footer-nav .footer-top a {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  text-decoration: none;
}
.footer-nav .footer-top a:hover { color: var(--brand); }

.footer-legal p + p { margin-top: 1rem; }
.footer-legal strong { color: var(--on-dark); font-weight: 600; }
.footer-legal .tbd { color: var(--on-dark); }

/* ─────────────────────── Scroll reveal ───────────────────────
   Lists only. The hidden state is added by JS, so content stays visible without it. */

.js-reveal > * { opacity: 0; transform: translateY(14px); }
.js-reveal.is-revealed > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ─────────────────────────── Responsive ─────────────────────────── */

@media (max-width: 1080px) {
  .nav > ul { gap: 1.4rem; }
  .lockup img { width: 290px; }
  .methods{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .split, .contact-inner, .stage-panel, .stage-block-grid, .cta-inner { grid-template-columns: 1fr; }
  .split-lead .h-section { max-width: 22ch; }
  .rail-stage { grid-template-columns: 1fr; }
  
  
  .cta-inner { align-items: start; }
  .survey { display: none; }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 780px) {
  .hero { min-height: 100svh; padding-block: 7rem 5rem; }
  .hero-title { max-width: none; }
  
  .audience-rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .row-tags { grid-column: 1; grid-row: 2; gap: 0.35rem 1rem; }
  .row-tags li + li::before { display: none; }
  .audience-rows .row-arrow { grid-row: 1 / span 2; }
  .stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0.5rem; }
  .stage-track { display: none; }
  .mini-rail ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; }
  .mini-rail ol::before { display: none; }
  
  .methods, .quals, .cols-3{ grid-template-columns: 1fr; }
  
  
  
  .who-list li { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  
  
  .hero-actions .btn { flex: 1 1 100%; }
  
  .work-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .lockup img { width: 250px; max-width: calc(100vw - 2 * var(--gutter) - 5rem); }
}

/* ─────────────────────────── Motion preference ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marked .ring path { stroke-dashoffset: 0; }
  .survey .mark { opacity: 1; animation: none; }
  .hero-frame { animation: none; transform: scale(1.04); }
  .hero-media { transform: none !important; }
  .js-reveal > *, .js-reveal.is-revealed > * { opacity: 1; transform: none; transition: none; }
  .rail-track span { transform: scaleY(1); }
  .stage-panel.is-entering > * { animation: none; }
}

/* Honeypot field for bots; hidden from people and screen readers. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Two-sentence page titles: each sentence starts on its own line. */
.page-title--lines { max-width: 26ch; }

/* Statement headline above "Who We Work For". */
.audiences-lead { margin-bottom: 1.5rem; }
