/* ===================================================================
   Ketso Kaelo Consulting — refined editorial-luxury design system
   Ink · bone · bronze-gold  |  Fraunces + Hanken Grotesk
   =================================================================== */

:root {
  /* palette */
  --ink:        #14110F;   /* warm near-black (echoes founder portrait) */
  --ink-2:      #1E1915;
  --espresso:   #2A231D;
  --bone:       #F4EEE3;   /* warm off-white */
  --cream:      #FBF7EF;
  --paper:      #FFFDF9;
  --gold:       #B5894E;   /* muted bronze-gold */
  --gold-bright:#D3A968;
  --gold-soft:  #E7D3AF;
  --clay:       #8A4B34;   /* secondary warm accent */
  --stone:      #6E655B;   /* muted taupe text */
  --stone-lt:   #9A9086;
  --line:       rgba(20,17,15,.12);
  --line-lt:    rgba(244,238,227,.14);

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink); }

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

/* ---------- shared type ---------- */
.eyebrow, .kicker {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-bright);
}
.kicker { display: inline-block; margin-bottom: 1.4rem; color: var(--clay); }
.kicker.light { color: var(--gold-bright); }

.section-title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; padding: .95rem 1.7rem; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent; transition: all .35s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(181,137,78,.7); }
.btn-ghost { border-color: var(--line-lt); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-nav { background: var(--gold); color: var(--ink); padding: .65rem 1.3rem; }
.btn-nav:hover { background: var(--gold-bright); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20,17,15,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-lt);
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.monogram {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--serif); font-weight: 500; font-size: 1rem;
  color: var(--gold-bright); letter-spacing: .02em; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-lt); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--bone); position: relative; opacity: .82; transition: opacity .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; position: relative; }
.nav-toggle span { position: absolute; left: 5px; right: 5px; height: 1.5px; background: var(--bone); transition: .3s; }
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { bottom: 12px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { bottom: 16px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 8rem var(--gutter) 4rem;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(181,137,78,.14), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -8vw; top: -12vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(211,169,104,.18), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.hero::before {
  /* faint decorative line-frame */
  content: ""; position: absolute; inset: 5.5rem var(--gutter) 2rem;
  border: 1px solid var(--line-lt); border-radius: 4px; pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.eyebrow { display: block; margin-bottom: 1.6rem; }
.hero-title {
  font-family: var(--serif); font-weight: 320;
  font-size: clamp(2.9rem, 8.5vw, 6.6rem); line-height: .98; letter-spacing: -.025em;
  font-optical-sizing: auto; max-width: 15ch;
}
.hero-title span { display: block; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-lead {
  margin-top: 1.8rem; max-width: 52ch; font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: rgba(244,238,227,.78); font-weight: 300;
}
.hero-lead b { color: var(--gold-bright); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta { display: flex; align-items: center; gap: 2rem; margin-top: 3.4rem; flex-wrap: wrap; }
.hero-meta > div:not(.divider) { display: flex; flex-direction: column; gap: .1rem; }
.hero-meta .num { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-bright); font-weight: 400; }
.hero-meta .lbl { font-size: .74rem; color: var(--stone-lt); letter-spacing: .04em; max-width: 16ch; }
.hero-meta .divider { width: 1px; height: 40px; background: var(--line-lt); }

.scroll-hint { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); }
.scroll-hint span { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.4s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- SECTIONS (light) ---------- */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 40ch; margin-bottom: 3.5rem; }

.about, .values, .services, .sectors, .leadership, .contact {
  background: transparent;
}
/* light-panel sections wrapper via body regions */
.about { background: linear-gradient(180deg, var(--cream), var(--bone)); color: var(--ink); max-width: none; }
.values { background: var(--ink-2); }
.services { background: var(--bone); color: var(--ink); max-width: none; }
.sectors { background: var(--ink); }
.leadership { background: linear-gradient(180deg, var(--ink-2), var(--ink)); max-width: none; }
.contact { background: var(--cream); color: var(--ink); max-width: none; }

/* re-center inner content for full-bleed sections */
.about > *, .services > *, .leadership > *, .contact > *, .sectors > *, .values > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.about .kicker, .services .kicker, .contact .kicker { color: var(--clay); }
.about .section-title em, .services .section-title em, .contact .section-title em { color: var(--clay); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.lead-para { font-family: var(--serif); font-weight: 340; font-size: clamp(1.3rem,2.4vw,1.75rem); line-height: 1.4; color: var(--espresso); }
.lead-para em { font-style: italic; color: var(--clay); }
.about-grid > p:not(.lead-para) { color: var(--stone); font-size: 1.02rem; padding-top: .4rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.mv-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 2.2rem 2rem; position: relative; overflow: hidden;
}
.mv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.mv-tag { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--clay); display: block; margin-bottom: .8rem; }
.mv-card p { color: var(--espresso); font-size: 1.05rem; }

/* VALUES */
.values .section-title, .values .kicker { }
.values .kicker { color: var(--gold-bright); }
.values-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 0; border-top: 1px solid var(--line-lt); }
.values-list li { padding: 2.2rem 1.6rem 2.2rem 0; border-bottom: 1px solid var(--line-lt); position: relative; }
.v-num { font-family: var(--serif); font-size: .85rem; color: var(--gold); letter-spacing: .1em; }
.values-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: .5rem 0 .5rem; }
.values-list p { color: var(--stone-lt); font-size: .96rem; max-width: 26ch; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.3rem; }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 2rem 1.8rem; transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, border-color .4s;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -28px rgba(20,17,15,.4); border-color: var(--gold-soft); }
.svc-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--ink), var(--espresso)); color: var(--gold-bright);
  font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1.2rem;
}
.svc h3 { font-family: var(--serif); font-weight: 460; font-size: 1.25rem; margin-bottom: .5rem; color: var(--ink); }
.svc p { color: var(--stone); font-size: .96rem; }

