/* ============================================
   ASILIA IMPACT: Stylesheet
   Palette: Dhow · Udongo · Pwani · Kivuli · Nguo
   Typography: Cormorant Garamond (display) · Inter (body) · IBM Plex Mono (data)
   ============================================ */

:root {
  /* Swahili-named brand palette */
  --dhow:          #1A2541;   /* authority, primary */
  --udongo:        #B8593A;   /* accent, warmth */
  --pwani:         #E8DCC4;   /* background panels */
  --kivuli:        #2B2B2B;   /* body text */
  --nguo:          #F7F3EB;   /* background wash */

  /* Functional tints */
  --dhow-dark:     #111C33;
  --dhow-mid:      #243159;
  --udongo-light:  #D07050;
  --pwani-dark:    #D4C5A9;
  --text-muted:    #5A5E6A;
  --border:        rgba(26,37,65,0.1);
  --border-light:  rgba(255,255,255,0.12);

  --section-gap:   7rem;
  --container-max: 1120px;
  --radius:        3px;
  --radius-lg:     8px;
  --transition:    0.25s ease;
}

/* ─── SKIP NAVIGATION (accessibility) ────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--udongo);
  color: var(--nguo);
  padding: 0.6rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-nav:focus { top: 0.75rem; }

/* ─── COOKIE NOTICE ───────────────────────── */
.cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--dhow-dark);
  color: rgba(247,243,235,0.75);
  padding: 1rem 2.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.82rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cookie-notice.visible { display: flex; }
.cookie-btn {
  background: var(--udongo);
  color: var(--nguo);
  border: none;
  padding: 0.55rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: background var(--transition);
}
.cookie-btn:hover { background: var(--udongo-light); }
@media (max-width: 680px) {
  .cookie-notice { flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; }
}

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--nguo);
  color: var(--kivuli);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'EB Garamond', 'Garamond', Georgia, serif;
  line-height: 1.15;
  color: var(--dhow);
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--udongo);
}
p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; }
strong { color: var(--kivuli); font-weight: 600; }
em { font-style: italic; }
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ─── LAYOUT ─────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2.5rem; }
section { padding: var(--section-gap) 0; }

/* ─── COMPONENTS ─────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}
.btn-primary {
  background: var(--udongo);
  color: var(--nguo);
}
.btn-primary:hover { background: var(--udongo-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--nguo);
}
.btn-outline:hover { border-color: var(--nguo); transform: translateY(-1px); }
.btn-dark {
  background: var(--dhow);
  color: var(--nguo);
}
.btn-dark:hover { background: var(--dhow-mid); transform: translateY(-1px); }

.label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--udongo);
  margin-bottom: 1rem;
}

.rule {
  width: 40px;
  height: 2px;
  background: var(--udongo);
  border: none;
  margin: 1.25rem 0 2rem;
}

/* ─── NAVIGATION ─────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
#main-nav.scrolled {
  background: var(--dhow);
  box-shadow: 0 2px 32px rgba(17,28,51,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { display: block; height: 28px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; flex-wrap: nowrap; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,243,235,0.7);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--nguo); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.nav-cta-persistent { padding: 0.65rem 1.4rem; font-size: 0.8rem; }
.nav-cta-persistent-icon { display: none; font-size: 1rem; line-height: 1; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.5rem; margin: -0.5rem; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--nguo); border-radius: 2px; transition: all var(--transition); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 82vw);
  background: var(--dhow);
  padding: 6.5rem 2.5rem 2.5rem;
  gap: 0;
  box-shadow: -8px 0 32px rgba(17,28,51,0.3);
  align-items: flex-start;
  z-index: 101;
}
.nav-links.open li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-links.open li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.nav-links.open a { display: block; padding: 1.1rem 0; font-size: 0.95rem; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,28,51,0.55);
  z-index: 99;
}
.nav-overlay.open { display: block; }

/* ─── HERO ────────────────────────────────── */
#hero {
  background: var(--dhow) url('assets/photos/hero-coral-restoration.jpg') center 35% / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,37,65,0.96) 0%, rgba(26,37,65,0.90) 45%, rgba(26,37,65,0.68) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-photo-credit {
  position: absolute;
  bottom: 1.25rem;
  right: 2.5rem;
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(247,243,235,0.35);
}
.hero-texture {
  position: absolute;
  inset: 0;
  /* Fine linen-like texture via CSS */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(184,89,58,0.025) 2px,
    rgba(184,89,58,0.025) 3px
  );
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  bottom: -200px; right: -100px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,49,89,0.8) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,243,235,0.5);
}
.hero-eyebrow-line { width: 28px; height: 1px; background: var(--udongo); }
#hero h1 {
  color: var(--nguo);
  margin-bottom: 1.75rem;
  font-style: italic;
}
#hero h1 em {
  font-style: normal;
  color: var(--udongo);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(247,243,235,0.65);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.85;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 5rem; }
