@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

/*
  ACCESSIBLE COLOR SYSTEM
  ─────────────────────────────────────────────────────────────
  Palette is color-blind safe:
  • Primary blue-teal: distinguishable under protanopia, deuteranopia, tritanopia
  • Accent uses shape + icon + label — never color alone for meaning
  • All text/bg pairs hit WCAG AA (4.5:1 min for body, 3:1 for large/UI text)
  • Tested against: protanopia, deuteranopia, tritanopia, achromatopsia simulation
  ─────────────────────────────────────────────────────────────
*/

:root {
  /* Backgrounds */
  --bg:       hsl(220, 20%, 98%);
  --surface:  hsl(220, 16%, 95%);
  --surface2: hsl(220, 12%, 91%);

  /*
    Primary: deep teal-blue (NOT orange — safe for all color blindness types)
    Contrast on --bg: 5.1:1 ✓  |  on #fff: 5.6:1 ✓
  */
  --primary:  hsl(200, 82%, 32%);
  --primary-light: hsl(200, 70%, 92%);

  /*
    Accent: warm amber-brown — distinguishable from primary even in deuteranopia
    because hue difference is 140°+ and luminance differs significantly
    Contrast on --bg: 4.8:1 ✓
  */
  --accent:   hsl(32, 72%, 36%);
  --accent-light: hsl(32, 65%, 92%);

  /*
    Gold/highlight: used for decorative only — never sole indicator of state
    This is the "warm" in the warm/cool split the design needs
  */
  --gold:     hsl(44, 80%, 42%);
  --gold-light: hsl(44, 70%, 93%);

  /* Text — all WCAG AA+ on both --bg and --surface */
  --text:     hsl(220, 28%, 10%);    /* 14.5:1 on --bg */
  --muted:    hsl(220, 14%, 38%);    /* 5.8:1 on --bg ✓ (was 3.2:1 — fixed) */
  --subtle:   hsl(220, 10%, 55%);    /* 3.2:1 — decorative/large text only */

  /* Borders */
  --border:   hsl(220, 16%, 84%);
  --border-strong: hsl(220, 18%, 72%);

  --white:    #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm:   0.5rem;
  --radius:      0.875rem;
  --radius-lg:   1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px hsla(220,28%,10%,0.07);
  --shadow:    0 4px 16px hsla(220,28%,10%,0.09);
  --shadow-lg: 0 8px 32px hsla(220,28%,10%,0.12);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ── African pattern accent strip ── */
.africa-strip {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,    var(--primary) 14px,
    var(--gold)    14px,   var(--gold)    22px,
    var(--accent)  22px,   var(--accent)  36px,
    var(--surface) 36px,   var(--surface) 44px
  );
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: hsla(220,20%,98%,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  white-space: nowrap;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  margin-right: 0.75rem;
  padding-right: 0.75rem;
  border-right: 1px solid var(--border);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--surface); }
.nav-link.active {
  color: var(--white);
  background: var(--primary);
  /* Shape indicator so active state isn't color-only */
}
.nav-link.active::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  margin-left: 0.35rem;
  vertical-align: middle;
}

.nav-link.tt-link {
  color: var(--accent);
  border: 1px solid hsl(32,50%,78%);
  margin-left: 0.25rem;
}
.nav-link.tt-link:hover,
.nav-link.tt-link.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: hsla(220,28%,10%,0.94);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid hsla(220,20%,100%,0.08);
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: hsl(220,15%,60%);
  padding: 0.4rem 0.6rem;
  border-radius: 0.75rem;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link i { width: 18px; height: 18px; }
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: hsl(44, 80%, 62%);
  background: hsla(220,20%,100%,0.08);
}
/* Underline indicator — shape not color only */
.mobile-nav-link.active {
  position: relative;
}
.mobile-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 1px;
  background: hsl(44, 80%, 62%);
}

