/* ============================================================
   Africonology.ai
   Palette is deliberately teal→brass: warm/cool, African
   materials (verdigris, brass), and nothing like the
   navy→magenta of the reference — nor the terracotta of
   every AI vendor. Neutrals carry a teal bias so
   they read as chosen rather than inherited.
   The page commits to one visual world — a brand landing page
   with fixed dark and light bands — so every colour is painted
   explicitly from tokens rather than following the host theme.
   ============================================================ */
:root {
  /* Africonology green, the same palette the AFRIQ Agent Factory product
     uses (assets/afriq.css in afriq-agent-factory). Brand olive #476529,
     sage #C3D1B5, green-black ink.

     The product is a light theme; this site alternates light and dark bands,
     so the hues carry over rather than the ground. The olive is mixed for
     white -- 12.43:1 on the light bands, but 1.87:1 on the dark ones -- so a
     lifted set sits beside it for use on dark. Same split the rebrand site
     makes between --olive and --olive-lit, and for the same reason. */

  --ink:      #0E110F;   /* green-black: the dark ground */
  --ink-2:    #151917;
  --deep:     #1D2620;

  --olive:     #476529;  /* the brand olive, for light grounds */
  --olive-dp:  #263418;
  --olive-lit: #90CB4D;  /* lifted, 9.80:1 on ink */
  --olive-glow:#ADDB70;
  --forest:    #1F4733;  /* the cool end of the gradient */
  --moss:      #668235;  /* the warm end */
  --sage:      #C3D1B5;  /* Africonology sage, 11.85:1 on ink */

  /* The old names are kept so the ~150 rules that reference them resolve;
     both now point into the green family. */
  --teal:     #476529;
  --teal-lo:  #263418;
  --teal-hi:  #90CB4D;
  --brass:    #668235;
  --brass-hi: #ADDB70;
  --brass-lo: #3C5422;
  --gold:     #668235;

  --paper:    #FAFBF9;   /* the product's page ground */
  --paper-2:  #F1F5EC;
  --line-dk:  rgba(255,255,255,.13);
  --line-lt:  rgba(14,17,15,.12);

  --on-dark:   #EDF2EA;
  --on-dark-2: rgba(237,242,234,.66);
  --on-light:  #0E110F;
  --on-light-2:#515C51;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1360px;
  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 78px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 3px; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------------- navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(14,17,15,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dk);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 30px);
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
}
.brand { display: flex; flex-direction: column; gap: 3px; flex: none; margin-right: 6px; }
.brand-mark {
  font-family: var(--display); font-weight: 600; font-size: 19px;
  letter-spacing: .01em; color: #fff; line-height: 1;
}
.brand-mark .dot { color: var(--brass-hi); }  /* on the dark nav: --brass is 4.35:1 there */
.brand-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--on-dark-2); line-height: 1;
}

