/* Kazeni Mining Company Limited — site styles
   Palette comes from the logo (black + gold gradient). Tanzanite violet marks
   anything planned or targeted, so future ambitions never read as current operations. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
/* Metric-matched fallback keeps layout steady while the web font loads */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 21%;
}

:root {
  --black: #000;
  --ink: #1b1f22;
  --ink-2: #4a5156;
  --ground: #f3f4f2;
  --paper: #fff;
  --line: #d9dbd7;
  --gold-1: #d6aa4f;
  --gold-2: #9c6b2b;
  --gold-text: #87591c;
  --gold-grad: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  --tanzanite: #4a3f9f;
  --tanzanite-soft: #e9e7f6;

  --font: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4.5rem;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: #fff; padding: .75rem 1rem;
}
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.02;
}
.h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); font-stretch: 118%; letter-spacing: -.01em; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-stretch: 110%; line-height: 1.2; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; max-width: 38em; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.kicker { font-size: .95rem; font-weight: 600; color: var(--gold-text); margin-bottom: .9rem; display: block; }
.prose { max-width: 40em; }
.prose h3 { margin: 2rem 0 .6rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: #e9e9e6; }
.section--dark .lead, .section--dark .muted { color: #b8b9b4; }
.section--dark .kicker { color: var(--gold-1); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 48rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 60em) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.3fr 1fr; }
  .split--narrow { grid-template-columns: 1fr 1.4fr; }
}
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 17rem)), 1fr)); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.4rem;
  font-weight: 650; font-stretch: 110%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold-1); color: var(--black); }
.btn--gold:hover { background: #e3bc68; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #2b2b2b; }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link {
  font-weight: 650; font-stretch: 110%; text-decoration: none;
  border-bottom: 2px solid var(--gold-1); padding-bottom: .15rem;
}
.link:hover { color: var(--gold-text); }
.section--dark .link:hover { color: var(--gold-1); }

