/* Rydberg Power -- rydbergpower.com stylesheet.
   Brand of record: RydB-WEB-TM-2026-1111 Rev 1.0 and the Rydberg Power design system.
   Plain CSS, no framework. Colours are declared once, in the token block below, and read
   everywhere else through custom properties. No shadows. One radius. Motion: colour only. */

/* ---------- Fonts (self hosted, OFL 1.1) ---------- */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens: Rydberg DNA, RydB-WEB-TM-2026-1111 ---------- */
:root {
  color-scheme: light dark;
  /* Brand of record (fixed in both themes) */
  --mark-navy: #002245;
  --navy: #16294D;
  --navy-deep: #0B1F3F;
  --gold: #C8862B;
  --gold-light: #F2C26B;
  --cyan: #19B6C9;
  --paper: #FFFDF6;
  --ink-soft: #4A5872;
  --paper-72: rgba(255, 253, 246, 0.72);
  --paper-60: rgba(255, 253, 246, 0.6);
  --paper-28: rgba(255, 253, 246, 0.28);
  --paper-16: rgba(255, 253, 246, 0.16);
  --paper-08: rgba(255, 253, 246, 0.08);
  --navy-16: rgba(22, 41, 77, 0.16);
  --navy-06: rgba(22, 41, 77, 0.06);
  --cyan-24: rgba(25, 182, 201, 0.24);
  --gold-24: rgba(200, 134, 43, 0.24);

  /* Semantic, light theme */
  --bg: var(--paper);
  --band: var(--navy);
  --band-deep: var(--navy-deep);
  --code-bg: var(--navy-deep);
  --text: var(--navy);
  --text-muted: var(--ink-soft);
  --text-on-band: var(--paper);
  --text-muted-on-band: var(--paper-72);
  --accent: var(--gold);
  --accent-on-band: var(--gold-light);
  --eyebrow: var(--navy);
  --link: var(--navy);
  --link-underline: var(--navy);
  --link-hover: var(--navy);
  --action: var(--navy);
  --on-action: var(--paper);
  --action-hover: var(--navy-deep);
  --action-on-band: var(--gold-light);
  --border-control: var(--ink-soft);
  --hairline: var(--navy-16);
  --tint: var(--navy-06);
  --focus: var(--navy);
  --focus-on-band: var(--gold-light);
  --map-dot: var(--paper-28);

  /* Type */
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font: var(--font-sans);
  --mono: var(--font-mono);
  --t-hero: clamp(32px, 5vw, 58px);
  --t-h1: clamp(27px, 3.5vw, 40px);
  --t-h2: clamp(21px, 2.4vw, 28px);
  --t-h3: 18px;
  --t-body: 16px;

  /* Space, radius, layout */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius: 14px;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy-deep);
    --code-bg: var(--navy);
    --text: var(--paper);
    --text-muted: var(--paper-72);
    --eyebrow: var(--gold-light);
    --link: var(--gold-light);
    --link-underline: var(--gold-light);
    --link-hover: var(--cyan);
    --action: var(--gold-light);
    --on-action: var(--navy);
    --action-hover: var(--paper);
    --border-control: var(--paper-60);
    --hairline: var(--paper-16);
    --tint: var(--paper-08);
    --focus: var(--gold-light);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--t-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rp-band :focus-visible, .band :focus-visible { outline-color: var(--focus-on-band); }
strong { font-weight: 600; }
.mono, .figure { font-family: var(--font-mono); font-weight: 500; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 10;
  padding: var(--s3) var(--s5); border-radius: var(--radius);
  background: var(--gold-light); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s4); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 768px) { .container { padding-inline: var(--s7); } }