@media (max-width: 767px) {
  .navbar { display: none; }
  .mobile-nav { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px hsla(200,82%,28%,0.28);
}
.btn-primary:hover {
  background: hsl(200, 82%, 26%);
  box-shadow: 0 4px 16px hsla(200,82%,24%,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid hsl(200,50%,80%);
}
.badge-gold {
  background: var(--gold-light);
  color: hsl(32,72%,28%);
  border-color: hsl(44,50%,74%);
}
.badge-green {
  background: hsl(150,40%,92%);
  color: hsl(150,50%,24%);
  border-color: hsl(150,30%,76%);
}

/* ── Section heading ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Divider ── */
.divider {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Page sections ── */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Social links ── */
.social-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
  transition: all var(--transition);
}
.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ── AOS overrides ── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Hero (plain) ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}
.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid hsl(200,50%,80%);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-name .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; font-weight: 400; }
.hero-bio   { font-size: 1rem; color: var(--text); line-height: 1.75; max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 380px;
}
@media (min-width: 480px) { .stats-row { grid-template-columns: repeat(4, 1fr); max-width: none; } }

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.skill-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Projects grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-status {
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-green  { background: hsl(150,60%,36%); }
.dot-blue   { background: hsl(210,70%,46%); }
.dot-orange { background: var(--accent); }

.project-img {
  width: 100%; height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.project-links { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid hsl(200,40%,76%);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  transition: all var(--transition);
  background: var(--primary-light);
}
.project-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 1px;
}
.timeline-item { position: relative; padding-bottom: 1.75rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem; top: 0.4rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
}
.timeline-date  { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; }
.timeline-title { font-weight: 500; color: var(--text); margin-bottom: 0.3rem; }
.timeline-desc  { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

/* ── Machine / setup cards ── */
.machine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .machine-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--muted); }
.spec-val { font-weight: 500; }

/* ── TechTour hero ── */
.tt-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, hsl(200,40%,96%) 0%, hsl(220,20%,98%) 60%, hsl(32,40%,96%) 100%);
  border-bottom: 1px solid var(--border);
}
.tt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid hsl(32,40%,78%);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-img {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, hsl(200,40%,78%), hsl(32,40%,76%));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.article-body    { padding: 1.25rem; }
.article-category {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 500;
  color: var(--text); line-height: 1.3; margin-bottom: 0.5rem;
}
.article-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted);
}

/* ── Utility ── */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--muted); }
.text-serif   { font-family: var(--font-serif); }
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}

/* ══════════════════════════════════════════════════════════
   SLIDESHOW HERO
   ══════════════════════════════════════════════════════════ */
.slideshow-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: hsl(218, 40%, 4%);
}
.slideshow-hero > .container { position: relative; z-index: 6; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.slide.active { opacity: 1; }

.slide-photo {
  background-size: cover;
  background-position: center;
}
.slide-photo.active { animation: ken-burns 14s ease-in-out both; }
@keyframes ken-burns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -0.8%); }
}