.menu { display: flex; align-items: center; gap: clamp(4px, 1.1vw, 16px); flex: 1; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-size: 14px; font-weight: 500;
  color: var(--on-dark); padding: 8px 2px; position: relative;
  white-space: nowrap;
}
.menu-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brass); transform: scaleX(0); transition: transform .22s ease;
}
.menu-btn[aria-expanded="true"]::after, .menu-btn:hover::after { transform: scaleX(1); }
.menu-btn[aria-current="page"]::after { transform: scaleX(1); opacity: .55; }
.menu-btn svg { opacity: .6; transition: transform .22s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 999px;
  font-family: var(--body); font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.pill-brass { background: var(--brass-hi); color: var(--ink); }
.pill-brass:hover { background: var(--olive-glow); transform: translateY(-1px); }
.pill-teal { background: rgba(71,101,41,.18); color: var(--teal-hi); border: 1px solid rgba(144,203,77,.4); }
.pill-teal:hover { background: rgba(71,101,41,.3); transform: translateY(-1px); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; color: var(--on-dark-2); cursor: pointer; border-radius: 8px;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.lang { font-family: var(--mono); font-size: 12px; color: var(--on-dark-2); display: flex; align-items: center; gap: 4px; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--on-light);
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 30px 60px -20px rgba(14,17,15,.4);
  display: none;
}
.mega[data-open="true"] { display: block; animation: megaIn .18s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega-inner {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 40px var(--pad) 44px;
  display: grid; gap: 32px 40px;
}
.mega-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega-cols-2 { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.mega-h {
  font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.28;
  margin-bottom: 16px; color: var(--on-light);
}
.mega-h span { display: block; color: var(--teal-lo); }
.mega-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mega-list a {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 14px; color: #3E4A3E; line-height: 1.42;
}
.mega-list a::before { content: "\203A"; color: var(--brass-lo); font-weight: 700; line-height: 1.3; }
.mega-list a:hover { color: var(--ink); }
.mega-feature {
  border-radius: 14px; padding: 24px;
  background: linear-gradient(150deg, var(--deep), var(--teal-lo) 130%);
  color: var(--on-dark);
}
.mega-feature .eyebrow { color: var(--teal-hi); }
.mega-feature h4 { font-size: 20px; margin: 10px 0 8px; line-height: 1.25; }
.mega-feature p { font-size: 13.5px; color: var(--on-dark-2); }
.mega-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 21px; font-weight: 500; color: var(--ink);
  margin-bottom: 22px;
}
.mega-all::after { content: "\2192"; color: var(--brass-lo); transition: transform .2s ease; }
.mega-all:hover::after { transform: translateX(4px); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
#contours { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 78% 30%, rgba(71,101,41,.30), transparent 62%),
    radial-gradient(70% 60% at 92% 78%, rgba(102,130,53,.26), transparent 60%),
    linear-gradient(180deg, transparent 55%, var(--ink) 99%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(70px, 11vw, 140px) 0 clamp(64px, 9vw, 120px);
  display: grid; gap: 26px; max-width: 900px;
}
.hero .eyebrow { color: var(--teal-hi); }
.hero h1 {
  font-size: clamp(44px, 8.2vw, 108px);
  line-height: .96; font-weight: 300; letter-spacing: -.028em; margin: 0;
}
.hero h1 .name {
  display: block; font-weight: 600; letter-spacing: -.012em;
  font-size: clamp(30px, 4.4vw, 58px); color: #fff; margin-bottom: .22em;
}
.hero h1 .name em { font-style: normal; color: var(--brass); }
.hero h1 .line { display: block; color: #fff; }
.hero h1 .line.accent {
  background: linear-gradient(96deg, var(--teal-hi), var(--gold) 58%, var(--brass-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--on-dark-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.pill-lg { height: 52px; padding: 0 30px; font-size: 15px; }
.pill-ghost { background: transparent; color: #fff; border: 1px solid var(--line-dk); }
.pill-ghost:hover { border-color: var(--teal-hi); color: var(--teal-hi); }
.hero-stamp {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-bottom: clamp(34px, 5vw, 60px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(237,242,234,.58);
}
.hero-stamp span { display: inline-flex; align-items: center; gap: 9px; }
.hero-stamp span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

/* ---------------- generic bands ---------------- */
.band { padding: clamp(66px, 8.5vw, 128px) 0; }
.band-light { background: var(--paper); color: var(--on-light); }
.band-ink { background: var(--ink); color: var(--on-dark); }
.band-deep { background: linear-gradient(140deg, var(--deep) 0%, var(--teal-lo) 52%, var(--brass) 128%); color: #fff; }

.mission {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(27px, 4.1vw, 55px); line-height: 1.12; letter-spacing: -.022em;
  max-width: 20ch;
}
.mission .g {
  background: linear-gradient(95deg, var(--brass) 0%, var(--gold) 34%, var(--teal) 72%, var(--teal-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rule { height: 1px; background: var(--line-lt); margin: clamp(32px, 4vw, 52px) 0; max-width: 420px; }
.band-ink .rule, .band-deep .rule { background: var(--line-dk); }

/* ---------------- capability grid ---------------- */
.caps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 30px; }
.cap-shape { width: 92px; height: 92px; margin-bottom: 20px; }
.cap h3 {
  font-size: 19px; font-weight: 500; line-height: 1.24; margin-bottom: 12px;
}
.cap h3 span { display: block; color: var(--teal-lo); font-weight: 400; }
.cap p { font-size: 14.5px; color: var(--on-light-2); }
.cap-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-lo);
}
.cap-link::after { content: "\2192"; transition: transform .2s ease; }
.cap-link:hover::after { transform: translateX(4px); }

/* ---------------- section headers ---------------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 300; letter-spacing: -.025em; line-height: 1.04; }
.sec-head p { max-width: 46ch; font-size: 15.5px; }
.band-light .sec-head p { color: var(--on-light-2); }
.band-ink .sec-head p, .band-deep .sec-head p { color: var(--on-dark-2); }

/* ---------------- cases ---------------- */
.cases { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.cases::-webkit-scrollbar { height: 3px; }
.cases::-webkit-scrollbar-thumb { background: rgba(255,255,255,.4); border-radius: 3px; }
.case {
  flex: 0 0 clamp(280px, 30vw, 400px); scroll-snap-align: start;
  border-radius: 16px; padding: 28px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(14,17,15,.34); border: 1px solid rgba(255,255,255,.17);
  backdrop-filter: blur(3px); transition: transform .22s ease, border-color .22s ease;
}
.case:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.4); }
.case .eyebrow { color: rgba(255,255,255,.66); }
.case h3 { font-size: 21px; font-weight: 400; line-height: 1.26; margin-top: 14px; }
.case .metric {
  font-family: var(--mono); font-size: 31px; font-weight: 500;
  color: #fff; margin: 20px 0 4px; letter-spacing: -.02em;
}
.case .metric small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 400; margin-top: 5px; }
.case-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-top: 20px; }
.case-link::after { content: "\2192"; transition: transform .2s ease; }
.case-link:hover::after { transform: translateX(4px); }

/* ---------------- stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-dk); border-block: 1px solid var(--line-dk); }
.stat { background: var(--ink); padding: 34px 26px; }
.stat .n {
  font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); font-weight: 300;
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, var(--teal-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 12px; line-height: 1.5; }

/* ---------------- map ---------------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.map-holder { position: relative; aspect-ratio: 4 / 3.4; }
#africa { width: 100%; height: 100%; display: block; }
.map-legend { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.map-legend div { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.dotm { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------------- insights ---------------- */
.insights { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.insight { display: flex; flex-direction: column; gap: 14px; }
.insight-img { aspect-ratio: 16 / 10; border-radius: 13px; position: relative; overflow: hidden; }
.insight-img canvas { width: 100%; height: 100%; display: block; }
.insight .eyebrow { color: var(--brass-lo); }
.insight h3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.insight p { font-size: 14.5px; color: var(--on-light-2); }

/* ---------------- closing CTA ---------------- */
.close-cta { text-align: center; display: grid; gap: 24px; justify-items: center; }
.close-cta h2 { font-size: clamp(32px, 5.2vw, 70px); font-weight: 300; letter-spacing: -.03em; line-height: 1.02; max-width: 16ch; }
.close-cta p { max-width: 52ch; color: var(--on-dark-2); }

/* ---------------- footer ---------------- */
.foot { background: #0A0D0B; color: var(--on-dark-2); padding: clamp(50px, 6vw, 84px) 0 34px; border-top: 1px solid var(--line-dk); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0,1fr)); gap: 36px; }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot a:hover { color: var(--teal-hi); }
.foot-brand p { font-size: 14px; max-width: 34ch; margin-top: 14px; }
.foot-bottom {
  margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-dk);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; color: rgba(237,242,234,.42);
}

/* ---------------- reveal ---------------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- polish ----------------
   Systematic touches: anchors clear the sticky nav, one arrow glyph for
   every action, an eyebrow dash marking section openers, film grain so the
   dark gradients do not band, and numbering that turns grids into sets. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
::selection { background: var(--brass); color: var(--ink); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brass-hi); color: var(--ink); padding: 10px 16px;
  border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.hero::before, .band-deep::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .08; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px 220px;
}
.band-deep { position: relative; }
.band-deep > .wrap { position: relative; z-index: 2; }

.hero .eyebrow, .page-head .eyebrow, .sec-head .eyebrow, .map-grid > div > .eyebrow, .close-cta .eyebrow, .split > div > .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
}
.hero .eyebrow::before, .page-head .eyebrow::before, .sec-head .eyebrow::before, .map-grid > div > .eyebrow::before, .close-cta .eyebrow::before, .split > div > .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .75;
}
.sec-head .eyebrow + h2 { margin-top: 14px; }

.pill-lg { gap: 10px; }
.pill-lg::after { content: "\2192"; font-weight: 500; transition: transform .2s ease; }
.pill-lg:hover::after { transform: translateX(4px); }

.mega-list-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 34px; }

.caps { counter-reset: cap; }
.cap { position: relative; padding-top: 22px; border-top: 1px solid var(--line-lt); counter-increment: cap; }
.cap::before {
  content: "0" counter(cap); position: absolute; top: 20px; right: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--brass-lo);
}
.cap::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 28px;
  background: var(--brass); transition: width .4s ease;
}
.cap:hover::after { width: 100%; background: linear-gradient(90deg, var(--brass), var(--gold), var(--teal)); }
.cap-shape { transition: transform .4s ease; }
.cap:hover .cap-shape { transform: translateY(-3px) rotate(-5deg); }

.cases { counter-reset: case; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent; }
.case { counter-increment: case; position: relative; }
.case::before {
  content: "0" counter(case); position: absolute; top: 26px; right: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.55);
}
.scroll-hint {
  margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.scroll-hint::after { content: " \2192"; }

.insight { cursor: pointer; }
.insight-img canvas { transition: transform .6s ease; }
.insight:hover .insight-img canvas { transform: scale(1.045); }
.insight-read {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 2px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.insight-read::after { content: "\2192"; color: var(--brass-lo); transition: transform .2s ease; }
.insight:hover .insight-read::after { transform: translateX(4px); }

.foot { border-top: 0; position: relative; }
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold) 55%, var(--brass));
}

/* mobile drawer */
.nav-toggle { display: none; color: var(--on-dark); }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.drawer {
  position: fixed; inset: 0; z-index: 85; display: none; overflow-y: auto;
  background: var(--ink); color: var(--on-dark);
  padding: calc(var(--nav-h) + 20px) 0 40px;
}
.drawer[data-open="true"] { display: block; animation: megaIn .2s ease; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-dk);
  font-family: var(--display); font-size: 26px; font-weight: 300; letter-spacing: -.01em;
}
.drawer-list a::after { content: "\2192"; color: var(--brass); font-size: 20px; }
.drawer-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.drawer-foot {
  margin-top: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-dark-2); line-height: 2;
}
body[data-drawer="open"] { overflow: hidden; }


/* ---------------- inner pages ----------------
   One head band, then content in the same light/ink/deep bands as the
   homepage. Numbered pillars and two-column "split" sections carry the
   long pages; tiles carry the short ones. */
.page-head { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(64px, 9vw, 116px) 0 clamp(48px, 6vw, 76px); }
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 80% at 85% 20%, rgba(71,101,41,.22), transparent 62%),
              radial-gradient(50% 60% at 95% 90%, rgba(102,130,53,.12), transparent 60%);
}
.page-head > .wrap { position: relative; z-index: 2; }
.page-head .eyebrow { color: var(--teal-hi); }
.page-head h1 { font-size: clamp(38px, 6.2vw, 84px); font-weight: 300; letter-spacing: -.028em; line-height: .98; margin-top: 18px; max-width: 15ch; }
.page-head h1 em { font-style: normal; background: linear-gradient(96deg, var(--teal-hi), var(--gold) 70%, var(--brass-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head .lede { margin-top: 24px; max-width: 58ch; color: var(--on-dark-2); font-size: clamp(16px, 1.4vw, 19px); }
.page-head .head-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-head .jump { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.page-head .jump a { color: var(--on-dark-2); display: inline-flex; gap: 7px; align-items: center; }
.page-head .jump a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.page-head .jump a:hover { color: var(--teal-hi); }

.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); padding: clamp(44px, 5.5vw, 72px) 0; border-top: 1px solid var(--line-lt); scroll-margin-top: calc(var(--nav-h) + 12px); }
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar:last-child { padding-bottom: 0; }
.pillar-n { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; color: var(--brass-lo); display: block; margin-bottom: 14px; }
.pillar h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; letter-spacing: -.025em; line-height: 1.04; }
.pillar h2 span { display: block; color: var(--teal-lo); }
.pillar .lede { margin-top: 16px; color: var(--on-light-2); max-width: 44ch; }
.pillar .fit { margin-top: 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--on-light-2); line-height: 1.8; }
.pillar .fit b { color: var(--on-light); font-weight: 500; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 6px 20px; padding: 15px 0; border-bottom: 1px solid var(--line-lt); font-size: 14.5px; }
.svc li:first-child { border-top: 1px solid var(--line-lt); }
.svc b { font-weight: 600; color: var(--on-light); }
.svc span { color: var(--on-light-2); }
.leave { margin-top: 24px; }
.leave h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-lo); margin-bottom: 10px; font-weight: 500; }
.leave ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--on-light-2); display: grid; gap: 6px; }

