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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-black);
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 2.8vw + 1rem, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-black);
  color: var(--color-text-on-dark);
}

.section-dark h2, .section-dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grouped cards/items within a grid — each sibling
   fires slightly after the last, capped at 6 columns since no grid on this
   site has more. */
.grid-3 > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid-3 > .reveal:nth-child(2) { transition-delay: 80ms; }
.grid-3 > .reveal:nth-child(3) { transition-delay: 160ms; }
.grid-3 > .reveal:nth-child(4) { transition-delay: 240ms; }
.grid-3 > .reveal:nth-child(5) { transition-delay: 320ms; }
.grid-3 > .reveal:nth-child(6) { transition-delay: 400ms; }