.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }
.section--tight { padding-block: var(--s7); }
.section + .section:not(.band) { border-top: 1px solid var(--hairline); }
.band { background: var(--band); color: var(--text-on-band); }
.band--deep { background: var(--band-deep); }
.band a:not(.btn) { color: var(--text-on-band); text-decoration-color: var(--accent-on-band); }
.band a:not(.btn):hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.stack > * + * { margin-top: var(--s5); }
.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--2 { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .grid--2 { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); } .split--rev > :first-child { order: 2; } }
.measure { max-width: 62ch; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: var(--s3);
  margin: 0 0 var(--s3); font-size: 16px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow);
}
.eyebrow::before { content: ""; flex: none; width: var(--s5); height: 2px; background: var(--accent); }
.band .eyebrow { color: var(--accent-on-band); }
.kicker { letter-spacing: 0.3em; }
.kicker::before { display: none; }
.h-hero { font-size: var(--t-hero); line-height: 1.12; letter-spacing: -0.01em; }
.h1 { font-size: var(--t-h1); line-height: 1.15; letter-spacing: -0.01em; }
.h2 { font-size: var(--t-h2); line-height: 1.25; }
.h3 { font-size: var(--t-h3); line-height: 1.4; }
.lead { font-size: 18px; line-height: 1.65; font-weight: 300; color: var(--text-muted); max-width: 60ch; }
.band .lead { color: var(--text-muted-on-band); }
.muted { color: var(--text-muted); }
.band .muted { color: var(--text-muted-on-band); }
.accent-text { color: var(--accent-on-band); } /* on band only */
.section-head { margin-bottom: var(--s7); display: grid; gap: var(--s4); }
.section-head .h2, .section-head .h1 { display: flex; align-items: center; gap: var(--s4); }
.section-head--rule .h2::after {
  content: ""; flex: 1 1 auto; height: 2px; min-width: var(--s6);
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head p { margin: 0; max-width: 62ch; color: var(--text-muted); }
.band .section-head p { color: var(--text-muted-on-band); }
.section-head--split { gap: var(--s5); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- Links and buttons ---------- */
.link {
  color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 500;
  transition: color 150ms, text-decoration-thickness 150ms;
}
.link:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.link--arrow::after { content: " \2192"; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; min-width: 44px; padding: var(--s3) var(--s5);
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-control); }
.btn--secondary:hover { border-color: var(--text); }
.band .btn--primary { background: var(--action-on-band); color: var(--navy); }
.band .btn--primary:hover { background: var(--paper); color: var(--navy); }
.band .btn--secondary { color: var(--text-on-band); border-color: var(--text-muted-on-band); }
.band .btn--secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ---------- Header ---------- */
.site-header { background: var(--band); color: var(--text-on-band); position: relative; z-index: 5; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: var(--s3); color: inherit; text-decoration: none; }
.lockup__mark { width: 44px; height: 44px; flex: none; }
.lockup__text { display: flex; flex-direction: column; gap: 3px; }
.lockup__name { font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: 0.055em; text-transform: uppercase; white-space: nowrap; }
.lockup__sub { font-size: 11px; line-height: 1.3; font-weight: 400; letter-spacing: 0.17em; text-transform: uppercase; white-space: nowrap; color: var(--text-muted-on-band); }
@media (max-width: 479px) { .site-header .lockup__sub { display: none; } }
.nav ul { list-style: none; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding-inline: var(--s2);
  color: var(--text-on-band); text-decoration: none; font-weight: 500; font-size: 16px;
  border-bottom: 2px solid transparent; transition: color 150ms, border-color 150ms;
}
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent-on-band); }
.nav__wide { display: none; }
.nav__menu summary {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding-inline: var(--s4);
  border: 2px solid var(--text-muted-on-band); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; list-style: none;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary svg { width: 18px; height: 18px; }
.nav__menu[open] summary { border-color: var(--accent-on-band); }
.nav__menu ul {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--band); border-top: 1px solid var(--paper-16);
  padding: var(--s3) var(--s4) var(--s5);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s4);
}
@media (min-width: 768px) { .nav__menu ul { padding-inline: var(--s7); } }
@media (min-width: 1100px) {
  .nav__menu { display: none; }
  .nav__wide { display: block; }
  .nav__wide ul { display: flex; gap: var(--s1) var(--s2); }
}
.nav__cta { margin-left: var(--s3); }
.nav__wide .nav__cta a {
  padding-inline: var(--s4); border: 2px solid var(--accent-on-band); border-radius: var(--radius);
}
.nav__wide .nav__cta a:hover { border-color: var(--cyan); }
.tri-rule { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tri-rule span:nth-child(1) { background: var(--navy); }
.tri-rule span:nth-child(2) { background: var(--gold); }
.tri-rule span:nth-child(3) { background: var(--cyan); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--band); color: var(--text-on-band); }
.hero__inner { display: grid; gap: var(--s7); padding-block: var(--s8) var(--s7); align-items: center; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.2fr 1fr; padding-block: var(--s9) var(--s8); } }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent-on-band); }
.hero .lead { margin-top: var(--s5); }
.hero .actions { margin-top: var(--s6); }
.hero__art { position: relative; }
.hero__art svg { display: block; width: 100%; height: auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s3); margin-top: var(--s6);
  padding: var(--s2) var(--s4) var(--s2) var(--s2); border: 1px solid var(--paper-16); border-radius: 999px;
  color: var(--text-muted-on-band); font-size: 16px;
}
.hero__badge b { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding-inline: var(--s2); border-radius: 999px; background: var(--paper-08); color: var(--accent-on-band); font: 500 16px/1 var(--font-mono); }

/* Page hero (inner pages) */
.page-hero { background: var(--band); color: var(--text-on-band); position: relative; overflow: hidden; }
.page-hero__inner { padding-block: var(--s8); display: grid; gap: var(--s6); align-items: end; position: relative; }
@media (min-width: 768px) { .page-hero__inner { padding-block: var(--s9) var(--s8); } }
@media (min-width: 960px) { .page-hero__inner { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero .lead { margin-top: var(--s4); }
.page-hero__arcs { position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; pointer-events: none; }
.page-hero__arcs circle { fill: none; stroke: var(--paper-08); stroke-width: 1.5; }
.page-hero__arcs circle.a { stroke: var(--gold-24); }
.breadcrumb { display: flex; gap: var(--s2); list-style: none; margin-bottom: var(--s5); color: var(--text-muted-on-band); font-size: 16px; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--paper-28); }
.breadcrumb a { color: var(--text-muted-on-band) !important; text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan) !important; }
.page-hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.page-hero__facts div { border-top: 2px solid var(--accent); padding-top: var(--s3); }
.page-hero__facts b { display: block; font: 500 22px/1.2 var(--font-mono); color: var(--accent-on-band); }
.page-hero__facts span { color: var(--text-muted-on-band); }

