:root {
  --bg: #ffffff;
  --text: #1f2327;
  --muted: #4b5158;
  --accent: #9f81b9;
  --accent-soft: rgba(159, 129, 185, 0.12);
  --line: #d9dde2;
  --container: 1100px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.015em;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 20px;
}

.body {
  font-weight: 500;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.btn-outline {
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--bg);
  color: var(--accent);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
  border-bottom: 1px solid rgba(159, 129, 185, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 18px 0;
}

.logo-img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-nav a {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 32px;
  border-top: 1px solid #f0f1f3;
  background: var(--bg);
  box-shadow: 0 12px 24px rgba(31, 35, 39, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.mobile-nav.open {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  min-height: 58vh;
}

.hero-media img {
  width: 100%;
  height: 58vh;
  object-fit: cover;
  object-position: 10% center;
}

.hero-content {
  position: absolute;
  top: 30%;
  left: 54%;
  transform: translateX(-50%);
  width: min(100% - 48px, var(--container));
}

.hero .eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: center;
}

.story-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mission-item {
  position: relative;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.mission-num {
  font-size: 52px;
  color: rgba(159, 129, 185, 0.45);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

/* Vision */
.vision-text {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  text-align: center;
  margin: 0;
}

/* Creations */
.creations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
}

.africa-card {
  grid-column: 1 / -1;
}

.creation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}

.africa-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
}

.africa-region {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(159, 129, 185, 0.18);
  box-shadow: 0 12px 24px rgba(31, 35, 39, 0.06);
  background: var(--bg);
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
  transform: scale(1);
  will-change: transform;
  cursor: pointer;
}

.africa-region .creation-image {
  height: 170px;
  object-fit: cover;
  object-position: center;
}

.africa-region .region-image {
  transition: opacity 0.6s ease;
}

.region-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.region-cta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.africa-region:hover,
.africa-region.is-active {
  transform: scale(2);
  box-shadow: 0 18px 34px rgba(31, 35, 39, 0.12);
  z-index: 2;
}

.africa-region.is-fading .region-image {
  opacity: 0.2;
}

.creation-image {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s ease;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.creation-image.placeholder {
  background: #f3f4f7;
  border: 1px solid #e6e9ee;
}

.creation-info {
  padding-top: 14px;
}

.creation-title {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.creation-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.creation-cta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.creation-card {
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
  transform: scale(1);
  will-change: transform;
  overflow: visible;
}

.creation-card:hover,
.creation-card.is-active {
  transform: scale(2);
  box-shadow: 0 18px 34px rgba(31, 35, 39, 0.12);
  z-index: 2;
}

.creation-card:hover .creation-cta {
  color: var(--accent);
}

/* Philosophy */
.philosophy-media {
  position: relative;
}

.philosophy-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.philosophy-content {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 0;
  color: var(--bg);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.philosophy-content .section-title {
  color: rgba(255, 255, 255, 0.8);
}

.philosophy-content .body {
  color: #ffffff;
  max-width: 380px;
}

/* Actions */
.actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--accent-soft);
}

.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-icon {
  font-size: 18px;
  color: var(--muted);
}

/* Contact */
.contact {
  text-align: left;
  padding-top: 40px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.contact-form input {
  border: none;
  border-bottom: 1px solid rgba(159, 129, 185, 0.35);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}

.contact-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 80px 0 60px;
  background: var(--accent);
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  font-size: clamp(60px, 18vw, 200px);
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.4em;
  pointer-events: none;
}

.footer-inner {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.24em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav {
    gap: 12px;
    letter-spacing: 0.14em;
    font-size: 11px;
  }

  .hero-content {
    left: 6%;
  }

  .africa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .mission-grid,
  .creations-grid {
    grid-template-columns: 1fr;
  }

  .africa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero-content {
    position: static;
    padding: 24px 0;
    transform: none;
    width: 100%;
  }

  .hero-media img {
    height: 50vh;
  }

  .philosophy-content {
    position: static;
    padding: 24px 0 0;
    color: var(--text);
    text-shadow: none;
  }

  .philosophy-content .section-title {
    color: var(--muted);
  }

  .philosophy-content .body {
    color: var(--text);
  }

  .africa-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    transform: none;
  }
}