/* ==========================================================================
   HY-GEN SOLUTIONS B.V. — Design system
   ------------------------------------------------------------------------
   Concept: "One-line diagram". The visual language of a power-systems
   schematic — drafting-paper grids, busbars, breaker symbols, drawing
   reference tags, dimension rules and registration marks — applied to a
   B2B energy-engineering consultancy.

   Contents
     01  Tokens
     02  Reset & base
     03  Typography primitives
     04  Buttons
     05  Layout & sections
     06  Schematic primitives (grid, panels, rules, tags)
     07  Header & navigation
     08  Hero & single-line diagram
     09  Facts / credibility strip
     10  Cards & grids
     11  Service rows & spec lists
     12  Values, team, callouts
     13  Contact & forms
     14  CTA band
     15  Empty states (placeholder pages)
     16  Prose (legal pages)
     17  Footer
     18  Motion
   ========================================================================== */


/* 01  TOKENS ============================================================== */

:root {
  /* Ink — deep desaturated navy, for dark sections */
  --ink-900: #071119;
  --ink-850: #0a1825;
  --ink-800: #0e2032;
  --ink-700: #16304a;
  --ink-600: #1f4364;

  /* Paper — neutral off-white, so rounded white panels read as raised */
  --paper: #eff0f0;
  --paper-dim: #e4e6e7;
  --paper-bright: #f8f9f9;
  --white: #ffffff;

  /* Text */
  --text: #141417;
  --text-muted: #4b4f55;
  --text-faint: #81868d;
  --text-on-dark: #eaf0ec;
  --text-on-dark-muted: #93a7b3;
  --text-on-dark-faint: #5d7382;

  /* Lines */
  --line: #dcdee0;
  --line-strong: #c4c7cb;
  --line-dark: #1d3549;
  --line-dark-strong: #2b4b64;

  /* Accents — brand teal for logo/buttons, lighter cyan for text */
  --volt: #007F86;
  --volt-strong: #00656b;
  --volt-soft: #19C3C8;
  --volt-tint: #e4f4f5;
  --h2: #19C3C8;
  --h2-strong: #007F86;
  --h2-soft: #19C3C8;
  --h2-tint: #e8fbfc;
  --danger: #c0392f;

  /* Type — Satoshi for display, Inter for everything else, matching SumaqX. */
  --f-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Type scale — fluid */
  --step-2: clamp(0.6875rem, 0.67rem + 0.09vw, 0.75rem);
  --step-1: clamp(0.78rem, 0.755rem + 0.12vw, 0.85rem);
  --step0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step1: clamp(1.125rem, 1.07rem + 0.28vw, 1.3125rem);
  --step2: clamp(1.5rem, 1.35rem + 0.72vw, 2.0625rem);
  --step3: clamp(2rem, 1.7rem + 1.45vw, 3.05rem);
  --step4: clamp(2.4rem, 1.95rem + 2.1vw, 3.9rem);

  /* Space & metrics */
  --maxw: 1240px;
  --maxw-narrow: 760px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Elevation — wide and soft, so panels lift off the paper without edges */
  --lift-1: 0 1px 2px rgba(20, 20, 23, 0.04);
  --lift-2: 0 20px 44px -24px rgba(20, 20, 23, 0.20), 0 2px 8px rgba(20, 20, 23, 0.04);
  --lift-dark: 0 18px 50px -20px rgba(0, 0, 0, 0.7);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* 02  RESET & BASE ======================================================== */

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

html {
  scroll-behavior: smooth;
  /* Sticky header height + breathing room, so #anchors don't hide behind it */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--volt); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--h2-soft); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  z-index: 200;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--f-mono);
  font-size: var(--step-1);
  padding: 0.75em 1.25em;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 03  TYPOGRAPHY PRIMITIVES ============================================== */

h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: var(--step3); }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step1); letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; }
.h-lg { font-size: var(--step2); }

.lede {
  font-size: var(--step1);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.55;
  text-wrap: pretty;
}
.on-dark .lede { color: var(--text-on-dark-muted); }

.body-lg { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.7; }
.on-dark .body-lg { color: var(--text-on-dark-muted); }