.hero-rule {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 2.5rem;
}
.hero-credentials {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.hero-cred {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-cred-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--udongo);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-cred-label {
  font-size: 0.78rem;
  color: rgba(247,243,235,0.45);
  letter-spacing: 0.03em;
  max-width: 140px;
  line-height: 1.5;
}

/* ─── MANIFESTO STRIP ────────────────────── */
#manifesto {
  background: var(--udongo);
  padding: 2.5rem 0;
}
#manifesto .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}
.manifesto-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--nguo);
  font-weight: 400;
}
.manifesto-sep {
  width: 1px;
  height: 24px;
  background: rgba(247,243,235,0.3);
}

/* ─── THE GAP ─────────────────────────────── */
#gap { background: var(--nguo); }
.gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.gap-text h2 { margin-bottom: 1.25rem; }
.gap-text p { margin-bottom: 1.25rem; }
.gap-pull {
  background: var(--dhow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.gap-pull blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--nguo);
  border-left: 2px solid var(--udongo);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.gap-pull-attr {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,243,235,0.4);
}
.three-gaps { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.gap-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--pwani);
  border-left: 2px solid var(--udongo);
  align-items: flex-start;
}
.gap-item-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--udongo);
  white-space: nowrap;
  margin-top: 0.2rem;
  min-width: 110px;
}
.gap-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── APPROACH ────────────────────────────── */
#approach { background: var(--dhow); }
#approach .label { color: var(--udongo); }
#approach h2 { color: var(--nguo); }
#approach > .container > p { color: rgba(247,243,235,0.6); max-width: 580px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3.5rem;
}
.pillar {
  background: var(--dhow);
  padding: 2.5rem 1.75rem;
  transition: background var(--transition);
}
.pillar:hover { background: var(--dhow-mid); }
.pillar-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(247,243,235,0.3);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.pillar h3 {
  color: var(--nguo);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.pillar p {
  color: rgba(247,243,235,0.5);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ─── FRAMEWORKS ─────────────────────────── */
#frameworks { background: var(--nguo); }
.fw-intro { max-width: 600px; margin-bottom: 4rem; }
.fw-intro h2 { margin-bottom: 1rem; }
.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fw-card {
  background: var(--nguo);
  border: 1px solid var(--pwani-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.fw-card:hover {
  border-color: var(--udongo);
  box-shadow: 0 12px 40px rgba(26,37,65,0.1);
  transform: translateY(-3px);
}
.fw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--udongo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.fw-card:hover::before { transform: scaleX(1); }
.fw-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--udongo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.fw-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.fw-card p { font-size: 0.9rem; margin: 0; }
.fw-card-wide { grid-column: span 2; }

/* ─── SERVICES ────────────────────────────── */
#services { background: var(--pwani); }
.services-intro { max-width: 580px; margin-bottom: 4rem; }
.services-intro h2 { margin-bottom: 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.svc {
  max-width: 460px;
  background: var(--dhow);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.svc:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,37,65,0.18);
}
.svc-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(247,243,235,0.35);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}
.svc h3 { color: var(--nguo); font-size: 1.1rem; margin-bottom: 0.75rem; }
.svc p { color: rgba(247,243,235,0.7); font-size: 0.9rem; margin-bottom: 1.25rem; }
.svc-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  color: var(--nguo);
  border: 1px solid rgba(255,255,255,0.18);
}

.services-accordion { margin-top: 1rem; }
.services-group {
  border-bottom: 1px solid var(--border);
}
.services-group:first-of-type { border-top: 1px solid var(--border); }
.services-group-body { padding: 0.5rem 0 3rem; }

.services-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dhow);
  margin: 0;
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}
.services-subhead::-webkit-details-marker { display: none; }
.services-subhead:hover { color: var(--udongo); }
.services-subhead::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--udongo);
  margin-right: 0.75rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.services-subhead::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--udongo);
  transition: transform var(--transition);
  margin-left: auto;
}
.services-group[open] > .services-subhead::after { content: '\2212'; }

.services-featured-single .svc-featured { min-height: 300px; }

.svc-relatable {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--udongo-light);
  margin-bottom: 1rem;
}
.svc-relatable-light { color: var(--udongo-light); }

/* Tighten the gap between a group's detailed cards and its compact items */
.services-grid + .spectrum-grid,
.services-featured-grid + .spectrum-grid { margin-top: 1.5rem; }