.split { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(44px, 5.5vw, 72px) 0; border-top: 1px solid var(--line-lt); scroll-margin-top: calc(var(--nav-h) + 12px); }
.band-ink .split { border-color: var(--line-dk); }
.split:first-child { border-top: 0; padding-top: 0; }
.split:last-child { padding-bottom: 0; }
.split h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 300; letter-spacing: -.024em; line-height: 1.06; margin-top: 14px; }
.split > div > .eyebrow { color: var(--brass-lo); }
.band-ink .split > div > .eyebrow { color: var(--teal-hi); }
.prose { max-width: 62ch; font-size: 16.5px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.band-light .prose { color: var(--on-light); }
.band-ink .prose { color: var(--on-dark-2); }
.prose strong { font-weight: 600; color: inherit; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { border: 1px solid var(--line-lt); border-radius: 14px; padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.band-ink .tile { border-color: var(--line-dk); background: rgba(255,255,255,.035); }
.band-deep .tile { border-color: rgba(255,255,255,.2); background: rgba(14,17,15,.3); }
.tile .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-lo); }
.band-ink .tile .tag, .band-deep .tile .tag { color: var(--teal-hi); }
.tile .tag.done { color: var(--teal-lo); }
.band-ink .tile .tag.done { color: var(--brass); }
.tile h3 { font-size: 19px; font-weight: 500; line-height: 1.25; }
.tile p { font-size: 14.5px; color: var(--on-light-2); }
.band-ink .tile p, .band-deep .tile p { color: var(--on-dark-2); }
.tile ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--on-light-2); display: grid; gap: 5px; }
.band-ink .tile ul, .band-deep .tile ul { color: var(--on-dark-2); }
.tile .metric { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-top: 6px; }
.band-deep .tile .metric { color: #fff; }
.tile .metric small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; margin-top: 4px; color: var(--on-light-2); }
.band-deep .tile .metric small { color: rgba(255,255,255,.6); }
.tile .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; color: var(--ink); }
.band-deep .tile .more, .band-ink .tile .more { color: #fff; }
.tile .more::after { content: "\2192"; color: var(--brass-lo); transition: transform .2s ease; }
.band-deep .tile .more::after, .band-ink .tile .more::after { color: var(--brass); }
.tile:hover .more::after { transform: translateX(4px); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dk); }
.step { padding: 28px 24px 28px 0; border-right: 1px solid var(--line-dk); padding-left: 24px; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--display); font-size: 40px; font-weight: 300; letter-spacing: -.03em; line-height: 1; background: linear-gradient(120deg, var(--teal-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 18px; font-weight: 500; margin-top: 14px; line-height: 1.3; }
.step p { font-size: 14px; color: var(--on-dark-2); margin-top: 8px; }

.form { display: grid; gap: 16px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--on-light-2); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 15px; color: var(--on-light); background: #fff;
  border: 1px solid var(--line-lt); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form .note { font-size: 13px; color: var(--on-light-2); }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.office h3 { font-size: 20px; font-weight: 500; }
.office h3 span { display: block; color: var(--teal-lo); font-weight: 400; font-size: 15px; margin-top: 2px; }
.office address { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; line-height: 1.9; color: var(--on-light-2); margin-top: 10px; }

.reg { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--on-light-2); line-height: 1.7; }
.reg b { color: var(--on-light); font-weight: 500; }