/* ---------- Numbers strip ---------- */
.numbers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s5); }
@media (min-width: 768px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .numbers--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.numbers li { border-top: 2px solid var(--accent); padding-top: var(--s4); }
.numbers__value { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; font-size: var(--t-h1); line-height: 1.1; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.numbers__unit { font: 500 16px/1 var(--font-mono); color: var(--text-muted); letter-spacing: 0; }
.numbers__label { display: block; margin-top: var(--s2); font-size: 16px; line-height: 1.4; color: var(--text-muted); }
.band .numbers__value { color: var(--accent-on-band); }
.band .numbers__unit, .band .numbers__label { color: var(--text-muted-on-band); }
.numbers-wrap { border-top: 1px solid var(--paper-16); padding-block: var(--s7); }
.numbers-note { margin-top: var(--s5); color: var(--text-muted-on-band); font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5);
  background: var(--bg); color: var(--text); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.card h3 { font-size: var(--t-h3); line-height: 1.4; }
.card p { margin: 0; color: var(--text-muted); }
.card--link { text-decoration: none; transition: border-color 150ms; }
.card--link:hover { border-color: var(--text); }
.band .card { background: var(--paper-08); color: var(--text-on-band); border-color: var(--paper-16); }
.band .card p { color: var(--text-muted-on-band); }
.tag {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: var(--s2);
  border: 2px solid var(--accent); border-radius: var(--radius);
  font: 500 18px/1 var(--font-mono); color: var(--text);
}
.band .tag { color: var(--accent-on-band); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 28px; padding: 2px var(--s3);
  border: 1px solid var(--hairline); border-radius: 999px; font-size: 16px; line-height: 1.3; color: var(--text-muted);
}
.band .chip { border-color: var(--paper-16); color: var(--text-muted-on-band); }
.chip--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.chip--gold::before { background: var(--gold); }
.icon { width: 44px; height: 44px; flex: none; color: var(--text); }
.icon svg { width: 100%; height: 100%; }
.icon--tile { display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s2); }
.band .icon { color: var(--accent-on-band); }
.list-check { list-style: none; display: grid; gap: var(--s2); }
.list-check li { position: relative; padding-left: var(--s6); }
.list-check li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em; width: 14px; height: 2px; background: var(--accent);
}
.open {
  display: inline-flex; align-items: center; gap: var(--s1); padding: 0 var(--s2);
  border: 1px dashed currentColor; border-radius: 6px;
  font: 500 16px/1.5 var(--font-mono); letter-spacing: 0.04em;
}

/* ---------- Service families ---------- */
.services { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.service { position: relative; padding: var(--s6) var(--s5) var(--s5); }
.service__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.service .list-check { margin-top: var(--s2); color: var(--text-muted); }
.band .service .list-check { color: var(--text-muted-on-band); }
.service-row { display: grid; gap: var(--s5); padding-block: var(--s7); border-top: 1px solid var(--hairline); }
.service-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service-row { grid-template-columns: 96px 1fr 1.1fr; gap: var(--s7); } }
.service-row__letter {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--accent); font: 500 32px/1 var(--font-mono);
}
.service-row h2 { font-size: var(--t-h2); margin-bottom: var(--s3); }
.service-row .list-check { color: var(--text); }

/* ---------- Statement ---------- */
.statement { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; font-weight: 300; max-width: 30ch; }
.statement strong { font-weight: 600; }
.statement-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .statement-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s8); align-items: start; } }
.is-not { display: grid; gap: var(--s4); }
.is-not div { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); align-items: start; padding-bottom: var(--s4); border-bottom: 1px solid var(--hairline); }
.is-not div:last-child { border-bottom: 0; }
.is-not svg { width: 32px; height: 32px; }
.is-not .yes { color: var(--text); }
.is-not .no { color: var(--text-muted); }

/* ---------- Principles (why Rydberg) ---------- */
.principles { list-style: none; display: grid; gap: var(--s5); counter-reset: p; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(5, 1fr); } }
.principles li { border-top: 2px solid var(--accent); padding-top: var(--s4); }
.principles .num { font: 500 16px/1 var(--font-mono); color: var(--text-muted); }
.band .principles .num { color: var(--accent-on-band); }
.principles h3 { margin: var(--s3) 0 var(--s2); font-size: var(--t-h3); }
.principles p { color: var(--text-muted); margin: 0; }
.band .principles p { color: var(--text-muted-on-band); }

/* ---------- Lifecycle (six phases) ---------- */
.phases { list-style: none; display: grid; gap: var(--s4); }
@media (min-width: 700px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { position: relative; padding: var(--s5); border: 1px solid var(--hairline); border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--s3); }
.band .phase { border-color: var(--paper-16); background: var(--paper-08); }
.phase__top { display: flex; align-items: center; gap: var(--s3); }
.phase__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--action); color: var(--on-action); font: 500 16px/1 var(--font-mono); flex: none; }
.band .phase__n { background: var(--gold-light); color: var(--navy); }
.phase__when { font: 500 16px/1.4 var(--font-mono); color: var(--text-muted); }
.band .phase__when { color: var(--accent-on-band); }
.phase h3 { font-size: var(--t-h3); }
.phase .list-check { color: var(--text-muted); }
.band .phase .list-check { color: var(--text-muted-on-band); }

