/* =========================================================
   AGOL | African Gas & Oil
   Landing page styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand: dark brown taken from the approved logo file (#52453C) */
  --brown: #52453c;
  --brown-950: #1f1915;
  --brown-900: #2a221d;
  --brown-850: #332a24;
  --brown-800: #3d332c;
  --brown-600: #6a5a4e;
  --brown-400: #9a8a7d;
  --tan: #cbb8a3;
  --tan-soft: #e3d7ca;
  --sand: #f3efea;
  --sand-2: #ebe5de;
  --gray-100: #efeeec;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M1 1l3.5 3.5L1 8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  --white: #ffffff;
  --ink: #1f1a17;
  --ink-2: #5a4f47;
  --ink-3: #6e635b;

  --line: rgba(82, 69, 60, 0.16);
  --line-strong: rgba(82, 69, 60, 0.32);
  --line-light: rgba(255, 255, 255, 0.18);
  --line-light-strong: rgba(255, 255, 255, 0.4);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
  --section-y: clamp(88px, 11vw, 168px);
  --radius: 0;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, video, svg, picture { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brown); color: var(--white); }

:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  background: var(--white); color: var(--brown); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Type ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h2 {
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.statement {
  font-size: clamp(30px, 3.9vw, 58px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: balance;
}

/* Eyebrow: "■ 01  ABOUT" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  color: var(--brown);
}
/* Small right-pointing chevron, drawn as a thin stroke that takes the text colour
   (used in eyebrows and the gantry step numbers) */
.eyebrow .sq, .gantry-num::before {
  width: 6px; height: 9px; flex: none; background: currentColor;
  -webkit-mask: var(--chevron) center / contain no-repeat;
  mask: var(--chevron) center / contain no-repeat;
}
.eyebrow--light { color: var(--white); }
.eyebrow abbr { text-decoration: none; }

/* TBC / placeholder markers (visible while html[data-draft="true"]) */
.tbc {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1; padding: 4px 6px 3px; margin-left: 8px; vertical-align: middle;
  border: 1px dashed currentColor; opacity: .85;
}
.placeholder {
  display: inline-block; padding: 2px 10px; border: 1px dashed currentColor;
  font-size: .9em; opacity: .75;
}
html[data-draft="false"] .tbc { display: none; }
html[data-draft="false"] .placeholder { border-color: transparent; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 22px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn .i { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover .i { transform: translateX(2px); }
.btn-light { background: var(--white); color: var(--brown); }
.btn-light:hover { background: var(--tan-soft); }
.btn-light:focus-visible { outline-color: var(--white); }
.btn-ghost-light { color: var(--white); border-color: var(--line-light-strong); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--brown); color: var(--white); }
.btn-dark:hover { background: var(--brown-800); }
.btn-dark:focus-visible { outline-color: var(--brown); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { color: currentColor; border-color: currentColor; --btn-h: 40px; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .45s var(--ease-out), -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line-light);
  transition: background-color .35s ease, opacity .35s ease;
}
/* AGOL asked for no lines on the opening screen: the line under the header stays hidden while the
   header is over the hero and fades in once the page below the hero scrolls under it (main.js sets
   .is-past-hero). It stays in the open mobile menu, whose rows have lines too. */
.js:not(.menu-open) .site-header:not(.is-past-hero)::after { opacity: 0; }
/* Soft dark fade behind the transparent header so the nav stays legible over the hero video */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1; pointer-events: none;
  height: calc(100% + 72px);
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.32) 40%, rgba(0,0,0,.12) 70%, rgba(0,0,0,0) 100%);
  transition: opacity .35s ease;
}
/* Once the page scrolls: dark frosted glass on every section */
.site-header.is-scrolled { background: rgba(0,0,0,.15); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.site-header.is-scrolled::before { opacity: 0; }
/* Over light sections the text and logo switch to brown so they stay readable on the glass */
.site-header.is-on-light { color: var(--brown); }
.site-header.is-on-light::after { background: var(--line); }
/* Light sections still put brown cards and photos under the header: give the brown links a light glass to sit on */
html:not(.menu-open) .site-header.is-scrolled.is-on-light { background: rgba(243,239,234,.85); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.brand .logo { height: 46px; width: auto; aspect-ratio: 1080 / 398; color: currentColor; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { display: flex; align-items: center; }
.primary-nav a {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding-block: 6px;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
/* Wipe button (nav Contact + About CTA): fill wipes in from the left,
   arrow slides out and a fresh one slides in. Brown fill on light backgrounds by default. */
.btn-wipe { --wipe-bg: var(--brown); --wipe-fg: var(--white); gap: 12px; overflow: hidden; isolation: isolate; }
.btn-wipe::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wipe-bg);
  transform: scaleX(0); transform-origin: right center; transition: transform .55s var(--ease-out);
}
.btn-wipe:hover::before, .btn-wipe:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn-wipe:hover, .btn-wipe:focus-visible { color: var(--wipe-fg); border-color: var(--wipe-bg); }
.cta-arrow { position: relative; width: 14px; height: 14px; flex: none; overflow: hidden; }
.cta-arrow svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.cta-arrow svg:last-child { transform: translateX(-130%); }
.btn-wipe:hover .cta-arrow svg:first-child, .btn-wipe:focus-visible .cta-arrow svg:first-child { transform: translateX(130%); }
.btn-wipe:hover .cta-arrow svg:last-child, .btn-wipe:focus-visible .cta-arrow svg:last-child { transform: translateX(0); transition-delay: .08s; }
.header-cta { flex: none; }
.site-header .header-cta { --wipe-bg: var(--white); --wipe-fg: var(--brown); }
.site-header.is-on-light .header-cta { --wipe-bg: var(--brown); --wipe-fg: var(--white); }

.menu-toggle { display: none; align-items: center; gap: 12px; margin-left: auto; height: 40px; padding: 0 2px; }
.menu-toggle-label { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle-icon { position: relative; width: 22px; height: 10px; }
.menu-toggle-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-toggle-icon i:first-child { top: 0; }
.menu-toggle-icon i:last-child { top: 8.5px; }
.menu-open .menu-toggle-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--brown-900); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line-light); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  font-size: clamp(30px, 8vw, 44px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1;
}
.mobile-menu-foot { opacity: .6; margin-top: 32px; }
.menu-open .site-header { background: transparent; color: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header::after { background: var(--line-light); }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--brown);
  overflow: hidden; isolation: isolate;
}
.hero-media, .hero-media picture, .hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -3; }
.hero-poster, .hero-video { object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
/* One even dark layer over the whole opening picture, the same strength everywhere: no gradient, no
   fade, no patch. Client feedback: first a round shadow and grid lines (removed), then the brown
   gradient along the bottom read as "faded" (24 Nov 2026: "this area looks faded"), so the picture now
   keeps its own colours and is only darkened evenly, enough for the white copy. The small copy
   (location, lead, figure labels) also has a tight dark edge, the large type a lighter one.
   Contrast checked in Chrome on every hero video frame at 1440x900 and 390x844: headline and figures
   at least 3:1 on every frame; the small copy is at least 4.5:1 on most frames and about 3.9:1 at
   worst (the bright white tank close-ups). */
.hero-tint {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: rgba(31,25,21,.45);
}
/* Thin vertical grid lines. Used only in the Regional reach section now: the opening screen has
   none (client feedback, 23 Nov 2026). The name is kept from the original hero design. */
.hero-lines {
  position: absolute; inset: 0; z-index: -1; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none;
}
.hero-lines i { border-left: 1px solid rgba(255,255,255,.08); }
.hero-lines i:last-child { border-right: 1px solid rgba(255,255,255,.08); }

.hero-content { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 8vh, 88px); }
.hero-loc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.7), 0 0 6px rgba(0,0,0,.5);
}
.hero-loc .hero-coords { opacity: 1; }
.hero-title {
  margin-top: 26px;
  font-size: clamp(40px, 5.8vw, 96px);
  line-height: .96;
  font-weight: 300;
  letter-spacing: -0.05em;
  text-shadow: 0 0 2px rgba(0,0,0,.3), 0 1px 6px rgba(0,0,0,.25);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-lead { max-width: 34ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; font-weight: 300; color: rgba(255,255,255,.86); text-shadow: 0 0 2px rgba(0,0,0,.7), 0 0 6px rgba(0,0,0,.5); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero stats as minimal annotations on the page's 4-column grid, each with a short white rule on its
   left. No box, no fill. The opening screen has no full-height grid lines (client feedback, 23 Nov
   2026); .hero-lines is still used in the Regional reach section. */
.hero-tags {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: calc(var(--header-h) + clamp(28px, 6vh, 64px));
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; pointer-events: none;
}
.data-tag {
  position: relative; grid-column: 3; display: flex; flex-direction: column; gap: 10px;
  padding: 2px 16px 4px 18px;
  text-shadow: 0 0 2px rgba(0,0,0,.3), 0 1px 6px rgba(0,0,0,.25);
}
.data-tag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.8); }
.data-tag-k { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.data-tag-v { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; text-shadow: 0 0 2px rgba(0,0,0,.7), 0 0 6px rgba(0,0,0,.5); }
.data-tag-v .tbc { margin-left: 6px; padding: 2px 4px 1px; font-size: 9px; text-shadow: none; }
.data-tag--b { grid-column: 4; margin-top: clamp(48px, 10vh, 128px); }
.live-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--white); animation: pulse 2s ease-out 2; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* Hero intro animation */
.js .hero-title .line > span { transform: translateY(130%); }
.js [data-hero-reveal] { opacity: 0; transform: translateY(14px); }
.js .data-tag { opacity: 0; transform: translateY(10px); }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.25s var(--ease-out); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .18s; }
.is-loaded [data-hero-reveal] { opacity: 1; transform: none; transition: opacity 1s ease .45s, transform 1.2s var(--ease-out) .45s; }
.is-loaded .data-tag { opacity: 1; transform: none; transition: opacity 1s ease .9s, transform 1.2s var(--ease-out) .9s; }
.is-loaded .data-tag--b { transition-delay: 1.1s; }

