/* ==========================================================================
   R&J STEYTLER — DESIGN SYSTEM v2
   Apple-derived structure · Namibian palette
   One typeface. One spacing scale. One measure. Strict uniformity.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Atlantic (base) --- */
  --abyss:   #05141C;
  --deep:    #0A2029;
  --tide:    #0E2A34;
  --shelf:   #143B47;
  --foam:    #B4CDCD;
  --mist:    #DCE7E7;
  --spray:   #FFFFFF;

  /* --- Namib (accent) --- */
  --dune:      #D08B3C;
  --dune-lit:  #F0C48D;
  --rust:      #A85128;
  --sand:      #F0EAE0;
  --bone:      #FFFFFF;
  --ink:       #0A1D24;
  --ink-soft:  #3D4E54;

  /* --- Lines --- */
  --rule:       rgba(180, 205, 205, 0.22);
  --rule-lit:   rgba(255, 138, 42, 0.55);
  --rule-light: rgba(10, 29, 36, 0.18);

  /* --- Type: one family, system-first (Apple's own stack) --- */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Type scale — uniform steps, tight tracking */
  --t-display: clamp(3rem, 5.8vw, 5rem);
  --t-h1:      clamp(2.5rem, 4.4vw, 3.75rem);
  --t-h2:      clamp(2rem, 3.2vw, 2.875rem);
  --t-h3:      clamp(1.375rem, 1.7vw, 1.625rem);
  --t-lede:    clamp(1.25rem, 1.5vw, 1.5rem);
  --t-body:    1.1875rem;
  --t-small:   1.0625rem;
  --t-micro:   0.9375rem;
  --t-label:   0.875rem;

  /* --- Measure: strict, uniform line lengths --- */
  --m-display: 16ch;
  --m-head:    20ch;
  --m-lede:    58ch;
  --m-body:    64ch;

  /* --- Spacing scale (8pt) --- */
  --s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;   --s7: 6rem;    --s8: 8rem;

  --gut:  clamp(1.25rem, 5vw, 2.5rem);
  --maxw: 1120px;
  --sec-y: clamp(5rem, 9vw, 8rem);

  --radius: 18px;
  --radius-sm: 12px;

  /* Bright, high-visibility call-to-action orange */
  --cta-orange:     #FF7A1A;
  --cta-orange-lit: #FF9440;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --nav-h: 62px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--dune); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--dune-lit); outline-offset: 3px; border-radius: 4px; }

/* Film grain removed — Apple surfaces are clean */
body::after { content: none; }

/* --------------------------------------------------------------------------
   3. TYPESETTING — uniform, never jumbled
   -------------------------------------------------------------------------- */
body, p, li, h1, h2, h3, h4, a, span, label, button, td, th {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Accented words: colour only. No italics, no second typeface. */
em, .sec-title em, .hero__title em, .phero__title em, .feature__title em, .cta__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--dune-lit);
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5rem); }

.section--deep  { background: var(--deep); }
.section--abyss { background: var(--abyss); }
.section--tide  { background: var(--tide); }

.section--sand { background: var(--sand); color: var(--ink-soft); }
.section--sand h1, .section--sand h2, .section--sand h3, .section--sand .sec-title { color: var(--ink); }
.section--sand .eyebrow { color: var(--rust); }
.section--sand .lede { color: var(--ink-soft); }
.section--sand em { color: var(--rust); }

/* --------------------------------------------------------------------------
   5. SECTION HEADERS — centred, uniform, one measure
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dune);
  margin: 0 0 var(--s2);
}
.eyebrow::before { content: none; }

.sec-title {
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.08;
  color: var(--spray);
  max-width: var(--m-head);
  margin-inline: auto;
}

.lede {
  font-size: var(--t-lede);
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--foam);
  max-width: var(--m-lede);
  margin-inline: auto;
}

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  max-width: 760px;
}
.sec-head--split { max-width: 760px; }
.sec-head--split .eyebrow { margin-bottom: 0; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   6. BUTTONS — Apple pill
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--rule-lit);
  background: transparent;
  color: var(--spray);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn::before { content: none; }
.btn:hover { background: rgba(208,139,60,0.12); border-color: var(--dune); }
.btn:active { transform: scale(0.98); }
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn--solid {
  background: var(--cta-orange);
  border-color: var(--cta-orange);
  color: #16110B;
  font-weight: 700;
}
.btn--solid:hover { background: var(--cta-orange-lit); border-color: var(--cta-orange-lit); color: #16110B; }

/* Every "get in touch" style action, wherever it appears */
.nav__cta, .btn--cta {
  background: var(--cta-orange);
  border-color: var(--cta-orange);
  color: #16110B;
  font-weight: 700;
}
.nav__cta:hover, .btn--cta:hover {
  background: var(--cta-orange-lit);
  border-color: var(--cta-orange-lit);
  color: #16110B;
}

.btn--ghost-light { color: var(--ink); border-color: rgba(10,29,36,0.22); }
.btn--ghost-light:hover { background: rgba(168,81,40,0.08); border-color: var(--rust); color: var(--rust); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dune-lit);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: none;
  transition: opacity 0.25s var(--ease);
}
.link:hover { opacity: 0.72; }