/* ---------- Map ---------- */
.map-frame { position: relative; border-radius: var(--radius); background: var(--band-deep); border: 1px solid var(--paper-16); padding: var(--s4); }
@media (min-width: 768px) { .map-frame { padding: var(--s6); } }
.map { display: block; width: 100%; height: auto; overflow: visible; }
.map__dots { fill: none; stroke: var(--map-dot); stroke-width: 3.6; stroke-linecap: round; }
#map-na .map__dots { stroke-width: 3.8; }
.pin__dot { stroke: var(--band-deep); stroke-width: 2; }
.pin--project .pin__dot { fill: var(--cyan); }
.pin--office .pin__dot { fill: var(--gold); }
.pin__ring { fill: none; stroke-width: 1.5; }
.pin--office .pin__ring { stroke: var(--gold-light); }
.pin--programme .pin__ring { stroke: var(--cyan); fill: var(--cyan-24); }
.pin--project:hover .pin__dot { fill: var(--paper); }
.map-label { fill: var(--paper); font: 600 15px var(--font-sans); paint-order: stroke; stroke: var(--band-deep); stroke-width: 5px; stroke-linejoin: round; }
.map-label--office { fill: var(--gold-light); }
.pin__num { fill: var(--paper); font: 500 12px var(--font-mono); paint-order: stroke; stroke: var(--band-deep); stroke-width: 4px; }
@media (max-width: 700px) {
  .map-label { font-size: 24px; stroke-width: 7px; }
  #map-world .pin--project .pin__dot { r: 11; }
  #map-world .pin--programme .pin__dot { r: 12; }
  #map-world .pin__ring { r: 24; }
  #map-world .pin--office .pin__dot { width: 22px; height: 22px; x: -11px; y: -11px; }
  #map-na .pin__num { font-size: 30px; stroke-width: 7px; }
  #map-na .pin__num { transform: translateY(-8px); }
  #map-na .pin--project .pin__dot { r: 11; }
  #map-na .pin--office .pin__dot { width: 22px; height: 22px; x: -11px; y: -11px; }
  #map-na .pin__ring { r: 22; }
}
@media (max-width: 479px) {
  #map-world .map-label { display: none; }
}
.map-legend { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s5); color: var(--text-muted-on-band); list-style: none; }
.map-legend li { display: inline-flex; align-items: center; gap: var(--s2); }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); }
.map-legend i.o { border-radius: 4px; background: var(--gold); box-shadow: none; outline: 1.5px solid var(--gold-light); outline-offset: 3px; }
.map-legend i.p { outline: 1.5px solid var(--cyan); outline-offset: 3px; }
.map-callouts { display: grid; gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 900px) { .map-callouts { grid-template-columns: repeat(3, 1fr); } }
.callout { padding: var(--s5); border-radius: var(--radius); border: 1px solid var(--paper-16); }
.callout--cyan { border-left: 0; background: var(--paper-08); }
.callout h3 { font-size: var(--t-h3); margin-bottom: var(--s2); }
.callout p { color: var(--text-muted-on-band); margin: 0; }
.callout .chip { margin-bottom: var(--s3); }

