/* ==========================================================================
   V3 "Paper": ExoSeed Africa redesign
   Direction: light, clean, professional consultancy. Ink on paper.
   --------------------------------------------------------------------------
   :root tokens (declared deliberately):
   --paper     warm paper background, the "warm accent" is the page itself
   --ink       warm near-black for display type and primary text
   --ink-soft  secondary text (≥ 7:1 on paper)
   --muted     tertiary micro-labels (≥ 4.5:1 on paper)
   --hairline  warm rule color for dividers
   --moss      deep green accent, V3's own voice, solid fills only:
               primary CTA, plus link/arrow hovers. One accent,
               at most twice per screen. No gradient washes.
   Type: Fraunces (display serif) / Inter (body) / JetBrains Mono (labels)
   ========================================================================== */
:root {
  --paper: #faf7f1;
  --paper-deep: #f3eee2;
  --ink: #1a1611;
  --ink-soft: #4a443a;
  --muted: #6f675b;
  --hairline: #e2d9c4;
  --moss: #0F7A3D;
  --accent: var(--moss);
  --accent-hover: #0B5C2E;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1160px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Anchor targets clear the sticky nav, which is ~4.4rem tall. */
section[id] { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }

a { color: inherit; }

/* ---------- eyebrow / micro labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.section-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.link-arrow span { display: inline-block; transition: transform 0.18s ease; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateY(2px); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { color: var(--ink); flex: none; }
.brand-word {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }

/* Toggle only exists below the 700px breakpoint; hidden above it. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--hairline);
}

.hero-title {
  font-size: clamp(3.25rem, 8.5vw, 6.75rem);
  max-width: 14ch;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

/* ---------- index lists (services) ---------- */
.index-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.index-list > li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}
.index-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-top: 0.45rem;
}
.index-body h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.index-body p { color: var(--ink-soft); max-width: 44rem; }
.tags {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- work rows ---------- */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.work-list > li { border-bottom: 1px solid var(--hairline); }

.work-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0.75rem;
  text-decoration: none;
  margin: 0 -0.75rem;
  transition: background 0.18s ease;
}
.work-row:hover { background: #fff; }
.work-body { display: block; }
.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.work-name { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }
.work-arrow {
  font-size: 1.35rem;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
  flex: none;
}
.work-row:hover .work-arrow { transform: translate(3px, -3px); color: var(--accent); }
.work-desc { color: var(--ink-soft); max-width: 46rem; display: block; }

/* ---------- process ---------- */
.process-row {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-row > li {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.process-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}
.process-row h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.process-row p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  margin-bottom: 2.25rem;
  max-width: 16ch;
}
.contact .hero-ctas { margin-bottom: 2.5rem; }

/* ---------- footer ---------- */
.site-footer { padding: 2rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-inner .brand { margin-right: 0; }
.footer-legal {
  margin: 0 auto 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.on { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .process-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0; font-size: 1.0625rem; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 1rem; }
  .index-list > li,
  .work-row { grid-template-columns: 2.75rem 1fr; gap: 1rem; }
  .work-row { padding: 1.75rem 0.5rem; margin: 0 -0.5rem; }
}

@media (max-width: 520px) {
  .process-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-ctas { gap: 1.1rem; }
  .footer-inner { flex-wrap: wrap; gap: 1rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}
