@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #141414;
  --muted: #625c60;
  --orange: #d91c48;
  --paper: #fafafa;
  --line: #e6e6e6;
  --blue: #fff0f2;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.7 "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: Manrope, sans-serif;
  line-height: 1.13;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
}
h1 {
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 600;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
p {
  margin: 0 0 22px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
.wrap {
  width: min(1300px, 88%);
  margin: auto;
}
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
}
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  height: 102px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.wordmark {
  font:
    700 22px/1.2 Manrope,
    sans-serif;
  letter-spacing: -1px;
}
.wordmark small {
  display: block;
  font:
    10px/1.5 "DM Sans",
    sans-serif;
  letter-spacing: 2.3px;
  margin-top: 6px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 14px;
  font-weight: 600;
}
.navlinks > a {
  padding: 10px 0;
}
.navlinks > a:hover,
.navlinks > a[aria-current] {
  color: var(--orange);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--orange);
  color: var(--ink);
  padding: 15px 25px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: #d91c48;
  transform: translateY(-2px);
}
.btn.dark {
  background: var(--ink);
  color: white;
}
.btn.outline {
  background: var(--blue);
}
.menu {
  display: none;
  background: var(--blue);
  border: 0;
  border-radius: 4px;
  padding: 9px 13px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  margin-top: 42px;
  margin-bottom: 50px;
  gap: 55px;
  align-items: center;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  margin-bottom: 23px;
  color: var(--orange);
}
.hero h1 em {
  font-style: normal;
  color: #d91c48;
}
.hero p {
  max-width: 430px;
  font-size: 17px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 33px;
}
.text-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  padding: 8px 0;
}
.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 580px;
}
.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 120px 6px 6px 6px;
  position: absolute;
  object-position: 53% center;
}
.photo-tag {
  position: absolute;
  bottom: 22px;
  left: 23px;
  right: 23px;
  color: white;
  background: #141414dc;
  padding: 17px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  border-radius: 3px;
}
.photo-tag strong {
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  padding: 34px 0;
  gap: 35px;
  align-items: center;
}
.stats .stat {
  padding-left: 40px;
}
.stats strong {
  font:
    500 44px/1.2 Manrope,
    sans-serif;
  letter-spacing: -2px;
  display: block;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
}
.stats > p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 210px;
  margin: 0;
}
.section {
  padding: 95px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}