/* ---------- Generic reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Word-by-word statement highlight */
.js [data-words] .w { color: rgba(31,26,23,.55); transition: color .4s ease; }
[data-words] > .visually-hidden { -webkit-user-select: none; user-select: none; }
.js [data-words] .w.is-lit { color: inherit; }

/* ---------- Media frames ---------- */
.media-frame { position: relative; overflow: hidden; background: var(--sand-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame picture { height: 100%; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* ---------- 01 About ---------- */
.about .statement { margin-top: 36px; max-width: 24ch; }
.about-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  margin-top: clamp(64px, 8vw, 120px); align-items: start;
}
.about-figure { grid-column: 1 / span 5; }
.about-points { grid-column: 7 / span 6; display: grid; gap: 0; }
.point { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.point:last-of-type { border-bottom: 1px solid var(--line); }
.point-label { color: var(--brown); display: flex; align-items: center; align-self: start; gap: 12px; padding-top: 6px; }
.point-icon {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.about-cta { margin-top: 40px; }
.point-text { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; font-weight: 300; letter-spacing: -0.01em; }

/* ---------- 02 Scale ---------- */
.scale { background: var(--gray-100); color: var(--ink); }
.scale-title { margin-top: 32px; max-width: 16ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(50px, 6.3vw, 94px); }
/* Brown stat cards: label + icon on top, copy, rule and the big number at the bottom */
.stat {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(380px, 36vw, 520px);
  padding: clamp(22px, 2.2vw, 32px);
  background: var(--brown); color: var(--white);
}
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.stat-label { color: var(--tan); }
.stat-icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: var(--tan); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.stat-text { max-width: 32ch; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.74); }
.stat-value {
  display: flex; align-items: baseline;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-light);
  font-size: clamp(56px, 7vw, 112px);
  font-size: min(23cqi, 112px); /* scales with the card so "≈25,000 MT" always fits */
  line-height: .9; font-weight: 300; letter-spacing: -0.04em; white-space: nowrap;
}
.stat-approx { font-size: .45em; letter-spacing: 0; opacity: .6; align-self: center; margin-right: 6px; }
.stat-unit { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; margin-left: 12px; color: var(--tan); }
/* Count-up (main.js): tabular digits so the running number keeps a steady width. The final number
   stays in place as an invisible ghost; the running one is drawn on a layer above it, so counting
   never resizes anything and nothing on the page can move while it runs. */
.stat-value [data-count] { font-variant-numeric: tabular-nums; }
.count { position: relative; display: inline-block; }
.count-ghost { visibility: hidden; }
.count-live { position: absolute; left: 0; top: 0; white-space: nowrap; }
.count.is-done .count-ghost { visibility: visible; }
.count.is-done .count-live { display: none; }

/* ---------- 03 Operations ---------- */
.ops { background: var(--sand); }
.section-head { max-width: 980px; }
.section-head .h2 { margin-top: 28px; }
.section-lead { margin-top: 28px; max-width: 46ch; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* How it works: full-bleed photo, pinned while you scroll through the four steps.
   JS sets data-active (0-3) and --p (0-1 progress inside the active step). */
.flow { position: relative; background: var(--brown-950); color: var(--white); }
.js .flow { height: calc(100vh + 4 * 35vh); height: calc(100svh + 4 * 35svh); }
.flow-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.js .flow-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }

.flow-media, .flow-img, .flow-img img, .flow-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-media { z-index: -2; }
.flow-img { opacity: 0; transition: opacity 1.1s ease; }
.flow-img.is-active { opacity: 1; }
.flow-img img { object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
/* Scroll-linked slow zoom-out on the active photo */
.flow-img.is-active img { transform: scale(calc(1.08 - var(--p, 0) * .08)); transition: transform .25s linear; }
.flow-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31,25,21,.86) 0%, rgba(31,25,21,.5) 28%, rgba(31,25,21,.38) 48%, rgba(31,25,21,.92) 100%),
    linear-gradient(90deg, rgba(31,25,21,.5) 0%, rgba(31,25,21,0) 65%),
    rgba(31,25,21,.18);
}