/* --------------------------------------------------------------------------
   7. NAVIGATION — thin, translucent
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 20, 28, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
}
.nav.is-stuck { background: rgba(5, 20, 28, 0.9); }

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.brand__logo {
  height: 30px;
  width: auto;
  flex: none;
  object-fit: contain;
  background: #FFFFFF;
  padding: 5px 9px;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  box-sizing: content-box;
}
.foot .brand__logo { height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.015em; color: var(--spray); }
.brand__rj { font-weight: 400; color: var(--foam); }
.brand__sub { display: none; }
.foot .brand__sub {
  display: block;
  font-size: var(--t-micro);
  font-weight: 400;
  color: var(--foam);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.brand:has(.brand__logo) .brand__name { display: none; }

.nav__menu { display: flex; align-items: center; gap: clamp(0.75rem, 1.8vw, 1.75rem); }
.nav__link {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--mist);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link::after { content: none; }
.nav__link:hover { color: var(--spray); }
.nav__link.is-active { color: var(--dune-lit); }

.nav__cta { display: none; }
@media (min-width: 1180px) {
  .nav__cta { display: inline-flex; min-height: 38px; padding: 0 1.15rem; font-size: var(--t-micro); }
}

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex: none;
}
.nav__burger span {
  display: block; width: 17px; height: 1px; background: var(--spray);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 20, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rule);
    padding: var(--s1) var(--gut) var(--s4);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open .nav__menu { max-height: 85vh; opacity: 1; visibility: visible; }
  .nav__menu li { border-bottom: 1px solid var(--rule); }
  .nav__link { display: block; padding: 0.95rem 0; font-size: 1.0625rem; }
}

/* --------------------------------------------------------------------------
   8. HERO — one restrained horizon, homepage only
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + var(--s6));
  padding-bottom: var(--s7);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(168, 81, 40, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #05141C 0%, #082530 55%, #0C303B 100%);
}
.hero__grid, .hero__sun { display: none; }

.hero__scape {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 44%;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}
.hero__scape svg { width: 100%; height: 100%; }

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__kicker {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dune);
  margin: 0 0 var(--s3);
}
.hero__kicker i { display: none; }
.hero__kicker span:not(:last-child)::after { content: " · "; color: var(--foam); }

.hero__title {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--spray);
  max-width: var(--m-display);
  margin-inline: auto;
}
.hero__title em { display: block; }

.hero__lede {
  margin: var(--s4) auto 0;
  font-size: var(--t-lede);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--mist);
  max-width: var(--m-lede);
}

.hero__quote {
  margin: var(--s3) auto 0;
  padding: 0;
  border: 0;
  font-size: var(--t-small);
  font-style: normal;
  line-height: 1.5;
  color: var(--foam);
  max-width: 52ch;
}

.hero__actions {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
}

.hero__scroll { display: none; }

/* --- Interior hero: flat, uniform, no illustration --- */
.phero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  background: linear-gradient(180deg, #05141C 0%, #0A2029 100%);
  border-bottom: 1px solid var(--rule);
}
.phero__scape { display: none; }
.phero__title {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--spray);
  max-width: var(--m-head);
  margin-inline: auto;
}
.phero__lede { margin: var(--s3) auto 0; }

/* --------------------------------------------------------------------------
   9. STATS
   -------------------------------------------------------------------------- */
.stats { background: var(--deep); border-block: 1px solid var(--rule); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
}
.stat {
  background: var(--deep);
  padding: clamp(2.25rem, 4vw, 3rem) var(--s3);
  text-align: center;
  border: 0;
}
.stat::after { content: none; }
.stat__num {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dune-lit);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.5em; color: var(--dune); }
.stat__label {
  margin: var(--s2) auto 0;
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--foam);
  max-width: 22ch;
}

/* --------------------------------------------------------------------------
   10. CARDS — uniform grid, equal heights, one radius
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s2);
  background: none;
  border: 0;
}
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card::before { content: none; }
.card:hover { background: var(--shelf); border-color: var(--rule-lit); transform: translateY(-2px); }
.card__ghost { display: none; }

.card__num {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dune);
  margin: 0 0 var(--s1);
}
.card__title {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--spray);
  max-width: 26ch;
}
.card__body {
  font-size: var(--t-small);
  font-weight: 450;
  line-height: 1.55;
  color: var(--foam);
  max-width: 46ch;
  margin-top: var(--s1);
}

.section--sand .cards { background: none; border: 0; }
.section--sand .card { background: var(--bone); border-color: var(--rule-light); }
.section--sand .card:hover { background: var(--bone); border-color: rgba(168,81,40,0.3); }
.section--sand .card__title { color: var(--ink); }
.section--sand .card__body { color: var(--ink-soft); }
.section--sand .card__num { color: var(--rust); }

/* --------------------------------------------------------------------------
   11. PEOPLE
   -------------------------------------------------------------------------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s2);
}
@media (min-width: 1000px) { .people { grid-template-columns: repeat(4, 1fr); } }

.person {
  display: flex;
  flex-direction: column;
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.person:hover { transform: translateY(-3px); border-color: var(--rule-lit); background: var(--tide); }

.person__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #123540 0%, #0A2029 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.person__photo, .profile__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.4s var(--ease);
  z-index: 1;
}
.person:hover .person__photo { filter: grayscale(0.25) contrast(1); transform: none; }
.person__initials { font-size: 2.5rem; font-weight: 600; color: var(--dune); opacity: 0.5; letter-spacing: -0.02em; }
.person__ridge { display: none; }

.person__tag {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(5,20,28,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule-lit);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--dune-lit);
}
.person__body { padding: var(--s3); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.person__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.018em; color: var(--spray); line-height: 1.2; }
.person__role { font-size: var(--t-micro); font-weight: 400; letter-spacing: -0.005em; text-transform: none; color: var(--dune); }
.person__bio { font-size: var(--t-micro); line-height: 1.5; color: var(--foam); max-width: 40ch; }
.person__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.chip {
  font-size: 0.6875rem;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--mist);
  background: rgba(143,173,174,0.08);
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: normal;
}
.person__more { margin-top: auto; padding-top: var(--s2); }

/* --------------------------------------------------------------------------
   12. ROWS
   -------------------------------------------------------------------------- */
