/* Deffinity Africa — site stylesheet
   Palette derived from the refined logo mark. One family (Archivo), width axis carries hierarchy. */
@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"),url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2")}
:root{
  --reservoir:#071823;      /* page base, dark */
  --ink:#0E2A3A;            /* raised dark surface */
  --ink-2:#143849;
  --current:#1E7FD8;        /* logo blue */
  --aqua:#3CC4F0;           /* logo highlight */
  --leaf:#9BD93B;           /* logo lime */
  --paper:#F2F5F3;          /* light sections */
  --paper-2:#E4EBE8;
  --slate:#4A5F6B;          /* body on paper */
  --mist:#A9BCC6;           /* body on dark */
  --white:#FFFFFF;
  --line-d:rgba(169,188,198,.18);
  --line-l:rgba(7,24,35,.12);
  --ff:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --max:1240px;
  --gut:clamp(16px,4vw,40px);
  --r-s:4px; --r-m:10px; --r-l:22px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;font-family:var(--ff);font-size:1.0625rem;line-height:1.6;color:var(--mist);background:var(--reservoir);font-variation-settings:"wdth" 100;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--aqua);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-999px;top:8px;background:var(--leaf);color:var(--reservoir);padding:.6rem 1rem;z-index:100;font-weight:700}
.skip:focus{left:8px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}

/* Type scale (perfect fourth, ~1.333) */
h1,h2,h3,h4{font-family:var(--ff);color:var(--white);margin:0 0 .5em;line-height:1.08;letter-spacing:-.01em}
.display{font-size:clamp(2.6rem,6.4vw,5.6rem);font-weight:800;font-variation-settings:"wdth" 118;line-height:.98;letter-spacing:-.025em}
h1{font-size:clamp(2.2rem,4.6vw,3.8rem);font-weight:800;font-variation-settings:"wdth" 115}
h2{font-size:clamp(1.75rem,3.2vw,2.75rem);font-weight:750;font-variation-settings:"wdth" 112}
h3{font-size:1.3rem;font-weight:700;font-variation-settings:"wdth" 104;line-height:1.25}
h4{font-size:1.05rem;font-weight:700}
p{margin:0 0 1em;max-width:68ch}
.lead{font-size:clamp(1.1rem,1.6vw,1.3rem);line-height:1.55;color:#C9D7DE}
.kicker{display:block;font-size:.95rem;font-weight:600;color:var(--leaf);margin-bottom:.9rem;font-variation-settings:"wdth" 108}
.paper .kicker{color:#3F7D12}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.6rem;font:inherit;font-weight:700;font-size:1rem;font-variation-settings:"wdth" 106;padding:.95rem 1.4rem;border-radius:var(--r-s);text-decoration:none;border:2px solid transparent;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.btn-go{background:var(--leaf);color:var(--reservoir)}
.btn-go:hover{background:#B5EC5A}
.btn-line{border-color:rgba(255,255,255,.35);color:var(--white)}
.btn-line:hover{border-color:var(--white)}
.paper .btn-line{border-color:var(--line-l);color:var(--reservoir)}
.paper .btn-line:hover{border-color:var(--reservoir)}
.btn svg{width:18px;height:18px}

/* Header */
.site-head{position:sticky;top:0;z-index:50;background:rgba(7,24,35,.86);backdrop-filter:saturate(140%) blur(12px);-webkit-backdrop-filter:saturate(140%) blur(12px);border-bottom:1px solid var(--line-d)}
.head-in{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:76px}
.brand img{height:58px;width:auto}
.nav{display:flex;gap:.25rem;align-items:center}
.nav a{color:#D5E1E7;text-decoration:none;font-weight:600;font-size:.98rem;padding:.55rem .8rem;border-radius:var(--r-s);font-variation-settings:"wdth" 104}
.nav a:hover{color:var(--white);background:rgba(255,255,255,.06)}
.nav a[aria-current="page"]{color:var(--white);box-shadow:inset 0 -2px 0 var(--leaf);border-radius:0}
.nav .btn{margin-left:.75rem;padding:.65rem 1.05rem}
.menu-btn{display:none;background:none;border:1px solid var(--line-d);color:var(--white);border-radius:var(--r-s);width:46px;height:46px;cursor:pointer}
.menu-btn svg{width:22px;height:22px;margin:auto}
@media (max-width:1060px){
  .menu-btn{display:grid;place-items:center}
  .nav{position:fixed;inset:76px 0 auto 0;flex-direction:column;align-items:stretch;background:var(--reservoir);padding:1rem var(--gut) 2rem;border-bottom:1px solid var(--line-d);gap:.15rem;transform:translateY(-8px);opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s;max-height:calc(100vh - 76px);overflow:auto}
  .nav.open{opacity:1;transform:none;visibility:visible}
  .nav a{padding:.9rem .5rem;font-size:1.1rem;border-bottom:1px solid var(--line-d)}
  .nav a[aria-current="page"]{box-shadow:none;color:var(--leaf)}
  .nav .btn{margin:1rem 0 0;justify-content:center}
}

/* Sections */
.sec{padding:clamp(4rem,9vw,7.5rem) 0}
.paper{background:var(--paper);color:var(--slate)}
.paper h1,.paper h2,.paper h3,.paper h4{color:var(--reservoir)}
.paper .lead{color:#33454F}
.ink{background:var(--ink)}
.sec-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem 4rem;align-items:end;margin-bottom:clamp(2.5rem,5vw,4rem)}
.sec-head p{margin:0}
@media (max-width:860px){.sec-head{grid-template-columns:1fr}}

/* Hero */
.hero{position:relative;overflow:hidden;padding:clamp(3.5rem,8vw,6.5rem) 0 0}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(2rem,5vw,4.5rem);align-items:stretch}
.hero-copy{padding-bottom:clamp(3rem,6vw,5rem)}
.hero .lead{margin:1.6rem 0 2.2rem;max-width:56ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem}
.hero-art{position:relative;border-radius:var(--r-l) var(--r-l) 0 0;overflow:hidden;min-height:420px;background:var(--ink)}
.hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,24,35,0) 55%,rgba(7,24,35,.85))}
.hero-art figcaption{position:absolute;left:1.4rem;right:1.4rem;bottom:1.3rem;z-index:2;color:#DDE7EC;font-size:.92rem;line-height:1.45}
.hero-art figcaption strong{display:block;color:var(--white);font-size:1.05rem;font-variation-settings:"wdth" 110}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-art{min-height:300px;border-radius:var(--r-l)}.hero-copy{padding-bottom:0}.hero{padding-bottom:3rem}}

