/* ============================================================
   karabo.africa global styles
   Fonts are variable-weight woff2 subsets served locally.
   Section layouts carry their own scoped styles; this file owns
   the base, the Tiny-style pill navigation and the mobile menu.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/bricolage-vietnamese-9b870abf.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/bricolage-latin-ext-2186fff6.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/bricolage-latin-78692770.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/hanken-cyrillic-ext-85239cc8.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/hanken-vietnamese-70e1a681.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/hanken-latin-ext-c2a3301f.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/hanken-latin-62d0893d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  font-family: "Hanken Grotesk", sans-serif;
  color: #0E0E0E;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: #F2A51C; color: #0E0E0E; }

@keyframes kncue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(7px); opacity: 1; } }

#kn-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: #F2A51C; z-index: 300;
}

/* ============================================================
   Tiny-style floating pill navigation (desktop)
   ============================================================ */
.kn-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 70px;
  max-width: calc(100% - 2rem);
  padding: 8px 8px 8px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  backdrop-filter: blur(60px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 36px rgba(14, 14, 14, 0.07),
    0 4px 8px rgba(14, 14, 14, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.08);
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.kn-nav__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0E0E0E;
}
.kn-nav__brand img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; display: block;
}
.kn-nav__brand span {
  font: 700 16px/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.kn-nav__links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 12px;
}
.kn-nav__link {
  position: relative;
  font: 500 14px/1 "Hanken Grotesk", sans-serif;
  color: rgba(14, 14, 14, 0.75);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 10px 16px;
  transition: color .2s ease, background-color .2s ease;
}
.kn-nav__link:hover {
  color: #0E0E0E;
  background: rgba(14, 14, 14, 0.06);
}
.kn-nav__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid rgba(14, 14, 14, 0.08);
  box-shadow: 0 4px 12px rgba(14, 14, 14, 0.12);
  font: 500 14px/1 "Hanken Grotesk", sans-serif;
  color: #0E0E0E;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
}
.kn-nav__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(14, 14, 14, 0.18);
}

/* ---------- mobile: logo pill + round hamburger ---------- */
.kn-nav-mobile {
  display: none;
}
@media (max-width: 767px) {
  .kn-nav { display: none; }
  .kn-nav-mobile {
    display: flex;
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }
  .kn-nav-mobile__brand {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 20px 0 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(14, 14, 14, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: #0E0E0E;
  }
  .kn-nav-mobile__brand img {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block;
  }
  .kn-nav-mobile__brand span {
    font: 700 15px/1 "Bricolage Grotesque", sans-serif;
    letter-spacing: -0.01em;
  }
  .kn-nav-mobile__toggle {
    pointer-events: auto;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 8px 24px rgba(14, 14, 14, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  .kn-nav-mobile__toggle span {
    display: block; width: 22px; height: 2px; background: #0E0E0E;
    border-radius: 2px; position: relative;
  }
  .kn-nav-mobile__toggle span::before,
  .kn-nav-mobile__toggle span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px;
    background: #0E0E0E; border-radius: 2px;
  }
  .kn-nav-mobile__toggle span::before { top: -7px; }
  .kn-nav-mobile__toggle span::after { top: 7px; }
}

/* ---------- full-screen mobile menu ---------- */
.kn-menu {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(14, 14, 14, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.kn-menu.is-open { opacity: 1; pointer-events: auto; }
.kn-menu a {
  font: 800 clamp(30px, 8vw, 44px)/1.2 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
  padding: 6px 18px; border-radius: 16px;
}
.kn-menu a:active { color: #F2A51C; }
.kn-menu .kn-menu__cta {
  margin-top: 22px;
  font: 700 17px/1 "Hanken Grotesk", sans-serif;
  color: #0E0E0E; background: #F2A51C;
  border-radius: 9999px; padding: 18px 32px;
}
.kn-menu__close {
  position: absolute; top: 16px; right: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- hero portrait, masked into the dark ground ---------- */
/* Fade mask on every edge, in the style of madzonga.com's hero. */
.kn-hero-photo {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 60%;
  object-fit: cover;
  object-position: 22% 20%;
  z-index: 1;
  filter: brightness(0.9) saturate(0.95);
  -webkit-mask-image:
    linear-gradient(to left, black 62%, transparent 99%),
    linear-gradient(to bottom, transparent 0%, black 16%, black 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, black 62%, transparent 99%),
    linear-gradient(to bottom, transparent 0%, black 16%, black 80%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 860px) {
  .kn-hero-photo {
    width: 100%;
    opacity: 0.3;
    object-position: 25% 15%;
  }
}

/* ---------- rich body copy: <strong> pops against muted text ---------- */
.kn-rich-light strong { color: #0E0E0E; font-weight: 700; }
.kn-rich-dark strong { color: #FFFFFF; font-weight: 700; }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- small-screen niceties for section layouts ---------- */
@media (max-width: 860px) {
  .kn-listen { grid-template-columns: 1fr !important; }
}
