/* ───────── NVMAA — shared styles ───────── */
:root {
  --nvmaa-blue: #2547D0;
  --nvmaa-blue-deep: #1A2F8F;
  --nvmaa-ink: #0A0E27;
  --nvmaa-green: #4CAF50;
  --nvmaa-green-deep: #2E7D32;
  --nvmaa-fog: #F4F6FB;
}

html { scroll-behavior: smooth; }

/* ───────── Keyboard focus ───────── */
:focus-visible {
  outline: 3px solid var(--nvmaa-green);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Don't show the ring for mouse/touch clicks, only keyboard */
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--nvmaa-ink);
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

.font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ───────── Eyebrow / utility ───────── */
.eyebrow {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ───────── Nav ───────── */
.site-nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block: 1.25rem;
}
.site-nav.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 1px 0 rgba(10,14,39,.08), 0 10px 30px -20px rgba(10,14,39,.25);
  backdrop-filter: blur(8px);
  padding-block: .75rem;
}
.site-nav .nav-link {
  color: rgba(255,255,255,.92);
  font-weight: 500;
  position: relative;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--nvmaa-green);
  transition: width .25s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.is-active::after { width: 100%; }
.site-nav.is-scrolled .nav-link { color: var(--nvmaa-ink); }
.site-nav.is-scrolled a span { color: var(--nvmaa-ink); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh; /* avoids the resize jump from mobile browser chrome */
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero--center {
  align-items: center;
  text-align: center;
}
.hero--center .hero__content > * {
  margin-left: auto;
  margin-right: auto;
}
.hero--center .hero__content .flex-wrap {
  justify-content: center;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center bottom;
  transform: scale(1.04);
  animation: heroSettle 1.6s ease forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,39,.35) 0%, rgba(10,14,39,.15) 35%, rgba(10,14,39,.85) 100%);
}
.hero__content { position: relative; z-index: 2; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: #1B5E20;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(27,94,32,.7);
}
.btn-primary:hover { background: #0F3D14; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: #fff; color: var(--nvmaa-ink); }
.btn-dark {
  background: var(--nvmaa-ink); color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-outline-dark {
  background: transparent; color: var(--nvmaa-ink); border-color: var(--nvmaa-ink);
}
.btn-outline-dark:hover { background: var(--nvmaa-ink); color: #fff; }

/* ───────── Section bleed ───────── */
.section-bleed--blue { background: var(--nvmaa-blue); color: #fff; }
.section-bleed--green { background: var(--nvmaa-green); color: #fff; }
.section-bleed--ink { background: var(--nvmaa-ink); color: #fff; }
.section-bleed--fog { background: var(--nvmaa-fog); }

/* ───────── Display headlines ───────── */
.display-xl { font-size: clamp(2.6rem, 6.8vw, 6rem); line-height: 1; font-weight: 700; }
.display-lg { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.05; font-weight: 700; }
.display-md { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; font-weight: 700; }

/* ───────── Cards ───────── */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 30px -16px rgba(10,14,39,.18);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(10,14,39,.06);
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -28px rgba(10,14,39,.35);
}

/* ───────── Stats ───────── */
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--nvmaa-green);
  line-height: 1;
}

/* ───────── Reveal-on-scroll ───────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
/* If JavaScript is unavailable, never hide content behind the reveal. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Founder bio card ───────── */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .founder { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .founder--right { grid-template-columns: 7fr 5fr; }
  .founder--right .founder__photo { order: 2; }
}
.founder__photo {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--nvmaa-blue);
  box-shadow: 0 24px 60px -28px rgba(10,14,39,.4);
}
.founder__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  display: block;
}

/* ───────── Footer ───────── */
.site-footer {
  background: var(--nvmaa-ink);
  color: rgba(255,255,255,.85);
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--nvmaa-green); }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  transition: background-color .2s ease, transform .15s ease;
}
.social-icon:hover { background: var(--nvmaa-green); transform: translateY(-2px); }

/* ───────── Mobile nav drawer ───────── */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--nvmaa-ink);
  z-index: 60;
  display: flex; flex-direction: column;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer a {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 768px) {
  .mobile-drawer { display: none !important; }
}