.hero-map{margin:0;align-self:center;padding-bottom:2rem}
.hero-map img{width:100%;max-width:560px;margin-left:auto}
.hero-map figcaption{display:flex;gap:.6rem;align-items:center;justify-content:flex-end;font-size:.92rem;margin-top:.6rem}
.hero-map figcaption a{color:var(--white)}
.swatch{width:14px;height:14px;border-radius:3px;background:linear-gradient(180deg,#3CC4F0,#1E7FD8,#7CCB3A);flex:none}
@media (max-width:900px){.hero-map img{max-width:420px;margin:0 auto}.hero-map figcaption{justify-content:center}.page-hero .bgimg{width:90%;right:-30%;top:-10%;opacity:.18}}
/* Facts strip */
.facts{border-top:1px solid var(--line-d);border-bottom:1px solid var(--line-d);background:var(--reservoir)}
.facts ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr)}
.facts li{padding:1.8rem 1.4rem;border-left:1px solid var(--line-d)}
.facts li:first-child{border-left:0;padding-left:0}
.facts b{display:block;color:var(--white);font-size:clamp(1.6rem,2.6vw,2.2rem);font-weight:800;font-variation-settings:"wdth" 120;line-height:1.1}
.facts span{font-size:.95rem}
@media (max-width:760px){.facts ul{grid-template-columns:1fr 1fr}.facts li{border-left:0;border-top:1px solid var(--line-d);padding:1.3rem 0}.facts li:nth-child(-n+2){border-top:0}}