/* Eyebrow — small caps label with a leading signal line */
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--h2);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.on-dark .eyebrow { color: var(--h2-soft); }

/* Mono utility text */
.mono {
  font-family: var(--f-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Drawing reference tag — e.g. SEC.01 */
.tag {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--white) 60%, transparent);
  white-space: nowrap;
}
.tag-volt { color: var(--volt); border-color: color-mix(in srgb, var(--volt) 35%, transparent); background: var(--volt-tint); }
.tag-h2 { color: var(--h2); border-color: color-mix(in srgb, var(--h2) 45%, transparent); background: var(--h2-tint); }
.on-dark .tag {
  color: var(--text-on-dark-muted);
  border-color: var(--line-dark-strong);
  background: color-mix(in srgb, var(--white) 4%, transparent);
}


/* 04  BUTTONS ============================================================ */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  position: relative;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn .arw {
  display: inline-block;
  transition: transform 0.28s var(--ease-out);
}
.btn:hover .arw { transform: translateX(4px); }
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  --btn-bg: var(--volt);
  --btn-fg: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-primary:hover {
  --btn-bg: var(--volt-strong);
  transform: translateY(-2px);
  box-shadow: var(--lift-2);
}

.btn-ghost {
  --btn-bd: var(--line-strong);
  --btn-fg: var(--text);
}
.btn-ghost:hover {
  --btn-bd: var(--volt);
  --btn-fg: var(--volt);
  background: var(--volt-tint);
  transform: translateY(-2px);
}
.on-dark .btn-ghost { --btn-bd: var(--line-dark-strong); --btn-fg: var(--text-on-dark); }
.on-dark .btn-ghost:hover {
  --btn-bd: var(--h2);
  --btn-fg: var(--h2-soft);
  background: color-mix(in srgb, var(--h2) 10%, transparent);
}

/* Quiet inline link with a sliding rule under it */
.link-quiet {
  font-family: var(--f-body);
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--h2);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.link-quiet:hover { background-size: 100% 1px; }
.on-dark .link-quiet { color: var(--h2-soft); }


/* 05  LAYOUT & SECTIONS ================================================== */

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

.section { padding-block: clamp(3.75rem, 8vw, 7.5rem); }
.section-tight { padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }

.on-dark {
  background: var(--ink-900);
  color: var(--text-on-dark);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }

/* Section header block, with an optional ghost index numeral */
.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 64ch;
  position: relative;
}
.section-head .lede { max-width: 58ch; }

.section-head-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  max-width: none;
}
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 1.15fr 0.85fr; }
}

/* Two-column "statement / detail" band used on About + Home */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-lead { grid-template-columns: 0.9fr 1.1fr; }
}


/* 06  SCHEMATIC PRIMITIVES =============================================== */

/* Panel — a bordered surface with drafting registration marks at two
   opposite corners. The marks pick up the accent on hover. */
.panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--line-strong);
  border-style: solid;
  transition: border-color 0.25s var(--ease);
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.on-dark .panel {
  background: color-mix(in srgb, var(--white) 3.5%, transparent);
  border-color: var(--line-dark);
}
.on-dark .panel::before, .on-dark .panel::after { border-color: var(--line-dark-strong); }

/* Dimension rule — a divider drawn like a drafting measurement line,
   with tick ends and an optional centred mono caption. */
.dim-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dim-rule::before, .dim-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
  position: relative;
}
.dim-rule > span { flex: none; }
.on-dark .dim-rule { color: var(--text-on-dark-faint); }
.on-dark .dim-rule::before, .on-dark .dim-rule::after { background: var(--line-dark); }

/* Ghost index numeral, e.g. a huge translucent "01" behind a heading */
.index-ghost {
  font-family: var(--f-mono);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  display: block;
}
.on-dark .index-ghost { -webkit-text-stroke-color: var(--line-dark-strong); }