/* ---------- Project list (CSS-only filters, works with scripts off) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); border: 0; padding: 0; }
.filters legend { width: 100%; margin-bottom: var(--s3); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters label {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s4);
  border: 2px solid var(--border-control); border-radius: 999px; cursor: pointer; font-weight: 500;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.filters label:hover { border-color: var(--text); }
.filters input:checked + label { background: var(--action); color: var(--on-action); border-color: var(--action); }
.filters input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.filters label .count { font: 500 16px/1 var(--font-mono); opacity: 0.8; }
.project-list { list-style: none; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.project { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); padding: var(--s5); border: 1px solid var(--hairline); border-radius: var(--radius); align-content: start; scroll-margin-top: var(--s6); }
.project:target { border-color: var(--text); border-width: 2px; }
.project__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cyan); font: 500 16px/1 var(--font-mono); grid-row: span 3; }
.project h3 { font-size: var(--t-h3); line-height: 1.35; }
.project__place { color: var(--text-muted); }
.project__facts { grid-column: 2; display: grid; gap: var(--s1); margin: var(--s2) 0 0; }
.project__facts div { display: grid; grid-template-columns: 64px 1fr; gap: var(--s3); }
.project__facts dt { color: var(--text-muted); }
.project__facts dd { margin: 0; font-family: var(--font-mono); font-weight: 500; }
.project__tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.project__note { grid-column: 1 / -1; margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--hairline); color: var(--text-muted); }
.filterable:has(#f-us:checked) .project:not([data-region="us"]),
.filterable:has(#f-canada:checked) .project:not([data-region="canada"]),
.filterable:has(#f-latam:checked) .project:not([data-region="latam"]),
.filterable:has(#f-africa:checked) .project:not([data-region="africa"]),
.filterable:has(#f-central-asia:checked) .project:not([data-region="central-asia"]),
.filterable:has(#f-pacific:checked) .project:not([data-region="pacific"]),
.filterable:has(#f-bess:checked) .project:not([data-bess]) { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
caption { text-align: left; padding: var(--s4) var(--s5); font-weight: 600; }
th, td { text-align: left; padding: var(--s3) var(--s5); border-top: 1px solid var(--hairline); vertical-align: top; }
thead th { font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; background: var(--tint); border-top: 0; }
td.mono { white-space: nowrap; }

/* ---------- Team ---------- */
.team { list-style: none; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.person { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.person__photo { position: relative; aspect-ratio: 4 / 4.2; background: var(--band); }
.person__photo svg, .person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__photo .open { position: absolute; left: var(--s3); bottom: var(--s3); color: var(--gold-light); background: var(--navy-deep); border-color: var(--gold-light); }
.person__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.person h3 { font-size: var(--t-h3); }
.person__title { font-weight: 500; }
.person__office { color: var(--text-muted); display: flex; gap: var(--s2); align-items: flex-start; }
.person__office svg { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.person__focus { color: var(--text-muted); margin-top: var(--s2); }
.person__links { margin-top: auto; padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; border-top: 1px solid var(--hairline); }
.person__links a { display: inline-flex; align-items: center; min-height: 44px; }
.ph-bg { fill: var(--navy); }
.ph-arc { fill: none; stroke: var(--paper-16); stroke-width: 1.5; }
.ph-arc.g { stroke: var(--gold); }
.ph-sun { fill: var(--gold-light); }
.ph-init { fill: var(--paper); font: 600 64px var(--font-sans); letter-spacing: 0.02em; }
.ph-init--lg { font-size: 84px; }
.video .pv-kicker { font-size: 22px; }
.video .pv-title { font-size: 52px; }
.ph-line { stroke: var(--cyan); stroke-width: 3; }
.team-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
@media (min-width: 700px) { .team-strip { grid-template-columns: repeat(8, 1fr); } }
.team-strip a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; }
.team-strip svg { width: 100%; height: 100%; display: block; }
.team-strip a:hover .ph-bg { fill: var(--navy-deep); }

/* ---------- Offices ---------- */
.offices { list-style: none; display: grid; gap: var(--s5); }
@media (min-width: 960px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.office__art { background: var(--band); aspect-ratio: 16 / 9; }
.office__art svg { width: 100%; height: 100%; display: block; }
.office__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.office__role { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 16px; color: var(--text-muted); }
.office h3 { font-size: var(--t-h2); }
.office dl { display: grid; gap: var(--s2); margin: var(--s2) 0 0; }
.office dl div { display: grid; grid-template-columns: 80px 1fr; gap: var(--s3); align-items: baseline; }
.office dt { color: var(--text-muted); }
.office dd { margin: 0; overflow-wrap: break-word; }

/* ---------- Process flow (water to wire) ---------- */
.flow { list-style: none; display: grid; gap: var(--s3); counter-reset: f; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { position: relative; padding: var(--s5); border: 1px solid var(--hairline); border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--s2); }
.band .flow li { border-color: var(--paper-16); background: var(--paper-08); }
.flow .step { font: 500 16px/1 var(--font-mono); color: var(--text-muted); }
.band .flow .step { color: var(--accent-on-band); }
.flow h3 { font-size: var(--t-h3); }
.flow p { margin: 0; color: var(--text-muted); }
.band .flow p { color: var(--text-muted-on-band); }
.flow .icon { width: 48px; height: 48px; }

/* ---------- Diagrams and illustrations (inline SVG classes) ---------- */
.diagram { display: block; width: 100%; height: auto; }
.diagram-frame { border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s5); background: var(--bg); }
.band .diagram-frame { border-color: var(--paper-16); background: var(--band-deep); }
.figcap { margin-top: var(--s3); color: var(--text-muted); font-size: 16px; }
.band .figcap { color: var(--text-muted-on-band); }
/* illustration palette */
.il-sky-a { stop-color: var(--navy-deep); }
.il-sky-b { stop-color: var(--navy); }
.il-water-a { stop-color: var(--navy); }
.il-water-b { stop-color: var(--navy-deep); }
.il-sun { fill: var(--gold-light); }
.il-arc { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.55; }
.il-arc2 { fill: none; stroke: var(--paper-16); stroke-width: 1.2; }
.il-wave { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; opacity: 0.55; }
.il-wave2 { fill: none; stroke: var(--paper-16); stroke-width: 1.2; stroke-linecap: round; }
.il-panel { fill: var(--navy-deep); stroke: var(--paper-60); stroke-width: 1; }
.il-panel-top { fill: var(--paper); }
.il-panel-face { fill: var(--navy); }
.il-cell { stroke: var(--paper-16); stroke-width: 0.8; fill: none; }
.il-float { fill: var(--paper-72); }
.il-shine { fill: var(--cyan); opacity: 0.35; }
.il-bess { fill: var(--paper); }
.il-bess-face { fill: var(--paper-72); }
.il-bess-line { stroke: var(--navy); stroke-width: 1.2; }
.il-led { fill: var(--cyan); }
.il-tower { fill: none; stroke: var(--paper-60); stroke-width: 1.6; stroke-linejoin: round; }
.il-wire { fill: none; stroke: var(--paper-28); stroke-width: 1.2; }
.il-ground { fill: var(--navy-deep); }
.il-hill { fill: var(--navy); }
.il-hill2 { fill: var(--band-deep); }
.il-gold { fill: var(--gold); }
.il-cyan { fill: var(--cyan); }
.il-cyan-s { fill: none; stroke: var(--cyan); }
.il-gold-s { fill: none; stroke: var(--gold); }
.il-paper { fill: var(--paper); }
.il-paper-s { fill: none; stroke: var(--paper); }
.il-muted-s { fill: none; stroke: var(--paper-28); }
.il-text { fill: var(--paper); font: 500 13px var(--font-mono); }
.il-text-muted { fill: var(--paper-72); font: 400 13px var(--font-mono); }
.il-text-gold { fill: var(--gold-light); font: 600 13px var(--font-mono); letter-spacing: 0.08em; }
.il-label { fill: var(--paper); font: 600 15px var(--font-sans); }
/* line diagrams on paper */
.dg-line { fill: none; stroke: var(--text); stroke-width: 2; }
.dg-thin { fill: none; stroke: var(--text-muted); stroke-width: 1.2; }
.dg-grid { stroke: var(--hairline); stroke-width: 1; }
.dg-solar { fill: var(--gold-24); stroke: var(--gold); stroke-width: 2.5; }
.dg-bess { fill: var(--cyan-24); stroke: var(--cyan); stroke-width: 2.5; }
.dg-demand { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 6 6; }
.dg-text { fill: var(--text); font: 500 14px var(--font-mono); }
.dg-text-muted { fill: var(--text-muted); font: 400 14px var(--font-mono); }
.dg-label { fill: var(--text); font: 600 15px var(--font-sans); }
.dg-fill { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.dg-gold { fill: var(--gold); }
.dg-cyan { fill: var(--cyan); }
.dg-text-gold { fill: var(--text); font: 600 14px var(--font-sans); }

/* ---------- Timeline (35-year plant) ---------- */
.lifeline { list-style: none; display: grid; gap: 0; position: relative; }
@media (min-width: 960px) { .lifeline { grid-template-columns: repeat(6, 1fr); } }
.lifeline li { position: relative; padding: var(--s5) var(--s4) var(--s5) var(--s6); border-left: 2px solid var(--accent); }
@media (min-width: 960px) { .lifeline li { border-left: 0; border-top: 2px solid var(--accent); padding: var(--s5) var(--s4) 0 0; } }
.lifeline li::before { content: ""; position: absolute; left: -7px; top: var(--s5); width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); border: 2px solid var(--band); }
@media (min-width: 960px) { .lifeline li::before { left: 0; top: -7px; } }
.lifeline .yr { font: 500 16px/1 var(--font-mono); color: var(--accent-on-band); }
.lifeline h3 { margin: var(--s3) 0 var(--s2); font-size: var(--t-h3); }
.lifeline p { color: var(--text-muted-on-band); margin: 0; }

/* ---------- Glossary ---------- */
.glossary { list-style: none; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.term { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4); padding: var(--s5); border: 1px solid var(--hairline); border-radius: var(--radius); align-items: start; }
.term .icon { width: 56px; height: 56px; padding: var(--s2); border-radius: var(--radius); background: var(--band); color: var(--gold-light); }
.term dt { font-weight: 600; }
.term dt abbr { text-decoration: none; }
.term dt span { display: block; color: var(--text-muted); font-weight: 400; }
.term dd { margin: var(--s2) 0 0; color: var(--text-muted); }

/* ---------- Compare (FPV / ground / APV) ---------- */
.compare { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.compare .card svg { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); background: var(--band); }

/* ---------- Video facade ---------- */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--band-deep); color: var(--text-on-band); text-decoration: none;
  border: 1px solid var(--paper-16);
}
.video > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: var(--s5); bottom: var(--s5);
  display: inline-flex; align-items: center; gap: var(--s3); min-height: 48px;
  padding: var(--s2) var(--s5) var(--s2) var(--s2); border-radius: 999px;
  background: var(--gold-light); color: var(--navy); font-weight: 600; transition: background-color 150ms;
}
.video__play span.i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-light); }
.video__play svg { width: 18px; height: 18px; margin-left: 3px; }
.video:hover .video__play { background: var(--paper); }
.video__meta { position: absolute; right: var(--s5); bottom: var(--s5); font: 500 16px/1 var(--font-mono); color: var(--text-muted-on-band); }
@media (max-width: 600px) { .video__meta { display: none; } .video__play { left: var(--s3); bottom: var(--s3); } }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s5); }
.form__row { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 600; }
.field__hint { color: var(--text-muted); font-size: 16px; }
.input {
  width: 100%; min-height: 50px; padding: var(--s3) var(--s4);
  font: 400 16px/1.45 var(--font-sans); color: var(--text); background: var(--bg);
  border: 2px solid var(--border-control); border-radius: var(--radius);
  transition: border-color 150ms;
}
.input:hover { border-color: var(--text); }
textarea.input { min-height: 170px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s7); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: var(--s3); align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form-panel { padding: var(--s6); border: 1px solid var(--hairline); border-radius: var(--radius); }
@media (min-width: 768px) { .form-panel { padding: var(--s7); } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta__inner { display: grid; gap: var(--s6); align-items: center; position: relative; }
@media (min-width: 960px) { .cta__inner { grid-template-columns: 1.3fr 0.7fr; } }
.cta__arcs { position: absolute; right: -80px; bottom: -260px; width: 620px; height: 620px; pointer-events: none; }
.cta__arcs circle { fill: none; stroke: var(--paper-08); stroke-width: 1.5; }
.cta__arcs circle.a { stroke: var(--gold-24); }
.cta__contact { display: grid; gap: var(--s3); }
.cta__contact a { font-weight: 500; }

/* ---------- Note and open-items flag ---------- */
.note { padding: var(--s4) var(--s5); border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--text-muted); display: flex; gap: var(--s3); align-items: flex-start; }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--text); }
.band .note { border-color: var(--paper-16); color: var(--text-muted-on-band); }
.band .note svg { color: var(--accent-on-band); }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--text-on-band); padding-block: var(--s8) var(--s6); }
.site-footer__grid { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr auto; gap: var(--s6); } }
.site-footer h2 { font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-on-band); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-on-band); text-decoration: none; transition: color 150ms; }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { color: var(--text-muted-on-band); }
.site-footer__mark { width: 56px; height: 56px; }
@media (min-width: 900px) { .site-footer__mark-wrap { justify-self: end; } }
.site-footer__entity {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--paper-16);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; color: var(--text-muted-on-band);
}
.site-footer__entity strong { color: var(--text-on-band); }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; align-content: center; }