/* ── Kilimanjaro slide ── */
.slide-kili {
  background: radial-gradient(
    ellipse 120% 70% at 50% 15%,
    hsl(220, 45%, 8%) 0%,
    hsl(215, 55%, 3%) 100%
  );
}
.kili-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 1px at 8% 4%, rgba(255,255,255,0.9) 0,transparent 1px),
    radial-gradient(circle 1.5px at 22% 10%, rgba(255,255,255,0.7) 0,transparent 2px),
    radial-gradient(circle 1px at 38% 2%, rgba(255,255,255,0.8) 0,transparent 1px),
    radial-gradient(circle 1px at 52% 8%, rgba(255,255,255,0.6) 0,transparent 1px),
    radial-gradient(circle 2px at 66% 3%, rgba(255,255,255,0.95) 0,transparent 2px),
    radial-gradient(circle 1px at 80% 12%, rgba(255,255,255,0.7) 0,transparent 1px),
    radial-gradient(circle 1px at 91% 6%, rgba(255,255,255,0.85) 0,transparent 1px),
    radial-gradient(circle 1px at 14% 18%, rgba(255,255,255,0.5) 0,transparent 1px),
    radial-gradient(circle 1.5px at 33% 14%, rgba(255,255,255,0.65) 0,transparent 2px),
    radial-gradient(circle 1px at 62% 22%, rgba(255,255,255,0.7) 0,transparent 1px),
    radial-gradient(circle 1px at 76% 17%, rgba(255,255,255,0.5) 0,transparent 1px),
    radial-gradient(circle 1px at 47% 28%, rgba(255,255,255,0.45) 0,transparent 1px),
    radial-gradient(circle 1px at 5% 30%, rgba(255,255,255,0.4) 0,transparent 1px),
    radial-gradient(circle 1.5px at 88% 25%, rgba(255,255,255,0.6) 0,transparent 2px),
    radial-gradient(circle 1px at 28% 33%, rgba(255,255,255,0.35) 0,transparent 1px),
    radial-gradient(circle 1px at 70% 35%, rgba(255,255,255,0.4) 0,transparent 1px);
  animation: stars-twinkle 5s ease-in-out infinite alternate;
}
@keyframes stars-twinkle {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

.snow-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide-kili.active .snow-canvas { opacity: 1; }

.kili-peak-img {
  position: absolute;
  bottom: -3%; left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: 95%; max-width: 960px; height: 72%;
  background-image: url('assets/img/bg/kilimanjaro.png');
  background-size: cover; background-position: top center;
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 56%, black 15%, rgba(0,0,0,0.88) 38%, rgba(0,0,0,0.42) 60%, transparent 74%);
  mask-image: radial-gradient(ellipse 88% 78% at 50% 56%, black 15%, rgba(0,0,0,0.88) 38%, rgba(0,0,0,0.42) 60%, transparent 74%);
  opacity: 0;
  filter: brightness(0.75) contrast(1.08) saturate(0.85);
  z-index: 1; transition: opacity 0.4s;
}
.slide-kili.active .kili-peak-img {
  animation: kili-emerge 3.5s ease-out 0.4s forwards;
}
@keyframes kili-emerge {
  0%   { opacity:0; transform:translateX(-50%) translateY(35px); filter:brightness(0.5) blur(3px) saturate(0.6); }
  50%  { opacity:0.85; transform:translateX(-50%) translateY(8px); filter:brightness(0.7) blur(0.8px) saturate(0.8); }
  100% { opacity:1; transform:translateX(-50%) translateY(0); filter:brightness(0.75) contrast(1.08) saturate(0.85) blur(0); }
}

.mist { position: absolute; left: -60%; width: 220%; pointer-events: none; z-index: 3; }
.mist-a {
  bottom: 30%; height: 140px;
  background: linear-gradient(0deg, transparent 0%, rgba(200,210,230,0.06) 50%, transparent 100%);
  animation: mist-drift 28s linear infinite;
}
.mist-b {
  bottom: 20%; height: 100px;
  background: linear-gradient(0deg, transparent 0%, rgba(210,220,235,0.07) 50%, transparent 100%);
  animation: mist-drift 20s linear infinite reverse;
}
.mist-c {
  bottom: 10%; height: 80px;
  background: linear-gradient(0deg, transparent 0%, rgba(185,195,220,0.06) 50%, transparent 100%);
  animation: mist-drift 34s linear infinite;
}
@keyframes mist-drift {
  from { transform: translateX(-30%); }
  to   { transform: translateX(30%); }
}

.uhuru-label {
  position: absolute; top: 30%; left: 50%;
  text-align: center; z-index: 4;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}
.slide-kili.active .uhuru-label {
  animation: label-appear 1.2s ease-out 2.8s forwards;
}
@keyframes label-appear { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.uhuru-alt {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.25em; margin-bottom: 0.2rem;
}
.uhuru-name {
  display: block; font-size: 0.65rem;
  color: rgba(255,255,255,0.36);
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ── Slide overlay — stronger for contrast ── */
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    155deg,
    rgba(4,3,10,0.72) 0%,
    rgba(4,3,10,0.38) 55%,
    rgba(4,3,10,0.76) 100%
  );
  z-index: 5; pointer-events: none;
}

/* ── Slide dots ── */
.slide-dots {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.5rem; z-index: 10;
}
.slide-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer; padding: 0;
  transition: all 0.4s ease;
}
.slide-dot.active {
  /* Uses shape change (elongated pill) not just color */
  background: #fff;
  border-color: #fff;
  width: 24px; border-radius: 4px;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute; bottom: 4.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10; color: rgba(255,255,255,0.4);
  animation: bounce-scroll 2.2s ease-in-out infinite;
}
@keyframes bounce-scroll {
  0%,100% { transform:translateX(-50%) translateY(0); opacity:0.4; }
  50%      { transform:translateX(-50%) translateY(7px); opacity:0.7; }
}