/* 07  HEADER & NAVIGATION ================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -8px rgba(7, 17, 25, 0.18);
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

/* Logo — a node symbol plus the wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  flex: none;
}
.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--volt);
  transition: transform 0.4s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-lines { display: flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--volt);
}
.logo-sub {
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem); }

.nav-links { display: none; align-items: center; gap: clamp(1rem, 1.9vw, 1.9rem); }
@media (min-width: 1000px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--f-body);
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: none; padding: 0.8em 1.25em; }
@media (min-width: 1000px) { .nav-cta { display: inline-flex; } }

/* Hamburger → X */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  display: block;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: var(--paper-bright);
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.38s var(--ease-out), border-color 0.3s var(--ease);
}
.mobile-nav.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
.mobile-nav > div { min-height: 0; }
.mobile-nav ul { padding: 0.75rem var(--gutter) 1.25rem; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 0.95rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}
.mobile-nav a.active { color: var(--volt); }
.mobile-nav a::after { content: '→'; color: var(--line-strong); }
.mobile-nav .mobile-cta { padding: 0.5rem var(--gutter) 1.5rem; }
.mobile-nav .mobile-cta .btn { width: 100%; }
@media (min-width: 1000px) { .mobile-nav { display: none; } }


/* 08  HERO & SINGLE-LINE DIAGRAM ========================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}
/* Soft accent wash behind the diagram side */
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 120%;
  background: radial-gradient(circle at 60% 40%,
              color-mix(in srgb, var(--volt) 11%, transparent) 0%,
              transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.25rem) clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
/* The headline spans both columns: at hero size "next-generation" is too long
   a token to wrap cleanly inside half a page. */
.hero-head { grid-column: 1 / -1; }

.hero h1 {
  font-size: var(--step4);
  margin-top: 1.15rem;
  letter-spacing: -0.035em;
  max-width: 26ch;
  /* Keeps the mark's negative z-index scoped to the heading */
  isolation: isolate;
}
/* Mark the key phrase with a drafting dimension bracket — a thin rule closed
   by tick marks — rather than a highlighter slab. */
.hero h1 .mark {
  position: relative;
  white-space: nowrap;
}
.hero h1 .mark::after {
  content: '';
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: 0.04em;
  height: 0.1em;
  border: 0 solid var(--h2);
  border-bottom-width: 0.035em;
  border-left-width: 1px;
  border-right-width: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: mark-in 0.9s var(--ease-out) 0.5s forwards;
}
@keyframes mark-in { to { transform: scaleX(1); } }

.hero-copy { display: grid; align-content: start; }
.hero .lede { margin-bottom: 2rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-spec { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* Capability index — a graphical stand-in for the numbered spec list */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.cap-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--lift-1);
}
.cap-grid .cap-node {
  grid-row: 1 / span 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--volt);
  background: var(--volt-tint);
  display: grid;
  place-items: center;
  color: var(--volt);
}
.cap-grid .cap-node.is-h2 {
  border-color: var(--h2);
  background: var(--h2-tint);
  color: var(--h2);
}
.cap-grid .cap-node svg { width: 18px; height: 18px; }
.cap-grid .cap-n {
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  color: var(--volt);
}
.cap-grid .cap-n.is-h2,
.cap-grid li:has(.is-h2) .cap-n {
  color: var(--h2);
}
.cap-grid .cap-l {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.35;
}

/* Hero photograph — captioned like a plate in a technical report */
.hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-dim);
  box-shadow: var(--lift-2);
}
.hero-figure img {
  width: 100%;
  /* height:auto is required so the img's height attribute doesn't win over
     the aspect ratio below */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.15rem 1rem;
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: linear-gradient(to top, rgba(7, 17, 25, 0.88), transparent);
  display: flex;
  align-items: baseline;
  gap: 0.9em;
}
.hero-figure .fig-ref { color: var(--h2-soft); flex: none; }

/* System-view band: copy beside the hub video */
.diagram-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) {
  .diagram-split { grid-template-columns: 0.85fr 1.15fr; }
}

/* Hub video — a media plate, same lift as the field photographs */
.media-plate {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: var(--lift-2);
}
.diagram-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-900);
}
.diagram-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Title block, like the corner stamp on an engineering drawing */
.diagram-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.diagram-title strong { color: var(--text); font-weight: 500; letter-spacing: 0.08em; }