.section-head h2 {
  max-width: 660px;
  margin: 0;
}
.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.program {
  padding-top: 22px;
}
.program .number {
  font-size: 12px;
  color: var(--muted);
}
.program img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  margin: 19px 0 24px;
  transition: filter 0.2s;
}
.program:hover img {
  filter: brightness(0.9);
}
.program h3 {
  font-size: 23px;
  min-height: 55px;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.program p {
  font-size: 14px;
  color: var(--muted);
}
.program .text-link {
  display: inline-block;
}
.story-feature {
  background: var(--blue);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.split > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px 100px 5px 5px;
}
.split p {
  color: var(--muted);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.story-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 25px;
}
.story-card h3 {
  font-size: 25px;
  line-height: 1.25;
}
.story-card p {
  font-size: 15px;
  color: var(--muted);
}
.story-card small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  display: block;
  margin-bottom: 13px;
}
.give {
  background: var(--ink);
  color: white;
  padding: 74px 0;
}
.give .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.give h2 {
  max-width: 740px;
  margin-bottom: 15px;
}
.give p {
  color: #eee1e5;
  max-width: 630px;
  margin: 0;
}
.newsletter {
  padding: 50px 0;
}
.newsletter .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.newsletter h3 {
  margin-bottom: 10px;
}
.newsletter p {
  margin: 0;
  color: var(--muted);
}
footer {
  padding: 60px 0 20px;
  background: #f4f1f2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 40px;
}
.footer-grid p {
  font-size: 14px;
  color: var(--muted);
  max-width: 290px;
  margin-top: 25px;
}
.footer-grid h4 {
  font-size: 15px;
  letter-spacing: 0;
  margin-top: 10px;
}
.footer-grid a:not(.brand) {
  display: block;
  font-size: 14px;
  margin-bottom: 9px;
}
.footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.page-head {
  padding: 70px 0 55px;
  background: var(--blue);
}
.page-head h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 1000px;
}
.page-head p {
  max-width: 720px;
  font-size: 18px;
  color: var(--muted);
}
.breadcrumb {
  font-size: 13px;
  margin-bottom: 32px;
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: underline;
}
.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 80px;
  padding-top: 70px;
  padding-bottom: 80px;
}
.side-nav {
  align-self: start;
  position: sticky;
  top: 130px;
  font-size: 14px;
}
.side-nav a {
  display: block;
  padding: 12px 0;
}
.side-nav a[aria-current] {
  color: #d91c48;
  font-weight: 700;
}
.article {
  max-width: 850px;
}
.article h2 {
  font-size: 32px;
  margin: 42px 0 22px;
  letter-spacing: -0.025em;
}
.article h3 {
  font-size: 23px;
  margin-top: 32px;
}
.article p,
.article li {
  color: #51494d;
}
.article li {
  margin-bottom: 12px;
}
.article img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 5px;
  margin: 30px 0;
}
.article img.portrait {
  width: auto;
  max-width: 100%;
  max-height: 760px;
  object-fit: contain;
  margin: 30px auto;
}
.article a {
  color: #d91c48;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article ul {
  padding-left: 22px;
}
.article .content-block {
  margin-bottom: 24px;
}
.article .media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.article .media-grid img {
  height: 210px;
  margin: 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery button {
  background: none;
  border: 0;
  padding: 0;
}
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}
.gallery button:hover img {
  filter: brightness(0.9);
}
dialog {
  border: 0;
  padding: 15px;
  max-width: 95vw;
  max-height: 95vh;
  background: white;
  border-radius: 6px;
}
dialog::backdrop {
  background: #141414ed;
}
dialog img {
  max-height: 80vh;
  object-fit: contain;
}
dialog button {
  display: block;
  margin: 0 0 12px auto;
  background: var(--ink);
  color: white;
  border: 0;
  padding: 8px 18px;
  border-radius: 3px;
}
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.bank {
  background: var(--blue);
  padding: 35px;
  border-radius: 6px;
  margin-top: 35px;
}
.bank dt {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}
.bank dd {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
}
.donor {
  width: 100%;
  min-height: 680px;
  border: 0;
  background: white;
}
.skip {
  position: absolute;
  left: 15px;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.video-link {
  display: block;
  margin: 30px 0;
  padding: 25px;
  background: var(--blue);
}
@media (min-width: 1500px) {
  .hero {
    min-height: 700px;
  }
}
@media (max-width: 1050px) {
  .nav {
    gap: 20px;
  }
  .navlinks {
    gap: 16px;
  }
  .wordmark {
    font-size: 19px;
  }
  .hero {
    gap: 32px;
  }
  .hero-photo {
    min-height: 540px;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .programs {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    gap: 45px;
  }
  .stats .stat {
    padding-left: 22px;
  }
  .article-layout {
    gap: 40px;
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: 90%;
  }
  .topbar .wrap {
    justify-content: center;
  }
  .topbar .wrap > span:last-child {
    display: none;
  }
  .nav {
    height: 83px;
    gap: 12px;
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .wordmark {
    font-size: 17px;
  }
  .wordmark small {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .nav > .btn {
    padding: 11px 15px;
    font-size: 13px;
  }
  .menu {
    display: block;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 83px;
    left: 0;
    right: 0;
    padding: 22px 5%;
    background: white;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .navlinks.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 38px;
    margin-bottom: 35px;
    min-height: 0;
  }
  .hero h1 {
    font-size: 3.35rem;
    max-width: 540px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero-photo {
    min-height: 450px;
  }
  .hero-photo > img {
    border-top-left-radius: 85px;
  }
  .actions {
    gap: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 30px 0;
  }
  .stats .stat {
    padding-left: 15px;
  }
  .stats strong {
    font-size: 35px;
  }
  .stats > p {
    padding-right: 10px;
  }
  .section {
    padding: 60px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .section-head .text-link {
    margin-top: 0;
  }
  .programs {
    gap: 25px 18px;
  }
  .program h3 {
    font-size: 21px;
  }
  .program p {
    font-size: 14px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-card img {
    height: 330px;
  }
  .give .wrap,
  .newsletter .wrap {
    display: block;
  }
  .give .btn,
  .newsletter .btn {
    margin-top: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    display: block;
  }
  .page-head {
    padding: 45px 0 35px;
  }
  .page-head h1 {
    font-size: 2.8rem;
  }
  .article-layout {
    display: block;
    padding-top: 30px;
  }
  .side-nav {
    position: static;
    margin-bottom: 40px;
    display: flex;
    gap: 18px;
    overflow: auto;
    white-space: nowrap;
  }
  .article h2 {
    font-size: 28px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .gallery img {
    height: 220px;
  }
  .donate-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article .media-grid img {
    height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.btn {
  color: white;
}
.btn.outline {
  color: var(--ink);
}
.topbar {
  background: #d91c48;
}
.hero h1 {
  font-size: clamp(3rem, 4.5vw, 4.6rem);
}
.original-copy {
  color: #51494d;
}
.original-copy ul {
  padding-left: 22px;
}
.original-copy li {
  margin-bottom: 14px;
}
.dgr-section {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 75px;
}
.dgr-section h3 {
  margin-top: 35px;
}
.dgr-section ul {
  margin-bottom: 30px;
}
.article .gallery {
  grid-template-columns: repeat(2, 1fr);
}
.article .gallery img {
  height: 260px;
  margin: 0;
}
.article .gallery button {
  margin-bottom: 0;
}
.btn.outline:hover {
  background: #ffe6e6;
}
.page-head {
  background: #fff0f2;
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: 3rem;
  }
  .dgr-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article .gallery img {
    height: 180px;
  }
}

/* Homepage clarity and proportion refinements. */
.home .hero{min-height:560px;gap:48px;margin-top:32px;margin-bottom:40px}
.home .hero h1{font-size:clamp(2.8rem,4.7vw,4.4rem);line-height:1.08;letter-spacing:-.05em}
.home .hero-intro p{font-size:18px;max-width:440px}
.home .hero-photo{min-height:540px}
.home .hero-photo>img{border-radius:64px 4px 4px 4px;object-position:55% center}
.home .photo-tag{font-size:12px;padding:13px 16px;left:16px;right:16px;bottom:16px}
.home .program img{aspect-ratio:.9;width:100%}
.home .programs{gap:18px}
.home .story-card img[src="/assets/20230411_122831-768x1024.jpg"]{object-position:center 20%}
.home .story-card{display:flex;flex-direction:column;align-items:flex-start}
.home .story-card img{width:100%}
.home .story-card .text-link{margin-top:auto}
.home .dgr-section{padding-top:55px;padding-bottom:55px;border-top:1px solid var(--line)}
.home .dgr-section h2{font-size:clamp(2rem,3vw,3rem)}
.foundation-update{font-size:14px;border-top:1px solid var(--line);padding-top:15px}
.foundation-update summary{cursor:pointer;font-weight:600;color:var(--ink);padding:6px 0}
.foundation-update[open] summary{margin-bottom:20px}
.foundation-update h3{font-size:20px}
@media(max-width:760px){.home .hero{min-height:0;gap:26px}.home .hero h1{font-size:clamp(2.5rem,9vw,3.5rem)}.home .hero-photo{min-height:390px}.home .hero-intro p{font-size:16px}.home .hero-photo>img{border-top-left-radius:44px}.home .program img{aspect-ratio:.82}.home .photo-tag{font-size:11px}.home .dgr-section{gap:15px}}

/* Show these group portraits in full so every face stays in frame. */
.story-card img[src="/assets/upscalemedia-transformed-1.webp"],
.story-card img[src="/assets/Screenshot-2025-04-24-at-2.49.15-PM-1024x741.webp"] {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Preserve complete programme scenes instead of cropping wide groups to portraits. */
.home .program img{aspect-ratio:4/3;object-fit:contain;background:#f3e8eb}
.home .split>img[src="/assets/20230419_110944-1024x768.jpg"]{aspect-ratio:auto;height:auto;border-radius:5px}

/* Use the same wide frame for all four programme photographs. */
.home .program img{aspect-ratio:1060/520;object-fit:cover}
.home .program img[src="/assets/kh1-1024x768.jpg"]{object-position:center 20%}

/* Centre the education and buildings photographs within their matching frames. */
.home .program img[src="/assets/Untitled-design-16.webp"],
.home .program img[src="/assets/Untitled-design-11-1.webp"] {
  object-position: center center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Consistent story frames, with each portrait positioned to preserve faces. */
.home .story-card img {
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
}
.home .story-card img[src="/assets/upscalemedia-transformed-1.webp"],
.home .story-card img[src="/assets/Screenshot-2025-04-24-at-2.49.15-PM-1024x741.webp"] {
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center top;
}
.home .story-card img[src="/assets/20230411_122831-768x1024.jpg"] {
  object-position:center 20%;
}

/* Board recruitment on the People page. */
.board-applications{margin-top:56px;padding:32px;background:var(--blue);border-top:3px solid var(--orange)}
.article .board-applications h2{margin:0 0 20px}
.board-roles{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:28px 0}
.board-roles>div{border-top:1px solid #d9bdc4;padding-top:18px}
.article .board-roles h3{margin:0 0 12px}
.board-roles p,.board-applications .application-note{margin-bottom:0}
@media(max-width:760px){.board-applications{padding:24px}.board-roles{grid-template-columns:1fr;gap:22px}}

.board-email{margin-top:24px;margin-bottom:0;overflow-wrap:anywhere}.board-email a{font-weight:700}.board-email span{font-size:13px;color:var(--muted)}

/* Bring the recruitment label closer to its heading. */
.board-applications > .eyebrow {
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 10px;
}

/* Consistent section labels throughout the site. */
.eyebrow{font-size:14px}
.homepage-giving .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:55px;align-items:center}
.homepage-donation-form{background:white;padding:12px;color:var(--ink);min-width:0}
.homepage-donation-form .donor{display:block;width:100%;height:680px;border:0}
.homepage-donation-form>a{display:block;text-align:center;font-size:13px;padding:12px 0;text-decoration:underline;color:#921733}
@media(max-width:760px){.homepage-giving .wrap{grid-template-columns:minmax(0,1fr);gap:30px}.homepage-donation-form{padding:6px}.homepage-donation-form .donor{height:720px}}

/* Full 4:3 originals keep the programme groups and activity in frame. */
.home .program img,
.home .program img[src="/assets/kh1-1024x768.jpg"] {
  width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 50%;
}

/* Complete community stories, readable in one continuous page. */
.stories-full { display:grid; gap:64px; }
.full-story { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:start; }
.full-story + .full-story { border-top:1px solid #e5d9dc; padding-top:64px; }
.full-story-photo img { display:block; width:100%; height:auto; border-radius:6px; }
.full-story-photo img.portrait { max-height:580px; width:auto; max-width:100%; margin-inline:auto; }
.full-story-copy h2 { margin:0 0 24px; font-size:clamp(28px,3vw,40px); line-height:1.15; }
.full-story-copy p { margin:0; line-height:1.8; }
@media(max-width:760px) { .full-story { grid-template-columns:1fr; gap:28px; } .stories-full { gap:48px; } .full-story + .full-story { padding-top:48px; } }
