/* =========================================================
   BASE — reset, typography, base element styling
   ========================================================= */

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

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

html[lang="hi"] body { font-family: var(--font-body-hi); }
html[lang="en"] body { font-family: var(--font-body-en); }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body-en);
  font-size: var(--fs-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise + vignette so the near-black reads as material, not a flat hex */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(193, 39, 45, 0.05), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(34, 85, 164, 0.05), transparent 45%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display-en);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-white);
}
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3,
html[lang="hi"] h4, html[lang="hi"] h5 {
  font-family: var(--font-display-hi);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* Focus visibility — never remove without replacing */
:focus-visible {
  outline: 2px solid var(--color-saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

.numeral, .stat-figure, [data-numeral] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding, var(--sp-6));
}

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-8);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-saffron);
  display: inline-block;
}

.section-title {
  font-size: var(--fs-2xl);
}

.section-sub {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 56ch;
  margin-top: var(--sp-2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

@media (max-width: 720px) {
  .section-title { font-size: var(--fs-xl); }
  .section { padding-block: var(--sp-7); }
}

/* ── Scroll to top ────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-surface-border-strong);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-base), transform var(--dur-base), border-color var(--dur-fast);
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { border-color: var(--color-saffron); color: var(--color-saffron); }
