/* === RESET === */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* === TOKENS === */
:root {
  --bg:           #F7F5F0;
  --surface:      #FFFFFF;
  --surface-alt:  #F0EDE6;
  --ink:          #1A1A18;
  --ink-soft:     #4A4A47;
  --ink-muted:    #8A8783;
  --border:       #E5E1D8;
  --accent:       #F2C94C;
  --accent-deep:  #B88416;
  --accent-soft:  #FCEBA5;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --fs-eyebrow: 12px;
  --fs-body:    17px;
  --fs-lead:    20px;
  --fs-h3:      clamp(22px, 2.2vw, 28px);
  --fs-h2:      clamp(32px, 4.4vw, 56px);
  --fs-h1:      clamp(44px, 7.5vw, 96px);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-sm: 0 1px 2px rgba(26,26,24,0.04), 0 1px 0 rgba(26,26,24,0.02);
  --shadow-md: 0 6px 24px -8px rgba(26,26,24,0.08), 0 2px 6px -2px rgba(26,26,24,0.04);
}

/* === BASE === */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 14px;
}

/* === HEADER / NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 16px; }
.brand-name strong { font-weight: 700; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-pill);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--accent-deep); color: #fff; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
  }
  .nav-toggle { display: inline-flex; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--ink);
}
.btn-ink:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* === HERO (DARK) === */
.hero {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(64px, 9vw, 128px);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(242,201,76,0.16), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--bg);
}
.hero h1 .hl { color: var(--accent); }
.hero-lede {
  margin-top: 32px;
  max-width: 50ch;
  font-size: var(--fs-lead);
  color: rgba(247,245,240,0.72);
  line-height: 1.5;
}
.hero .btn-ghost {
  color: var(--bg);
  border-color: rgba(247,245,240,0.3);
}
.hero .btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Compact hero variant for inner pages */
.hero--compact {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero--compact .hero-grid {
  grid-template-columns: 1fr;
  max-width: 820px;
  text-align: left;
}
.hero--compact h1 {
  font-size: clamp(36px, 6vw, 72px);
}

/* === FACT STRIP === */
.factstrip {
  background: var(--accent);
  color: var(--ink);
}
.factstrip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 800px) {
  .factstrip-row { grid-template-columns: repeat(2, 1fr); }
}
.factstrip-cell {
  padding: 36px var(--gutter);
  position: relative;
}
.factstrip-cell + .factstrip-cell::before {
  content: '';
  position: absolute;
  top: 36px; bottom: 36px; left: 0;
  width: 1px;
  background: rgba(26,26,24,0.18);
}
@media (max-width: 800px) {
  .factstrip-cell:nth-child(3)::before { display: none; }
  .factstrip-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(26,26,24,0.18); }
}
.factstrip-cell .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26,26,24,0.7);
  margin-bottom: 10px;
  font-weight: 700;
}
.factstrip-cell .value {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
}

/* === SECTION SCAFFOLDING === */
section { padding-block: clamp(72px, 9vw, 128px); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-title {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}
.section-title .hl {
  background: linear-gradient(180deg, transparent 62%, var(--accent) 62%);
  padding: 0 4px;
}
.section-intro {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
}

/* === ABOUT === */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.about-pillar {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
}
.about-pillar .num {
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-weight: 800;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.about-pillar p {
  color: var(--ink-soft);
  max-width: 48ch;
}
.about-pillar p strong {
  color: var(--ink);
  font-weight: 700;
}
.service-areas {
  margin-top: 0;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service-areas .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.service-areas .areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-areas .areas li {
  padding: 8px 14px;
  background: var(--surface-alt);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  color: var(--ink);
}

/* === MISSION (DARK) === */
.mission {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(242,201,76,0.14), transparent 65%);
  pointer-events: none;
}
.mission .container { position: relative; z-index: 1; }
.mission .eyebrow { color: var(--accent); }
.mission .section-title { color: var(--bg); }
.mission-inner {
  max-width: 1000px;
  margin-inline: auto;
}
.mission .big-statement {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.mission-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  color: rgba(247,245,240,0.72);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
@media (max-width: 800px) {
  .mission-body { grid-template-columns: 1fr; }
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service {
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service .num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  font-weight: 700;
}
.service h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.service p {
  color: var(--ink-soft);
  max-width: 52ch;
}

/* === BENEFITS / IMPACT (DARK) === */
.benefits {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(242,201,76,0.18), transparent 65%);
  pointer-events: none;
}
.benefits .container { position: relative; z-index: 1; }
.benefits .eyebrow { color: var(--accent); }
.benefits .section-title { color: var(--bg); }
.benefits .section-intro { color: rgba(247,245,240,0.72); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px);
}
@media (max-width: 900px) {
  .impact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.impact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(247,245,240,0.14);
  transition: border-color .3s var(--ease);
}
.impact:hover { border-top-color: var(--accent); }
.impact .num {
  font-family: 'Geist', sans-serif;
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--accent);
  margin-bottom: 8px;
}
.impact h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bg);
}
.impact p {
  color: rgba(247,245,240,0.7);
  font-size: 15.5px;
  line-height: 1.6;
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(64px, 8vw, 112px);
}
.cta-banner .container {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 800px) {
  .cta-banner .container { grid-template-columns: 1fr; }
}
.cta-banner h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
}
.cta-banner p {
  margin-top: 16px;
  max-width: 50ch;
  font-size: var(--fs-lead);
  color: rgba(26,26,24,0.78);
}
.cta-banner .btn-ink:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

