/* ============================================================
   MNGOMEZULU.CO.ZA — kasi night & gold
   Display: Fraunces · Body: system sans · Labels: mono
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #100e0b;
  --coal:  #17140f;
  --panel: #1c1812;
  --hair:  #2b251b;
  --ivory: #f4eee0;
  --stone: #a89f8d;
  --gold:  #d9a63d;
  --gold-deep: #9a6d1b;
  --ember: #b4691e;

  --display: 'Fraunces', 'Palatino', Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --w: min(1120px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 550; margin: 0; text-wrap: balance; }

.mono-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--w);
  margin: 0 auto;
  padding: 18px 0 14px;
  background: linear-gradient(var(--night) 75%, transparent);
}
.mark {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 650;
  color: var(--ivory);
}
.mark:hover { text-decoration: none; }
.mark-dot { color: var(--gold); }
.site-head nav { display: flex; gap: 22px; align-items: center; }
.site-head nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 8px 2px;
}
.site-head nav a:hover { color: var(--gold); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--gold) !important;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: var(--w);
  margin: 0 auto;
  padding: 56px 0 40px;
  overflow: visible;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 54ch;
  margin: 26px 0 0;
  font-size: 18px;
  color: var(--stone);
}
.hero-sub strong, .hero-sub a { color: var(--ivory); }
.hero-sub a { border-bottom: 1px solid var(--gold-deep); }
.hero-sub a:hover { color: var(--gold); text-decoration: none; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 999px;
}
.btn:hover { text-decoration: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8862c);
  color: #000;
  font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.1); }
.btn-ghost {
  border: 1px solid var(--hair);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold); }

.hero-portrait { margin: 0; position: relative; }
.hero-portrait img {
  display: block;
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(217, 166, 61, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}
.hero-portrait figcaption { margin-top: 12px; text-align: center; }

.hero-wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -18px;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(64px, 12vw, 160px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 166, 61, 0.16);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- proof ---------- */
.proof {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--coal);
  margin-top: 70px;
}
.proof-grid {
  width: var(--w);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-grid li { border-left: 1px solid var(--hair); }
.proof-grid li:first-child { border-left: none; }
.proof-grid a {
  display: block;
  padding: 30px 22px 26px;
  color: inherit;
  height: 100%;
}
.proof-grid a:hover { background: var(--panel); text-decoration: none; }
.proof-num {
  display: block;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 650;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof-label {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--stone);
  line-height: 1.5;
}
.proof-note {
  width: var(--w);
  margin: 0 auto;
  padding: 12px 0 14px;
  text-align: right;
}

/* ---------- sections ---------- */
section, main, a, .card { scroll-margin-top: 80px; }
.work, .story, .press, .lab, .contact {
  width: var(--w);
  margin: 0 auto;
  padding: 90px 0 20px;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 40px;
}
.sec-n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  vertical-align: super;
  letter-spacing: 0.1em;
  margin-right: 10px;
}

/* ---------- work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.card {
  background: var(--coal);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 30px 28px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 14px;
}
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { margin: 0 0 12px; color: var(--stone); font-size: 15.5px; }
.card p a { color: var(--ivory); border-bottom: 1px solid var(--gold-deep); }
.card p a:hover { color: var(--gold); text-decoration: none; }
.card-tags {
  font-family: var(--mono);
  font-size: 11.5px !important;
  letter-spacing: 0.04em;
  color: var(--stone);
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  margin-bottom: 0 !important;
}

/* ---------- story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.story-lede {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 450;
  color: var(--ivory);
  margin: 0;
  position: sticky;
  top: 100px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--hair);
}
.timeline li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 18px 0 18px 26px;
  position: relative;
  max-width: none;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.t-year {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 3px;
}
.t-body { color: var(--stone); font-size: 15.5px; }
.t-body em { color: var(--ivory); }

/* ---------- press ---------- */
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li { border-top: 1px solid var(--hair); max-width: none; }
.press-list li:last-child { border-bottom: 1px solid var(--hair); }
.press-list a {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px 6px;
  color: inherit;
}
.press-list a:hover { background: var(--coal); text-decoration: none; }
.press-src {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}
.press-line { color: var(--stone); font-size: 15.5px; }

/* ---------- lab ---------- */
.lab-lede { color: var(--stone); margin: -22px 0 30px; }
.lab-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lab-grid li {
  border: 1px dashed var(--hair);
  border-radius: 8px;
  padding: 20px;
  max-width: none;
}
.lab-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 550;
  margin-bottom: 6px;
}
.lab-grid span { color: var(--stone); font-size: 14px; }

/* ---------- ethos ---------- */
.ethos {
  margin-top: 100px;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(217,166,61,0.08), transparent),
    var(--coal);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-align: center;
}
.ethos-crown { width: 88px; opacity: 0.95; margin-bottom: 8px; }
.ethos blockquote { margin: 0 auto; }
.ethos blockquote p {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.25;
  margin: 0 auto 16px;
  max-width: 21ch;
  text-wrap: balance;
}
.ethos cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.ethos-sub { color: var(--stone); font-size: 14px; margin: 22px auto 0; }

/* ---------- contact ---------- */
.contact { padding-bottom: 70px; }
.contact-lede { color: var(--stone); margin: -22px 0 18px; }
.contact-mail {
  font-family: var(--display);
  font-size: clamp(18px, 5.5vw, 34px);
  color: var(--ivory);
  border-bottom: 2px solid var(--gold);
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--gold); text-decoration: none; }
.social-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
}
.social-row a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 9px 16px;
}
.social-row a:hover { color: var(--gold); border-color: var(--gold-deep); text-decoration: none; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--hair);
  padding: 26px 0 34px;
  width: var(--w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--stone);
  font-size: 13px;
}
.site-foot p { margin: 0; }
.foot-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { max-width: 340px; margin: 0 auto; }
  .hero-wordmark { display: none; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid li:nth-child(3) { border-left: none; }
  .proof-grid li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .work-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-lede { position: static; }
  .press-list a { grid-template-columns: 1fr; gap: 6px; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-head nav { gap: 8px; }
  .site-head nav a { font-size: 10px; letter-spacing: 0.05em; padding: 8px 1px; }
  .nav-cta { padding: 5px 10px !important; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid li { border-left: none; border-top: 1px solid var(--hair); }
  .proof-grid li:first-child { border-top: none; }
  .lab-grid { grid-template-columns: 1fr; }
}