.services-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.svc-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition), box-shadow var(--transition);
}
.svc-featured:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(26,37,65,0.18); }
.svc-featured-photo {
  background: var(--dhow) url('assets/photos/team-water.jpg') center 30% / cover no-repeat;
}
.svc-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,37,65,0.15) 0%, rgba(26,37,65,0.92) 78%, rgba(26,37,65,0.98) 100%);
}
.svc-featured-solid { background: var(--dhow); }
.svc-featured-body {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}
.svc-num-light { color: rgba(247,243,235,0.4) !important; }
.svc-featured-body h3 { color: var(--nguo); font-size: 1.25rem; margin-bottom: 0.75rem; }
.svc-featured-body p { color: rgba(247,243,235,0.7); font-size: 0.92rem; margin-bottom: 1.25rem; }
.svc-tag-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--nguo); }
@media (max-width: 900px) {
  .services-featured-grid { grid-template-columns: 1fr; }
}

.services-spectrum-intro { max-width: 620px; color: var(--text-muted); margin-bottom: 0; }
.spectrum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}
.spectrum-item {
  max-width: 340px;
  background: var(--dhow);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.spectrum-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26,37,65,0.18);
}
.spectrum-item h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nguo);
  margin-bottom: 0.4rem;
}
.spectrum-item p { font-size: 0.85rem; color: rgba(247,243,235,0.65); margin: 0; }

/* ─── ABOUT ───────────────────────────────── */
#about { background: var(--nguo); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}
.about-portrait {
  background: linear-gradient(160deg, var(--dhow-mid) 0%, var(--dhow) 100%);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.portrait-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: rgba(247,243,235,0.5);
  line-height: 1.6;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text > p { margin-bottom: 1.25rem; }
.about-text h2 em {
  font-style: italic;
  color: var(--udongo);
}

/* ─── PROOF / TESTIMONIALS ────────────────── */
#proof { background: var(--pwani); }
#proof p.reveal { max-width: 620px; margin-top: -0.5rem; margin-bottom: 1rem; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial {
  background: var(--nguo);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,37,65,0.1); }
.testimonial-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--dhow);
  margin-bottom: 1.5rem;
}
.testimonial-attr strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--dhow); margin-bottom: 0.15rem; }
.testimonial-attr span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ─── GEO SECTION ─────────────────────────── */
#geo { background: var(--dhow); overflow: hidden; position: relative; }
.geo-bg {
  position: absolute;
  top: -200px; right: -300px;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,49,89,1) 0%, transparent 65%);
  pointer-events: none;
}
#geo .label { color: var(--udongo); }
#geo h2 { color: var(--nguo); max-width: 600px; margin-bottom: 1.25rem; }
#geo > .container > p { color: rgba(247,243,235,0.6); max-width: 580px; }
.geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3.5rem; position: relative; z-index: 2; }
.geo-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  position: relative;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.geo-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(184,89,58,0.3);
  transform: translateY(-3px);
}
.geo-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px;
  width: 11px; height: 11px;
  border-top: 1.5px solid rgba(184,89,58,0.45);
  border-left: 1.5px solid rgba(184,89,58,0.45);
  pointer-events: none;
}
.geo-card::after {
  content: '';
  position: absolute;
  bottom: 8px; right: 8px;
  width: 11px; height: 11px;
  border-bottom: 1.5px solid rgba(184,89,58,0.45);
  border-right: 1.5px solid rgba(184,89,58,0.45);
  pointer-events: none;
}
.geo-card h3 { color: var(--nguo); font-size: 1.1rem; margin-bottom: 0.75rem; }
.geo-card p  { color: rgba(247,243,235,0.55); font-size: 0.9rem; margin: 0; }
.geo-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--udongo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ─── CONTACT ─────────────────────────────── */
#contact { background: var(--nguo); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info > p { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2.5rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.contact-detail a { transition: color var(--transition); }
.contact-detail a:hover { color: var(--udongo); }
.contact-detail-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pwani);
  border: 1px solid var(--pwani-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--nguo);
  border: 1px solid var(--pwani-dark);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--kivuli);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(90,94,106,0.45); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--udongo); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── FOOTER ──────────────────────────────── */