/* ---------- Utilities (no inline styles: the CSP forbids them) ---------- */
.mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.gap-2 { gap: var(--s2); }
.space-between { justify-content: space-between; }
.fig { margin: 0; }
.term dl { margin: 0; }

/* Figures that need width: text and diagram side by side, diagram wider */
.split-fig { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1000px) { .split-fig { grid-template-columns: 0.8fr 1.2fr; gap: var(--s7); } .split-fig--rev { grid-template-columns: 1.2fr 0.8fr; } .split-fig--rev > :first-child { order: 2; } }
.diagram .il-text, .diagram .il-text-muted, .diagram .il-text-gold { font-size: 15px; }
.diagram .dg-text, .diagram .dg-text-muted { font-size: 15px; }
.diagram .dg-label { font-size: 16px; }
.cmp-panel { fill: var(--paper-28); stroke: var(--paper); stroke-width: 1; }
#map-africa .map-label { font-size: 26px; stroke-width: 7px; }
#map-africa .pin--project .pin__dot { r: 10; }
#map-africa .pin__ring { r: 22; }
#map-africa .pin--office .pin__dot { width: 20px; height: 20px; x: -10px; y: -10px; }
.diagram--m { display: none; }
@media (max-width: 600px) {
  .diagram--d { display: none; }
  .diagram--m { display: block; }
  .diagram--m .il-text, .diagram--m .il-text-muted, .diagram--m .il-text-gold { font-size: 19px; }
  .diagram--m .dg-text, .diagram--m .dg-text-muted { font-size: 16px; }
  .diagram--m .dg-label { font-size: 19px; }
}