.flow-head {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 64px));
}
.flow-title { margin-top: 20px; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; font-weight: 300; letter-spacing: -0.035em; max-width: 14ch; }
.flow-lead { max-width: 34ch; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.9); }

/* Bottom nav: an instrument-style ruler. Evenly spaced fine ticks (built in main.js); the tick on
   each step boundary is a little taller. Ticks light up white as you scroll past them. Step names
   sit under the ruler. The active step's copy sits bottom-left, just above it. */
.flow-nav { position: relative; margin: auto auto 0; padding-bottom: clamp(28px, 5vh, 48px); }
/* The step buttons have no visible labels: each one is an invisible hit area laid over its quarter of
   the ruler (pulled up over it with a negative margin), so clicking the ruler jumps to that step. */
.flow-steps {
  list-style: none; margin: -29.6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-gauge { position: relative; height: 21.6px; pointer-events: none; }
.flow-ticks {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  color: rgba(255,255,255,.32);
}
.flow-ticks i { flex: none; width: 1px; height: 13.5px; background: currentColor; }
.flow-ticks i.is-major { height: 21.6px; }
.flow-ticks--lit { color: var(--white); clip-path: inset(0 calc(100% - var(--prog, 0) * 100%) 0 0); }
.flow-panel {
  position: absolute; left: var(--gutter); bottom: 100%; width: min(760px, calc(100% - 2 * var(--gutter)));
  padding-bottom: clamp(36px, 7vh, 72px);
  opacity: 0; transform: translateY(32px); pointer-events: none;
  transition: opacity .45s ease, transform .8s var(--ease-out);
}
.flow-step.is-done .flow-panel { transform: translateY(-24px); }
.flow-step.is-active .flow-panel { opacity: 1; transform: none; pointer-events: auto; transition-delay: .1s; }
.flow-name { font-size: clamp(52px, 6vw, 96px); line-height: .95; font-weight: 300; letter-spacing: -0.045em; }
.flow-lede { margin-top: 24px; max-width: 30ch; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.35; letter-spacing: -0.015em; }
.flow-text { margin-top: 12px; max-width: 46ch; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.76); }

.flow-tab { display: block; width: 100%; height: 37.6px; }
.flow-tab:focus-visible { outline-offset: 0; }