footer { background: var(--dhow-dark); padding: 3rem 0 2rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}
.footer-logo { display: block; height: 26px; width: auto; margin-bottom: 0.75rem; }
.footer-tagline { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 0.92rem; color: rgba(247,243,235,0.4); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(247,243,235,0.55);
  transition: border-color var(--transition), color var(--transition);
}
.social-link svg { width: 16px; height: 16px; display: block; }
.social-link:hover { border-color: var(--udongo); color: var(--udongo); }
.footer-links { display: flex; gap: 2rem; align-items: center; }
.footer-links a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247,243,235,0.4); transition: color var(--transition); }
.footer-links a:hover { color: var(--nguo); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy  { font-size: 0.78rem; color: rgba(247,243,235,0.25); }
.footer-ethos { font-size: 0.78rem; color: rgba(247,243,235,0.2); font-style: italic; font-family: 'Cormorant Garamond', Georgia, serif; }

/* ─── LANDSCAPE BAND (photo divider) ──────── */
.landscape-band {
  height: 420px;
  overflow: hidden;
  position: relative;
  display: block;
  line-height: 0;
}
.landscape-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
}
.landscape-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247,243,235,1) 0%,
    rgba(247,243,235,0.65) 10%,
    transparent 28%,
    transparent 62%,
    rgba(26,37,65,0.65) 85%,
    rgba(26,37,65,1) 100%
  );
  pointer-events: none;
}
.landscape-caption {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 900px) {
  .landscape-band { height: 260px; }
}

/* ─── ANIMATIONS ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── HERO ENTRANCE CHOREOGRAPHY ──────────── */
.hero-eyebrow,
#hero h1,
.hero-sub,
.hero-actions,
.hero-credentials {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.75s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}
.hero-eyebrow      { animation-delay: 0.08s; }
#hero h1           { animation-delay: 0.22s; }
.hero-sub          { animation-delay: 0.38s; }
.hero-actions      { animation-delay: 0.54s; }
.hero-credentials  { animation-delay: 0.68s; }
@keyframes hero-fade-up { to { opacity: 1; transform: none; } }

/* ─── AMBIENT HERO DRIFT ──────────────────── */
.hero-glow {
  animation: orb-drift 26s ease-in-out infinite;
  will-change: transform;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-24px, 18px) scale(1.05); }
}

/* ─── BUTTON SHIMMER ──────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.2) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn:hover::after { transform: translateX(120%); }

/* ─── REDUCED MOTION ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-eyebrow, #hero h1, .hero-sub, .hero-actions, .hero-credentials,
  .hero-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn::after { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(4), .pillar:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.06); }
}
/* Nav collapses well before the desktop nav content would overflow —
   logo + 5 links + persistent CTA needs ~950px; 680px left a broken
   band between 680–950px where the nav wrapped and overlapped itself. */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta-persistent { padding: 0.6rem 1.1rem; font-size: 0.75rem; }
}
@media (max-width: 900px) {
  :root { --section-gap: 5rem; }
  .gap-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .fw-grid { grid-template-columns: 1fr; }
  .fw-card-wide { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .geo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 1.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-credentials { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .manifesto-sep { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 420px) {
  .nav-cta-persistent-label { display: none; }
  .nav-cta-persistent-icon { display: block; }
  .nav-cta-persistent { padding: 0.6rem 0.75rem; }
  .nav-links.open { width: 100vw; }
}

/* ============================================
   INNER PAGES: Insights / Articles
   ============================================ */
.page-hero {
  background: var(--dhow);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: var(--nguo); margin: 1rem 0 1.25rem; }
.page-hero h1 em { font-style: normal; color: var(--udongo); }
.page-hero p { color: rgba(247,243,235,0.65); font-size: 1.05rem; line-height: 1.8; }
.page-hero .label { color: var(--udongo); }

/* Insights listing */
#insights-list { background: var(--nguo); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.insight-card {
  display: block;
  background: var(--white, #fff);
  background: var(--nguo);
  border: 1px solid var(--pwani-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.insight-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,37,65,0.1); border-color: var(--udongo); }
.insight-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--udongo);
}
.insight-card h3 { margin: 0.85rem 0 0.85rem; font-size: 1.25rem; line-height: 1.3; }
.insight-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.insight-read {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dhow);
}
@media (max-width: 780px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* Article page body */
#article-body { background: var(--nguo); }
.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-prose { max-width: 680px; }
.article-prose p { font-size: 1.05rem; line-height: 1.85; color: var(--kivuli); margin-bottom: 1.5rem; }
.article-prose blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--dhow);
  border-left: 3px solid var(--udongo);
  padding-left: 1.75rem;
  margin: 2rem 0;
}
.article-prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.article-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.article-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  background: var(--pwani);
  border-radius: 3px;
  color: var(--dhow);
  border: 1px solid var(--pwani-dark);
}
.article-author-bio {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 680px;
}
.article-author-bio h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--dhow);
  margin-bottom: 0.6rem;
}
.article-author-bio p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.back-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dhow);
  margin-bottom: 2rem;
}