.compliance-band {
  margin-top: 2.6rem; background: linear-gradient(135deg, var(--ink), var(--espresso));
  color: var(--bone); border-radius: 18px; padding: clamp(2rem,4vw,3.2rem);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center;
  position: relative; overflow: hidden;
}
.compliance-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(211,169,104,.16), transparent 65%); }
.compliance-band h3 { font-family: var(--serif); font-weight: 360; font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.15; margin-top: .8rem; }
.compliance-band p { color: rgba(244,238,227,.8); position: relative; }

/* SECTORS */
.sector-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; }
.sector-tags li {
  border: 1px solid var(--line-lt); border-radius: 100px; padding: .8rem 1.5rem;
  font-family: var(--serif); font-size: clamp(1rem,1.8vw,1.35rem); font-weight: 340;
  color: var(--bone); transition: all .35s; cursor: default;
}
.sector-tags li:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(181,137,78,.08); }

/* LEADERSHIP */
.leader-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.leader-photo { position: relative; }
.leader-photo img {
  width: 100%; border-radius: 16px; filter: grayscale(.15) contrast(1.03);
  border: 1px solid var(--line-lt);
}
.leader-photo::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--gold);
  border-radius: 16px; z-index: -1;
}
.photo-badge {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(20,17,15,.72); backdrop-filter: blur(8px);
  border: 1px solid var(--line-lt); border-radius: 10px; padding: .7rem 1rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); text-align: center;
}
.leader-body p { color: rgba(244,238,227,.8); margin-top: 1.2rem; font-weight: 300; font-size: 1.05rem; }
.leader-body p strong { color: var(--gold-bright); font-weight: 500; }
.leader-body p em { color: var(--gold); font-style: italic; }
.creds { margin-top: 2rem; border-top: 1px solid var(--line-lt); padding-top: 1.6rem; }
.creds h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1rem; font-weight: 600; }
.creds ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.creds li { position: relative; padding-left: 1.6rem; color: var(--bone); font-size: 1rem; }
.creds li::before { content: "§"; position: absolute; left: 0; color: var(--gold); font-family: var(--serif); }

/* B-BBEE */
.bbbee { background: radial-gradient(120% 90% at 50% 0%, rgba(181,137,78,.16), transparent 60%), var(--espresso); }
.bbbee-inner { max-width: 60ch; margin: 0 auto; text-align: center; }
.bbbee h2 { font-family: var(--serif); font-weight: 340; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.12; margin: 1rem 0; letter-spacing: -.01em; }
.bbbee h2 em { font-style: italic; color: var(--gold-bright); }
.bbbee p { color: rgba(244,238,227,.78); font-weight: 300; }
.bbbee-stats { display: flex; justify-content: center; gap: clamp(1.5rem,5vw,4rem); margin-top: 2.6rem; flex-wrap: wrap; }
.bbbee-stats > div { display: flex; flex-direction: column; gap: .3rem; }
.bbbee-stats .num { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-bright); }
.bbbee-stats .lbl { font-size: .78rem; color: var(--stone-lt); letter-spacing: .04em; max-width: 18ch; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.contact-lead p { color: var(--stone); margin-top: 1.2rem; font-size: 1.08rem; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .5rem;
  transition: all .35s; min-height: 118px; justify-content: center;
}
a.c-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px -24px rgba(20,17,15,.4); }
.c-lbl { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.c-val { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); line-height: 1.35; }

/* FOOTER */
.footer { background: var(--ink); border-top: 1px solid var(--line-lt); padding: 3rem var(--gutter); }
.footer-brand { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 1.2rem; }
.footer-brand > div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { font-family: var(--serif); font-weight: 460; font-size: 1.05rem; }
.footer-brand span { font-size: .82rem; color: var(--stone-lt); font-style: italic; }
.footer-legal { text-align: center; font-size: .78rem; color: var(--stone); letter-spacing: .02em; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 1.4rem; position: fixed;
    top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    background: var(--ink-2); padding: 6rem 2rem; border-left: 1px solid var(--line-lt);
    z-index: 90; box-shadow: -20px 0 60px -20px rgba(0,0,0,.6);
  }
  .nav.open .nav-links a { font-size: 1.2rem; }
  .about-grid, .mv-grid, .leader-grid, .contact-grid, .contact-cards, .compliance-band { grid-template-columns: 1fr; }
  .leader-photo { max-width: 380px; margin: 0 auto 1rem; }
  .hero::before { inset: 5rem 1rem 1.5rem; }
}
@media (max-width: 480px) {
  .hero-meta { gap: 1.2rem; }
  .hero-meta .divider { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
}
