/* ==========================================================================
   AEC Wind — redesign prototype
   Design tokens first: change the brand here, everything follows.
   Palette sampled from the original aecwind.co.uk:
   forest #1E2E27 · lime #E3F862 · green #5ECB6F · button green #397B49
   ========================================================================== */

/* ---------- fonts ----------
   Self-hosted rather than loaded from Google. That removes two third-party
   origins (and two DNS+TCP+TLS handshakes) from the critical path of every
   page, lets the Content-Security-Policy stay at default-src 'self' with no
   exceptions, and stops every visitor's IP being sent to Google.

   Both are variable fonts, so one file per family covers every weight we use —
   70 KB for the pair, latin subset. The pages preload them, so the swap window
   is short enough not to shift the hero headline noticeably.
   To update: re-download from Google Fonts and replace the two files. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1e2e27;            /* forest green canvas */
  --ink-2: #253b30;
  --ink-3: #2f4c3c;
  --lime: #e3f862;           /* highlight — "SPECIALISTS" */
  --green: #5ecb6f;          /* fresh accent — "ENERGY." */
  --green-deep: #397b49;     /* buttons — "Let's Talk" */
  /* The red from the company logo. Used sparingly and for one job only — a
     brand echo, as punctuation. Never for interactive affordance (that stays
     green) and never for focus rings, where red reads as a validation error. */
  --red: #d22e33;
  --paper: #f3f7f3;          /* off-white sections */
  --paper-2: #ffffff;
  --muted: #93a69b;
  --text-dark: #22332a;

  --hill-back: #24402f;   /* hazy distant ridge, sits between sky and ground */
  --hill-mid: #17281e;
  --hill-front: #0f1812;
  --turbine-far: #33523f;
  --turbine-mid: #47705a;
  --turbine-near: #e9f0e9;       /* blades and hub */
  /* The tower sits a shade down from the blades so you can see them sweep
     across it as the rotor turns — with one colour the pass is invisible.
     Physically truthful too: a tower self-shades against blades in the light. */
  --turbine-near-tower: #c7d4cb;
  --diagram-line: #3a5546;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 40px rgba(10, 22, 14, 0.18);
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .footer-brand { font-family: var(--font-display); line-height: 1.12; }
a { color: inherit; }
img, svg { max-width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(57, 123, 73, 0.45);
}
.btn-primary:hover { background: #458f57; }
.btn-ghost {
  background: transparent;
  color: #edf4ee;
  border: 1px solid rgba(237, 244, 238, 0.35);
}
.btn-ghost:hover { border-color: var(--green); color: var(--lime); }
.btn-ghost:disabled { opacity: 0.35; cursor: default; transform: none; }
.btn-call {
  background: var(--green-deep);
  color: #ffffff;
  border: 0;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
}
.btn-call:hover { background: #458f57; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  color: #edf4ee;
  background: linear-gradient(rgba(30, 46, 39, 0.85), rgba(30, 46, 39, 0));
  backdrop-filter: blur(2px);
  transition: background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(30, 46, 39, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(94, 203, 111, 0.18);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: 1.05rem;
}
/* The logo carries the brand colours itself, so it is never recoloured to match
   the header — height is the only thing CSS controls. Any aspect ratio works.
   .brand-word is the fallback wordmark: it only shows when the logo file is
   missing, because the <img> onerror removes itself and this rule stops
   applying. See assets/brand/README.md. */
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo + .brand-word { display: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  white-space: nowrap;
}
@media (max-width: 720px) { .brand-logo { height: 34px; } }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #c2d4c6;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--lime); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #edf4ee;
  padding: 7rem 1.5rem 6rem;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 70% 110%, rgba(94, 203, 111, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #131d17 0%, #1b2a22 45%, #2a473a 100%);
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 8%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 22%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 28%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(255,255,255,0.35) 50%, transparent 51%);
}
.wind-particles span {
  position: absolute;
  width: 46px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(227, 248, 98, 0.5), transparent);
  animation: drift linear infinite;
}
.wind-particles span:nth-child(1) { top: 22%; animation-duration: 7s;  animation-delay: 0s; }
.wind-particles span:nth-child(2) { top: 31%; animation-duration: 9s;  animation-delay: 2s; }
.wind-particles span:nth-child(3) { top: 44%; animation-duration: 6s;  animation-delay: 4s; }
.wind-particles span:nth-child(4) { top: 55%; animation-duration: 10s; animation-delay: 1s; }
.wind-particles span:nth-child(5) { top: 63%; animation-duration: 8s;  animation-delay: 5s; }
.wind-particles span:nth-child(6) { top: 15%; animation-duration: 11s; animation-delay: 3s; }
.wind-particles span:nth-child(7) { top: 71%; animation-duration: 7.5s; animation-delay: 6s; }
.wind-particles span:nth-child(8) { top: 38%; animation-duration: 12s; animation-delay: 0.5s; }
@keyframes drift {
  /* translateX, not left: `left` forces layout on every frame, for eight
     elements, permanently, while the hero is on screen. */
  from { transform: translateX(-60px); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  to   { transform: translateX(105vw); opacity: 0; }
}

/* Turbine bases track the hill ridgelines (same vh-clamp scale as .hills)
   and sit a touch below them; the hills paint after the turbines, so each
   tower base is tucked behind its ridge — planted, not floating. */
.turbine { position: absolute; }
.turbine-far  { width: clamp(35px, 8vw, 110px);  left: 12%; bottom: clamp(120px, 16vh, 195px); opacity: 0.75; }
.turbine-mid  { width: clamp(50px, 12vw, 170px); left: 26%; bottom: clamp(55px, 6.5vh, 90px); opacity: 0.9; }
/* The near turbine is the hero's feature, so it runs roughly double the others.
   Each SVG is viewBox 0 0 200 320, so height is always width x 1.6 and cannot be
   set independently — the min(vw, vh) is what stops a landscape phone rendering
   a turbine taller than the hero it sits in. Scaling with transform instead
   would lift the tower base out from behind .hills-front and un-plant it. */
.turbine-near {
  width: clamp(96px, min(34vw, 46vh), 560px);
  right: 4%;
  bottom: clamp(24px, 3vh, 40px);
  opacity: 0.9;   /* #e9f0e9 turbine vs #edf4ee headline — take the edge off */
}
@media (max-width: 620px) {
  /* Small screens put the headline right over the rotor: pull the turbine
     further off the clipped right edge and let the text win. */
  .turbine-near { width: clamp(96px, 24vw, 200px); right: -2%; opacity: 0.7; }
}

/* Every layer is pinned to the hero's bottom edge and they stack by height,
   so each is a solid mass of ground up to its waveline — gaps are impossible.
   Viewport-based heights keep the wave amplitude on tall phone screens. */
.hills { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; }
.hills-back  { height: clamp(180px, 26vh, 320px); }
.hills-mid   { height: clamp(140px, 19vh, 250px); }
.hills-front { height: clamp(100px, 13vh, 185px); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--lime);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--lime), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 1.4rem auto 2rem;
  max-width: 620px;
  color: #b9ccbd;
  font-size: 1.05rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.fleet-pulse {
  display: flex;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(147, 166, 155, 0.25);
}
.fleet-pulse > div { flex: 1 1 0; min-width: 150px; }
.fleet-pulse dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  order: 2;
}
.fleet-pulse dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--lime);
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-cue span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- trust bar ---------- */
/* same colour as the front hill so the hero's wave flows straight into
   this section with no seam */