/* Without JS: no pinning, every step's copy is shown in a simple grid */
html:not(.js) .flow-gauge, html:not(.js) .flow-tab { display: none; }
html:not(.js) .flow-nav { margin-top: 72px; }
html:not(.js) .flow-steps { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
html:not(.js) .flow-panel { position: static; width: auto; padding-bottom: 20px; opacity: 1; transform: none; }
html:not(.js) .flow-name { font-size: 40px; }

@media (max-height: 760px) and (min-width: 861px) {
  .flow-text { display: none; }
}

/* Gantry sequence: a near full-width row of tall photos with tight 12px gaps,
   small number above each photo, heading and paragraph below */
/* Header uses the same 5 columns, 12px gaps and 12px edges as the photo row: the title starts on
   column 3, so it lines up with photo 03. The eyebrow is nudged in to match the other sections. */
.gantry-head {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 12px; align-items: end;
  padding-inline: 12px;
}
.gantry-head .eyebrow { grid-column: 1 / span 2; align-self: start; padding-top: 12px; padding-left: calc(var(--gutter) - 12px); }
.gantry-title { grid-column: 3 / span 3; font-size: clamp(30px, 3.2vw, 48px); max-width: 22ch; }
.gantry-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(48px, 5vw, 72px); padding-inline: 12px;
}
.gantry-step { position: relative; min-width: 0; }
.gantry-num { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ink); }
.gantry-num::before { content: ""; }
.gantry-step .media-frame img { object-position: var(--fx, 50%) center; transition: transform 1.2s var(--ease-out); }
.gantry-step:hover .media-frame img { transform: scale(1.04); }
.gantry-step h4 { margin-top: 22px; padding-right: 12px; font-size: clamp(18px, 1.35vw, 21px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.2; }
.gantry-step p:last-child { margin-top: 6px; padding-right: 12px; max-width: 36ch; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Regional reach: flattened dot map with callouts, on brown ----------
   Africa as a field of elliptical dots seen at an angle; markets are lighter dots. Each market
   has a callout on a thin vertical leader (name, role, capital). The heading sits top-left.
   Hovering a callout (or a market country) lights its dots and leader; the rest recede. */
.reach { position: relative; isolation: isolate; background: var(--brown); color: var(--white); overflow: hidden; }
.reach-stage { position: relative; }
.reach-intro { position: absolute; z-index: 1; top: 0; left: 0; right: 0; pointer-events: none; }
.reach-intro-inner { max-width: min(600px, 42vw); pointer-events: auto; }
.reach-intro .h2 { margin-top: 28px; font-size: clamp(36px, 3.3vw, 50px); }
.reach-intro .lead { margin-top: 24px; max-width: 34ch; color: rgba(255,255,255,.74); }
.reach-map { max-width: 1600px; margin: 0 auto; }
.reach .map { display: block; width: 100%; height: auto; }
/* Markets list, set in the empty Atlantic (lower-left of the map). The active market is white and a
   thin line fills along its rule over the 3 seconds before the next one. The block starts just below
   the West African coast (63% down the map) and its button runs on into the section's bottom padding. */
.reach-key { position: absolute; z-index: 1; left: 0; right: 0; top: 63%; pointer-events: none; }
/* The list is exactly one column of the page grid wide, so its row lines run from one vertical grid
   line to the next (.reach-key is a .container, like .hero-lines, so 25% = one column). Narrower
   screens use two columns (below), phones the full width. A row needs about 280px. */
.reach-key-inner { width: 25%; pointer-events: auto; }
.reach-key-label { color: var(--white); }
.reach .reach-cta { margin-top: 24px; --wipe-bg: var(--white); --wipe-fg: var(--brown); }
.reach-markets { margin-top: 12px; border-top: 1px solid var(--line-light); }
.reach-markets li { border-bottom: 1px solid var(--line-light); }
.rm { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 7px 0; text-align: left; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.65); transition: color .35s ease; }
.rm-line { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.rm:hover, .rm.is-active { color: var(--white); }
.rm:focus-visible { outline-offset: 2px; }
.rm-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.rm.is-active .rm-progress { transform: scaleX(1); }
.reach-key.is-running .rm.is-active .rm-progress { animation: rmfill 3s linear both; }
@keyframes rmfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.map .land-dots { fill: none; stroke: #a08f81; stroke-width: 3.6; stroke-linecap: round; pointer-events: none; }
.map .mc { fill: none; stroke: var(--tan-soft); stroke-width: 3.6; stroke-linecap: round; transition: stroke .35s ease; pointer-events: none; }
.map .mc.is-hot { stroke: var(--white); }
/* Invisible hit areas with each market's whole outline: the country answers the pointer, not a single dot */
.map .hit { fill: transparent; stroke: transparent; stroke-width: 2; pointer-events: all; }
.map .hit[data-country="DJ"] { stroke-width: 18; }
.map .map-routes, .map .map-ends, .map .map-callouts { pointer-events: none; }
.map .route { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; transition: stroke .3s ease, opacity .3s ease; }
.js .map .route { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.map.is-drawn .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out) var(--d, 0s), stroke .3s ease, opacity .3s ease; }
.map .route.is-hot { stroke: var(--white); }
.map .end { fill: var(--white); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .3s var(--ease-out); }
/* grows on hover but stays clear of the neighbouring dots */
.map .end.is-hot { transform: scale(1.25); }
/* Market marker: one of the map dots, drawn larger in place (a wider invisible circle takes the hover) */
.map .hit--mk { cursor: pointer; }
.map .hub { fill: var(--white); }
/* The terminal breathes: a slow ring that keeps expanding from Mombasa */
.map .hub-ping { fill: none; stroke: var(--white); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: hubping 2.8s ease-out infinite; }
@keyframes hubping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
/* Hover: a radar ping from the market point */
.map .ping { fill: none; stroke: var(--white); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .ping.is-hot { animation: ping 1.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.map .callout { transition: opacity .3s ease; }
.map .callout text { font-family: var(--font-sans); paint-order: stroke; stroke: var(--brown); stroke-width: 6px; stroke-linejoin: round; }
/* Callouts in the hero annotation style: bright bar beside the block, light "City, Country",
   one white mono tagline */
.map .co-name { font-size: 26px; font-weight: 300; letter-spacing: -0.03em; fill: var(--white); }
.map .callout .co-meta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; fill: rgba(255,255,255,.92); }
.map .co-bar { stroke: var(--white); stroke-width: 1; opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s var(--ease-out), opacity .3s ease; }
/* The map scales with the window, so step the small line up on smaller laptops to keep it readable */
@media (max-width: 1366px) { .map .callout .co-meta { font-size: 13px; } }
@media (max-width: 1180px) { .map .callout .co-meta { font-size: 14.5px; } }
/* Mombasa (below its point in the sea): its leader drops from the terminal and the bar grows down */
.map .callout--hub .co-bar { transform-origin: 50% 0%; }
/* Entry: Mombasa's leader draws, its bar grows, then its label fades in */
.js .map .co-bar { transform: scaleY(0); }
.map.is-drawn .co-bar { transform: scaleY(1); transition-delay: 1.3s, 0s; }
.js .map .co-text { opacity: 0; }
.map.is-drawn .co-text { opacity: 1; transition: opacity .7s ease 1.6s; }
/* Markets: one at a time, in step with the list. A single line draws from the country straight up to
   the top of its label in one smooth motion (it is also the bar beside the text), and the name slides
   in while it draws; the previous one fades out as the next begins. */
.map .route.leader--market { opacity: 0; }
.map .route.leader--market.is-hot { opacity: 1; stroke: var(--white); }
.js .map .route.leader--market { stroke-dashoffset: var(--len); transition: opacity .25s ease, stroke-dashoffset 0s linear .25s; }
.js .map.is-drawn .route.leader--market.is-hot { stroke-dashoffset: 0; transition: stroke-dashoffset .55s cubic-bezier(.33, 1, .68, 1); }
.map .callout--market { opacity: 0; }
.map .callout--market.is-hot { opacity: 1; transition-duration: 0s; }
.map .callout.is-hot .co-bar { opacity: 1; }
.map .callout--market .co-bar { display: none; }
.js .map .callout--market .co-text { opacity: 0; transform: translateX(-8px); transition: opacity 0s linear .25s, transform 0s linear .25s; }
.js .map.is-drawn .callout--market.is-hot .co-text { opacity: 1; transform: none; transition: opacity .35s ease .2s, transform .45s var(--ease-out) .2s; }

/* ---------- 05 Safety (HSEQ): lettering only ---------- */
/* One big statement, set at the hero h1 size. "We train, test and enforce" is ink, the rest a muted
   brown, so the three verbs carry the section. The eyebrow sits on one line in the first line's indent,
   level with the capitals of the big type: the statement starts at column four, or just after the
   eyebrow where three columns are too narrow for it. */
.safety { --ss-size: clamp(40px, 5.8vw, 96px); }
.safety .eyebrow {
  float: left; white-space: nowrap; width: max-content; min-width: calc((100% - 11 * 24px) / 12 * 3 + 2 * 24px); margin-right: 24px;
  padding-top: calc(var(--ss-size) * .12 - 3px);
}
.safety-statement {
  font-size: var(--ss-size); line-height: .96; font-weight: 300; letter-spacing: -0.05em;
  color: var(--brown-400);
}
.ss-w { color: var(--ink); }
.js .safety-statement .ss-w { color: var(--brown-400); transition: color .9s ease; transition-delay: calc(.5s + var(--i, 0) * .14s); }
.js .safety-statement.is-in .ss-w { color: var(--ink); }
/* Below: the claim and lead on the left, the four HSEQ words as a ruled list on the right */
.safety-foot { clear: both; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: clamp(64px, 8vw, 128px); }
.safety-intro { grid-column: 1 / span 5; }
.safety-claim { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; font-weight: 300; letter-spacing: -0.035em; color: var(--ink); }
.safety-intro .lead { margin-top: 20px; max-width: 36ch; }
.hseq { grid-column: 7 / span 6; border-top: 1px solid var(--line); }
.hseq li { padding: 14px 0 15px; border-bottom: 1px solid var(--line); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; font-weight: 300; letter-spacing: -0.035em; color: var(--brown-400); }
.hseq b { font-weight: inherit; color: var(--ink); }
/* ISO certifications (AGOL, 24 Nov 2026): a short intro, then a ruled row of four on the page grid,
   in the order of the HSEQ list (health and safety, environment, quality, then the laboratory) */
.certs { clear: both; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: clamp(64px, 8vw, 128px); }
.certs-head { grid-column: 1 / span 5; }
.certs .eyebrow { float: none; width: auto; min-width: 0; margin-right: 0; padding-top: 0; }
.certs-head .lead { margin-top: 20px; max-width: 36ch; }
.cert-list { grid-column: 1 / -1; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.cert-list li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.cert-code { font-size: clamp(22px, 2.1vw, 32px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.cert-name { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--ink-3); }

/* ---------- 06 Film ---------- */
.film { position: relative; background: var(--brown-950); }
.film-frame { position: relative; aspect-ratio: 16 / 9; max-height: 100vh; width: 100%; overflow: hidden; }
.film-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; text-align: left; color: var(--white); cursor: pointer; }
.film-cover picture, .film-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-cover img { transition: transform 1.6s var(--ease-out); }
.film-cover:hover img { transform: scale(1.03); }
.film-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,25,21,.88) 0%, rgba(31,25,21,.35) 45%, rgba(31,25,21,.25) 100%); }
.film-content { position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; padding-bottom: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; }
.film-title { display: block; margin-top: 24px; max-width: 14ch; }
.film-play { display: inline-flex; align-items: center; gap: 18px; margin-top: 40px; }
.film-play-btn {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  /* glass: a faint white tint over a blur of the film still */
  background: rgba(255,255,255,.14); color: var(--white);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: transform .5s var(--ease-out), background-color .3s ease;
}
.film-play-btn svg { width: 23px; height: 23px; margin-left: 3px; }
.film-cover:hover .film-play-btn { transform: scale(1.06); background: rgba(255,255,255,.22); }
.film-play-label { display: flex; flex-direction: column; gap: 6px; }
.film-play-text { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; }
.film-meta { opacity: .7; }
.film-cover:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }

/* ---------- Film popup (<dialog>) ---------- */
.film-modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden;
}
.film-modal:not([open]) { display: none; } /* also hides it in browsers without <dialog> support */
.film-modal[open] { display: grid; place-items: center; animation: filmFade .35s ease both; }
.film-modal::backdrop { background: rgba(20, 16, 13, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* The player box: as wide as fits, never taller than the screen (16:9 plus the bar above it) */
.film-modal-inner {
  width: min(1280px, calc(100vw - 2 * var(--gutter)), calc((100vh - 128px) * 16 / 9));
  width: min(1280px, calc(100vw - 2 * var(--gutter)), calc((100dvh - 128px) * 16 / 9));
  animation: filmRise .55s var(--ease-out) both;
}
.film-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.film-modal-title { color: rgba(255,255,255,.88); }
.film-modal-meta { margin-left: 10px; color: rgba(255,255,255,.6); }
.film-modal-close {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 0 10px 12px; margin: -10px 0;
  color: var(--white); cursor: pointer;
}
.film-modal-x { position: relative; width: 22px; height: 22px; }
.film-modal-x i { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.film-modal-x i:first-child { transform: rotate(45deg); }
.film-modal-x i:last-child { transform: rotate(-45deg); }
.film-modal-close:hover .film-modal-x i:first-child { transform: rotate(135deg); }
.film-modal-close:hover .film-modal-x i:last-child { transform: rotate(45deg); }
.film-modal-close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.film-modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.film-modal-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.film-modal-video:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
html.film-open { overflow: hidden; }
@keyframes filmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes filmRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- 07 Vision ---------- */
.vision .statement { margin-top: 36px; max-width: 20ch; }
.statement--dark { color: var(--ink); }
.vision-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(56px, 7vw, 104px); align-items: end; }
.vision-figure { grid-column: 1 / span 7; }
.vision-copy { grid-column: 9 / span 4; }
.vision-list { margin-top: 40px; border-top: 1px solid var(--line); }
.vision-list li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 400; letter-spacing: -0.015em; }
.vision-list .point-icon { color: var(--brown); }

/* ---------- 08 Leadership ---------- */
.leadership { background: var(--sand); }
/* Leadership slider. .team is a native sideways scroller with scroll snapping, so touch swiping,
   trackpads and the keyboard work with no library; main.js adds the arrow buttons, mouse dragging
   and the progress bar. --per = cards in view (4 on desktop, fewer below, see the media queries). */
.team-slider { margin-top: clamp(48px, 6vw, 88px); }
.team {
  --per: 4; --gap: 24px;
  display: flex; align-items: flex-start; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  /* 6px of room inside the scroller so focus rings on "Read more" are not clipped (cancelled by the
     negative margin, so the cards still line up with the page grid) */
  padding: 6px; margin: -6px; scroll-padding-inline: 6px;
}
/* The scrollbar hides only when main.js runs (it adds arrows and a progress bar instead) */
.js .team { scrollbar-width: none; }
.js .team::-webkit-scrollbar { display: none; }
.team:focus-visible { outline-offset: 2px; }
.team > .person { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.team.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.team img { -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) { .js .team { cursor: grab; } }
.slider-controls { display: flex; gap: 8px; flex: none; }
.slider-btn { width: var(--btn-h); padding: 0; color: var(--brown); }
.slider-btn--prev .cta-arrow { transform: scaleX(-1); }
/* At either end the arrow is marked aria-disabled (not disabled), so it keeps keyboard focus */
.slider-btn[aria-disabled="true"] { opacity: .3; cursor: default; }
.slider-btn[aria-disabled="true"]::before { transform: scaleX(0); }
.slider-btn[aria-disabled="true"]:hover, .slider-btn[aria-disabled="true"]:focus-visible { color: var(--brown); border-color: currentColor; }
.slider-btn[aria-disabled="true"] .cta-arrow svg:first-child { transform: none; }
.slider-btn[aria-disabled="true"] .cta-arrow svg:last-child { transform: translateX(-130%); }
.slider-progress { position: relative; height: 2px; margin-top: 36px; background: var(--line); overflow: hidden; }
.slider-progress > span { position: absolute; inset: 0 auto 0 0; width: 50%; background: var(--brown); transition: transform .25s var(--ease-out); }
html:not(.js) .slider-controls, html:not(.js) .slider-progress { display: none; }
.leadership.is-static .slider-progress, .leadership.is-static .slider-controls { display: none; }
.person-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand-2);
  display: grid; place-items: center;
}
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
/* Until photos arrive: a plain empty block, no border */
.person-photo.is-placeholder { background: var(--sand-2); }
.person-role { margin-top: 20px; color: var(--brown); }
.person-name { margin-top: 8px; font-size: clamp(22px, 1.8vw, 26px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; }
.person-name .tbc { font-size: 9px; }
.person-bio { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.person-bio.is-placeholder { color: var(--ink-3); font-style: italic; }
.person--pending .person-name { color: var(--ink-3); }
html[data-draft="false"] .person--pending { display: none; }
/* Phone numbers and email in the contact list */
.contact-list dd a { transition: opacity .2s; }
.contact-list dd a:hover { opacity: .72; }

/* ---------- 09 Contact ---------- */
.contact { position: relative; color: var(--white); background: var(--brown); padding-block: calc(var(--section-y) * .85); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg picture, .contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,34,29,.96) 0%, rgba(42,34,29,.86) 45%, rgba(42,34,29,.55) 100%); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
/* Centred vertically against the form */
.contact-copy { grid-column: 1 / span 5; align-self: center; }
/* The section title is the Contact eyebrow; the lead sits right under it */
.contact-copy .lead { margin-top: 20px; font-size: 16px; color: rgba(255,255,255,.78); }
/* Contact details: an eyebrow label (same style as every eyebrow on the site) over a large value, no rules */
.contact-list { display: grid; gap: clamp(28px, 2.6vw, 40px); margin-top: 56px; }
.contact-list dd { margin-top: 10px; font-size: clamp(22px, 1.95vw, 28px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
/* Details still to come: the same large type, muted, without the dashed draft box */
.contact-list .placeholder { display: inline; padding: 0; border: 0; font-size: inherit; opacity: .45; }

.contact-form {
  grid-column: 7 / span 6; color: var(--white);
  /* glass: a faint white tint over a blur of the photo behind */
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.45);
}
/* One level up the site's type scale (the same step as the "Safety is non-negotiable." line), tighter tracking */
.form-title { font-size: clamp(28px, 2.6vw, 40px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.88); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.55); background: transparent;
  padding: 10px 0 12px; font-size: 17px; border-radius: 0; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--white); outline: none; box-shadow: 0 1px 0 0 var(--white); }