@media (max-width: 1180px) { .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(2) { border-right: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line-dk); } }
@media (max-width: 900px) { .pillar, .split { grid-template-columns: 1fr; gap: 26px; } .tiles, .tiles-2 { grid-template-columns: 1fr; } .offices { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .svc li { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } .step { border-right: 0; padding-left: 0; } .step + .step { border-top: 1px solid var(--line-dk); } .tiles-4 { grid-template-columns: 1fr; } }

/* ---------------- pointer light (no canvas) ---------------- */
.band-deep { --mx: 50%; --my: 50%; --mo: 0; }
.band-deep::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245,203,90,.16), rgba(144,203,77,.06) 45%, transparent 70%);
  opacity: var(--mo); transition: opacity .6s ease;
}
.band-ink .tile, .band-deep .tile { position: relative; overflow: hidden; --mx: 50%; --my: 50%; --mo: 0; }
.band-ink .tile::before, .band-deep .tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(245,203,90,.14), transparent 60%);
  opacity: var(--mo); transition: opacity .5s ease;
}
.band-ink .tile > *, .band-deep .tile > * { position: relative; }

/* ---------------- page-head effects canvas ---------------- */
.page-head canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.page-head::before { z-index: 1; }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .menu { display: none; }
  .nav-toggle { display: grid; }
  .mega { display: none !important; }
  .caps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 30px; }
  .mega-cols-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
  .insights { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .caps { grid-template-columns: 1fr; }
  .cap { padding-top: 26px; }
  .nav-actions .pill-teal, .nav-actions .lang { display: none; }
  .nav-actions .pill { height: 36px; padding: 0 16px; font-size: 13px; }
  .hero h1 { line-height: 1; }
  .hero-cta .pill-lg, .drawer-cta .pill-lg { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; }
}