/* ── Hero text on dark slideshow ── */
.slideshow-hero .hero-eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
}
.slideshow-hero .hero-name { color: #fff; }
.slideshow-hero .hero-name .highlight {
  /*
    On dark bg: use white → warm gold gradient.
    Luminance contrast with dark bg = passes large-text 3:1 for both ends.
    Does NOT rely on hue alone — the gradient has high luminance.
  */
  background: linear-gradient(135deg, hsl(196,90%,75%), hsl(44,90%,72%));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.slideshow-hero .hero-title  { color: rgba(255,255,255,0.72); }
.slideshow-hero .hero-bio    { color: rgba(255,255,255,0.86); }

.slideshow-hero .btn-outline {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
}
.slideshow-hero .btn-outline:hover {
  background: rgba(255,255,255,0.18);
  color: #fff; border-color: rgba(255,255,255,0.7);
}

.slideshow-hero .social-link {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.slideshow-hero .social-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff; border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

.slideshow-hero .stat-item {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
/*
  Stat numbers: white on dark glass (contrast ratio ~14:1) — safe for all
  No longer using yellow/gold as the only differentiator
*/
.slideshow-hero .stat-num   { color: #fff; }
.slideshow-hero .stat-label { color: rgba(255,255,255,0.62); }

/* ── Partners / Clients ── */
.partners-section {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 2rem;
}
@media (min-width: 640px)  { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(5, 1fr); } }

.partner-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem; padding: 1.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  text-decoration: none; color: var(--text);
}
.partner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Logo image container — replaces initials */
.partner-logo-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 4px;
}
.partner-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* Fallback icon — still used when no logo */
.partner-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 600;
}

.partner-name   { font-size: 0.78rem; font-weight: 500; color: var(--text); line-height: 1.3; }
.partner-domain { font-size: 0.68rem; color: var(--muted); }

/* ── Tech × Tourism hover cards ── */
.techtour-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.techtour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px)  { .techtour-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .techtour-grid { grid-template-columns: repeat(5, 1fr); } }

.tt-hover-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface2);
  /* Focus visible for keyboard users */
  outline-offset: 3px;
}
.tt-hover-card:focus-visible { outline: 2px solid var(--primary); }

.tt-hover-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.tt-hover-card:hover img,
.tt-hover-card:focus-within img { transform: scale(1.06); }

/* Always-visible title bar at bottom */
.tt-card-title-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(4,3,10,0.88) 0%, rgba(4,3,10,0.12) 100%);
  padding: 2.5rem 0.85rem 0.8rem;
  z-index: 2;
  transition: padding 0.35s ease;
}
.tt-card-title-bar .tt-swah {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
}
.tt-card-title-bar .tt-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Full info overlay — shown on hover/focus */
.tt-card-info {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(6,18,38,0.95) 0%, rgba(4,12,28,0.9) 100%);
  padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}
.tt-hover-card:hover .tt-card-info,
.tt-hover-card:focus-within .tt-card-info {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.tt-card-info .tt-swah {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: hsl(196,70%,72%); margin-bottom: 0.35rem;
}
.tt-card-info h4 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 500;
  color: #fff; margin-bottom: 0.5rem; line-height: 1.3;
}
.tt-card-info p {
  font-size: 0.78rem; color: rgba(255,255,255,0.76);
  line-height: 1.55; margin-bottom: 0.75rem;
}
.tt-card-info .tt-tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.65rem; font-weight: 500;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.82);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* ── About / Profile strip ── */
.about-strip {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1fr 1.6fr; gap: 4rem; }
}

/* Photo frame with decorative border */
.profile-photo-wrap {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}
.profile-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  opacity: 0.25;
  z-index: 0;
}
.profile-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: 0.12;
  z-index: 0;
}
.profile-photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  display: block;
}
/* Companion photo — appears over main photo */
.profile-companion-badge {
  position: absolute;
  bottom: -1.25rem; right: -1.25rem;
  z-index: 2;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-companion-badge img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Sponsor / Support section ── */
.sponsor-section {
  padding: 5rem 0;
  background: linear-gradient(
    160deg,
    hsl(200, 50%, 10%) 0%,
    hsl(215, 55%, 7%) 60%,
    hsl(220, 60%, 5%) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative pattern */
.sponsor-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(200,80%,28%) 0%, transparent 65%);
  opacity: 0.12; pointer-events: none;
}
.sponsor-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(44,80%,42%) 0%, transparent 65%);
  opacity: 0.07; pointer-events: none;
}