.rows { border-top: 1px solid var(--rule); max-width: 900px; margin-inline: auto; }
.row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 var(--s3);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
  transition: none;
}
@media (min-width: 860px) { .row { grid-template-columns: 2.5rem minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0 var(--s4); } }
.row::before { content: none; }
.row:hover { padding-left: 0; }
.row__idx { font-size: var(--t-micro); font-weight: 500; color: var(--dune); padding-top: 0.25rem; }
.row__title { font-size: var(--t-h3); font-weight: 600; line-height: 1.22; letter-spacing: -0.018em; color: var(--spray); max-width: 26ch; }
.row__body { font-size: var(--t-small); font-weight: 450; line-height: 1.55; color: var(--foam); max-width: 58ch; }
@media (max-width: 859px) { .row__body { grid-column: 2; margin-top: var(--s1); } }

.section--sand .rows { border-top-color: var(--rule-light); }
.section--sand .row { border-bottom-color: var(--rule-light); }
.section--sand .row__title { color: var(--ink); }
.section--sand .row__body { color: var(--ink-soft); }
.section--sand .row__idx { color: var(--rust); }

/* --------------------------------------------------------------------------
   13. TAG LISTS & PILLS
   -------------------------------------------------------------------------- */
.taglist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s2);
  background: none;
  border: 0;
  max-width: 900px;
  margin-inline: auto;
}
.taglist li {
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--t-small);
  color: var(--mist);
  transition: border-color 0.25s var(--ease);
}
.taglist li:hover { background: var(--tide); border-color: var(--rule-lit); color: var(--spray); }
.taglist li::before {
  content: "";
  width: 5px; height: 5px; flex: none;
  border-radius: 50%;
  background: var(--dune);
  transform: none;
}
.taglist li:hover::before { transform: none; background: var(--dune-lit); }

.section--sand .taglist { background: none; border: 0; }
.section--sand .taglist li { background: var(--bone); border-color: var(--rule-light); color: var(--ink-soft); }
.section--sand .taglist li:hover { background: var(--bone); color: var(--ink); }
.section--sand .taglist li::before { background: var(--rust); }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pill {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--t-micro);
  letter-spacing: -0.005em;
  color: var(--mist);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.pill:hover { border-color: var(--dune); color: var(--dune-lit); background: none; }
.section--sand .pill { border-color: var(--rule-light); color: var(--ink-soft); }
.section--sand .pill:hover { border-color: var(--rust); color: var(--rust); }

/* --------------------------------------------------------------------------
   14. PROFILE PAGES
   -------------------------------------------------------------------------- */
.profile { display: grid; gap: clamp(2rem, 4vw, 3.5rem); text-align: left; }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); } }
.profile__aside { display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 900px) { .profile__aside { position: sticky; top: calc(var(--nav-h) + var(--s4)); align-self: start; } }

.profile__portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #123540 0%, #0A2029 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.profile__photo { object-position: center 15%; filter: grayscale(0.92) contrast(1.03); }

.profile__facts { border-top: 1px solid var(--rule); }
.profile__facts li { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.2rem; }
.fact__k { font-size: var(--t-micro); font-weight: 500; letter-spacing: -0.005em; text-transform: none; color: var(--dune); }
.fact__v { font-size: var(--t-small); color: var(--mist); line-height: 1.45; }

.profile .sec-title, .profile .eyebrow { margin-inline: 0; max-width: var(--m-head); }
.profile .lede { margin-inline: 0; }

.prose { max-width: var(--m-body); }
.prose p { font-size: var(--t-body); line-height: 1.6; color: var(--mist); }
.prose strong { color: var(--spray); font-weight: 600; }
.prose h3 { font-size: var(--t-h3); color: var(--spray); margin: var(--s4) 0 var(--s2); }
.prose .rows { max-width: none; }

.pullquote {
  margin: 0 0 var(--s4);
  padding: 0 0 0 var(--s3);
  border-left: 2px solid var(--dune);
  font-style: normal;
  font-size: var(--t-lede);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--spray);
  max-width: 52ch;
}
.pullquote cite {
  display: block;
  margin-top: var(--s2);
  font-style: normal;
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--dune);
}
.section--sand .pullquote { color: var(--ink); border-left-color: var(--rust); }
.section--sand .pullquote cite { color: var(--rust); }
.section--sand .prose p { color: var(--ink-soft); }
.section--sand .prose strong { color: var(--ink); }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s2);
  background: none;
  border: 0;
}
.hl {
  background: var(--bone);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  padding: var(--s3);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.section--abyss .hl, .section--deep .hl { background: var(--tide); border-color: var(--rule); }
.hl:hover { background: var(--bone); }
.section--abyss .hl:hover, .section--deep .hl:hover { background: var(--tide); }
.hl__when { font-size: var(--t-micro); font-weight: 500; letter-spacing: -0.005em; text-transform: none; color: var(--rust); }
.section--abyss .hl__when, .section--deep .hl__when { color: var(--dune); }
.hl__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.018em; color: var(--ink); max-width: 26ch; }
.section--abyss .hl__title, .section--deep .hl__title { color: var(--spray); }
.hl__org { font-size: var(--t-micro); color: var(--ink-soft); }
.hl__body { font-size: var(--t-micro); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; }
.section--abyss .hl__org, .section--deep .hl__org,
.section--abyss .hl__body, .section--deep .hl__body { color: var(--foam); }