/* ---------------- maturity assessment call to action ----------------
   Sits in the left column of the Strategy & Readiness pillar, in the space
   the copy leaves. Everything else on the Offers page describes work we would
   do with you; this is the one thing a visitor can do on their own, so it is
   framed as an invitation rather than another service line.
   -------------------------------------------------------------------- */

.assess-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line-lt);
  border-left: 3px solid var(--olive);
  border-radius: 14px;
  /* A whisper of olive, so the card lifts off the light band without
     becoming a second heading competing with "Strategy & Readiness". */
  background:
    linear-gradient(180deg, rgba(71,101,41,.05), rgba(71,101,41,.02)),
    var(--paper);
}

.assess-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
}

.assess-lead {
  margin: 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-light-2);
}

.pill-assess {
  height: 48px;
  padding: 0 26px;
  gap: 10px;
  background: var(--olive);
  color: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(71,101,41,.9);
}
.pill-assess::after {
  content: "\2192";
  font-weight: 500;
  transition: transform .2s ease;
}
.pill-assess:hover {
  background: var(--olive-dp);
  transform: translateY(-1px);
}
.pill-assess:hover::after { transform: translateX(4px); }
.pill-assess:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.assess-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  /* No opacity here: at .8 this renders 4.16:1, under the 4.5 small text
     needs. The mono face and smaller size already set it apart. */
  color: var(--on-light-2);
}