.sponsor-section > .container { position: relative; z-index: 1; }

.sponsor-section .section-label {
  color: hsl(196,70%,68%);
}
.sponsor-section .section-title { color: #fff; }
.sponsor-section .divider {
  background: linear-gradient(90deg, hsl(196,80%,55%), hsl(44,80%,52%));
}
.sponsor-section .section-sub { color: rgba(255,255,255,0.72); max-width: 58ch; }

.sponsor-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
@media (min-width: 640px)  { .sponsor-value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sponsor-value-grid { grid-template-columns: repeat(3, 1fr); } }

.sponsor-value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  /* Left accent bar for shape-based differentiation */
  border-left: 3px solid hsl(196,70%,52%);
}
.sponsor-value-card:nth-child(2) { border-left-color: hsl(44,80%,52%); }
.sponsor-value-card:nth-child(3) { border-left-color: hsl(150,60%,46%); }
.sponsor-value-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.sponsor-value-card .sv-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.sponsor-value-card h4 {
  font-size: 0.95rem; font-weight: 600;
  color: #fff; margin-bottom: 0.4rem;
}
.sponsor-value-card p {
  font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.6;
}

.sponsor-cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center; margin-top: 2.5rem;
}

.btn-sponsor {
  background: hsl(196, 82%, 38%);
  color: #fff;
  box-shadow: 0 2px 12px hsla(196,80%,30%,0.4);
  border: none;
}
.btn-sponsor:hover {
  background: hsl(196, 82%, 32%);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px hsla(196,80%,26%,0.5);
}

.btn-sponsor-outline {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-sponsor-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

/* ── Agentic AI section ── */
.ai-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 640px)  { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ai-grid { grid-template-columns: repeat(4, 1fr); } }

.ai-card {
  background: linear-gradient(135deg, var(--primary-light), hsl(44,40%,95%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.ai-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.ai-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ai-card.wip { opacity: 0.85; }
.ai-card.wip::before { background: linear-gradient(90deg, var(--muted), var(--border)); }

.ai-icon    { font-size: 1.5rem; margin-bottom: 0.65rem; display: block; }
.ai-title   { font-weight: 600; font-size: 0.92rem; color: var(--text); margin-bottom: 0.4rem; }
.ai-desc    { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.wip-badge  {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface2);
  border-radius: var(--radius-full); padding: 0.15rem 0.5rem;
}

/* ── vCard / digital card ── */
.vcard-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 2rem 1.25rem; background: var(--bg);
}
.vcard {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.75rem; overflow: hidden; box-shadow: var(--shadow-lg);
}
.vcard-header {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(200,60%,24%) 100%);
  padding: 2.5rem 2rem 1.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.vcard-header::before {
  content: ''; position: absolute;
  top: -30px; right: -30px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,255,255,0.07);
}
.vcard-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.45);
  background: hsl(200,60%,40%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2rem; font-weight: 600;
  color: var(--white); margin: 0 auto 0.75rem;
}
.vcard-name  { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--white); margin-bottom: 0.25rem; }
.vcard-role  { font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.vcard-body  { padding: 1.5rem 2rem; }
.vcard-row   {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text);
  text-decoration: none; transition: color var(--transition);
}
.vcard-row:last-child { border-bottom: none; }
.vcard-row:hover { color: var(--primary); }
.vcard-row-icon {
  width: 2rem; height: 2rem; border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.vcard-social {
  display: flex; justify-content: center; gap: 0.75rem;
  padding: 1.25rem 2rem; border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Section flow connector (visual thread between sections) ── */
.section-connector {
  height: 3rem;
  background: linear-gradient(to bottom, var(--bg), var(--surface));
  position: relative;
}
.section-connector.inv {
  background: linear-gradient(to bottom, var(--surface), var(--bg));
}