/* BOT timeline — the signature element */
.bot{background:var(--ink);border:1px solid var(--line-d);border-radius:var(--r-l);padding:clamp(1.4rem,3.5vw,2.6rem)}
.bot-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem 2rem;margin-bottom:2.2rem}
.bot-controls label{display:block;font-weight:600;color:#DDE7EC;font-size:.95rem;margin-bottom:.55rem}
.bot-controls output{float:right;color:var(--leaf);font-weight:700;font-variation-settings:"wdth" 110}
input[type=range]{width:100%;accent-color:var(--leaf);height:28px}
.bot-track{position:relative;display:flex;height:76px;border-radius:var(--r-m);overflow:hidden;background:var(--reservoir)}
.bot-seg{position:relative;display:flex;align-items:flex-end;padding:.7rem .9rem;color:var(--reservoir);font-weight:800;font-variation-settings:"wdth" 112;font-size:1rem;transition:flex-grow .45s cubic-bezier(.2,.7,.2,1);min-width:0;white-space:nowrap;overflow:hidden}
.bot-seg.b{background:var(--current);color:var(--white)}
.bot-seg.o{background:linear-gradient(90deg,var(--aqua),#62D3B4)}
.bot-seg.t{background:var(--leaf);flex:0 0 auto;padding-inline:1.1rem}
.bot-scale{display:flex;justify-content:space-between;font-size:.88rem;margin-top:.6rem;color:var(--mist)}
.bot-read{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:2rem}
.bot-read div{border-top:2px solid var(--line-d);padding-top:.9rem}
.bot-read dt{font-size:.92rem}
.bot-read dd{margin:0;color:var(--white);font-weight:800;font-size:1.5rem;font-variation-settings:"wdth" 115}
.bot-note{font-size:.88rem;margin:1.6rem 0 0;color:#8FA6B2}
.hero-load .bot-seg{flex-grow:0!important}
@media (max-width:760px){.bot-controls,.bot-read{grid-template-columns:1fr}.bot-seg{font-size:.85rem;padding:.55rem}}

/* BOT phases */
.phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;counter-reset:ph;border-top:1px solid var(--line-l)}
.phase{padding:2rem 2rem 0 0;border-right:1px solid var(--line-l);margin-right:2rem}
.phase:last-child{border-right:0;margin-right:0}
.phase .step{display:inline-block;font-weight:800;font-variation-settings:"wdth" 120;font-size:2.6rem;line-height:1;margin-bottom:1rem;color:var(--current)}
.phase:nth-child(2) .step{color:#1C9AC4}
.phase:nth-child(3) .step{color:#3F7D12}
.phase ul{padding-left:1.1rem;margin:0}
.phase li{margin:.35rem 0}
@media (max-width:860px){.phases{grid-template-columns:1fr}.phase{border-right:0;margin:0;padding:2rem 0;border-bottom:1px solid var(--line-l)}}

/* Sector index (grouped list, not a card grid) */
.sector-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem 3rem}
.sgroup h3{font-size:1.05rem;color:var(--leaf);border-bottom:1px solid var(--line-d);padding-bottom:.8rem;margin-bottom:.2rem}
.paper .sgroup h3{color:#3F7D12;border-color:var(--line-l)}
.sgroup ul{list-style:none;margin:0;padding:0}
.sgroup li{display:grid;grid-template-columns:34px 1fr;gap:.9rem;padding:1rem 0;border-bottom:1px solid var(--line-d)}
.paper .sgroup li{border-color:var(--line-l)}
.sgroup li svg{width:26px;height:26px;color:var(--aqua);margin-top:.15rem}
.paper .sgroup li svg{color:var(--current)}
.sgroup b{display:block;color:var(--white);font-weight:700;font-variation-settings:"wdth" 104}
.paper .sgroup b{color:var(--reservoir)}
.sgroup small{display:block;font-size:.95rem;line-height:1.5}
@media (max-width:980px){.sector-groups{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.sector-groups{grid-template-columns:1fr}}

/* Split media blocks */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,6vw,5rem);align-items:center}
.split.rev>:first-child{order:2}
.media{position:relative;border-radius:var(--r-l);overflow:hidden;background:var(--ink)}
.media img{width:100%;height:100%;object-fit:cover}
.media.tall{aspect-ratio:4/5}
.media.wide{aspect-ratio:3/2}
.media.team{background:radial-gradient(120% 90% at 70% 10%,#174a66 0%,var(--ink) 55%,var(--reservoir) 100%);display:flex;align-items:flex-end;padding:2.5rem 1.5rem 0}
.media.team img{height:auto;object-fit:contain}
@media (max-width:860px){.split{grid-template-columns:1fr}.split.rev>:first-child{order:0}}

/* Quote */
.quote{border-left:4px solid var(--leaf);padding:.2rem 0 .2rem 1.6rem;margin:2rem 0}
.quote p{font-size:clamp(1.35rem,2.4vw,1.9rem);line-height:1.3;color:var(--white);font-weight:600;font-variation-settings:"wdth" 108;max-width:30ch}
.quote cite{font-style:normal;font-size:.98rem;color:var(--mist)}
.paper .quote p{color:var(--reservoir)}

/* Lists with checks */
.ticks{list-style:none;padding:0;margin:1.5rem 0}
.ticks li{position:relative;padding:.55rem 0 .55rem 2rem;border-bottom:1px solid var(--line-d)}
.paper .ticks li{border-color:var(--line-l)}
.ticks li::before{content:"";position:absolute;left:0;top:.95rem;width:16px;height:9px;border-left:3px solid var(--leaf);border-bottom:3px solid var(--leaf);transform:rotate(-45deg)}
.paper .ticks li::before{border-color:#3F7D12}

/* Projects */
.proj-filter{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}
.proj-filter button{font:inherit;font-weight:600;font-size:.95rem;padding:.55rem 1rem;border-radius:999px;border:1px solid var(--line-l);background:transparent;color:var(--reservoir);cursor:pointer}
.proj-filter button[aria-pressed="true"]{background:var(--reservoir);color:var(--white);border-color:var(--reservoir)}
.proj-table{width:100%;border-collapse:collapse}
.proj-table th{text-align:left;font-size:.9rem;font-weight:700;color:var(--slate);padding:.8rem 1rem .8rem 0;border-bottom:2px solid var(--reservoir)}
.proj-table td{padding:1.1rem 1rem 1.1rem 0;border-bottom:1px solid var(--line-l);vertical-align:top}
.proj-table td:first-child{font-weight:700;color:var(--reservoir);width:34%}
.tag{display:inline-block;font-size:.85rem;font-weight:700;padding:.2rem .6rem;border-radius:999px;background:var(--paper-2);color:var(--reservoir)}
@media (max-width:640px){.proj-table thead{display:none}.proj-table tr{display:block;border-bottom:1px solid var(--line-l);padding:.9rem 0}.proj-table td{display:block;border:0;padding:.15rem 0;width:auto!important}}

/* Leadership */
.leaders{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,5vw,4rem)}
.leader .media{margin-bottom:1.5rem}
.monogram{aspect-ratio:4/5;display:grid;place-items:center;background:radial-gradient(110% 80% at 30% 20%,#1b5b4a 0%,var(--ink) 55%,var(--reservoir) 100%);border-radius:var(--r-l);color:var(--white);font-size:5rem;font-weight:800;font-variation-settings:"wdth" 125;margin-bottom:1.5rem}
.leader .role{color:var(--leaf);font-weight:600;margin:-.3rem 0 1rem}
.paper .leader .role{color:#3F7D12}
@media (max-width:760px){.leaders{grid-template-columns:1fr}}

/* Partners / sources */
.sources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line-d);border:1px solid var(--line-d);border-radius:var(--r-m);overflow:hidden}
.sources div{background:var(--ink);padding:1.6rem}
.sources b{display:block;color:var(--white);margin-bottom:.4rem;font-variation-settings:"wdth" 106}
.sources p{font-size:.95rem;margin:0}
@media (max-width:900px){.sources{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.sources{grid-template-columns:1fr}}

/* News */
.news-list{border-top:1px solid var(--line-l)}
.news-item{display:grid;grid-template-columns:200px minmax(0,1fr);gap:1.5rem 3rem;padding:2rem 0;border-bottom:1px solid var(--line-l)}
.news-item .meta{font-size:.95rem;color:var(--slate)}
.news-item h3{font-size:1.45rem;margin-bottom:.6rem}
.news-item details summary{cursor:pointer;font-weight:700;color:var(--current);list-style:none}
.news-item details summary::-webkit-details-marker{display:none}
.news-item details[open] summary{margin-bottom:1rem}
@media (max-width:700px){.news-item{grid-template-columns:1fr;gap:.4rem}}

/* Page hero (inner pages) */
.page-hero{position:relative;padding:clamp(4rem,9vw,7rem) 0 clamp(3rem,6vw,4.5rem);overflow:hidden;border-bottom:1px solid var(--line-d)}
.page-hero .bgimg{position:absolute;right:-4%;top:-30%;width:min(62%,760px);height:auto;opacity:.32}
.page-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--reservoir) 35%,rgba(7,24,35,.3))}
.page-hero .wrap{position:relative;z-index:2}
.page-hero .lead{max-width:60ch;margin-top:1.2rem}
.crumbs{font-size:.92rem;margin-bottom:1.4rem}
.crumbs a{color:var(--mist)}
.crumbs span{color:var(--white)}

/* CTA band */
.cta{background:linear-gradient(110deg,#0c3550 0%,var(--ink) 45%,#123b25 100%);border-radius:var(--r-l);padding:clamp(2rem,5vw,3.5rem);display:grid;grid-template-columns:minmax(0,1.4fr) auto;gap:2rem;align-items:center}
.cta h2{margin:0 0 .5rem}
.cta p{margin:0}
@media (max-width:760px){.cta{grid-template-columns:1fr}}

/* Contact */
.contact-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(2rem,5vw,4.5rem)}
.cdetails dl{margin:0}
.cdetails div{padding:1.1rem 0;border-bottom:1px solid var(--line-l)}
.cdetails dt{font-size:.92rem;font-weight:700;color:var(--slate)}
.cdetails dd{margin:.25rem 0 0;color:var(--reservoir);font-weight:600;font-size:1.08rem}
.cdetails a{color:var(--reservoir)}
.form{background:var(--white);border:1px solid var(--line-l);border-radius:var(--r-l);padding:clamp(1.4rem,3.5vw,2.5rem)}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem 1.2rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field.full{grid-column:1/-1}
.field label{font-weight:700;color:var(--reservoir);font-size:.95rem}
.field .hint{font-size:.85rem;color:var(--slate)}
input,select,textarea{font:inherit;font-size:1rem;color:var(--reservoir);background:var(--paper);border:1.5px solid #C5D1CC;border-radius:var(--r-s);padding:.8rem .9rem;width:100%}
textarea{min-height:150px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--current);box-shadow:0 0 0 3px rgba(30,127,216,.18)}
.field.err input,.field.err select,.field.err textarea{border-color:#C0392B}
.field .msg{color:#B03024;font-size:.87rem;min-height:0}
.consent{display:flex;gap:.7rem;align-items:flex-start;font-size:.95rem}
.consent input{width:20px;height:20px;margin-top:.2rem;flex:none;accent-color:var(--current)}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
.form-status{margin-top:1rem;padding:1rem 1.1rem;border-radius:var(--r-s);font-weight:600;display:none}
.form-status.ok{display:block;background:#E5F5D2;color:#24510A}
.form-status.bad{display:block;background:#FBE4E1;color:#8A2219}
.map{border:0;width:100%;height:320px;border-radius:var(--r-m);margin-top:1.5rem;filter:grayscale(.3)}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}
@media (max-width:560px){.fgrid{grid-template-columns:1fr}}

/* Prose (privacy) */
.prose h2{font-size:1.5rem;margin-top:2.4rem}
.prose{max-width:72ch}

/* Footer */
.foot{background:#04111A;padding:4rem 0 2rem;font-size:.97rem;border-top:1px solid var(--line-d)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem}
.foot img{height:54px;width:auto;margin-bottom:1.2rem}
.foot h4{color:var(--white);font-size:1rem;margin-bottom:.9rem}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin:.45rem 0}
.foot a{color:var(--mist);text-decoration:none}
.foot a:hover{color:var(--white);text-decoration:underline}
.foot-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:1.5rem;border-top:1px solid var(--line-d);font-size:.88rem;color:#7F97A3}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.foot-grid{grid-template-columns:1fr}}

.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.center{text-align:center}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* QA fixes */
.nav a.btn-go{color:var(--reservoir);background:var(--leaf)}
.nav a.btn-go:hover{background:#B5EC5A;color:var(--reservoir)}
@media (max-width:760px){.facts b{font-size:1.45rem}.facts li:nth-child(odd){padding-right:1rem}}