.trust {
  background: var(--hill-front);
  color: var(--muted);
  text-align: center;
  padding: 2.2rem 1.5rem;
}
.trust > p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1.1rem; }
.logo-bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #dce8dd;
}
.logo-bar .highlighted { color: var(--lime); }
/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
/* The page hero is dark. A dark section straight after it reads as one block,
   so the doubled padding at the seam just looks like dead space — halve it. */
.article-hero + .section-dark { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
section[id], footer[id] { scroll-margin-top: 4.5rem; }  /* clear the fixed header on anchor jumps */
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: #e5efe6; }
.section-head { max-width: var(--max); margin: 0 auto 2.8rem; }
.section-head--spaced { margin-top: 3.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.7rem;
}
/* A small red dot ahead of every section eyebrow — the logo colour repeating
   down the page as rhythm. Small enough to read as punctuation rather than
   decoration, and it works on both light and dark sections. */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 0.6em;
  vertical-align: 0.1em;
}
.section-dark .eyebrow { color: var(--green); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; }
.section-sub { margin-top: 0.9rem; max-width: 560px; color: #56695c; }
.section-dark .section-sub { color: var(--muted); }

/* ---------- cards ---------- */
.cards {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: 0 2px 14px rgba(20, 35, 26, 0.06);
  border: 1px solid rgba(20, 35, 26, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.7rem; }
.card h3 { font-size: 1.2rem; }
.card p { color: #46584c; font-size: 0.95rem; flex: 1; }
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-deep);
  text-decoration: none;
}
.card-link:hover { color: var(--green); }
.card-urgent { border-top: 3px solid var(--green); }
.card.project footer { font-size: 0.8rem; color: var(--muted); }
.project-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  background: rgba(94, 203, 111, 0.15);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- turbine health explorer ---------- */
.health-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.health-grid .section-head { margin-bottom: 0; }
.health-stage { position: relative; max-width: 380px; margin: 0 auto; }
.health-turbine { display: block; width: 100%; }
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: rgba(94, 203, 111, 0.14);
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  animation: pulse 2.4s ease-in-out infinite;
}
/* Positions were inline style="" attributes; moved here so style-src needs no
   'unsafe-inline'. Percentages are of .health-stage. */