.timeline { position: relative; padding-left: var(--s3); max-width: 720px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.tl-item { position: relative; padding-bottom: var(--s3); }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--s3) + 1px); top: 0.5rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dune); border: 0; transform: none;
}
.tl-item:hover::before { transform: none; background: var(--dune-lit); }
.tl-item__yr { font-size: var(--t-micro); font-weight: 600; color: var(--dune-lit); letter-spacing: -0.005em; }
.tl-item__body { font-size: var(--t-small); line-height: 1.55; color: var(--foam); margin-top: 0.15rem; max-width: 56ch; }

/* --------------------------------------------------------------------------
   15. PUBLICATIONS
   -------------------------------------------------------------------------- */
.pubs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s2);
}
@media (min-width: 1000px) { .pubs { grid-template-columns: repeat(3, 1fr); } }
.pub {
  display: flex; flex-direction: column; gap: var(--s1);
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s3);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pub:hover { transform: translateY(-3px); border-color: var(--rule-lit); background: var(--tide); }
.pub__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  font-size: var(--t-micro); font-weight: 500; letter-spacing: -0.005em;
  text-transform: none; color: var(--dune);
}
.pub__meta span:not(:last-child)::after { content: " ·"; color: var(--foam); }
.pub__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.24; letter-spacing: -0.018em; color: var(--spray); max-width: 26ch; }
.pub__body { font-size: var(--t-micro); line-height: 1.5; color: var(--foam); max-width: 46ch; }
.pub__foot {
  margin-top: auto; padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2);
}
.pub__by { font-size: var(--t-micro); color: var(--mist); }
.pub__by small { display: block; font-size: 0.6875rem; color: var(--foam); margin-top: 1px; }

/* --------------------------------------------------------------------------
   16. MARKET DATA
   -------------------------------------------------------------------------- */
.mkt { background: var(--deep); border-block: 1px solid var(--rule); }
.mkt__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s1) var(--s3);
  padding-block: var(--s3) var(--s2);
}
.mkt__title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.01em;
  text-transform: none; color: var(--dune); margin: 0;
}
.mkt__pulse { display: none; }

/* Status chip tells the truth about the data */
.mkt__stamp {
  font-size: var(--t-micro);
  color: var(--foam);
  margin: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.mkt__stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--foam); flex: none; }
