/* ============================================================
   AfriyieRND — site styles
   Brand: deep-purple gradient + warm orange accent on warm paper
   Type: Outfit (sans/headings), Newsreader (serif accents),
         IBM Plex Mono (eyebrow labels)
   ============================================================ */

:root {
  /* ink + paper */
  --ink: #1d1233;
  --ink-soft: #4a4159;
  --muted: #837a90;
  --paper: #f6f3ef;
  --paper-2: #efe8df;
  --card: #ffffff;
  --line: #e6ded3;
  --line-2: #d8cfc2;

  /* purple ramp */
  --p-950: #210d44;
  --p-900: #2a1150;
  --p-800: #3a1768;
  --p-700: #4b1d80;
  --p-600: #6b2fb3;
  --p-500: #7e3fc9;
  --p-400: #9a64d8;

  /* orange accent */
  --orange: #d98a3c;
  --orange-600: #c5762c;
  --orange-200: #f0d4ad;

  --cream: #f3e9dd;
  --cream-dim: #cdbfb0;

  --maxw: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 1px 2px rgba(33,13,68,.04), 0 18px 50px -28px rgba(33,13,68,.28);
  --shadow-card: 0 1px 2px rgba(33,13,68,.05), 0 30px 70px -40px rgba(33,13,68,.35);

  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--orange-200); }
.eyebrow.on-dark::before { background: var(--orange-200); }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }

.h-display { font-size: clamp(40px, 6vw, 74px); letter-spacing: -0.035em; }
.h-1 { font-size: clamp(32px, 4.4vw, 52px); }
.h-2 { font-size: clamp(26px, 3vw, 38px); }
.h-3 { font-size: clamp(20px, 2vw, 25px); }

.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--ink-soft); }
.body-muted { color: var(--ink-soft); }

