/* ==========================================================================
   base.css — reset, element defaults, typography, utilities
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 1rem);
}

@media (min-width: 1024px) {
  html { scroll-padding-top: calc(var(--header-h) + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-16);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h5); }

p { margin: 0 0 var(--space-16); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--color-brand-dark); }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-rule);
}

/* ---- Focus -------------------------------------------------------------- */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-16);
  z-index: 999;
  padding: var(--space-12) var(--space-20);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: 0 0 8px 8px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

/* ---- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 900px; }

.section { padding-block: var(--section-y); }
.section--pale { background: var(--color-surface-pale); }
.section--fade {
  background: linear-gradient(to bottom, var(--color-surface-pale), var(--color-white));
}
.section--tight { padding-block: clamp(2rem, 1rem + 2.8vw, 4rem); }

/* ---- Typographic helpers ------------------------------------------------ */
.eyebrow {
  display: block;
  margin-bottom: var(--space-16);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.84;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-navy);
}
.eyebrow--light { color: var(--color-white); }

.section__head {
  max-width: 1085px;
  margin-inline: auto;
  margin-bottom: var(--space-56);
  text-align: center;
}
.section__title { margin-bottom: var(--space-16); }
.section__lead {
  max-width: 1035px;
  margin-inline: auto;
  font-size: var(--fs-lead);
  line-height: 1.64;
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.64;
  color: var(--color-text-muted);
}

.text-center { text-align: center; }

/* ---- Screen-reader only ------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Reveal-on-scroll (progressive enhancement) ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- Print --------------------------------------------------------------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .to-top, .nav-toggle, .mobile-nav, .switch-card { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