.diagram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.diagram-legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.diagram-legend i {
  width: 18px; height: 0;
  border-top: 2px dashed currentColor;
  display: inline-block;
}
.diagram-legend .lg-elec { color: var(--volt); }
.diagram-legend .lg-h2 { color: var(--h2-strong); }
.diagram-legend .lg-hint { margin-left: auto; color: var(--text-faint); }

/* --- SVG diagram internals --- */
.sld-bus { stroke: var(--text); stroke-width: 6; stroke-linecap: square; }
.sld-node-body {
  fill: var(--volt-tint);
  stroke-width: 1.8;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease);
}
.sld-group[data-node='hydrogen'] .sld-node-body { fill: var(--h2-tint); }
.sld-plate {
  fill: var(--white);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.sld-site {
  fill: color-mix(in srgb, var(--volt) 3%, transparent);
  stroke: var(--line);
  stroke-dasharray: 5 7;
  stroke-width: 1;
}
.sld-term { fill: var(--text); }
.sld-eq { fill: none; stroke-width: 1.6; }
.sld-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  fill: var(--text-muted);
  transition: fill 0.25s var(--ease);
}
.sld-sub {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  fill: var(--text-faint);
}
.sld-breaker { fill: var(--paper-bright); stroke-width: 1.5; }
.sld-hub-box { fill: var(--ink-900); }
.sld-hub-text { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; fill: var(--h2-soft); }

/* Energy flow — dashes travelling along the conductors */
.sld-flow {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 5 9;
  animation: sld-travel 1.4s linear infinite;
  transition: opacity 0.25s var(--ease), stroke-width 0.25s var(--ease);
}
@keyframes sld-travel { to { stroke-dashoffset: -28; } }
.sld-flow-elec { stroke: var(--volt); }
.sld-flow-h2 { stroke: var(--h2); }

.sld-group { cursor: pointer; }
.sld-group .sld-hit { fill: transparent; }

/* Tracing: dim everything, then light up the hovered branch */
.sld.is-tracing .sld-flow { opacity: 0.18; }
.sld.is-tracing .sld-node-body { stroke-opacity: 0.3; }
.sld.is-tracing .sld-label { fill: var(--text-faint); }
.sld .sld-flow.is-live { opacity: 1; stroke-width: 3; }
.sld .sld-group.is-live .sld-node-body { stroke-opacity: 1; fill: var(--white); }
.sld .sld-group.is-live .sld-label { fill: var(--text); font-weight: 500; }

/* Pulse on the two source nodes, so the diagram breathes before interaction */
.sld-pulse { transform-origin: center; animation: sld-pulse 3.6s ease-in-out infinite; }
@keyframes sld-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.12; } }


/* 09  FACTS / CREDIBILITY STRIP ========================================== */

.fact-strip {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 620px) { .fact-strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .fact-strip { grid-template-columns: repeat(4, 1fr); } }

.fact {
  background: var(--ink-900);
  padding: clamp(1.35rem, 3vw, 2rem);
  display: grid;
  gap: 0.5rem;
  align-content: start;
  transition: background 0.3s var(--ease);
}
.fact:hover { background: var(--ink-850); }
.fact dt {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}
.fact dd {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-on-dark);
  letter-spacing: -0.03em;
}
.fact dd .unit {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--h2-soft);
  display: block;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

/* Inline meta strip (mono key/value pairs on a rule) */
.meta-strip {
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.1rem 2.5rem;
  font-family: var(--f-mono);
  font-size: var(--step-1);
  color: var(--text-on-dark-muted);
}
@media (min-width: 560px) { .meta-strip { grid-template-columns: 1fr 1fr; } }
.meta-strip div { display: grid; gap: 0.3rem; }
.meta-strip dt, .meta-strip .k {
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}
.meta-strip strong, .meta-strip .v { color: var(--h2-soft); font-weight: 500; letter-spacing: 0.04em; }


/* 10  CARDS & GRIDS ====================================================== */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
@media (min-width: 700px) { .grid-2-fixed { grid-template-columns: 1fr 1fr; } }

