/* ===================================================
   BASE — variables, reset, typography, utilities
   =================================================== */
:root {
  /* Palette — Route A: Academic Light */
  --ink:    #123B74;
  --royal:  #1E5CAA;
  --sun:    #F2B827;
  --amber:  #D99A11;
  --ivory:  #F8F5EC;
  --paper:  #FCFBF7;
  --sky:    #EAF2FB;
  --slate:  #556270;
  --deep:   #1E2833;
  --line:   #E6DFC8;
  --line-2: #D9E4F2;

  /* Typography stacks */
  --h-sora:  'Sora', system-ui, sans-serif;
  --b-sans:  'Source Sans 3', system-ui, sans-serif;
  --a-serif: 'Cormorant Garamond', Georgia, serif;

  /* Border radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(18,59,116,0.06), 0 2px 6px rgba(18,59,116,0.04);
  --shadow-md: 0 4px 12px rgba(18,59,116,0.08), 0 12px 32px rgba(18,59,116,0.06);
  --shadow-lg: 0 12px 28px rgba(18,59,116,0.10), 0 28px 60px rgba(18,59,116,0.10);

  /* Easing */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--b-sans);
  color: var(--deep);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--h-sora);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }

/* ---- Eyebrow label ---- */
.eyebrow {
  font-family: var(--h-sora);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--royal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

/* ---- Layout ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-intro { max-width: 680px; margin-bottom: 56px; }
.section-intro h2 { margin-top: 14px; }
.section-intro p { color: var(--slate); font-size: 1.1rem; margin-top: 16px; }

/* ---- Background utilities ---- */
.sky-bg   { background: var(--sky); }
.ivory-bg { background: var(--ivory); }
.ink-bg {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.ink-bg h1, .ink-bg h2, .ink-bg h3 { color: var(--paper); }

/* ---- Chips & pills ---- */
.pill-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  font-family: var(--h-sora);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--royal);
}
.pill.gold { background: #FCEFC4; color: var(--amber); }

.chip-sm {
  font-family: var(--h-sora);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--slate);
  border: 1px solid var(--line);
}

/* ---- Scroll-reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Accessibility ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