/* wordmark */
.wordmark { font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.wordmark .rnd { color: var(--p-600); }
.wordmark.on-dark { color: #fff; }
.wordmark.on-dark .rnd { color: var(--p-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--p-700); color: #fff; box-shadow: 0 14px 30px -16px rgba(75,29,128,.8); }
.btn-primary:hover { background: var(--p-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--p-600); color: var(--p-700); }
.btn-orange { background: var(--orange); color: #2a1606; box-shadow: 0 14px 30px -16px rgba(197,118,44,.8); }
.btn-orange:hover { background: var(--orange-600); transform: translateY(-2px); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,239,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .name { font-size: 21px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15.5px; color: var(--ink-soft); font-weight: 400; transition: color .15s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--p-700); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- hero card ---------- */
.hero { padding: 40px 0 8px; }
.hero-card {
  display: grid; grid-template-columns: 1.04fr 1.2fr;
  background: var(--card); border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.hero-visual {
  position: relative; min-height: 520px;
  background:
    radial-gradient(120% 95% at 38% 42%, rgba(154,100,216,.55) 0%, rgba(58,23,104,0) 55%),
    linear-gradient(150deg, #2a1150 0%, #3a1768 46%, #6b2fb3 100%);
  overflow: hidden;
}
.hero-content { padding: clamp(38px, 4.4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 8px 16px 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 28px; white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-600); box-shadow: 0 0 0 4px rgba(107,47,179,.16); }
.hero-content .wordmark { font-size: clamp(46px, 6.2vw, 76px); margin-bottom: 22px; }
.hero-tag { font-size: clamp(20px, 2.3vw, 26px); color: var(--ink); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 22px; line-height: 1.25; }
.hero-desc { color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.hero-desc a { color: var(--p-700); border-bottom: 1px solid var(--p-400); padding-bottom: 1px; }
.hero-desc a:hover { background: rgba(107,47,179,.08); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat .num { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: -0.01em; line-height: 1; margin-bottom: 8px; }
.stat .num.accent { color: var(--p-600); }
.stat .lbl { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* orbital system */
.orbit-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(243,233,221,.16); border-radius: 50%; }
.orbit.o1 { width: 200px; height: 200px; }
.orbit.o2 { width: 340px; height: 340px; }
.orbit.o3 { width: 490px; height: 490px; }
.core {
  width: 66px; height: 66px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 10px rgba(255,255,255,.07), 0 0 60px 12px rgba(255,255,255,.45);
}
.spin { position: absolute; display: grid; place-items: center; }
.spin .planet { position: absolute; border-radius: 50%; }
.s1 { width: 200px; height: 200px; animation: spin 26s linear infinite; }
.s1 .planet { top: -4px; width: 9px; height: 9px; background: #f3e9dd; }
.s2 { width: 340px; height: 340px; animation: spin 40s linear infinite reverse; }
.s2 .planet { top: -5px; left: 24%; width: 11px; height: 11px; background: var(--orange); box-shadow: 0 0 16px 2px rgba(217,138,60,.7); }
.s3 { width: 490px; height: 490px; animation: spin 64s linear infinite; }
.s3 .planet { bottom: 8%; right: -5px; width: 8px; height: 8px; background: rgba(243,233,221,.8); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .s1,.s2,.s3 { animation: none; } }

/* ---------- generic grid + cards ---------- */
.grid { display: grid; gap: 26px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-soft);
}
.card .idx { font-family: var(--font-mono); font-size: 13px; color: var(--orange-600); letter-spacing: .1em; }
.card h3 { margin: 14px 0 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* about / split */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.portrait-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); background: var(--paper-2); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -60px 80px -40px rgba(42,17,80,.25); }

.facts { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fact dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* big stats band */
.statband { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.bigstat { padding: 8px 0; }
.bigstat .v { font-family: var(--font-serif); font-size: clamp(54px, 7vw, 84px); line-height: .95; letter-spacing: -0.03em; color: var(--p-600); }
.bigstat .d { margin-top: 14px; color: var(--ink-soft); font-size: 16px; max-width: 30ch; }

/* topic list */
.topics { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 56px; }
.topic { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.topic .t-no { font-family: var(--font-mono); font-size: 13px; color: var(--orange-600); padding-top: 4px; }
.topic h4 { font-size: 19px; margin-bottom: 6px; }
.topic p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* partners */
.partners { display: flex; flex-wrap: wrap; gap: 14px; }
.partner {
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; display: inline-flex; align-items: center; gap: 10px;
}
.partner .sub { color: var(--muted); font-weight: 400; font-size: 13.5px; }

/* ---------- testimonial ---------- */
.tquote {
  background: linear-gradient(155deg, #2a1150 0%, #3a1768 55%, #57258f 100%);
  border-radius: 30px; padding: clamp(46px, 6vw, 84px); color: var(--cream);
  position: relative; overflow: hidden; box-shadow: var(--shadow-card);
}
.tquote .mark { font-family: var(--font-serif); font-size: 120px; line-height: .6; color: var(--p-400); opacity: .5; height: 50px; }
.tquote blockquote { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(24px, 3vw, 36px); line-height: 1.32; letter-spacing: -0.015em; color: #fff; max-width: 22ch; }
.tquote .tbody { font-family: var(--font-serif); font-size: clamp(19px,2vw,22px); line-height: 1.5; color: var(--cream); font-weight: 300; max-width: 60ch; margin-top: 26px; }
.tquote .credit-name a { color: var(--orange-200); border-bottom: 1px solid rgba(240,212,173,.5); }
.tcite { display: flex; align-items: center; gap: 16px; margin-top: 38px; padding-top: 28px; border-top: 1px solid rgba(243,233,221,.18); }
.tcite .who { line-height: 1.4; }
.tcite .who .credit-name { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: #fff; }
.tcite .who .role { font-size: 14.5px; color: var(--cream-dim); }
.tcite .org { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-200); }
.tquote .orbit-deco { position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border: 1px solid rgba(243,233,221,.12); border-radius: 50%; }
.tquote .orbit-deco::after { content:""; position:absolute; inset: 70px; border:1px solid rgba(243,233,221,.1); border-radius:50%; }

/* ---------- testimonial cards ---------- */
.tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 26px; }
.tcard { background: var(--card); border: 1.5px solid var(--orange); border-radius: var(--radius); padding: 32px 34px; box-shadow: var(--shadow-soft); }
.tcard .tc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tc-logo { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 3px solid var(--p-500); overflow: hidden; flex: none; box-shadow: var(--shadow-soft); }
.tc-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.tc-name { font-weight: 600; color: var(--p-700); font-size: 16.5px; line-height: 1.3; }
.tcard .tc-quote { color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin: 0; }
.tcard .tc-quote .qm { font-family: var(--font-serif); color: var(--orange); font-size: 30px; line-height: 0; position: relative; top: 8px; margin-right: 4px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.member { text-align: center; }
.avatar-disc {
  width: 100%; max-width: 200px; aspect-ratio: 1; margin: 0 auto 22px;
  border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 24px 50px -28px rgba(197,118,44,.7);
}
.avatar-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-disc.ring img { width: 92%; height: 92%; }
.member .m-name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.member .m-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin-top: 8px; }
.member .m-aff { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 30px;
  padding: clamp(44px, 5vw, 72px); box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-actions .row { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-line { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-soft); padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-line .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 92px; }

/* ---------- footer ---------- */
.footer { background: var(--p-950); color: var(--cream); padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(243,233,221,.14); }
.footer .wordmark { font-size: 30px; }
.footer-tag { color: var(--cream-dim); max-width: 34ch; margin-top: 16px; font-size: 15.5px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-200); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--cream); font-size: 15px; padding: 6px 0; opacity: .85; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: var(--cream-dim); font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 17px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .orbit.o3, .s3 { width: 380px; height: 380px; }
  .split { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .tcards { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .topics { grid-template-columns: 1fr; gap: 0; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 32px; gap: 6px; }
  .nav-links.open a { padding: 10px 0; font-size: 17px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .cols-2, .cols-3, .statband { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 14px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .tcite { flex-wrap: wrap; }
  .tcite .org { margin-left: 0; width: 100%; }
  .nav .nav-cta .btn-label { display: none; }
}
