:root {
  --navy: #09284a;
  --navy-2: #123c69;
  --ink: #14375f;
  --blue: #3477bc;
  --pale: #eaf6ff;
  --pale-2: #cfe6f8;
  --gold: #ffc400;
  --white: #ffffff;
  --line: rgba(99, 164, 216, 0.72);
  --shadow: 0 22px 55px rgba(4, 30, 57, 0.22);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #d9ecf9 url("assets/image4.webp") center / cover fixed;
  line-height: 1.5;
}

body.dark {
  color: var(--white);
  background:
    linear-gradient(rgba(5, 32, 62, 0.68), rgba(5, 32, 62, 0.84)),
    #0c3158 url("assets/image11.webp") center / cover fixed;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 99;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #001a33;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 6.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(235, 247, 255, 0.88);
  box-shadow: 0 12px 30px rgba(5, 35, 66, 0.14);
  backdrop-filter: blur(14px);
}

.dark .topbar {
  border-color: rgba(150, 199, 239, 0.32);
  background: rgba(5, 37, 69, 0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.group-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.group-nav a:hover,
.group-nav a:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.page {
  position: relative;
  min-height: min(720px, calc(100vh - 9rem));
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background:
    linear-gradient(rgba(234, 247, 255, 0.86), rgba(224, 241, 253, 0.92)),
    url("assets/image4.webp") center / cover;
  box-shadow: var(--shadow);
}

.dark .page {
  border-color: rgba(134, 192, 236, 0.35);
  background:
    linear-gradient(rgba(7, 38, 70, 0.72), rgba(7, 38, 70, 0.88)),
    url("assets/image11.webp") center / cover;
}

.page::after {
  position: absolute;
  right: -10rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(64, 139, 203, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.page > * {
  position: relative;
  z-index: 1;
}

.page-number {
  margin: 0 0 0.35rem;
  color: #47779f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dark .page-number {
  color: #9cc9ec;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: clamp(1rem, 2.2vw, 2rem);
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.dark h1 {
  color: var(--gold);
  font-variant: small-caps;
  letter-spacing: 0.01em;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.dark h2,
.dark h3 {
  color: var(--white);
}

h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1rem;
}

.lede {
  max-width: 830px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.eyebrow {
  margin-bottom: 0.3rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .eyebrow {
  color: var(--gold);
}

.two-col,
.three-col,
.four-col {
  display: grid;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 1rem;
}

.panel,
.stat,
.value,
.criteria,
.impact-card,
.contact-card {
  border: 1px solid rgba(45, 113, 171, 0.4);
  border-radius: 18px;
  background: rgba(247, 252, 255, 0.75);
  box-shadow: 0 12px 24px rgba(10, 52, 89, 0.12);
}

.dark .panel,
.dark .value,
.dark .contact-card {
  border-color: rgba(140, 197, 238, 0.34);
  background: rgba(21, 67, 108, 0.65);
}

.panel {
  padding: 1.15rem;
}

.feature-img {
  width: 100%;
  max-height: 520px;
  border: 5px solid #3779b5;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-img.contain {
  border: 0;
  object-fit: contain;
  box-shadow: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat {
  padding: 0.8rem;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

.stat span {
  color: #4b7294;
  font-size: 0.75rem;
}

.foundations-page {
  padding-top: clamp(1rem, 2.2vw, 2rem);
}

.foundations-page h1 {
  max-width: 900px;
  margin-bottom: 0.75rem;
  font-size: clamp(1.85rem, 3.4vw, 3.8rem);
}

.foundation-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(340px, 1.35fr) minmax(200px, 0.72fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  align-items: start;
}

.foundation-era,
.foundation-centre {
  display: grid;
  gap: 1rem;
}

.foundation-era {
  grid-template-rows: auto auto;
  align-content: start;
}

.foundation-era .stat {
  min-height: 104px;
  padding: 0.9rem;
}

.foundation-era .feature-img {
  height: auto;
  min-height: 0;
  border-width: 6px;
  background: rgba(255, 255, 255, 0.88);
  object-fit: contain;
}

.foundation-centre {
  grid-template-rows: auto auto;
  align-content: start;
}

.foundation-copy {
  margin: 0;
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.45;
}

.foundation-meeting {
  width: 100%;
  height: auto;
  min-height: 0;
  border: 6px solid #174d80;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 1100px;
}

.pemberton-history-page {
  padding-top: clamp(1rem, 2.2vw, 2rem);
}

.pemberton-history-page h1 {
  max-width: 820px;
  margin-bottom: 0.8rem;
  font-size: clamp(1.9rem, 3.3vw, 3.8rem);
}

.pemberton-history-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(420px, 1.65fr) minmax(220px, 0.82fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: center;
}

.history-emblem,
.history-memorial {
  margin: 0;
}

.history-emblem img {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.history-emblem figcaption {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
}

.history-copy {
  display: grid;
  gap: 0.85rem;
  align-self: stretch;
  align-content: center;
}

.history-block {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(57, 119, 174, 0.45);
}

.history-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.history-block h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  text-decoration: underline;
}

.history-block p {
  margin-bottom: 0.35rem;
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  line-height: 1.38;
}

.history-block p:last-child {
  margin-bottom: 0;
}

.history-memorial img {
  width: 100%;
  max-height: 470px;
  padding: 0.35rem;
  border: 6px solid #174d80;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.timeline article {
  padding: 0.85rem 0;
  border-top: 2px solid var(--line);
}

.timeline article:first-child {
  border-top: 0;
}

.timeline p {
  margin: 0;
}

.crest-watermark::before {
  position: absolute;
  inset: 16% 28%;
  z-index: 0;
  background: url("assets/image1.webp") center / contain no-repeat;
  content: "";
  opacity: 0.2;
  pointer-events: none;
}

.values {
  display: grid;
  gap: 0.7rem;
}

.value {
  padding: 1rem;
}

.value h3 {
  margin-bottom: 0.15rem;
  text-align: center;
}

.value p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.values-page h1 {
  max-width: 1080px;
  font-size: clamp(1.9rem, 3.3vw, 3.8rem);
}

.values-page .two-col {
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.emblem-composite {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1.18;
  margin: 0 auto;
  overflow: hidden;
  border: 6px solid #07121d;
  border-radius: 5px;
  background: #f5f4ef;
  box-shadow: 0 20px 38px rgba(0, 15, 33, 0.42);
}

.emblem-building {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.86);
  opacity: 0.82;
}

.emblem-crest {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
  transform: translate(-50%, -50%);
}

.emblem-copy {
  max-width: 620px;
  margin: 0.35rem auto 0;
  color: var(--gold);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.35;
  text-align: center;
}

.bullets {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.25rem;
}

.bullets li::marker {
  color: var(--blue);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.logo-grid figure {
  display: grid;
  min-height: 120px;
  margin: 0;
  padding: 0.7rem;
  place-items: center;
  border: 3px solid #164c7e;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.logo-grid img {
  width: 100%;
  height: 85px;
  object-fit: contain;
}

.benefactors-page {
  padding-top: clamp(1rem, 2.2vw, 2rem);
}

.benefactors-page h1 {
  max-width: 980px;
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 3.3vw, 3.7rem);
}

.logo-collage {
  position: relative;
  width: min(100%, 1180px);
  height: clamp(500px, 46vw, 560px);
  margin: 0 auto;
  isolation: isolate;
}

.logo-collage figure {
  position: absolute;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0.55rem;
  overflow: hidden;
  place-items: center;
  border: 6px solid #174d80;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 2px #fff,
    0 12px 22px rgba(6, 44, 78, 0.22);
}

.logo-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-collage figure:nth-child(1) {
  top: 4%;
  left: 3%;
  z-index: 3;
  width: 23%;
  height: 30%;
}

.logo-collage figure:nth-child(2) {
  top: 1%;
  left: 29%;
  z-index: 5;
  width: 21%;
  height: 29%;
}

.logo-collage figure:nth-child(3) {
  top: 2%;
  left: 49%;
  z-index: 6;
  width: 25%;
  height: 23%;
}

.logo-collage figure:nth-child(4) {
  top: 9%;
  left: 80%;
  z-index: 9;
  width: 18%;
  height: 42%;
}

.logo-collage figure:nth-child(5) {
  top: 31%;
  left: 38%;
  z-index: 10;
  width: 27%;
  height: 28%;
}

.logo-collage figure:nth-child(6) {
  top: 29%;
  left: 18%;
  z-index: 8;
  width: 22%;
  height: 30%;
}

.logo-collage figure:nth-child(7) {
  top: 25%;
  left: 63%;
  z-index: 7;
  width: 20%;
  height: 25%;
}

.logo-collage figure:nth-child(8) {
  top: 47%;
  left: 69%;
  z-index: 5;
  width: 18%;
  height: 34%;
}

.logo-collage figure:nth-child(9) {
  top: 61%;
  left: 8%;
  z-index: 11;
  width: 18%;
  height: 36%;
}

.logo-collage figure:nth-child(10) {
  top: 61%;
  left: 39%;
  z-index: 12;
  width: 28%;
  height: 27%;
}

.logo-collage figure:nth-child(11) {
  top: 61%;
  left: 24%;
  z-index: 9;
  width: 17%;
  height: 37%;
}

.logo-collage figure:nth-child(12) {
  top: 41%;
  left: 1%;
  z-index: 4;
  width: 22%;
  height: 30%;
}

.logo-collage figure:nth-child(13) {
  top: 74%;
  left: 61%;
  z-index: 8;
  width: 21%;
  height: 24%;
}

.logo-collage figure:nth-child(14) {
  top: 68%;
  left: 82%;
  z-index: 10;
  width: 17%;
  height: 29%;
}

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.6fr);
  gap: 1rem;
}

.impact-cards {
  display: grid;
  gap: 0.8rem;
}

.impact-card {
  padding: 1rem 1.1rem;
}

.impact-card p,
.impact-card ul {
  margin-bottom: 0;
}

.impact-rail {
  display: grid;
  gap: 0.8rem;
}

.impact-rail img {
  width: 100%;
  max-height: 150px;
  padding: 0.3rem;
  border: 4px solid #174d80;
  border-radius: 18px;
  background: white;
  object-fit: contain;
}

.community-collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.community-collage img {
  width: min(100%, 180px);
  aspect-ratio: 1;
  height: auto;
  border: 5px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 18, 38, 0.35);
}

.community-collage img:nth-child(1) {
  grid-column: 1 / 3;
}

.community-collage img:nth-child(2) {
  grid-column: 3 / 5;
}

.community-collage img:nth-child(3) {
  grid-column: 5 / 7;
}

.community-collage img:nth-child(4) {
  grid-column: 2 / 4;
}

.community-collage img:nth-child(5) {
  grid-column: 4 / 6;
}

.community-page .two-col {
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
}

.criteria-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 48px minmax(0, 1.5fr);
  gap: 0.65rem;
  align-items: center;
}

.criteria {
  padding: 0.9rem 1rem;
}

.criteria-grid .arrow {
  color: var(--ink);
  font-size: 1.8rem;
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  display: grid;
  min-height: 150px;
  padding: 1rem;
  place-items: center;
  text-align: center;
}

.contact-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 1rem auto 0;
}

.cta-secondary {
  background: linear-gradient(135deg, #0e4e86, #397eb7);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid #2f73b2;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(#4a92d1, #2667a3);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(5, 43, 78, 0.2);
}

.cta:hover,
.cta:focus-visible {
  background: #164f84;
}

.event-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.7rem;
  padding-top: 1rem;
}

.event-collage img {
  grid-column: span 2;
  width: 100%;
  height: 170px;
  border: 4px solid var(--white);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 25px rgba(0, 18, 38, 0.32);
  transform: rotate(-3deg);
}

.event-collage img:nth-child(even) {
  transform: rotate(3deg) translateY(15px);
}

.event-collage img:nth-child(5) {
  grid-column: 2 / span 2;
}

.event-collage img:nth-child(6) {
  grid-column: 4 / span 2;
}

.event-collage img:nth-child(7) {
  grid-column: 6 / span 2;
}

.index-page {
  display: grid;
  min-height: calc(100vh - 4rem);
  align-content: space-between;
  padding: clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}

.index-header {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 1rem;
}

.index-header img {
  width: 78px;
  height: 78px;
  margin: auto;
  object-fit: contain;
}

.index-title {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 0.95;
}

.index-subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(0.7rem, 1.2vw, 1.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.index-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.nav-card {
  display: grid;
  min-height: 82px;
  padding: 0.85rem;
  place-items: center;
  border: 1px solid #85bbee;
  border-radius: 14px;
  color: #092f57;
  background: linear-gradient(#f9fdff, #78a9e6);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 18, 38, 0.32);
}

.nav-card:hover,
.nav-card:focus-visible {
  color: var(--white);
  background: #2b72b2;
  transform: translateY(-3px);
}

.index-crest {
  width: min(330px, 52vw);
  max-height: 315px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.32));
}

.index-copy {
  max-width: 870px;
  margin: 1rem auto 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.page-controls {
  position: fixed;
  right: 50%;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(720px, calc(100% - 2rem));
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(136, 180, 236, 0.88);
  box-shadow: 0 12px 25px rgba(0, 22, 43, 0.28);
  transform: translateX(50%);
  backdrop-filter: blur(12px);
}

.page-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #164f84;
  border-radius: 10px;
  color: #0e3458;
  background: linear-gradient(#f8fcff, #7aaae7);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.page-controls a:hover,
.page-controls a:focus-visible {
  color: white;
  background: #215f97;
}

.page-controls .spacer {
  flex: 1;
}

.page-controls .home-link {
  padding-inline: 1.1rem;
}

.footer-note {
  margin: 1.25rem 0 0;
  color: #5a7995;
  font-size: 0.78rem;
  text-align: center;
}

.dark .footer-note {
  color: #a9c9e5;
}

@media (max-width: 900px) {
  .two-col,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .foundation-layout {
    grid-template-columns: 1fr;
  }

  .pemberton-history-layout {
    grid-template-columns: 1fr;
  }

  .history-emblem,
  .history-memorial {
    width: min(100%, 380px);
    margin: 0 auto;
  }

  .foundation-era .feature-img,
  .foundation-meeting {
    min-height: 0;
    height: auto;
  }

  .values-page .two-col {
    grid-template-columns: 1fr;
  }

  .community-page .two-col {
    grid-template-columns: 1fr;
  }

  .three-col,
  .four-col,
  .index-nav,
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .group-nav {
    display: none;
  }

  .criteria-grid {
    grid-template-columns: minmax(130px, 0.7fr) 32px minmax(0, 1.3fr);
  }

  .event-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-collage img:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 1rem, 1280px);
    padding-top: 0.5rem;
  }

  .page {
    min-height: 0;
    padding: 1.1rem;
    border-radius: 18px;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .index-header {
    grid-template-columns: 54px 1fr 54px;
  }

  .index-header img {
    width: 50px;
    height: 50px;
  }

  .index-nav,
  .three-col,
  .four-col,
  .contact-cards,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid figure {
    min-height: 100px;
  }

  .foundation-era .feature-img,
  .foundation-meeting {
    min-height: 0;
    height: auto;
  }

  .benefactors-page h1 {
    margin-bottom: 1rem;
  }

  .logo-collage {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 118px;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.5rem;
  }

  .logo-collage figure:nth-child(n) {
    position: static;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: auto;
    margin: -0.22rem;
    padding: 0.45rem;
    border-width: 6px;
    border-radius: 20px;
    transform: rotate(-1.4deg);
  }

  .logo-collage figure:nth-child(even) {
    z-index: 12;
    transform: rotate(1.4deg) translateY(0.35rem);
  }

  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .criteria-grid .arrow {
    transform: rotate(90deg);
  }

  .community-collage {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .community-collage img:nth-child(n) {
    grid-column: auto;
  }

  .community-collage img:nth-child(5) {
    grid-column: 1 / -1;
  }

  .impact-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-controls {
    width: calc(100% - 1rem);
  }

  .page-controls a {
    padding-inline: 0.65rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-card,
  .cta,
  .page-controls a {
    transition: 160ms ease;
  }
}

/* Refined site navigation */
.site-shell {
  padding-bottom: 1.25rem;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(245px, auto) 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin-bottom: 1rem;
  padding: 0.85rem 1.15rem;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(18, 60, 105, 0.22);
  background: rgba(246, 251, 255, 0.94);
  box-shadow: 0 10px 28px rgba(5, 35, 66, 0.13);
  backdrop-filter: blur(14px);
}

.dark .site-header {
  border-bottom-color: rgba(150, 199, 239, 0.22);
  background: rgba(5, 34, 63, 0.93);
}

.site-header .brand {
  gap: 0.65rem;
}

.site-header .brand img {
  width: 50px;
  height: 50px;
}

.site-header .brand-copy,
.site-header .brand-name,
.site-header .brand-place {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.site-header .brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.025em;
}

.site-header .brand-place {
  margin-top: 0.12rem;
  color: #567895;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dark .site-header .brand-place {
  color: #a9c9e5;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.55rem);
}

.primary-nav a {
  position: relative;
  padding: 0.65rem 0 0.55rem;
  color: #274c6d;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.dark .primary-nav a {
  color: #d8e9f8;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--navy);
}

.dark .primary-nav a:hover,
.dark .primary-nav a:focus-visible,
.dark .primary-nav a[aria-current="page"] {
  color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.mobile-menu {
  display: none;
}

.page-number {
  margin-bottom: 0.5rem;
  color: #3f719c;
}

.dark .page-number {
  color: var(--gold);
}

.site-footer {
  margin-top: 1rem;
  padding: 1.2rem clamp(0.4rem, 2vw, 1rem) 0;
  border-top: 1px solid rgba(19, 71, 116, 0.3);
}

.dark .site-footer {
  border-top-color: rgba(151, 200, 239, 0.34);
}

.journey-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
}

.journey-link,
.journey-home {
  text-decoration: none;
}

.journey-link {
  display: grid;
  gap: 0.12rem;
  padding: 0.2rem 0;
}

.journey-next {
  text-align: right;
}

.journey-direction {
  color: #537692;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.94rem, 1.7vw, 1.18rem);
  line-height: 1.2;
}

.journey-home {
  padding: 0.35rem 0;
  border-bottom: 1px solid currentColor;
  color: #315f87;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dark .journey-direction,
.dark .journey-home {
  color: #a9c9e5;
}

.dark .journey-title {
  color: var(--white);
}

.journey-link:hover .journey-title,
.journey-link:focus-visible .journey-title,
.journey-home:hover,
.journey-home:focus-visible {
  color: #246da9;
}

.dark .journey-link:hover .journey-title,
.dark .journey-link:focus-visible .journey-title,
.dark .journey-home:hover,
.dark .journey-home:focus-visible {
  color: var(--gold);
}

.site-footer > p {
  margin: 1.25rem 0 0;
  color: #67849e;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.dark .site-footer > p {
  color: #91b6d5;
}

.index-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 980px);
  margin: 1.35rem auto;
}

.nav-card {
  min-height: 78px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(144, 195, 235, 0.48);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  color: var(--white);
  background: rgba(6, 39, 72, 0.62);
  box-shadow: 0 9px 20px rgba(0, 18, 38, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  text-align: left;
}

.nav-card span {
  display: block;
  margin-bottom: 0.08rem;
  color: #a9c9e5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-card:hover,
.nav-card:focus-visible {
  color: var(--white);
  background: rgba(20, 71, 115, 0.88);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    padding: 0.55rem 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
  }

  .dark .mobile-menu summary {
    color: var(--white);
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary::after {
    margin-left: 0.45rem;
    color: var(--gold);
    content: "+";
  }

  .mobile-menu[open] summary::after {
    content: "−";
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 70;
    display: grid;
    min-width: 210px;
    padding: 0.55rem 1rem;
    border-top: 3px solid var(--gold);
    background: #f7fbff;
    box-shadow: 0 16px 36px rgba(3, 30, 56, 0.28);
  }

  .dark .mobile-menu nav {
    background: #082b4d;
  }

  .mobile-menu nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(38, 95, 143, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .mobile-menu nav a[aria-current="page"] {
    color: #1d68a6;
  }

  .dark .mobile-menu nav a[aria-current="page"] {
    color: var(--gold);
  }
}

@media (max-width: 700px) {
  .index-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.7rem 0.8rem;
  }

  .site-header .brand img {
    width: 42px;
    height: 42px;
  }

  .site-header .brand-name {
    font-size: 0.88rem;
  }

  .site-header .brand-place {
    font-size: 0.52rem;
  }

  .index-nav {
    grid-template-columns: 1fr;
  }

  .journey-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-home {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}