/* Service card — reads like a labelled schematic block */
.card {
  --card-pad: clamp(1.4rem, 2.4vw, 1.85rem);
  position: relative;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
/* Accent bar that wipes in along the top edge */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.card:hover {
  border-color: color-mix(in srgb, var(--volt) 30%, transparent);
  transform: translateY(-4px);
  box-shadow: var(--lift-2);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 34px; height: 34px;
  color: var(--volt);
  margin-bottom: 0.15rem;
}
.card h3 { font-size: var(--step1); }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card .tag { align-self: flex-start; }
/* Where the card leads with an icon, the reference tag moves to the opposite
   corner and reads as a drawing stamp instead of taking its own row. */
.card:has(.card-icon) .tag {
  position: absolute;
  top: var(--card-pad);
  right: var(--card-pad);
}
/* The link is pushed to the bottom edge; a hairline makes that slack read as
   structure rather than as a gap. */
.card-link {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--h2);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.card-link .arw { transition: transform 0.28s var(--ease-out); }
.card:hover .card-link .arw { transform: translateX(5px); }


/* 11  SERVICE ROWS & SPEC LISTS ========================================== */

.svc-row {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  scroll-margin-top: 96px;
}
.svc-row:last-of-type { border-bottom: 1px solid var(--line); }
.svc-row > .wrap {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (min-width: 880px) {
  .svc-row > .wrap { grid-template-columns: 0.85fr 1.15fr; }
}
.svc-head { display: grid; gap: 0.9rem; align-content: start; position: relative; }
.svc-head .tag { justify-self: start; }
.svc-head h2 { font-size: var(--step2); }
.svc-head .svc-note { color: var(--text-muted); font-size: 0.96rem; max-width: 34ch; }
.svc-icon { width: 40px; height: 40px; color: var(--volt); margin-bottom: 0.35rem; }

/* Deliverables list — mono index + description, on hairlines */
.spec-list { display: grid; }
.spec-list li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.spec-list li:first-child { border-top: 1px solid var(--line); }
.spec-list li:hover { color: var(--text); }
.spec-list .n {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.1em;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
}
.on-dark .spec-list li { border-color: var(--line-dark); color: var(--text-on-dark-muted); }
.on-dark .spec-list li:first-child { border-color: var(--line-dark); }
.on-dark .spec-list li:hover { color: var(--text-on-dark); }
.on-dark .spec-list .n { color: var(--h2-soft); }


/* 12  VALUES, TEAM, CALLOUTS ============================================= */

.value-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.6rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  border-left: 2px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.value-card:hover { border-left-color: var(--volt); background: var(--paper-bright); }
.value-card .tag { justify-self: start; }
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--text-muted); font-size: 0.96rem; }
.on-dark .value-card { border-left-color: var(--line-dark-strong); }
.on-dark .value-card:hover { border-left-color: var(--h2); background: color-mix(in srgb, var(--white) 3%, transparent); }
.on-dark .value-card p { color: var(--text-on-dark-muted); }

/* Team */
.team-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.15rem;
  align-content: start;
  transition: border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { border-color: var(--line-strong); box-shadow: var(--lift-2); }
.team-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }

.node-avatar {
  width: 66px; height: 66px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--h2-soft);
  font-family: var(--f-mono);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
}
/* Photo avatars fill the node instead of shrink-wrapping to intrinsic image size. */
.node-avatar:has(> .node-photo) {
  display: block;
}
/* Concentric ring, like a node symbol on the diagram */
.node-avatar::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid var(--volt);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
  transition: inset 0.35s var(--ease-out), opacity 0.35s var(--ease);
}
.team-card:hover .node-avatar::after { inset: -11px; opacity: 0.75; }

/* Headshot variant — clip the photo in an inner circle so the outer node can
   still carry the ::after ring:
   <span class="node-avatar"><span class="node-photo"><img src="…" alt=""></span></span> */
.node-photo {
  display: block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-dim);
}
.node-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}
/* Square portraits whose face sits nearer the vertical centre. */
.node-photo img.avatar-center {
  object-position: center;
}
/* Seated or three-quarter portraits — keep the crop on the face. */
.node-photo img.avatar-upper {
  object-position: center 12%;
}

