/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.15; letter-spacing: -0.025em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 700; }
p { color: var(--muted); line-height: 1.75; }
strong { color: var(--text); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── LAYOUT UTILITIES ───────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-teal { color: var(--teal-700); }
.text-blue { color: var(--blue); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section { padding: 96px 0; }
.section-sm { padding: 24px 0 28px; }
.section-tight { padding: 16px 0; }

/* Page-header context: every inner page uses .section-sm right after breadcrumbs
   as its title block. Keep it tight so pages read as content-first, not a title splash. */
.section-sm h1 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-top: 0.5rem; }
.section-sm .lede { margin-top: 0.5rem !important; font-size: 1rem; }
.section-sm .eyebrow { margin-bottom: 0.25rem; }
.section-white { background: var(--surface); }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.75; }

/* ─── FADE-UP MOTION (respects reduced motion) ──────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 18px 0 20px; }
}
