/* ═══════════════════════════════════════════════════════════════════════
   BASE — reset · typography · layout utilities · buttons · animations
═══════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  background: var(--off-white);
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  background: var(--off-white);
  color: var(--near-black);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography helpers ─────────────────────────────────────────────── */
.bricolage {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}

.micro-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* Shared section headings */
.section-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--near-black);
}

.section-sub {
  font-size: 17px;
  color: var(--mid-gray);
  max-width: 480px;
  line-height: 1.6;
}

/* ─── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.82; }

.btn-primary {
  background: var(--near-black);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--near-black);
  border: 2px solid var(--near-black);
}

.btn-inverted {
  background: var(--white);
  color: var(--near-black);
}

.btn-sm {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

/* ─── Scroll animations ──────────────────────────────────────────────── */
/* Only hide elements when JS has confirmed it's running.
   Without the .js-anim class (added inline before first paint),
   all elements remain visible — no flash, no blank screenshots. */
.js-anim .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-anim .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.js-anim .fade-in.delay-1 { transition-delay: 0.1s; }
.js-anim .fade-in.delay-2 { transition-delay: 0.2s; }
.js-anim .fade-in.delay-3 { transition-delay: 0.3s; }
.js-anim .fade-in.delay-4 { transition-delay: 0.4s; }
.js-anim .fade-in.delay-5 { transition-delay: 0.5s; }