.hotspot--blades  { top: 15%; left: 68%; }
.hotspot--nacelle { top: 35%; left: 50%; }
.hotspot--yaw     { top: 47%; left: 56%; }
.hotspot--tower   { top: 88%; left: 52%; }

.hotspot:hover, .hotspot.active {
  background: var(--green);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.12);
  animation: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 203, 111, 0.45); }
  60% { box-shadow: 0 0 0 14px rgba(94, 203, 111, 0); }
}
.health-info {
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(94, 203, 111, 0.22);
  min-height: 7.2rem;
}
.health-info h4 { font-family: var(--font-display); color: var(--lime); margin-bottom: 0.4rem; }
.health-info p { font-size: 0.92rem; color: #b9ccbd; }

/* ---------- calculator ---------- */
.calc {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper-2);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}
.calc-inputs { display: flex; flex-direction: column; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-label {
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.field-label output { color: var(--green-deep); font-family: var(--font-display); }
.field-hint { font-size: 0.78rem; color: var(--muted); }
.field select, .field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #c8d8cc;
  font: inherit;
  background: #fff;
  color: var(--text-dark);
}
.field select:focus, .field input:focus, input[type="range"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
input[type="range"] {
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--fill, 45%), #d9e4da var(--fill, 45%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--green);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--green);
}
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.result {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(20, 35, 26, 0.05);
}
.result dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: #56695c; }
.result dd {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.2rem;
}
.calc-cta { grid-column: 1 / -1; justify-self: start; }

/* ---------- stats band ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--ink-2), var(--ink-3));
  color: #edf4ee;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 3rem);
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--lime);
}
.stat span { font-size: 0.88rem; color: var(--muted); }

/* ---------- around the world (interactive globe) ---------- */
.globe-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.globe-stage { text-align: center; }
.globe-stage canvas {
  max-width: 100%;
  touch-action: none;          /* the canvas handles its own panning */
  cursor: grab;
}
.globe-stage canvas:active { cursor: grabbing; }
.globe-hint {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.globe-card {
  background: var(--ink-2);
  border: 1px solid rgba(94, 203, 111, 0.22);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  min-height: 11rem;
}
.globe-card.in { animation: card-in 0.4s ease; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.globe-card-img {
  margin: -1.6rem -1.7rem 1.2rem;          /* full-bleed to the card edges */
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: rgba(19, 29, 23, 0.6);
}
.globe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.globe-card-n {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.globe-card h3 {
  font-size: 1.5rem;
  color: var(--lime);
  margin-bottom: 0.5rem;
}
.globe-card-blurb { font-size: 0.95rem; color: #b9ccbd; }
.globe-card-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(94, 203, 111, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.globe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.globe-chip {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 166, 155, 0.35);
  background: rgba(19, 29, 23, 0.6);
  color: #dce8dd;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.globe-chip:hover { border-color: var(--green); }
.globe-chip.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
@media (max-width: 900px) {
  .globe-grid { grid-template-columns: 1fr; }
  .globe-stage canvas { max-width: min(88vw, 480px); }
}

/* ---------- who we work with ---------- */
.partners {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  /* Four partners. auto-fit would squeeze all four onto one row at ~1107px of
     the 1120px container and, worse, drop to an ugly 3 + 1 orphan through the
     900–1120px band. Explicit breakpoints instead: 2x2 until there is genuine
     room for four abreast. */
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 620px) {
  .partners { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .partners { grid-template-columns: repeat(4, 1fr); }
}
.partner {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(94, 203, 111, 0.18);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.partner::before {                 /* sheen sweep on hover */
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(227, 248, 98, 0.07), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
/* The cards are anchors now, so every hover treatment needs a :focus-visible
   twin — otherwise the lift, the sheen and the lime brand name are all
   invisible to anyone tabbing through. */
.partner { text-decoration: none; }
.partner:hover,
.partner:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(94, 203, 111, 0.55);
  box-shadow: 0 18px 44px rgba(10, 22, 14, 0.45);
}
.partner:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.partner:hover::before,
.partner:focus-visible::before { left: 130%; }
.partner-mark {
  font-family: var(--font-display);
  font-weight: 700;
  /* four columns are narrower than the old three — KOPPEJAN and ECOWAYS
     overflowed their card at the previous size and letter-spacing */
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  letter-spacing: 0.07em;
  overflow-wrap: anywhere;
  color: #e5efe6;
  transition: color 0.25s ease;
}
.partner:hover .partner-mark,
.partner:focus-visible .partner-mark { color: var(--lime); }
.partner-role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
}
.partner-blurb { font-size: 0.93rem; color: #b9ccbd; flex: 1; }
.partner-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(147, 166, 155, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

/* ---------- about ---------- */
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}
.about-grid .section-head { margin-bottom: 0; }
.about-copy p + p { margin-top: 1rem; }
.about-copy { color: #46584c; }
.about-copy strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  background: #131d17;
  color: var(--muted);
  padding: 3.5rem clamp(1.2rem, 5vw, 3rem) 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-brand { margin-bottom: 0.9rem; color: var(--lime); }
.footer-brand img { height: 62px; width: auto; display: block; }
.footer-head { color: #e5efe6; font-weight: 600; margin-bottom: 0.6rem; }
.site-footer a { color: #c2d4c6; }
/* the phone number is the primary conversion path — give it weight */
.footer-tel {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lime) !important;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.footer-tel:hover { text-decoration: underline; }
/* Sits inside the contact column on the full footer and stands alone above the
   note on the article pages — max-width and auto margins are inert in the grid
   column and line it up with the note when it isn't. */
.footer-social {
  max-width: var(--max);
  margin: 0.9rem auto 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--lime); }
.footer-social a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.social-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.footer-note {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(147, 166, 155, 0.15);
  font-size: 0.75rem;
}
/* A short red segment sitting on the left of the divider — the same brand echo
   as the eyebrow dots, closing the page the way they open each section. */
.footer-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--red);
}

/* ---------- sticky call button ---------- */
.sticky-call {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: #ffffff;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(57, 123, 73, 0.55);
  transition: transform 0.15s ease;
}
.sticky-call:hover { transform: scale(1.08); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: 0.12s; }
.cards .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- mobile nav toggle ----------
   Hidden on desktop; below 900px it replaces the horizontal nav, which
   until now simply disappeared with nothing to open in its place. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;      /* 44px: minimum comfortable tap target */
  background: transparent;
  border: 1px solid rgba(237, 244, 238, 0.3);
  border-radius: 10px;
  cursor: pointer;
  color: #edf4ee;
}
.nav-toggle:hover { border-color: var(--green); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars {
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  top: 0;
  margin-left: -10px;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after  { transform: translateY(6px); }
/* open state: top and bottom bars cross, middle bar fades out */
.nav-toggle.open .nav-toggle-bars { background: transparent; }
.nav-toggle.open .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle.open .nav-toggle-bars::after  { transform: rotate(-45deg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .health-grid, .about-grid, .calc { grid-template-columns: 1fr; }

  /* the nav carries margin-left:auto on desktop, but it's out of flow here,
     so the toggle needs it instead to sit flush right */
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.2rem 1.1rem;
    background: var(--ink);
    border-top: 1px solid rgba(94, 203, 111, 0.2);
    box-shadow: 0 18px 40px rgba(10, 22, 14, 0.45);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(237, 244, 238, 0.08);
  }
  .site-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .calc-results { grid-template-columns: 1fr; }
  /* the sticky call button covers this below 560px */
  .btn-call { display: none; }
  .fleet-pulse { gap: 1rem; }
}

/* ---------- articles ---------- */
/* article pages keep the header in flow (sticky) so the draft banner sits above it */
.site-header.header-flow { position: sticky; }
.article-hero {
  background: var(--ink);
  color: #edf4ee;
  padding: 4rem clamp(1.2rem, 5vw, 3rem) 4rem;
  text-align: center;
}
.article-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 820px; margin: 0 auto; letter-spacing: -0.01em; }
.article-hero .eyebrow { color: var(--lime); }
.article-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.articles-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}
.article-card {
  display: block;
  text-decoration: none;
  background: var(--paper-2);
  border: 1px solid rgba(20, 35, 26, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card h2 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.article-card p { color: #56695c; font-size: 0.93rem; }
.article-card .article-meta { margin-top: 0.7rem; }
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.4rem 5rem;
  font-size: 1.02rem;
  color: #33443a;
}
.article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; color: var(--text-dark); }
.article-body p + p { margin-top: 1rem; }
.article-body ul { margin: 1rem 0 1rem 1.3rem; }
.article-body li + li { margin-top: 0.4rem; }
.article-body strong { color: var(--text-dark); }
.article-body a { color: var(--green-deep); }
.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.6rem;
  background: var(--paper);
  border-left: 3px solid var(--green-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.draft-banner {
  background: var(--lime);
  color: var(--ink);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 51;
}

/* ==========================================================================
   MEET THE TEAM
   ========================================================================== */
.team-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.team-card {
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(16, 32, 22, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* Portrait placeholder: initials over the brand rotor, not a broken image.
   Drop /assets/team/<id>.jpg in and add the <img> to override it. */
.team-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  overflow: hidden;
}
.team-rotor {
  position: absolute;
  width: 118%;
  height: 118%;
  opacity: 0.07;
  color: var(--lime);
}
.team-monogram {
  position: relative;
  max-width: 100%;
  padding: 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  /* sized so a two-letter monogram still fits inside the tile */
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--lime);
  opacity: 0.85;
}
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-body { padding: 1.3rem 1.4rem 1.5rem; }
.team-name { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.team-role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-deep);
}
.team-exp { margin-top: 0.85rem; font-size: 0.92rem; color: #56695c; }
.team-exp strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-right: 0.25rem;
}
.team-quals { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.qual-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(94, 203, 111, 0.12);
  border: 1px solid rgba(57, 123, 73, 0.25);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-filters {
  max-width: var(--max);
  margin: 0 auto 1.6rem;
  /* Reserve the row: JS fills this after load, and without a floor the grid
     below jumps down by the chip height once it does. */
  min-height: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.gallery-count {
  max-width: var(--max);
  margin: 0 auto 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 210px;
  /* dense back-fills the holes the 2x2 feature tiles would otherwise leave */
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery-item {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink-2);   /* holds the space while the image loads */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item[hidden] { display: none; }
/* every fourth tile goes large — masonry rhythm without a JS layout pass */
.gallery-item.feature { grid-column: span 2; grid-row: span 2; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(8, 16, 11, 0.85), transparent);
  color: #edf4ee;
  font-size: 0.85rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; }
.gallery-caption span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.15rem;
}
@media (max-width: 620px) {
  /* one column — a 2-column span would overflow the grid */
  .gallery-item.feature { grid-column: span 1; grid-row: span 1; }
}

/* ---------- lightbox ----------
   Native <dialog>: focus trapping, Esc-to-close and focus restoration
   come free, so no library on a zero-dependency site. */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1100px, 92vw);
  max-width: 92vw;
  max-height: 94vh;
  margin: auto;               /* without this the dialog pins to the left edge */
  overflow: visible;
  color: #edf4ee;
  text-align: center;
}
.lightbox::backdrop {
  background: rgba(6, 12, 8, 0.97);
  backdrop-filter: blur(4px);
}
/* inline-block shrink-wraps to the image, so the caption lines up with the
   photo rather than stretching the full width of the dialog */
.lightbox-figure {
  margin: 0;
  display: inline-block;
  max-width: 100%;
}
.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lightbox-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  text-align: left;
}
.lightbox-caption { font-size: 0.92rem; }
.lightbox-caption > span { display: block; }
/* only the eyebrow label is uppercased — not the sentence under it */
#lightbox-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.2rem;
}
.lightbox-counter {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(237, 244, 238, 0.3);
  background: rgba(19, 29, 23, 0.75);
  color: #edf4ee;
  font-size: 1.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lightbox-btn:hover { border-color: var(--green); background: rgba(19, 29, 23, 0.95); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
/* Inside the dialog bounds, not above it — sitting outside pushed the button
   off-screen on shorter viewports, leaving Esc as the only way out. */
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px; height: 42px;
  font-size: 1.1rem;
  transform: none;
  z-index: 2;
}
@media (max-width: 1240px) {
  /* no room outside the image — bring the arrows inside it */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
