/* ============================================================
   FONTS — one place to control typography for the whole site.

   HOW TO SWITCH: change data-font on the <html> tag in index.html
     <html lang="en" data-font="jakarta">

   Presets:
     jakarta  — Plus Jakarta Sans headings + Inter body   (default, professional)
     manrope  — Manrope headings + Inter body             (clean, corporate)
     inter    — Inter Tight headings + Inter body         (neutral, enterprise)
     grotesk  — Space Grotesk everywhere                  (original reference look)

   Every preset's font families are already requested in index.html;
   the browser only downloads the files a page actually uses.
   ============================================================ */

:root,
html[data-font="jakarta"] {
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-tracking: -0.022em;
}

html[data-font="manrope"] {
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-tracking: -0.025em;
}

html[data-font="inter"] {
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-tracking: -0.028em;
}

html[data-font="grotesk"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --display-tracking: -0.045em;
}

/* body copy, buttons, nav, cards … everything that uses var(--font) */
:root { --font: var(--font-body); }
body { font-family: var(--font-body); }

/* headlines, card titles and big numbers use the display face */
h1, h2, h3,
.section-title, .hero__title, .creds__title, .consult__title,
.footer__cta-title, .footer__wordmark, .preloader__brand,
.cs-metrics strong, .cb__mvp-num, .team__facts b, .v-up__count strong,
.stage-card__big, .cs-count b {
  font-family: var(--font-display);
}

.section-title, .hero__title, .creds__title, .consult__title, .footer__cta-title {
  letter-spacing: var(--display-tracking);
}

/* breathing room between letters in card titles and big numbers */
html[data-font] h3,
html[data-font] .cs-metrics strong, html[data-font] .cb__mvp-num, html[data-font] .stage-card__big,
html[data-font] .team__facts b, html[data-font] .v-up__count strong, html[data-font] .cs-count b {
  letter-spacing: calc(var(--display-tracking) * 0.6);
}
html[data-font="grotesk"] h3 { letter-spacing: -0.02em; }