/* ---------- Small-screen hardening (iPhone SE and narrower) ---------- */
/* Grid and flex children may shrink below their content width; wide figures scroll inside their own frame. */
.split > *, .split-fig > *, .grid--2 > *, .statement-grid > *, .hero__inner > *, .page-hero__inner > *,
.cta__inner > *, .section-head > *, .services > *, .grid > *, .phases > *, .principles > *, .flow > *,
.compare > *, .offices > *, .team > *, .project-list > *, .glossary > *, .map-callouts > *, .site-footer__grid > * { min-width: 0; }
.nav__menu:not([open]) ul { display: none; }
h1, h2, h3, .statement { overflow-wrap: break-word; hyphens: manual; }
.scroll-hint { display: none; margin-top: var(--s3); font-size: 16px; color: var(--text-muted); }
.band .scroll-hint { color: var(--text-muted-on-band); }
@media (max-width: 700px) {
  .scroll-hint { display: flex; align-items: center; gap: var(--s2); }
  .scroll-hint::before { content: "\2194"; font-family: var(--font-mono); }
}
@media (max-width: 479px) {
  .site-header__bar { gap: var(--s3); min-height: 68px; }
  .lockup { gap: var(--s2); min-width: 0; }
  .lockup__mark { width: 36px; height: 36px; }
  .lockup__name { font-size: 17px; letter-spacing: 0.04em; }
  .nav__menu summary { padding-inline: var(--s3); }
  .nav__menu ul { grid-template-columns: 1fr; }
  .section { padding-block: var(--s7); }
  .section-head { margin-bottom: var(--s6); }
  .hero__inner { padding-block: var(--s7) var(--s6); gap: var(--s6); }
  .page-hero__inner { padding-block: var(--s7); }
  .page-hero__arcs { width: 360px; height: 360px; right: -160px; top: -120px; }
  .actions .btn, .cta__contact .btn { width: 100%; }
  .hero__badge { border-radius: var(--radius); align-items: flex-start; }
  .numbers { gap: var(--s5) var(--s4); }
  .numbers__value { font-size: 26px; }
  .card, .phase, .project, .term, .callout { padding: var(--s4); }
  .service { padding: var(--s5) var(--s4) var(--s4); }
  .service-row { padding-block: var(--s6); }
  .service-row__letter { width: 56px; height: 56px; font-size: 26px; }
  .map-frame, .diagram-frame { padding: var(--s3); }
  .form-panel { padding: var(--s5) var(--s4); }
  .office dl div { grid-template-columns: 64px 1fr; }
  .term { grid-template-columns: 48px 1fr; gap: var(--s3); }
  .term .icon { width: 48px; height: 48px; }
  .project { gap: var(--s2) var(--s3); }
  .project__facts div { grid-template-columns: 48px 1fr; gap: var(--s2); }
  .team-strip { gap: var(--s2); }
  .video__play { padding-right: var(--s4); }
  .site-footer { padding-block: var(--s7) var(--s5); }
  .site-footer__grid { gap: var(--s6); }
  .site-footer__entity { flex-direction: column; }
  table { min-width: 560px; }
  .cta__arcs { width: 420px; height: 420px; right: -180px; bottom: -200px; }
}
@media (max-width: 359px) {
  .lockup__name { font-size: 15px; letter-spacing: 0.03em; }
  .lockup__mark { width: 32px; height: 32px; }
  .container { padding-inline: 14px; }
}