.mkt__stamp.is-live .dot { background: #7FC4F2; }
.mkt__stamp.is-live { color: #A8D8F7; }

.mkt__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  padding-bottom: var(--s3);
}
@media (min-width: 700px)  { .mkt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mkt__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tick {
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  display: flex; flex-direction: column; gap: 0.3rem;
  min-height: 152px;
  transition: border-color 0.25s var(--ease);
  border-left: 1px solid var(--rule);
}
.tick:hover { background: var(--tide); border-color: var(--rule-lit); }
.tick__k {
  font-size: var(--t-micro); font-weight: 500; letter-spacing: -0.005em;
  text-transform: none; color: var(--foam); white-space: normal;
}
.tick__v {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--spray); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.tick__v small { font-size: 0.5em; color: var(--foam); font-weight: 400; }
.tick__d {
  font-size: 0.8125rem; letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; margin: 0;
}
.tick__d--up   { color: #7FC4F2; }
.tick__d--down { color: #FFB067; }
.tick__d--flat { color: var(--foam); }
.tick__src { font-size: 0.75rem; color: var(--foam); opacity: 0.8; margin: 0; margin-top: auto; }
.tick.is-live .tick__src { color: #A8D8F7; opacity: 1; }

.mkt__foot {
  padding-block: var(--s2);
  border-top: 1px solid var(--rule);
  font-size: var(--t-micro);
  color: var(--foam);
  display: flex; flex-wrap: wrap; gap: 0.35rem var(--s3);
  justify-content: space-between;
}
.mkt--strip .tick { min-height: 120px; padding: var(--s2) var(--s3); }
.mkt--strip .tick__v { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

/* --------------------------------------------------------------------------
   17. FEATURE BLOCK
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  gap: var(--s3);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: var(--s4);
  max-width: 900px;
  margin-inline: auto;
  text-align: left;
}
@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s5); } }
.feature__kicker { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--dune); margin: 0 0 var(--s1); }
.feature__title { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--spray); max-width: 24ch; }
.feature__body { margin-top: 0; font-size: var(--t-small); line-height: 1.55; color: var(--foam); max-width: 56ch; }
.section--sand .feature { border-top-color: var(--rule-light); }
.section--sand .feature__title { color: var(--ink); }
.section--sand .feature__body { color: var(--ink-soft); }
.section--sand .feature__kicker { color: var(--rust); }

/* --------------------------------------------------------------------------
   18. CONTACT
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 4vw, 3.5rem); text-align: left; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.contact .sec-title, .contact .eyebrow, .contact .lede { margin-inline: 0; text-align: left; }

.cinfo { border-top: 1px solid var(--rule); }
.cinfo li { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.15rem; transition: none; }
.cinfo li:hover { padding-left: 0; }
.cinfo__k { font-size: var(--t-micro); font-weight: 500; letter-spacing: -0.005em; text-transform: none; color: var(--dune); }
.cinfo__v { font-size: var(--t-body); color: var(--spray); }
.cinfo__v a:hover { color: var(--dune-lit); }

.form { background: var(--tide); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form .eyebrow, .form .sec-title, .form .lede { text-align: left; margin-inline: 0; }
.form__grid { display: grid; gap: var(--s2); }
@media (min-width: 600px) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-micro); font-weight: 400; letter-spacing: -0.005em; text-transform: none; color: var(--foam); }
.field input, .field select, .field textarea {
  background: rgba(5,20,28,0.5);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--spray);
  font-size: var(--t-small);
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dune); }
.field input::placeholder, .field textarea::placeholder { color: rgba(143,173,174,0.5); }
.field select option { background: var(--deep); color: var(--spray); }
.form__note { font-size: var(--t-micro); color: var(--foam); margin-top: var(--s2); }

/* --------------------------------------------------------------------------
   19. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #082530 0%, #0C303B 100%);
  padding-block: clamp(4rem, 7vw, 6rem);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cta__scape { display: none; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.cta__title { font-size: var(--t-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.024em; color: var(--spray); max-width: var(--m-head); margin-inline: auto; }
.cta__body { margin: 0 auto; font-size: var(--t-small); color: var(--foam); max-width: var(--m-lede); }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.foot { background: var(--abyss); border-top: 1px solid var(--rule); padding-block: var(--s6) var(--s4); }
.foot__top { display: grid; gap: var(--s4); }
@media (min-width: 820px) { .foot__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.foot__blurb { font-size: var(--t-micro); color: var(--foam); max-width: 34ch; margin-top: var(--s2); line-height: 1.55; }
.foot__h { font-size: var(--t-micro); font-weight: 600; letter-spacing: -0.005em; text-transform: none; color: var(--spray); margin: 0 0 var(--s2); }
.foot__list li { margin-bottom: 0.5rem; }
.foot__list a { font-size: var(--t-micro); color: var(--foam); transition: color 0.2s var(--ease); display: inline-block; }
.foot__list a:hover { color: var(--spray); padding-left: 0; }
.foot__bottom {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.5rem var(--s3);
  align-items: center; justify-content: space-between;
  font-size: var(--t-micro); color: var(--foam);
}
.foot__bottom a:hover { color: var(--spray); }
.foot__legal { display: flex; gap: var(--s2); }

/* --------------------------------------------------------------------------
   21. MOTION — restrained
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="line"] { clip-path: none; transform: translateY(14px); }
[data-reveal="line"].is-in { transform: none; }

.hero [data-hero] { opacity: 0; transform: translateY(16px); animation: rise 0.8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--dune); z-index: 300; }

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

/* --------------------------------------------------------------------------
   22. UTILITIES
   -------------------------------------------------------------------------- */
.mt-s { margin-top: var(--s2); }
.mt-m { margin-top: var(--s4); }
.mt-l { margin-top: var(--s5); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; top: -100px; left: var(--s2); z-index: 500; background: var(--dune); color: var(--abyss); padding: 0.7rem 1.1rem; border-radius: 999px; font-size: var(--t-micro); font-weight: 600; transition: top 0.2s var(--ease); }
.skip:focus { top: var(--s2); }

/* Trailing buttons under centred headers centre themselves too */
.section > .wrap > p.mt-l { text-align: center; }

/* ==========================================================================
   23. TICKER — continuous news-style strip beneath the nav
   ========================================================================== */
.ticker {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 190;
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #071B24;
  border-bottom: 1px solid var(--rule);
}
.ticker__label {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--cta-orange);
  color: #16110B;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  z-index: 2;
}
.ticker__viewport { position: relative; flex: 1; overflow: hidden; align-self: stretch; }
.ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 1.5rem;
  font-size: var(--t-micro);
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
  border-right: 1px solid var(--rule);
}
.ticker__k { color: var(--foam); font-weight: 500; }
.ticker__v { color: var(--spray); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker__d { font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker__d--up   { color: #7FC4F2; }
.ticker__d--down { color: #FFB067; }
.ticker__d--flat { color: var(--foam); }

/* Pages carrying a ticker need extra offset below the fixed chrome */
.has-ticker { --chrome-h: calc(var(--nav-h) + 46px); }
.has-ticker .hero { padding-top: calc(var(--chrome-h) + var(--s6)); }
.has-ticker .phero { padding-top: calc(var(--chrome-h) + clamp(4rem, 8vw, 6.5rem)); }
.has-ticker html, .has-ticker body { scroll-padding-top: calc(var(--chrome-h) + 24px); }

@media (max-width: 700px) {
  .ticker { height: 42px; }
  .ticker__label { padding: 0 0.75rem; }
  .ticker__item { padding: 0 1rem; }
  .has-ticker { --chrome-h: calc(var(--nav-h) + 42px); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ==========================================================================
   24. NAMIBIA FACTS
   ========================================================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s2);
}
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(3, 1fr); } }

.fact {
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.fact:hover { border-color: var(--rule-lit); transform: translateY(-2px); }
.fact__figure {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dune-lit);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.fact__figure small { font-size: 0.45em; font-weight: 600; color: var(--dune); }
.fact__title {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--spray);
  max-width: 24ch;
  margin-top: 0.25rem;
}
.fact__body {
  font-size: var(--t-small);
  font-weight: 450;
  line-height: 1.55;
  color: var(--foam);
  max-width: 44ch;
}
.fact__src { margin-top: auto; padding-top: var(--s2); font-size: var(--t-micro); color: var(--foam); opacity: 0.85; }
.fact__src a { color: var(--dune-lit); }
.fact__src a:hover { text-decoration: underline; }

.section--sand .fact { background: var(--bone); border-color: var(--rule-light); }
.section--sand .fact__figure { color: var(--rust); }
.section--sand .fact__figure small { color: var(--rust); }
.section--sand .fact__title { color: var(--ink); }
.section--sand .fact__body, .section--sand .fact__src { color: var(--ink-soft); }
.section--sand .fact__src a { color: var(--rust); }

/* Economic context table — doing business in Namibia */
.datatable { width: 100%; border-collapse: collapse; max-width: 860px; margin-inline: auto; }
.datatable caption { text-align: left; font-size: var(--t-micro); color: var(--foam); padding-bottom: var(--s2); }
.datatable th, .datatable td {
  text-align: left;
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-small);
  vertical-align: top;
}
.datatable th { font-weight: 600; color: var(--spray); width: 42%; }
.datatable td { color: var(--foam); font-weight: 450; }
.datatable tr:hover td, .datatable tr:hover th { background: rgba(180,205,205,0.04); }
.section--sand .datatable th { color: var(--ink); }
.section--sand .datatable td { color: var(--ink-soft); }
.section--sand .datatable th, .section--sand .datatable td { border-bottom-color: var(--rule-light); }
@media (max-width: 640px) {
  .datatable th, .datatable td { display: block; width: 100%; }
  .datatable th { border-bottom: 0; padding-bottom: 0.25rem; }
}


/* ==========================================================================
   25. ACCESSIBILITY & ERGONOMICS
   ========================================================================== */

/* --- Colour is never the only signal ---------------------------------
   Direction is carried by an arrow glyph AND colour AND a text label, so
   the meaning survives any form of colour vision deficiency, and greyscale
   printing. Arrows are sized up so they read at a glance.               */
.tick__d span[aria-hidden], .ticker__d { font-size: 1.05em; line-height: 1; }
.tick__d--up::after   { content: ""; }
.tick__d--flat { color: var(--foam); }

/* Live tiles are marked with a shape as well as a colour */
.tick.is-live { border-left: 3px solid #7FC4F2; }
.mkt__stamp .dot { border: 1px solid rgba(255,255,255,0.35); }

/* --- Focus: always visible, never clipped ----------------------------- */
:focus-visible {
  outline: 3px solid #7FC4F2;
  outline-offset: 3px;
  border-radius: 6px;
}
.nav__link:focus-visible, .foot__list a:focus-visible { outline-offset: 4px; }
.person:focus-visible, .pub:focus-visible, .card:focus-visible { outline-offset: 4px; }

/* --- Comfortable hit targets (WCAG 2.5.5: 44px minimum) --------------- */
.nav__link { min-height: 44px; display: inline-flex; align-items: center; }
.foot__list a { min-height: 32px; display: inline-flex; align-items: center; }
.link { min-height: 32px; }
.field input, .field select, .field textarea { min-height: 48px; }
.nav__burger { width: 48px; height: 48px; }

/* --- Respect a stated preference for more contrast -------------------- */
@media (prefers-contrast: more) {
  :root {
    --foam:  #D6E7E7;
    --mist:  #F2F8F8;
    --rule:  rgba(214, 231, 231, 0.45);
    --ink-soft: #23343A;
  }
  .card, .tick, .person, .pub, .fact, .taglist li { border-width: 2px; }
  .btn { border-width: 2px; }
  .tick__src, .fact__src { opacity: 1; }
}

/* --- Forced-colours / Windows high contrast mode ---------------------- */
@media (forced-colors: active) {
  .btn, .card, .tick, .fact, .person, .pub { border: 1px solid CanvasText; }
  .ticker__label { border: 1px solid CanvasText; }
}

/* --- Motion: the ticker must be pausable and never trap a reader ------ */
.ticker:focus-within .ticker__track { animation-play-state: paused; }

/* --- Text remains legible when the user zooms text only --------------- */
.tick__k, .fact__title, .card__title { overflow-wrap: break-word; }

/* --- Underline links inside prose so they aren't colour-only ---------- */
.prose a, .row__body a, .fact__src a, .feature__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* --- Print: legible, ink-frugal --------------------------------------- */
@media print {
  .nav, .ticker, .progress, .cta { display: none; }
  body { background: #fff; color: #000; }
  .section, .mkt { background: #fff; padding-block: 1rem; }
  .sec-title, .card__title, .fact__title, .tick__v { color: #000; }
  .card, .tick, .fact { border: 1px solid #999; break-inside: avoid; }
}

/* ==========================================================================
   26. NAVIGATION FIT — the call to action must never clip
   ========================================================================== */
.nav__inner { flex-wrap: nowrap; gap: var(--s2); }
.brand { min-width: 0; }
.nav__menu { min-width: 0; flex-wrap: nowrap; }

.nav__cta {
  flex: 0 0 auto;          /* never squeezed by the link list */
  width: auto;
  white-space: nowrap;     /* "Get in touch" stays on one line */
  min-height: 40px;
  padding: 0 1.25rem;
  font-size: var(--t-micro);
  line-height: 1;
}
/* Show it only where there is genuinely room for all eight links plus the
   button; below that the burger menu carries it instead. */
@media (min-width: 1240px) {
  .nav__cta { display: inline-flex; }
}
@media (max-width: 1239px) {
  .nav__cta { display: none; }
}

/* Give the mobile drawer its own prominent call to action */
.nav__menu .nav__cta-mobile { display: none; }
@media (max-width: 1080px) {
  .nav__menu .nav__cta-mobile {
    display: flex;
    margin-top: var(--s3);
    border: 0;
  }
  .nav__menu .nav__cta-mobile .btn { width: 100%; }
}

/* ==========================================================================
   27. INTERACTIVE AFRICA MAP  (accurate polygons + fallback)
   ========================================================================== */
.amap { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .amap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }

.amap__stage { position: relative; width: 100%; max-width: 540px; margin-inline: auto; }
.amap__svg { width: 100%; height: auto; overflow: hidden; border-radius: var(--radius); }

/* --- true country polygons --- */
.amap__land path {
  fill: #0E2A34;
  stroke: #21454F;
  stroke-width: 0.6;
  stroke-linejoin: round;
  transition: fill 0.25s var(--ease);
}
.amap__country--track.is-present { fill: #235A6E; }
.amap__country--ops.is-present   { fill: #B4551A; }
.amap__country--hq.is-present    { fill: var(--cta-orange); }
.amap__country.is-present { cursor: pointer; outline: none; }
.amap__country.is-present:hover,
.amap__country.is-present.is-active { stroke: #FFFFFF; stroke-width: 1.4; }
.amap__country.is-present:focus-visible { stroke: #7FC4F2; stroke-width: 2; }
.amap__country--hq.is-present.is-active    { fill: var(--cta-orange-lit); }
.amap__country--ops.is-present.is-active   { fill: #D2691E; }
.amap__country--track.is-present.is-active { fill: #2F7085; }

/* --- markers (SVG groups over polygons) --- */
.amap__pins .amap__pin { cursor: pointer; }
.amap__pins .amap__dot {
  fill: var(--foam);
  stroke: var(--abyss);
  stroke-width: 2;
  transition: transform 0.2s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.amap__pin--track .amap__dot { fill: #7FC4F2; }
.amap__pin--ops   .amap__dot { fill: var(--cta-orange); }
.amap__pin--hq    .amap__dot { fill: var(--cta-orange); }
.amap__pin.is-active .amap__dot,
.amap__pins .amap__pin:hover .amap__dot { transform: scale(1.3); }
.amap__pin--hq .amap__dot { animation: amap-pulse 2.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes amap-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) { .amap__pin--hq .amap__dot { animation: none; } }

/* --- fallback silhouette markers (absolute buttons) --- */
.amap__pin--abs {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.amap__dot--abs {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--abyss); background: var(--foam);
}
.amap__pin--abs.amap__pin--track .amap__dot--abs { background: #7FC4F2; }
.amap__pin--abs.amap__pin--ops   .amap__dot--abs,
.amap__pin--abs.amap__pin--hq    .amap__dot--abs { background: var(--cta-orange); }
.amap__pin--abs.amap__pin--hq    .amap__dot--abs { width: 20px; height: 20px; }

/* --- panel --- */
.amap__panel {
  background: var(--tide); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); min-height: 300px;
}
.amap__tier {
  display: inline-block; font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.01em;
  padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: var(--s2);
}
.amap__tier--hq, .amap__tier--ops { background: rgba(255,122,26,0.16); color: var(--cta-orange-lit); }
.amap__tier--track { background: rgba(127,196,242,0.14); color: #A8D8F7; }
.amap__name { font-size: var(--t-h3); font-weight: 700; color: var(--spray); letter-spacing: -0.018em; }
.amap__city { font-size: var(--t-micro); color: var(--dune-lit); margin-top: 0.15rem; }
.amap__blurb { font-size: var(--t-small); font-weight: 450; line-height: 1.55; color: var(--foam); margin-top: var(--s2); max-width: 42ch; }
.amap__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--s2); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule);
}
.amap__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.amap__stat-k { font-size: var(--t-micro); color: var(--foam); }
.amap__stat-v { font-size: 1.375rem; font-weight: 700; color: var(--spray); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amap__panel .link { margin-top: var(--s3); }

.amap__legend {
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center;
  margin-top: var(--s4); font-size: var(--t-micro); color: var(--foam);
}
.amap__legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.amap__legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--abyss); }
.amap__legend .lg-hq { background: var(--cta-orange); }
.amap__legend .lg-ops { background: #B4551A; }
.amap__legend .lg-track { background: #235A6E; }

/* ==========================================================================
   28. LANGUAGE SWITCHER
   ========================================================================== */
.lang {
  position: relative;
  flex: none;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.75rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--mist);
  font-size: var(--t-micro);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang__btn:hover { border-color: var(--dune); color: var(--spray); }
.lang__btn svg { width: 15px; height: 15px; }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: rgba(8,26,32,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  z-index: 220;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.lang.is-open .lang__menu { display: flex; }
.lang__opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: var(--t-small);
  color: var(--mist);
  min-height: 44px;
}
.lang__opt:hover, .lang__opt:focus-visible { background: rgba(180,205,205,0.08); color: var(--spray); }
.lang__opt small { color: var(--foam); font-size: var(--t-micro); }
.lang__opt[aria-current="true"] { color: var(--dune-lit); }
.lang__opt.is-soon { opacity: 0.5; pointer-events: none; }
.lang__opt.is-soon small { color: var(--dune); }

@media (max-width: 1080px) {
  .lang { order: -1; }
  .lang__menu { right: auto; left: 0; }
}

/* Ticker section labels — orient the reader within the scrolling strip */
.ticker__group {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem 0 1.5rem;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cta-orange-lit);
  white-space: nowrap;
  border-right: 1px solid var(--rule);
}
.ticker__group::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cta-orange);
  margin-right: 0.6rem;
}

/* ==========================================================================
   29. SITE ASSISTANT (rule-based FAQ bot)
   ========================================================================== */
.bot { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 400; }

.bot__fab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 54px; padding: 0 1.25rem 0 1.1rem;
  background: var(--cta-orange); color: #16110B;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: var(--t-small); font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 8px 28px rgba(255,122,26,0.35);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.bot__fab:hover { background: var(--cta-orange-lit); }
.bot__fab:active { transform: scale(0.97); }
.bot__fab svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .bot__fablabel { display: none; } .bot__fab { padding: 0; width: 54px; justify-content: center; } }

.bot__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(370px, calc(100vw - 2rem));
  height: min(540px, calc(100vh - 7rem));
  display: flex; flex-direction: column;
  background: var(--deep); border: 1px solid var(--rule);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.bot__panel[hidden] { display: none; }

.bot__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; background: var(--tide); border-bottom: 1px solid var(--rule);
}
.bot__title { font-size: 1rem; font-weight: 700; color: var(--spray); }
.bot__sub { font-size: var(--t-micro); color: var(--foam); margin-top: 2px; }
.bot__close {
  background: none; border: 0; color: var(--foam); font-size: 1.6rem; line-height: 1;
  cursor: pointer; width: 40px; height: 40px; border-radius: 8px; flex: none;
}
.bot__close:hover { color: var(--spray); background: rgba(180,205,205,0.08); }

.bot__log { flex: 1; overflow-y: auto; padding: 1.15rem; display: flex; flex-direction: column; gap: 0.85rem; }
.bot__msg { display: flex; flex-direction: column; gap: 0.5rem; max-width: 88%; }
.bot__msg--user { align-self: flex-end; align-items: flex-end; }
.bot__msg--bot { align-self: flex-start; }
.bot__bubble {
  padding: 0.7rem 0.95rem; border-radius: 14px; font-size: var(--t-small);
  line-height: 1.5; font-weight: 450;
}
.bot__msg--bot .bot__bubble { background: var(--tide); color: var(--mist); border-bottom-left-radius: 4px; }
.bot__msg--user .bot__bubble { background: var(--cta-orange); color: #16110B; font-weight: 600; border-bottom-right-radius: 4px; }
.bot__links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bot__link {
  font-size: var(--t-micro); font-weight: 600; color: var(--dune-lit);
  border: 1px solid var(--rule-lit); border-radius: 999px; padding: 0.3rem 0.7rem;
  min-height: 32px; display: inline-flex; align-items: center;
}
.bot__link:hover { background: rgba(255,122,26,0.1); color: var(--cta-orange-lit); }

.bot__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.15rem 0.5rem; }
.bot__chip {
  font-size: var(--t-micro); font-weight: 500; color: var(--mist);
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.4rem 0.75rem; min-height: 36px; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bot__chip:hover { border-color: var(--dune); color: var(--spray); }

.bot__form { display: flex; gap: 0.5rem; padding: 0.85rem 1.15rem; border-top: 1px solid var(--rule); }
.bot__input {
  flex: 1; min-height: 46px; padding: 0 0.9rem;
  background: rgba(5,20,28,0.6); border: 1px solid var(--rule); border-radius: 10px;
  color: var(--spray); font-size: var(--t-small);
}
.bot__input:focus { outline: none; border-color: var(--dune); }
.bot__input::placeholder { color: rgba(180,205,205,0.5); }
.bot__send {
  flex: none; width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: var(--cta-orange); color: #16110B; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.bot__send:hover { background: var(--cta-orange-lit); }
.bot__send svg { width: 18px; height: 18px; }
.bot__note { font-size: 0.75rem; color: var(--foam); text-align: center; padding: 0 1.15rem 0.85rem; }
.bot__note a { color: var(--dune-lit); text-decoration: underline; }

@media print { .bot { display: none; } }

/* ==========================================================================
   30. IDENTITY STRIP (below hero)
   ========================================================================== */
.idstrip { background: var(--deep); border-block: 1px solid var(--rule); }
.idstrip__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.4rem 1.6rem; padding-block: 1rem; text-align: center;
}
.idstrip__inner span {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--foam); display: inline-flex; align-items: center;
}
.idstrip__inner span:not(:first-child)::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--dune); margin-right: 1.6rem;
}

/* ==========================================================================
   31. SERVICE BLOCKS (situation / work / deliverables)
   ========================================================================== */
.svc-list { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.svc {
  display: grid; gap: var(--s3);
  border-top: 1px solid var(--rule); padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 880px) { .svc { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); } }
.svc__title {
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.018em;
  line-height: 1.2; color: var(--spray); max-width: 22ch;
}
.svc__parts { display: grid; gap: var(--s3); }
@media (min-width: 620px) { .svc__parts { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.svc__k {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: -0.005em;
  color: var(--dune); margin-bottom: 0.35rem;
}
.svc__v { font-size: var(--t-small); font-weight: 450; line-height: 1.55; color: var(--foam); max-width: 44ch; }