/* ---------- Status system ---------- */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: .4rem .65rem .4rem .55rem; border-radius: 99px;
  background: #f1ead8; color: #5e3f12;
}
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gold-grad); }
.status--dev { background: #eceeea; color: var(--ink); }
.status--dev::before { background: conic-gradient(var(--gold-2) 0 50%, transparent 0); border: 1.5px solid var(--gold-2); }
.status--planned { background: var(--tanzanite-soft); color: var(--tanzanite); }
.status--planned::before { background: none; border: 2px solid var(--tanzanite); }
.status--target { background: var(--tanzanite-soft); color: var(--tanzanite); }
.status--target::before { background: none; border: 2px dashed var(--tanzanite); }
.section--dark .status--planned, .section--dark .status--target { background: #2a2553; color: #cfc9ff; }
.section--dark .status--planned::before, .section--dark .status--target::before { border-color: #cfc9ff; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .875rem; color: var(--ink-2); }

/* ---------- Header & navigation ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.header.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 3rem; width: auto; }
.brand .logo-dark { display: none; }
.header.is-solid .logo-dark { display: block; }
.header.is-solid .logo-light { display: none; }

.menu { list-style: none; display: flex; align-items: center; gap: .25rem; }
.menu > li { position: relative; }
.menu-top {
  display: flex; align-items: center; gap: .35rem;
  min-height: 2.75rem; padding: .5rem .7rem;
  background: none; border: 0; cursor: pointer;
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius);
}
.menu-top:hover { background: rgba(127, 127, 127, .14); }
.menu-top[aria-current="page"], .menu > li.is-current > .menu-top { box-shadow: inset 0 -2px 0 var(--gold-1); border-radius: 0; }
.chev { width: .7rem; height: .7rem; transition: transform .2s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.menu-cta { margin-left: .75rem; }
.sub {
  position: absolute; top: calc(100% + .5rem); left: 0;
  min-width: 15rem; padding: .6rem;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px var(--line);
}
.sub[hidden] { display: none; }
.sub ul { list-style: none; }
.sub a { display: block; padding: .55rem .75rem; text-decoration: none; font-size: .95rem; border-radius: 3px; }
.sub a:hover, .sub a:focus-visible { background: var(--ground); }
.sub-title { display: block; font-size: .8125rem; font-weight: 700; color: var(--gold-text); padding: .5rem .75rem .25rem; }
.sub--mega { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0 1rem; width: min(52rem, 90vw); left: 50%; transform: translateX(-50%); }
.sub--mega[hidden] { display: none; }
.sub--mega .cols2 { columns: 2; column-gap: .5rem; }
.menu-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .5rem .9rem;
  background: none; border: 2px solid currentColor; border-radius: var(--radius);
  font-weight: 650; cursor: pointer;
}
.burger { width: 1.1rem; height: .8rem; position: relative; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.burger::before { top: 0; } .burger span { top: 50%; margin-top: -1px; } .burger::after { bottom: 0; }
.nav-open .burger::before { transform: translateY(.35rem) rotate(45deg); }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::after { transform: translateY(-.35rem) rotate(-45deg); }

@media (max-width: 73.75em) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    background: var(--paper); color: var(--ink);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 1rem var(--gutter) 3rem;
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open .header { background: var(--paper); color: var(--ink); }
  .nav-open .header .logo-dark { display: block; }
  .nav-open .header .logo-light { display: none; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu-top { width: 100%; justify-content: space-between; min-height: 3.5rem; font-size: 1.15rem; font-stretch: 112%; padding-inline: 0; }
  .menu-top:hover { background: none; }
  .menu > li.is-current > .menu-top { box-shadow: none; color: var(--gold-text); }
  .sub, .sub--mega { position: static; transform: none; width: auto; min-width: 0; box-shadow: none; padding: 0 0 1rem; display: block; background: none; }
  .sub--mega .cols2 { columns: 1; }
  .sub a { padding: .6rem 0 .6rem .9rem; border-left: 2px solid var(--line); border-radius: 0; }
  .sub-title { padding: .75rem 0 .35rem; }
  .menu-cta { margin: 1.5rem 0 0; border: 0 !important; }
  .menu-cta .btn { width: 100%; }
}
body.nav-open { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: #111;
  /* Ridge edge taken from the peaks in the logo mark */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 86% calc(100% - 2.2rem), 78% calc(100% - .9rem), 66% calc(100% - 3.4rem), 0 100%);
}
.slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; }
.slide picture { height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-leaving { opacity: 1; z-index: 0; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active { animation: slideIn 1.4s var(--ease) both; }
  .slide.is-active img { animation: drift 9s linear both; }
}
@keyframes slideIn { from { clip-path: polygon(0 100%, 0 100%, 0 100%); } to { clip-path: polygon(0 -100%, 200% 100%, 0 100%); } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 65%);
}
.hero-body { width: 100%; padding-block: calc(var(--header-h) + 3rem) clamp(5rem, 11vh, 8rem); }
.hero-company { font-size: clamp(.9rem, 1.2vw, 1rem); font-weight: 600; letter-spacing: clamp(.12em, 1vw, .32em); margin-bottom: 1.25rem; color: #e8d3a3; }
.hero h1 { max-width: 13em; }
.hero-services {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  margin: 1.5rem 0 2.25rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}
.hero-services .label { color: #c9c9c4; }
.ticker { position: relative; display: inline-block; height: 1.5em; overflow: hidden; min-width: 12ch; }
.ticker-item {
  display: block; font-weight: 650; font-stretch: 112%; color: var(--gold-1);
  height: 1.5em; line-height: 1.5em; white-space: nowrap;
}
.ticker-list { list-style: none; transition: transform .6s var(--ease); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.slide-nav { display: flex; gap: .75rem; list-style: none; }
.slide-nav button {
  display: grid; gap: .5rem; width: clamp(4.5rem, 9vw, 8.5rem);
  padding: .5rem 0; background: none; border: 0; cursor: pointer; color: #c9c9c4; text-align: left;
  font-size: .8125rem; font-weight: 600; line-height: 1.2;
}
.slide-nav button[aria-current="true"] { color: #fff; }
.bar { display: block; height: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--gold-1); transform-origin: left; transform: scaleX(0); }
[aria-current="true"] .bar i { transform: scaleX(1); }
.is-playing [aria-current="true"] .bar i { animation: fill var(--slide-ms, 7000ms) linear both; }
@keyframes fill { from { transform: scaleX(0); } }
@media (max-width: 40em) {
  .slide-nav .cap { display: none; }
  .slide-nav button { width: 2.75rem; min-height: 2.75rem; align-content: center; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 80% calc(100% - 1.4rem), 68% calc(100% - .5rem), 52% calc(100% - 2rem), 0 100%); }
}
/* Hero load sequence: the one orchestrated motion moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * > * { animation: rise .9s var(--ease) both; }
  .hero-body .hero-company { animation-delay: .1s; }
  .hero-body h1 { animation-delay: .2s; }
  .hero-body .hero-services { animation-delay: .35s; }
  .hero-body .hero-foot { animation-delay: .5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }

/* ---------- Inner page head ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: var(--black); color: #fff;
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(3.5rem, 7vw, 5.5rem);
}
.page-head .ridge { position: absolute; right: -2rem; bottom: -1px; width: min(58rem, 110%); height: auto; opacity: .9; pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 14em; font-size: clamp(2.25rem, 5.4vw, 4.25rem); }
.page-head .lead { color: #c3c3be; margin-top: 1.25rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: .875rem; color: #a9a9a3; margin-bottom: 1.5rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #6b6b66; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.subnav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 20; }
.subnav ul { display: flex; gap: .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 1rem .8rem; white-space: nowrap; text-decoration: none; font-size: .9375rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--gold-1); }

/* ---------- Media ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #ddd; aspect-ratio: 3 / 2; }
.frame picture { height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame figcaption { position: absolute; left: .75rem; bottom: .75rem; background: rgba(0, 0, 0, .7); color: #fff; font-size: .8125rem; padding: .3rem .6rem; border-radius: 3px; }

/* ---------- Value chain (signature) ---------- */
.chain { position: relative; }
.chain-ridge { width: 100%; height: auto; overflow: visible; }
.chain-ridge .path { fill: none; stroke: url(#goldline); stroke-width: 3; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .chain-ridge .path { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.2s var(--ease); }
  .chain.is-visible .chain-ridge .path { stroke-dashoffset: 0; }
}
.chain-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-top: -.5rem; }
.chain-step button, .chain-link {
  display: block; text-decoration: none; color: inherit;
  width: 100%; text-align: left; background: none; border: 0; padding: 1rem 0 0; cursor: pointer;
  border-top: 3px solid var(--line); transition: border-color .2s;
}
.chain-step button:hover, .chain-link:hover, .chain-step button[aria-selected="true"] { border-top-color: var(--gold-1); }
.chain-step .n { display: block; font-size: .8125rem; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.section--dark .chain-step .n { color: var(--gold-1); }
.chain-step .name { display: block; font-size: clamp(.95rem, 1.35vw, 1.15rem); font-weight: 700; font-stretch: 115%; margin: .25rem 0 .6rem; letter-spacing: .02em; }
.chain-panel { margin-top: 2rem; display: grid; gap: 1.5rem; align-items: center; min-height: 9rem; }
@media (min-width: 48em) { .chain-panel { grid-template-columns: auto 1fr auto; gap: 2.5rem; } }
.chain-panel[hidden] { display: none; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; font-weight: 650; font-stretch: 112%; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.flow li + li::before { content: ""; display: inline-block; width: 1.4rem; height: 2px; margin-right: .5rem; vertical-align: middle; background: var(--gold-1); }
.chain-panel p { margin: 0; max-width: 34em; }
.chain-panel .status { justify-self: start; }
@media (max-width: 47.99em) {
  .chain-ridge { display: none; }
  .chain-steps { grid-template-columns: 1fr 1fr; gap: 0 1rem; margin: 0; }
  .chain-step button, .chain-link { padding: .9rem 0 1rem; }
}

/* ---------- Divisions ---------- */
.divisions { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.division { background: var(--paper); padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.division h3 a { text-decoration: none; }
.division h3 a::after { content: ""; position: absolute; inset: 0; }
.division { position: relative; transition: background-color .2s; }
.division:hover { background: #fbfaf6; }
.division:hover h3 { color: var(--gold-text); }
.division .tags { font-size: .9rem; color: var(--ink-2); margin: 0; }
.division .status { align-self: flex-start; margin-top: auto; }

/* Detail blocks (business, operations, minerals pages) */
.detail { display: grid; gap: clamp(1.75rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 56em) { .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } .detail--flip > :first-child { order: 2; } }
.detail h2 { margin-bottom: 1rem; }
.detail .status { margin-bottom: 1.25rem; }
.ticks { list-style: none; display: grid; gap: .1rem; margin: 1.25rem 0 0; }
.ticks li { padding: .6rem 0 .6rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .75rem; height: 2px; background: var(--gold-grad); }
.ticks--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); column-gap: 1.5rem; }
.note {
  border-left: 3px solid var(--tanzanite); background: var(--tanzanite-soft); color: #2c2560;
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; margin-top: 1.5rem;
}
.note p:last-child { margin: 0; }

/* ---------- Minerals ---------- */
.minerals { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; }
.mineral { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; background: #222; }
.mineral img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mineral::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0) 60%); }
.mineral-body { position: relative; z-index: 2; padding: 1.4rem; }
.mineral h3 a { text-decoration: none; }
.mineral h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.mineral p { margin: .4rem 0 0; font-size: .9375rem; color: #d9d9d4; }
.mineral:hover img { transform: scale(1.04); }
.mineral--tanzanite { background: #1b1740; }

/* ---------- Licences ---------- */
.licences { --rule: #2c2c2a; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.licence { padding: 1.4rem 1.25rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.licence .code { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 750; font-stretch: 125%; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.licence .name { display: block; margin-top: .6rem; font-weight: 600; }
.licence .what { display: block; margin-top: .35rem; font-size: .9rem; color: #a9a9a3; }
.licences--light { --rule: var(--line); background: var(--paper); }
.licences--light .what { color: var(--ink-2); }
.licences--light .code { background: linear-gradient(90deg, var(--gold-2), #6f4a17); -webkit-background-clip: text; background-clip: text; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; display: grid; gap: 0; counter-reset: phase; }
.phase { position: relative; padding: 0 0 2.5rem 2.25rem; border-left: 2px solid var(--line); }
.phase::before { content: ""; position: absolute; left: -.55rem; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ground); border: 2px dashed var(--tanzanite); }
.phase.is-now::before { border: 0; background: var(--gold-grad); box-shadow: 0 0 0 4px rgba(214, 170, 79, .25); }
.phase:last-child { border-left-color: transparent; padding-bottom: 0; }
.phase .years { display: block; font-weight: 700; font-stretch: 118%; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--gold-text); }
.phase h3 { margin: .3rem 0 .75rem; }
.phase ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.phase li { font-size: .875rem; padding: .3rem .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.section--dark .phase { border-left-color: #333; }
.section--dark .phase::before { background: var(--black); border-color: #8f86e0; }
.section--dark .phase li { background: #151515; border-color: #333; }
.section--dark .phase .years { color: var(--gold-1); }
@media (min-width: 64em) {
  .roadmap--h { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .roadmap--h .phase { border-left: 0; border-top: 2px solid var(--line); padding: 1.75rem 0 0; }
  .roadmap--h .phase::before { left: 0; top: -.6rem; }
  .roadmap--h .phase:last-child { border-top-color: var(--line); }
  .section--dark .roadmap--h .phase { border-top-color: #333; }
}

/* ---------- Vision ---------- */
.vision { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: #fff; }
.vision > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.vision::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .92) 30%, rgba(0, 0, 0, .4)); }
.vision-figure { font-size: clamp(3.5rem, 11vw, 9rem); font-weight: 750; font-stretch: 125%; line-height: .9; letter-spacing: -.02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 1rem 0 .75rem; }
.vision-label { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 650; font-stretch: 112%; max-width: 24em; }
.vision .muted { color: #a3a39d; }
.vision .lead { color: #d0d0cb; }
.drivers { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.drivers li { border: 1px solid #454540; padding: .45rem .8rem; border-radius: 99px; font-size: .9rem; color: #ddd; }

/* ---------- Africa phases ---------- */
.phases { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; }
.phase-card { background: var(--paper); border-radius: var(--radius); padding: 1.75rem 1.5rem; border-top: 4px solid var(--tanzanite); }
.phase-card.is-home { border-top-color: var(--gold-1); }
.phase-card h3 { margin: .9rem 0 1rem; }
.places { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.places li { font-size: .9rem; padding: .3rem .65rem; background: var(--ground); border-radius: 3px; }

/* ---------- Structure diagram ---------- */
.org { display: grid; gap: 1.25rem; justify-items: center; }
.org-parent { background: var(--black); color: #fff; padding: 1.4rem 2rem; border-radius: var(--radius); text-align: center; border-bottom: 4px solid var(--gold-1); }
.org-parent strong { display: block; font-stretch: 118%; font-size: 1.15rem; }
.org-parent span { font-size: .9rem; color: #bdbdb7; }
.org-stem { width: 2px; height: 1.5rem; background: var(--gold-1); margin-block: -1.25rem; }
.org-divs { list-style: none; width: 100%; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); padding-top: 1.25rem; border-top: 2px solid var(--gold-1); }
.org-divs li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 600; font-size: .95rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.org-divs li .status { font-size: .75rem; }

/* ---------- Generic panels & lists ---------- */
.panel { background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); }
.panel h3 { margin-bottom: .75rem; }
.panel .ticks { margin-top: .5rem; }
.values { list-style: none; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.values li { border-top: 2px solid var(--gold-1); padding-top: 1rem; }
.values strong { display: block; font-stretch: 115%; font-size: 1.1rem; margin-bottom: .35rem; }
.values span { color: var(--ink-2); font-size: .95rem; }
.section--dark .values span { color: #b8b9b4; }
.people { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.person .avatar { aspect-ratio: 1; border-radius: var(--radius); background: #e4e5e1 linear-gradient(135deg, transparent 49.5%, #d3d5d0 50%, transparent 50.5%); display: grid; place-items: center; color: #8b908c; font-weight: 700; font-stretch: 120%; font-size: 2rem; margin-bottom: .9rem; }
.person strong { display: block; }
.person span { font-size: .9375rem; color: var(--ink-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 36rem; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; font-size: .875rem; background: var(--ground); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; font-stretch: 115%; white-space: nowrap; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { min-height: 2.5rem; padding: .45rem 1rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.projects { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project .frame { border-radius: 0; }
.project-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; flex: 1; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .9rem; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.sample-flag { font-size: .8125rem; color: var(--ink-2); font-style: italic; }

/* ---------- News ---------- */
.news { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.news-item { display: flex; flex-direction: column; gap: .75rem; position: relative; }
.news-item time { font-size: .875rem; color: var(--ink-2); }
.news-item h3 a { text-decoration: none; }
.news-item h3 a::after { content: ""; position: absolute; inset: 0; }
.news-item:hover h3 { color: var(--gold-text); }
.news-item .cat { font-size: .8125rem; font-weight: 700; color: var(--gold-text); }

/* ---------- Forms ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.form { display: grid; gap: 1.1rem; }
.form[hidden] { display: none; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .75rem .9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid #b9bcb6; border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(214, 170, 79, .35); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.error { color: #b3261e; font-size: .875rem; font-weight: 600; }
.error:empty { display: none; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form .honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status.is-ok { background: #e7f1e4; color: #1f4d17; }
.form-status.is-info { background: var(--tanzanite-soft); color: #2c2560; }
.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-list strong { display: block; font-stretch: 112%; }
.contact-list li > span { display: inline-block; }
.contact-list span, .contact-list a { color: var(--ink-2); }
.placeholder { background: #fff3cd; padding: 0 .25rem; border-radius: 2px; color: #6b4e00; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-grad); color: var(--black); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { max-width: 16em; }
.cta-band p { margin: .75rem 0 0; max-width: 34em; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #c9c9c4; font-size: .9375rem; }
.footer-top { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5rem) 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 1rem; max-width: 26rem; }
@media (min-width: 64em) { .footer-top { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 4rem; width: auto; }
.footer h2 { font-size: .9375rem; color: #fff; margin-bottom: 1rem; font-stretch: 112%; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-1); text-decoration: underline; }
.footer-base { border-top: 1px solid #262624; padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: #8d8d88; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
