@font-face {
  font-family: Geist;
  src: url("fonts/geist-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/geist-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --line: #cbd9d1;
  --muted: #465e53;
  --tint: #e0eee4;
  --content-gutter: clamp(20px, 5.55vw, 80px);
  --section-gap: clamp(65px, 8.3vw, 120px);
}

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

body {
  margin: 0;
  background: var(--eductix-canvas);
  color: var(--eductix-body);
  font: 400 var(--eductix-body-size)/1.6 var(--eductix-font);
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: var(--eductix-forest); }
button { font: inherit; }
p, figure { margin: 0; }
p + p { margin-top: .85em; }

h1, h2, h3 {
  margin: 0;
  color: var(--eductix-forest);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 6vw, var(--eductix-display));
  line-height: 1.04;
  letter-spacing: -.066em;
}

h2 {
  font-size: clamp(34px, 4.5vw, var(--eductix-heading));
  line-height: 1.1;
  letter-spacing: -.052em;
}

h3 { font-size: clamp(23px, 2.45vw, 31px); line-height: 1.16; letter-spacing: -.038em; }
h1 + p, h2 + p { margin-top: 20px; }
h3 + p { margin-top: 12px; }

:where(a, button):focus-visible {
  outline: 3px solid #10603c;
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - var(--content-gutter) * 2), var(--eductix-width));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--eductix-white);
  border-radius: 12px;
  transform: translateY(calc(-100% - 20px));
}
.skip:focus { transform: none; }

.site-header {
  min-height: 106px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.brand { display: inline-flex; align-items: center; justify-self: start; padding: 4px 0; }
.brand img { width: 124px; height: auto; }
.site-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px clamp(14px, 2vw, 29px); }
.site-nav a, .footer-nav a, .gallery-nav a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 46px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .footer-nav a:hover, .gallery-nav a:hover, [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .3em;
}
.site-nav a[aria-current="page"] { text-decoration: underline; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55em;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--eductix-pill);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.button span { font-size: 1.14em; line-height: 1; }
.button-primary { background: var(--eductix-green); color: var(--eductix-white); }
.button-primary:hover { background: #096f32; }
.button-outline { border-color: #9eb8a9; background: transparent; color: var(--eductix-forest); }
.button-outline:hover { background: var(--tint); }
.button-light { background: var(--eductix-mint); color: var(--eductix-forest); }
.button-light:hover { background: #d7eddd; }
.header-action { justify-self: end; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 4.6vw, 72px);
  padding-top: clamp(32px, 6vw, 94px);
  padding-bottom: 8px;
}

.foundation-name, .section-context {
  color: var(--eductix-forest);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero h1 { text-wrap: wrap; max-width: 11ch; }
.hero h1 + p { max-width: 36ch; margin-top: 25px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.48; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }

.hero-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(12px, 1.15vw, 17px);
  min-height: clamp(370px, 37vw, 545px);
}
.hero-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--eductix-radius);
}
.hero-photo { grid-row: span 2; object-position: 45% 45%; }
.hero-side { object-position: 43% 49%; }
.impact-tile {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  background: var(--eductix-forest);
  color: var(--eductix-mint);
  border-radius: var(--eductix-radius);
  padding: clamp(14px, 2vw, 31px);
}
.impact-tile strong {
  font-size: clamp(36px, 4.2vw, 63px);
  letter-spacing: -.067em;
  line-height: 1;
  font-weight: 500;
}
.impact-tile span { margin-top: 10px; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.35; }
.impact-tile small { font-size: 13px; color: #c7e4d1; margin-top: 8px; }

.section { margin-top: var(--section-gap); scroll-margin-top: 24px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: clamp(30px, 7.5vw, 112px);
  align-items: center;
}
.story-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1.4;
  border-radius: var(--eductix-radius);
}
figcaption { margin-top: 9px; color: var(--muted); font-size: 15px; }
.story-copy { max-width: 54ch; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: clamp(25px, 3.3vw, 47px);
}
.section-heading p { max-width: 45ch; }

.work-grid, .teaser-grid, .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eductix-gap);
}
.work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.work-card {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid #d8e6dc;
  border-radius: var(--eductix-radius);
  background: var(--eductix-mint);
}
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.67;
  object-fit: cover;
  object-position: center 45%;
}
.card-copy { padding: clamp(20px, 2.4vw, 34px); }
.work-note {
  grid-column: span 3;
  background: var(--tint);
  border-color: transparent;
}

.feature-band, .contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(25px, 5vw, 72px);
  align-items: center;
  padding: clamp(27px, 5.2vw, 75px);
  border-radius: var(--eductix-radius);
}
.feature-band {
  background: var(--eductix-forest);
  color: var(--eductix-mint);
}
.feature-band h2, .feature-band .section-context { color: inherit; }
.feature-band h2 { font-size: clamp(44px, 6vw, 80px); }
.feature-band .button { margin-top: 22px; }
.feature-band :focus-visible, .site-footer :focus-visible { outline-color: #d0f0d7; }
.feature-copy { max-width: 45ch; }

.teaser-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.36;
  object-fit: cover;
  border-radius: var(--eductix-radius);
}

.partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: clamp(26px, 7vw, 108px);
  align-items: start;
}
.partners h2 { text-wrap: wrap; max-width: 13ch; }
.partners p { max-width: 42ch; }
.recognition { margin-top: 24px; padding-left: 17px; border-left: 2px solid #58966b; }
.recognition h3 { font-size: 21px; }
.recognition p { margin-top: 6px; }
.partner-list {
  border-radius: var(--eductix-radius);
  border: 1px solid #d8e6dc;
  background: var(--eductix-mint);
  padding: clamp(23px, 3.6vw, 45px);
}
.partner-list h3 { text-wrap: wrap; }
.partner-list ul { margin: 13px 0 0; padding: 0; list-style: none; }
.partner-list li { border-top: 1px solid var(--line); padding-block: 10px; }
.partner-list li:last-child { padding-bottom: 0; }

.contact-panel {
  background: var(--tint);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.contact-panel > :last-child { justify-self: end; }
.contact-panel p { max-width: 54ch; }
.contact-email {
  margin-top: 9px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.site-footer {
  margin-top: clamp(48px, 6vw, 86px);
  background: var(--eductix-forest);
  color: var(--eductix-mint);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-block: 34px;
}
.footer-nav a { color: inherit; }
.legal { font-size: 15px; line-height: 1.5; }
.legal p + p { margin: 3px 0 0; color: #c7e4d1; }

.gallery-intro { padding-top: clamp(30px, 5vw, 65px); }
.gallery-intro h1 { margin-top: 15px; }
.gallery-intro p { max-width: 54ch; }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.gallery-nav a, .back-link { text-decoration: underline; text-underline-offset: .27em; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.gallery-section { margin-top: clamp(45px, 6.5vw, 90px); }
.gallery-section h2 { font-size: clamp(31px, 4.4vw, 49px); }
.photo-grid {
  list-style: none;
  margin: clamp(20px, 3vw, 35px) 0 0;
  padding: 0;
}
.photo-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--eductix-mint);
  border-radius: var(--eductix-radius);
  text-decoration: none;
}
.photo-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.38;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--eductix-radius) var(--eductix-radius) 0 0;
}
.photo-link img.portrait { object-fit: contain; background: #dce8df; }
.photo-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 9px;
  min-height: 53px;
  padding: 11px 16px;
  font-size: 16px;
  line-height: 1.4;
}
.photo-link:hover .photo-label { text-decoration: underline; text-underline-offset: .19em; }
.gallery-end { margin-top: 46px; }

.photo-dialog {
  width: min(calc(100% - 28px), 1020px);
  max-height: calc(100dvh - 28px);
  padding: clamp(13px, 2.4vw, 25px);
  border: 0;
  border-radius: var(--eductix-radius);
  background: var(--eductix-mint);
  color: var(--eductix-forest);
}
.photo-dialog::backdrop { background: rgb(0 26 20 / 85%); }
.photo-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.photo-dialog h2 { font-size: clamp(21px, 3vw, 31px); text-wrap: wrap; }
.photo-dialog img {
  width: auto;
  height: auto;
  max-height: min(65dvh, 640px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: 12px;
}
.dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; margin-top: 12px; }
.dialog-foot p { font-size: 15px; }
.dialog-foot nav { display: flex; gap: 8px; }
.photo-dialog button { min-height: 44px; cursor: pointer; }
.photo-dialog .button { padding: 8px 14px; }

@media (max-width: 980px) {
  .site-header { gap: 14px; }
  .hero { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 24px; }
  .hero-mosaic { min-height: 360px; }
  .site-nav { column-gap: 13px; }
  .footer-inner { gap: 20px; }
}

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 0; gap: 3px 14px; border-bottom: 1px solid var(--line); }
  .site-nav { grid-row: 2; grid-column: span 2; column-gap: clamp(15px, 4.2vw, 30px); }
  .brand img { width: 112px; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { max-width: none; text-wrap: balance; }
  .hero-mosaic { min-height: clamp(300px, 52vw, 470px); }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .story-image { order: 2; }
  .story-image img { aspect-ratio: 1.65; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .work-card, .work-note { grid-column: auto; }
  .work-card:last-child { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-nav { grid-column: span 2; }
}

@media (max-width: 580px) {
  body { font-size: 17px; }
  .hero h1 { max-width: 11ch; text-wrap: wrap; }
  .hero h1 + p { margin-top: 16px; }
  .hero-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, .79fr); grid-template-rows: auto auto; min-height: 0; }
  .hero-photo { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 1.25; }
  .hero-side { aspect-ratio: 1.4; }
  .impact-tile { justify-content: center; }
  .impact-tile strong { font-size: clamp(32px, 8.5vw, 46px); }
  .impact-tile span { margin-top: 5px; }
  .impact-tile small { margin-top: 4px; font-size: 12px; }
  .section-heading, .feature-band, .contact-panel, .partners { display: grid; grid-template-columns: 1fr; align-items: start; }
  .section-heading .button, .contact-panel > :last-child { justify-self: start; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card img { aspect-ratio: 1.68; }
  .teaser-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .teaser-grid img:first-child { grid-column: span 2; aspect-ratio: 1.7; }
  .teaser-grid img { aspect-ratio: 1.2; }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 26px; }
  .footer-nav { grid-column: auto; }
}

@media (max-width: 410px) {
  .photo-grid { grid-template-columns: 1fr; }
  .site-nav { column-gap: 14px; }
  .site-nav a { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