/* Project cards: facts and tags take the full card width */
.project__n { grid-row: span 2; }
.project__facts, .project__tags { grid-column: 1 / -1; }
.project__facts div { grid-template-columns: 56px 1fr; }
@media (max-width: 479px) {
  .section-head--rule .h2::after { display: none; }
  .actions { flex-direction: row; align-items: center; }
  .actions:has(> .btn) { flex-direction: column; align-items: stretch; }
  .project__facts dd { font-family: var(--font-sans); font-weight: 500; }
  .phase__when { font-size: 15px; }
  .page-hero__facts b { font-size: 19px; }
}
.project__place { margin: 0; }
@media (max-width: 559px) {
  /* Team cards become compact: portrait beside the name, text full width below */
  .person { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--s4); padding: var(--s4); }
  .person__photo { grid-column: 1; grid-row: 1 / span 3; width: 96px; height: 96px; aspect-ratio: auto; border-radius: calc(var(--radius) - 4px); overflow: hidden; align-self: start; }
  .person__photo .open { display: none; }
  .person__body { display: contents; }
  .person h3, .person__title, .person__office { grid-column: 2; margin: 0; }
  .person__title { font-size: 16px; }
  .person__focus, .person__links { grid-column: 1 / -1; }
  .person__focus { margin-top: var(--s4); }
  .person__links { margin-top: var(--s4); }
  #map-africa .map-label { font-size: 36px; stroke-width: 9px; }
  #map-na .pin__num { font-size: 36px; }
}
@media (max-width: 479px) {
  .form .btn { width: 100%; }
  .site-footer nav ul, .site-footer__grid > div:nth-child(3) ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
}

/* ---------- Project list: first six, then "View more" (CSS only, works with scripts off) ---------- */
.filterable:has(#f-all:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of .project),
.filterable:has(#f-us:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-region="us"]),
.filterable:has(#f-canada:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-region="canada"]),
.filterable:has(#f-latam:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-region="latam"]),
.filterable:has(#f-africa:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-region="africa"]),
.filterable:has(#f-central-asia:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-region="central-asia"]),
.filterable:has(#f-pacific:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-region="pacific"]),
.filterable:has(#f-bess:checked):not(:has(#more-projects:checked)) .project:nth-child(n+7 of [data-bess]) { display: none; }
.more__open { display: none; }
.filterable:has(#f-all:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="all"],
.filterable:has(#f-us:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="us"],
.filterable:has(#f-canada:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="canada"],
.filterable:has(#f-latam:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="latam"],
.filterable:has(#f-africa:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="africa"],
.filterable:has(#f-central-asia:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="central-asia"],
.filterable:has(#f-pacific:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="pacific"],
.filterable:has(#f-bess:checked) .more__toggle:not(:checked) + .more__btn .more__open[data-f="bess"] { display: inline; }
.filterable:has(#f-all:checked) .more:not(:has([data-f="all"])),
.filterable:has(#f-us:checked) .more:not(:has([data-f="us"])),
.filterable:has(#f-canada:checked) .more:not(:has([data-f="canada"])),
.filterable:has(#f-latam:checked) .more:not(:has([data-f="latam"])),
.filterable:has(#f-africa:checked) .more:not(:has([data-f="africa"])),
.filterable:has(#f-central-asia:checked) .more:not(:has([data-f="central-asia"])),
.filterable:has(#f-pacific:checked) .more:not(:has([data-f="pacific"])),
.filterable:has(#f-bess:checked) .more:not(:has([data-f="bess"])) { display: none; }
.more { display: flex; align-items: center; gap: var(--s5); margin-top: var(--s7); }
.more::before, .more::after { content: ""; flex: 1 1 0; height: 1px; background: var(--hairline); }
.more__toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.more__btn { padding-inline: var(--s6); border-radius: 999px; }
.more__btn svg { transition: transform 150ms; transform: rotate(90deg); }
.more__close { display: none; }
.more__toggle:checked + .more__btn .more__close { display: inline; }
.more__toggle:checked + .more__btn svg { transform: rotate(-90deg); }
.more__toggle:focus-visible + .more__btn { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 479px) {
  .more { gap: var(--s3); }
  .more::before, .more::after { min-width: var(--s4); }
  .more__btn { padding-inline: var(--s5); }
}

/* Team headshots (assets/img/team/) */
.team-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__photo img { object-position: 50% 25%; }