@media (max-width: 54rem) {
  .pill-assess { height: 46px; padding: 0 20px; white-space: normal; text-align: left; line-height: 1.3; }
}


/* Office telephone numbers. Added with the Cape Town office, when the cards
   gained real addresses instead of a city and a country. */
.office-tel { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.office-tel a { color: var(--teal-hi); text-decoration: none; }
.office-tel a:hover { text-decoration: underline; }

/* ---------------- journey: legacy -> modernisation -> agentic ----------------
   From a whiteboard sketch: three stages left to right, data underneath,
   one bracket tying data back to both ends. Cards are a plain grid; the
   wires are an SVG behind them whose paths home.js measures from the cards. */
.journey h2 em { font-style: normal; background: linear-gradient(96deg, var(--teal-hi), var(--brass-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jr { position: relative; }
.jr-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jr-wires .w { fill: none; stroke: var(--olive-lit); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.jr-wires .w-loop { stroke: var(--sage); }
.jr-wires .flow { fill: none; stroke: var(--brass-hi); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 46; animation: jr-flow 2.6s linear infinite; }
@keyframes jr-flow { to { stroke-dashoffset: -48; } }

.jr-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 7vw, 110px); }
.jr-node {
  position: relative; z-index: 1;
  background: var(--ink-2); border: 1px solid var(--line-dk); border-radius: 16px;
  padding: 24px 24px 26px;
  transition: border-color .3s ease, transform .3s ease;
}
.jr-node:hover { border-color: var(--olive-lit); transform: translateY(-3px); }
.jr-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-hi); }
.jr-node h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.02em; color: #fff; margin: 10px 0 10px; }
.jr-node p { font-size: 14.5px; color: var(--on-dark-2); }

.jr-data {
  width: min(100%, 420px); margin: clamp(70px, 7vw, 100px) auto 0; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(144,203,77,.16), transparent 70%), var(--ink-2);
  border-color: rgba(173,219,112,.42);
  box-shadow: 0 0 0 6px rgba(144,203,77,.06), 0 18px 60px -20px rgba(144,203,77,.35);
}
.jr-data .jr-k { color: var(--brass-hi); }

/* draw-in: wires grow, then the flow starts */
.jr .w { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1); }
.jr .w-loop { opacity: .55; transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1) .9s; }
.jr[data-state="in"] .w { stroke-dashoffset: 0; }
.jr .flow { opacity: 0; transition: opacity .6s ease 1.5s; }
.jr[data-state="in"] .flow { opacity: 1; }

@media (max-width: 900px) {
  .jr { padding-right: 24px; }
  .jr-stages { grid-template-columns: 1fr; gap: 44px; }
  .jr-data { margin-top: 44px; width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .jr .w { transition: none; stroke-dashoffset: 0; }
  .jr .w-loop { transition: none; }
  .jr-wires .flow { animation: none; opacity: 0 !important; }
}