/* ───────── Decorative scroll cue ───────── */
.scroll-cue {
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px; position: relative;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; background: #fff; border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 14px); opacity: .2; }
}

/* ───────── In-page sub-nav (sticky pills) ───────── */
.subnav {
  position: sticky;
  top: 4.5rem;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,14,39,.08);
}
.subnav__inner {
  display: flex; align-items: center; gap: .5rem;
  padding-block: .9rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  color: var(--nvmaa-ink);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.subnav a:hover { background: var(--nvmaa-fog); }
.subnav a.is-active { background: var(--nvmaa-ink); color: #fff; }

/* ───────── Award list ───────── */
.award-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .65rem;
}
.award-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .98rem;
}
.award-list li::before {
  content: ""; flex-shrink: 0;
  width: 8px; height: 8px; margin-top: .55rem;
  background: var(--nvmaa-green);
  border-radius: 50%;
}

/* ───────── Project card ───────── */
.project {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10,14,39,.08);
  box-shadow: 0 4px 30px -16px rgba(10,14,39,.18);
}
.project__head {
  padding: 1.75rem 2rem;
  background: var(--nvmaa-blue);
  color: #fff;
}
.project__head.is-deep { background: var(--nvmaa-blue-deep); }
.project__head.is-ink { background: var(--nvmaa-ink); }
.project__body {
  padding: 2rem;
}
.project__body p + p { margin-top: 1rem; }
.project__awards {
  padding: 1.5rem 2rem;
  background: var(--nvmaa-fog);
  border-top: 1px solid rgba(10,14,39,.06);
}

/* ───────── Outreach card ───────── */
.outreach-card {
  border-radius: 22px;
  background: #fff;
  padding: 2rem;
  border: 1px solid rgba(10,14,39,.08);
  box-shadow: 0 4px 30px -16px rgba(10,14,39,.18);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.outreach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(10,14,39,.35);
}
.outreach-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--nvmaa-blue) 0%, var(--nvmaa-blue-deep) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.outreach-card.is-green .outreach-card__icon {
  background: linear-gradient(135deg, var(--nvmaa-green) 0%, var(--nvmaa-green-deep) 100%);
}

/* ───────── Ambassador card ───────── */
.amb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .amb { grid-template-columns: 5fr 7fr; gap: 3rem; }
  .amb--right { grid-template-columns: 7fr 5fr; }
  .amb--right .amb__photo { order: 2; }
}
.amb__photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--nvmaa-blue);
  box-shadow: 0 24px 60px -28px rgba(10,14,39,.4);
}
.amb__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  display: block;
}

/* Partner logo (Georgetown seal, Reston tree, etc.) */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid rgba(10,14,39,.08);
  padding: 1.25rem;
}
.partner-logo--ink {
  background: #002048;
  border-color: transparent;
  padding: 0;
}
.partner-logo--teal {
  background: #003432;
  border-color: transparent;
  padding: 0;
}
.partner-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.partner-logo--ink img,
.partner-logo--teal img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: contain;
}

/* ───────── Blog post card ───────── */
.post-card {
  display: flex; gap: 2rem; align-items: center;
  background: var(--nvmaa-blue);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(37,71,208,.6);
}
.post-card__thumb {
  flex-shrink: 0;
  width: 200px; aspect-ratio: 4 / 5;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 40px -14px rgba(0,0,0,.45);
}
/* Stack the blog cards vertically on phones so the thumbnail
   doesn't crush the title into a sliver. */
@media (max-width: 640px) {
  .post-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .post-card__thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
  }
}

/* ───────── Article inline figure ───────── */
.article-figure {
  margin: 2.5rem 0;
}
.article-figure img {
  width: 100%; height: auto;
  border-radius: 14px;
  display: block;
  box-shadow: 0 16px 40px -22px rgba(10,14,39,.35);
}
.article-figure figcaption {
  margin-top: .75rem;
  font-size: .875rem;
  color: rgba(10,14,39,.6);
  text-align: center;
  font-style: italic;
}

/* ───────── Respect reduced-motion preference ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media { animation: none; transform: none; }
  .scroll-cue::after { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