/* === CONTACT === */
.contact { background: var(--bg); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 800px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  padding: clamp(28px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.contact-card .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.contact-card .label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
}
.contact-card .value {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.contact-card .value a { display: inline-block; }
.contact-card .value a:hover { color: var(--accent-deep); }
.contact-card .sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 3.5vw, 44px);
}
.form-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.form-card .form-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.field label .req { color: var(--accent-deep); margin-left: 2px; }
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--ink);
  transition: border-color .2s var(--ease);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 13px;
  color: var(--ink-muted);
}

/* === PARTNERS === */
.partners {
  padding-block: clamp(80px, 10vw, 144px);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
.partners-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  text-align: center;
}
.partners .label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.partners h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
  color: var(--ink);
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  flex-wrap: wrap;
  padding-top: 8px;
}
.partners img {
  height: clamp(120px, 16vw, 200px);
  width: auto;
  transition: transform .3s var(--ease);
}
.partners img:hover { transform: scale(1.03); }

/* === FOOTER === */
footer.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(56px, 7vw, 96px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .brand-mark img {
  filter: invert(1);
}
.footer-brand p {
  margin-top: 18px;
  color: rgba(247,245,240,0.7);
  max-width: 36ch;
  font-size: 15px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a,
.footer-col p {
  color: rgba(247,245,240,0.85);
  font-size: 15px;
}
.footer-col ul a:hover { color: var(--accent); }

.footer-meta {
  border-top: 1px solid rgba(247,245,240,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(247,245,240,0.55);
}
.footer-meta .legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-meta a:hover { color: var(--accent); }

/* === RESOURCES (DARK) === */
.resources-main {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.resources-main::before {
  content: '';
  position: absolute;
  top: -200px; right: -180px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(242,201,76,0.14), transparent 65%);
  pointer-events: none;
}
.resources-main .container { position: relative; z-index: 1; }

.resource-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.resource-cat {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.resource-cat:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.resource-cat .count {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(242,201,76,0.14);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.resource-cat:hover .count { background: var(--ink); color: var(--accent); }

.resource-section {
  padding-top: clamp(56px, 7vw, 96px);
  scroll-margin-top: 100px;
}
.resource-section + .resource-section {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.resource-section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 3vw, 44px);
  flex-wrap: wrap;
}
.resource-section-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--bg);
}
.resource-section-head .count-pill {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.resource-section-head .blurb {
  width: 100%;
  font-size: var(--fs-lead);
  color: rgba(247,245,240,0.7);
  line-height: 1.55;
  max-width: 60ch;
  margin-top: 4px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 24px);
}
@media (max-width: 800px) {
  .resource-grid { grid-template-columns: 1fr; }
}
.resource {
  padding: clamp(28px, 3vw, 36px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.resource::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  transition: height .35s var(--ease);
}
.resource:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(242,201,76,0.4) inset;
}
.resource:hover::before { height: 100%; }
.resource h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--bg);
}
.resource .desc {
  font-size: 15.5px;
  color: rgba(247,245,240,0.78);
  line-height: 1.6;
}
.resource .meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.resource .meta-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--bg);
}
.resource .meta-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  width: 64px;
}
.resource .meta-value {
  word-break: break-word;
  font-weight: 500;
  color: rgba(247,245,240,0.92);
}
.resource .meta-value a { color: var(--bg); }
.resource .meta-value a:hover { color: var(--accent); }

.resources-note {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px clamp(24px, 3vw, 36px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 15px;
  color: rgba(247,245,240,0.78);
  line-height: 1.6;
}
.resources-note strong { color: var(--bg); font-weight: 800; }
.resources-note a { color: var(--accent); font-weight: 600; }
.resources-note a:hover { color: var(--bg); }

.references-cta {
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(28px, 3vw, 36px);
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.references-cta .text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}
.references-cta .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
}
.references-cta h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

/* === REFERENCES PAGE === */
.references-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.reference {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.5vw, 28px);
  padding: clamp(20px, 2.5vw, 28px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
  transition: background .25s var(--ease);
}
.reference:hover {
  background: rgba(255,255,255,0.02);
}
.reference .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.reference .body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.reference .title {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.reference .url {
  font-size: 14px;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.5;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reference .url:hover { color: var(--bg); }
.reference .url::after {
  content: '↗';
  font-size: 13px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