/* The native country dropdown keeps dark text on its light list */
.field select option { color: var(--ink); }
/* Browser autofill would paint a light box with dark text: keep the glass look */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); caret-color: var(--white); transition: background-color 9999s ease 0s; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid rgba(255,255,255,.75); border-bottom: 1.5px solid rgba(255,255,255,.75); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #ffab96; }
.field-error { min-height: 0; font-size: 13px; color: #ffc4b4; margin-top: 6px; }
.field-error:empty { display: none; }
/* Send message runs the full width of the form; "* Required" sits under it */
/* Spam trap field: off-screen, never seen or tabbed to by people */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 8px; }
.form-hint { color: rgba(255,255,255,.72); }
.contact-form .form-submit { width: 100%; --wipe-bg: var(--white); --wipe-fg: var(--brown); }
.form-status { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.85); }
.form-status:empty { margin: 0; }
.form-status.is-ok { color: #a8dcb2; }
.form-status.is-warn { padding: 12px 14px; background: rgba(255,255,255,.08); border-left: 2px solid var(--white); }

/* ---------- Footer ---------- */
/* Footer: a big call to action, four link columns on the page's four-column line grid (a thin line at
   the container's left edge, each quarter and the right edge), then the wordmark */
/* The main brand brown */
.site-footer { background: var(--brown); color: var(--white); padding-top: clamp(72px, 9vw, 136px); overflow: hidden; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { display: block; color: var(--white); }
.logo--footer { display: block; height: clamp(56px, 5.2vw, 80px); width: auto; aspect-ratio: 1080 / 398; }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-actions .btn { --wipe-bg: var(--white); --wipe-fg: var(--brown); }
.footer-lower { position: relative; margin-top: clamp(80px, 10vw, 160px); }
.footer-lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); pointer-events: none; }
.footer-lines i { border-left: 1px solid rgba(255,255,255,.1); }
.footer-lines i:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.footer-cols { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-col { display: flex; flex-direction: column; min-height: clamp(300px, 30vw, 440px); padding: 0 16px 24px 14px; }
.footer-col ul { margin-top: clamp(64px, 8vw, 128px); display: grid; gap: 10px; font-size: 15.5px; line-height: 1.35; color: rgba(255,255,255,.8); }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-mark { position: relative; margin-top: clamp(64px, 8vw, 120px); color: rgba(255,255,255,.06); }
.footer-mark svg { width: 100%; height: auto; aspect-ratio: 1002 / 278; }
/* Dots version: hovering lights the dots under the pointer, they flicker and fade (main.js) */
.footer-dots { display: none; width: 100%; touch-action: pan-y; }
.footer-mark.is-dots svg { display: none; }
.footer-mark.is-dots .footer-dots { display: block; }
/* Bottom bar on the same column grid: the copyright starts where the links above start */
.footer-bottom { position: relative; padding: 22px 16px 28px 14px; font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.8); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  /* Regional reach: heading above the map */
  .reach-intro { position: static; margin-bottom: clamp(24px, 4vw, 48px); pointer-events: auto; }
  .reach-intro-inner { max-width: 640px; }
  .reach-intro .h2 { font-size: clamp(36px, 4.6vw, 68px); }
  .reach-key { position: static; margin-top: 32px; }
  .reach-key-inner { width: 50%; } /* two grid columns */
  .primary-nav ul { gap: 22px; }
  .primary-nav a { font-size: 11.5px; }
  .point { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 1024px) {
  .team { --per: 3; }
  /* Regional reach: map labels would be too small; the list under the map carries the names */
  .map .map-callouts, .map .map-routes { display: none; }
  /* Safety: the eyebrow would wrap taller than the first line, so it goes back above the statement */
  .safety .eyebrow { float: none; width: auto; min-width: 0; white-space: normal; margin-right: 0; padding-top: 0; }
  .safety-statement { margin-top: 28px; }
  .rm { padding: 11px 0; font-size: 16px; }
  :root { --header-h: 68px; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand .logo { height: 40px; }

  .about-figure { grid-column: 1 / span 5; }
  .about-points { grid-column: 7 / span 6; }


  /* Gantry: tablets and phones swipe through the photos sideways */
  .gantry-steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--brown-400) transparent;
  }
  .gantry-steps:focus-visible { outline-offset: -2px; }
  .gantry-step { flex: 0 0 38%; scroll-snap-align: start; }
  .gantry-head { padding-inline: var(--gutter); }
  .gantry-head .eyebrow, .gantry-title { grid-column: 1 / -1; }
  .gantry-head .eyebrow { padding-left: 0; }
  .gantry-title { margin-top: 24px; }

  .contact-copy { grid-column: 1 / -1; }
  .contact-form { grid-column: 1 / -1; margin-top: 56px; }
  .contact-bg::after { background: linear-gradient(180deg, rgba(42,34,29,.94), rgba(42,34,29,.86)); }


  .vision-figure { grid-column: 1 / -1; }
  .vision-figure .media-frame { aspect-ratio: 2 / 1; }
  .vision-copy { grid-column: 1 / -1; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .vision-list { margin-top: 0; }
}

@media (max-width: 860px) {
  .data-tag--b { display: none; }

  .about-figure, .about-points { grid-column: 1 / -1; }
  .about-points { margin-top: 48px; }
  .about-figure .media-frame { aspect-ratio: 4 / 3; }

  .stats { grid-template-columns: 1fr; gap: 12px; }

  /* Map on phones: crop around East Africa (x 850-1400, y 380-780 of the viewBox) */
  .reach-map { aspect-ratio: 550 / 400; overflow: hidden; }
  .reach .map { width: 291%; max-width: none; margin-left: -154.5%; margin-top: -69.1%; }
  .stat { min-height: 300px; gap: 40px; }

  /* How it works on phones: shorter scroll, smaller labels on the bottom bar */
  .js .flow { height: calc(100vh + 4 * 30vh); height: calc(100svh + 4 * 30svh); }
  .flow-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .flow-title { font-size: clamp(28px, 7.4vw, 38px); }
  .flow-lead { font-size: 15px; }
  .flow-nav { padding-bottom: 24px; }
  .flow-panel { padding-bottom: 32px; }
  .flow-name { font-size: clamp(40px, 11vw, 56px); }
  .flow-lede { margin-top: 16px; font-size: clamp(19px, 5vw, 22px); line-height: 1.3; }
  .flow-text { font-size: 15px; }
  html:not(.js) .flow-steps { grid-template-columns: 1fr; }

  .gantry-steps { gap: 8px; }
  .gantry-step { flex-basis: 72%; }

  .safety-intro, .hseq { grid-column: 1 / -1; }
  .hseq { margin-top: 48px; }
  .certs-head { grid-column: 1 / -1; }
  .cert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .vision-copy { grid-template-columns: 1fr; gap: 32px; }
  /* Leadership slider on tablets: two cards and part of the next; the row runs to the screen edges */
  .team { --per: 2.3; --gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .team:focus-visible { outline-offset: -2px; } /* the row runs to the screen edges here */

}

/* How it works on short screens: the pinned step text would otherwise grow up over the
   section heading. Short phones drop the long paragraph; very short screens (landscape
   phones, 200% zoom) fall back to the static, unpinned layout used without JS. */
@media (max-width: 860px) and (max-height: 640px) {
  .flow-text { display: none; }
}
@media (max-height: 560px) {
  .js .flow { height: auto; }
  .js .flow-stage { position: relative; height: auto; }
  .flow-gauge, .flow-tab { display: none; }
  .flow-nav { margin-top: 48px; }
  .flow-steps { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .flow .flow-step .flow-panel { position: static; width: auto; padding-bottom: 20px; opacity: 1; transform: none; transition: none; }
  .flow-name { font-size: 40px; }
  .flow-text { display: block; }
}
@media (max-height: 560px) and (max-width: 640px) {
  .flow-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-content { padding-bottom: 40px; }
  .hero-title { margin-top: 18px; font-size: min(40px, 10.4vw); }
  .safety { --ss-size: min(40px, 10.4vw); }
  .hero-foot { margin-top: 28px; gap: 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-loc { gap: 6px 16px; }
  .hero-lines { grid-template-columns: repeat(2, 1fr); }
  .hero-lines i:nth-child(n+3) { display: none; }
  .hero-lines i:nth-child(2) { border-right: 1px solid rgba(255,255,255,.08); } /* close the grid at the right edge, like the footer */
  .reach-key-inner { width: auto; } /* full width: from the left grid line to the right one */
  .hero-tags { grid-template-columns: repeat(2, 1fr); }
  .data-tag { grid-column: 2; padding: 2px 8px 4px 14px; gap: 8px; }
  .data-tag-k { font-size: 20px; }

  .team { --per: 1.3; --gap: 14px; }
  .slider-controls { display: none; } /* phones swipe; the progress bar shows there is more */
  .slider-progress { margin-top: 28px; }
  .person-name { font-size: 19px; }
  .person-bio { font-size: 14.5px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cert-code { font-size: 20px; }

  .film-frame { aspect-ratio: 4 / 5; max-height: none; }
  .film-cover img { object-position: 70% 50%; } /* keep the whole AGOL logo on the tank in the portrait crop */
  .film-play-btn { width: 58px; height: 58px; }
  .film-play-btn svg { width: 20px; height: 20px; }
  .film-play { gap: 14px; }

  /* Footer: two columns per row, like the hero's lines on phones */
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col { min-height: 260px; }
  .footer-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-lines i:nth-child(2) { border-right: 1px solid rgba(255,255,255,.1); }
  .footer-lines i:nth-child(n+3) { display: none; }
  .footer-col ul { margin-top: 48px; }
}

@media (min-width: 481px) and (max-width: 640px) {
  .team { --per: 1.8; }
}
@media (max-width: 340px) {
  .cert-code { font-size: 18px; }
  .team { --per: 1.18; }
}

/* Short laptop windows: no room for the figures above the copy. On phones the browser's own bars
   take about 150px, so real phone screens are usually only 550-740px tall (devtools presets show the
   full 844px): there the figure stays, and only screens too short for it to clear the location
   line (iPhone SE size and smaller) hide it. Measured gap at 390x664: 82px; at 390x620: about 40px. */
@media (max-height: 760px) and (min-width: 861px) {
  .hero-tags { display: none; }
}
@media (max-height: 619px) and (max-width: 860px) {
  .hero-tags { display: none; }
}

/* ---------- Without JavaScript ---------- */
html:not(.js) .menu-toggle { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero-reveal], .js .data-tag, .js .hero-title .line > span { opacity: 1; transform: none; }
  .js [data-words] .w { color: inherit; }
  .js .map .route { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .map .co-text { opacity: 1; }
  .js .map .co-bar { transform: none; }
  .js .safety-statement .ss-w { color: var(--ink); }
  .reach-key.is-running .rm.is-active .rm-progress { animation: none; }
  .flow-img img, .flow-img.is-active img { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-media, .hero-video, .hero-tint, .film, .film-modal, .contact-form, .mobile-menu { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .js [data-reveal], .js [data-hero-reveal], .js .hero-title .line > span { opacity: 1 !important; transform: none !important; }
}