.team-name h3 { font-size: 1.2rem; }
.team-name .role {
  font-family: var(--f-mono);
  color: var(--volt);
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.4rem;
}
.team-card .bio { color: var(--text-muted); font-size: 0.96rem; }

/* Mono credential chips */
.cred-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cred-list li {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35em 0.65em;
  background: var(--paper-bright);
}

/* Callout — dashed advisory note */
.callout {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--white) 45%, transparent);
}
.callout strong {
  color: var(--text);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: var(--step-2);
  font-weight: 500;
}

/* Engagement process — three nodes on a bus */
.process {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-2);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.process-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.process-head strong { color: var(--text); font-weight: 500; }
.process-track {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .process-track {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
  }
}
.process-step {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}
.process-step .n {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--volt);
  background: var(--volt-tint);
  color: var(--volt);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.process-step h3 {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.process-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
}
.process-join {
  align-self: center;
  width: 100%;
  height: 2px;
  background: var(--volt);
  opacity: 0.35;
  margin-top: 16px;
}
@media (max-width: 799px) {
  .process-join { width: 2px; height: 18px; margin: 0 0 0 17px; }
}

/* Photo plates — numbered figures in the same language as the hero */
.photo-strip {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
@media (min-width: 800px) { .photo-strip { grid-template-columns: 1fr 1fr; } }
.photo-plate {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-dim);
  box-shadow: var(--lift-2);
  position: relative;
}
.photo-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-plate figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem 0.95rem;
  font-size: var(--step-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: linear-gradient(to top, rgba(7, 17, 25, 0.88), transparent);
  display: flex;
  gap: 0.8em;
  align-items: baseline;
}
.photo-plate .fig-ref { color: var(--h2-soft); flex: none; }

/* Advisory coverage board */
.seat-board {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-2);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  display: grid;
  gap: 0.7rem;
}
.seat-board .ef-label {
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.seat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.seat:last-child { border-bottom: 0; }
.seat-node {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--volt);
  background: var(--volt-tint);
  color: var(--volt);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.seat-node.is-h2 {
  border-color: var(--h2);
  background: var(--h2-tint);
  color: var(--h2);
}
.seat dt {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.seat .role { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt); margin-bottom: 0.2rem; }
.seat dd { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }

/* Address plate */
.addr-plate {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-2);
  padding: 1.35rem 1.5rem 1.2rem;
  margin-bottom: 1.5rem;
}
.addr-plate .diagram-title { margin-bottom: 0.85rem; }
.addr-plate address {
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: var(--text);
}
.form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-2);
  border: 0;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form-panel.panel::before,
.form-panel.panel::after { display: none; }


/* 13  CONTACT & FORMS ==================================================== */

.contact-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 940px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }

.contact-list { display: grid; gap: 0; }
.contact-detail {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.contact-detail:first-child { border-top: 1px solid var(--line); }
.contact-detail .tag { justify-self: start; margin-bottom: 0.2rem; }
.contact-detail p, .contact-detail a {
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
}
.contact-detail a { color: var(--h2); }
.contact-detail a:hover { text-decoration: underline; text-underline-offset: 3px; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.75rem;
  aspect-ratio: 4 / 3;
  background: var(--paper-dim);
  position: relative;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* Form */
.form-grid { display: grid; gap: 1.25rem; }
.form-row-2 { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; }
label {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}
label .req { color: var(--volt); }

input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
textarea, select {
  width: 100%;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--text);
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:not([type='checkbox']):not([type='radio']):hover,
textarea:hover, select:hover { border-color: var(--line-strong); }
input:not([type='checkbox']):not([type='radio']):focus,
textarea:focus, select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--volt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 14%, transparent);
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.35rem) calc(50% - 0.18rem),
    calc(100% - 0.95rem) calc(50% - 0.18rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

input:not([type='checkbox']):not([type='radio'])[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.checkbox-row input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin: 0.18em 0 0;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background-color: var(--white);
  background-image: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.checkbox-row input[type='checkbox']:hover { border-color: var(--volt); }
.checkbox-row input[type='checkbox']:focus-visible {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 14%, transparent);
}
.checkbox-row input[type='checkbox']:checked {
  background-color: var(--volt);
  border-color: var(--volt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.2 6.2 4.8 8.8 9.8 3.2' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem;
}
.checkbox-row input[type='checkbox'][aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}
.checkbox-row label {
  margin: 0;
  text-transform: none;
  font-family: var(--f-body);
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-row a { color: var(--h2); text-decoration: underline; text-underline-offset: 2px; }

.field-error {
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 1.25em;
  display: block;
  margin-top: 0.4rem;
}

.form-status {
  font-family: var(--f-body);
  font-size: 0.925rem;
  line-height: 1.6;
  padding: 1rem 1.15rem;
  border: 1px solid var(--h2);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  color: var(--h2-strong);
  background: var(--h2-tint);
  margin-top: 1rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--white)); }

.form-footnote {
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 1rem;
}
.form-footnote a { color: var(--h2); }


/* 14  CTA BAND =========================================================== */

.cta-band {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(80% 130% at 100% 0%,
              color-mix(in srgb, var(--volt) 30%, transparent) 0%,
              transparent 60%);
}
@media (min-width: 820px) {
  .cta-band { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.cta-band h3 { font-size: var(--step2); margin-top: 0.75rem; color: var(--text-on-dark); max-width: 34ch; }
.cta-band .btn { flex: none; }


/* 15  EMPTY STATES (placeholder pages) =================================== */

.empty-state {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: center;
}
@media (min-width: 880px) {
  .empty-state { grid-template-columns: 1.1fr 0.9fr; }
}
.empty-copy { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.empty-copy p { color: var(--text-muted); max-width: 48ch; }

/* A schematic "nothing here yet" figure: dashed placeholder nodes on a bus */
.empty-figure {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: color-mix(in srgb, var(--white) 40%, transparent);
  display: grid;
  gap: 0.9rem;
}
.empty-figure .ef-label {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.empty-slot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}
.empty-slot:last-child { border-bottom: 0; }
.empty-slot .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  flex: none;
}
.empty-slot .bar {
  height: 8px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    var(--paper-dim) 0 6px,
    transparent 6px 12px
  );
  border: 1px solid var(--line);
}
.empty-slot:nth-child(2) .bar { width: 92%; }
.empty-slot:nth-child(3) .bar { width: 74%; }
.empty-slot:nth-child(4) .bar { width: 86%; }


/* 16  PROSE (legal pages) ================================================ */

.prose { display: grid; gap: 1.35rem; max-width: 68ch; }
.prose h2 {
  font-size: var(--step1);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { color: var(--text-muted); }
.prose ul { display: grid; gap: 0.7rem; }
.prose ul li {
  color: var(--text-muted);
  padding-left: 1.4em;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--volt);
}
.prose a { color: var(--h2); text-decoration: underline; text-underline-offset: 3px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.25rem);
}
.page-hero .page-hero-inner { display: grid; gap: 1.1rem; max-width: 62ch; }
.page-hero h1 { font-size: var(--step3); }
.page-hero .lede { max-width: 56ch; }
.breadcrumb {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  gap: 0.6em;
  align-items: center;
  margin-bottom: 0.25rem;
}
.breadcrumb a:hover { color: var(--volt); }
.breadcrumb .sep { color: var(--line-strong); }


/* 17  FOOTER ============================================================= */

.site-footer {
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  position: relative;
}
/* Hairline busbar across the top of the footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--volt) 0%, var(--h2) 55%, transparent 100%);
  opacity: 0.75;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.5fr 1fr 1.15fr 1fr;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand .logo { margin-bottom: 1.1rem; }
.footer-brand .logo-word { color: var(--text-on-dark); }
.footer-brand .logo-sub { color: var(--text-on-dark-faint); }
.footer-brand .logo-mark { color: var(--volt); }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-faint);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a, .footer-col p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  display: block;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col a:hover { color: var(--h2-soft); }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  color: var(--text-on-dark-faint);
}
.footer-bottom .legal-ids { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--h2-soft); }


/* 18  MOTION ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .mark::after { transform: scaleX(1); }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .map-frame, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .on-dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero::after { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
