:root {
  --ink: #1f2b28;
  --ink-soft: #46544f;
  --teal: #568a7e;
  --teal-deep: #2d5a50;
  --teal-night: #1f433b;
  --peach: #f4be82;
  --sun: #ffd35c;
  --mist: #eef3f2;
  --paper: #ffffff;
  --line: #d6e0dd;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal-night); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--peach); }
.nav a.btn { border-bottom: 0; color: var(--ink); background: var(--sun); border-color: var(--sun); padding: .5rem 1.2rem; }
.nav a.btn:hover { color: var(--ink); background: #ffdf82; border-color: #ffdf82; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  font: 600 1rem var(--display); padding: .5rem .9rem; color: var(--ink); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  background: var(--teal-deep); color: #fff; text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid var(--teal-deep);
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--teal-night); border-color: var(--teal-night); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-peach { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.btn-peach:hover { background: #f8cc9c; border-color: #f8cc9c; color: var(--ink); }
.btn-small { padding: .5rem 1.2rem; font-size: .98rem; }
.text-link { font-family: var(--display); font-weight: 600; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.25fr; align-items: center; gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 9ch; }
.hero .lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: center; }
.hero-photo { margin-right: -1rem; }
.hero-photo img { width: 100%; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-mist { background: var(--mist); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.two-col h2 { margin-bottom: 0; }

/* Route map */
.route-map { position: relative; margin: 0 0 2.5rem; }
.route-map img { width: 100%; }
.route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line { fill: none; stroke: var(--teal-deep); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.route-reveal { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-map.is-visible .route-reveal { animation: draw 2.6s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pin circle.dot { fill: var(--peach); stroke: var(--ink); stroke-width: 2.5; }
.pin circle.hit { fill: transparent; }
.pin text {
  font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--ink);
  paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round;
}
.pin:hover circle.dot, .pin:focus-visible circle.dot { fill: var(--teal); }

.trips { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trips li {
  display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem 2rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.trip-year { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--teal); letter-spacing: -0.03em; line-height: 1; }
.trips h3 { margin: 0 0 .2rem; }
.trips p { margin: 0; color: var(--ink-soft); }

/* Quote */
.quote-block { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.quote-block img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 6px solid var(--peach); }
.pull { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.45; margin: 0 0 1rem; font-style: italic; }
.cite { font-family: var(--display); font-weight: 600; margin: 0 0 1rem; }
.cite span { color: var(--ink-soft); font-weight: 500; }

/* Band */
.band { background: var(--teal-night); color: #fff; text-align: left; }
.band h2 { color: #fff; max-width: 18ch; }
.band p { color: #dbe8e4; max-width: 38rem; }

/* Inner pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 22ch; }
.page-head .meta { color: var(--ink-soft); font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin: 0; }
.prose p { max-width: 38em; }
.prose h2 { margin-top: 2.2rem; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem 2rem;
  margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line);
}
.facts dt { font-family: var(--display); font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.facts dd { margin: .1rem 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.trip-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .4rem; }
.gallery figure { margin: 0; }

/* Testimonials */
.story { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.story-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.2rem; }
.story-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--peach); }
.story-head h2 { margin: 0; font-size: 1.7rem; }
.story-head p { margin: 0; font-family: var(--display); color: var(--ink-soft); }
.story .lead-quote { font-size: 1.5rem; font-style: italic; line-height: 1.45; margin-bottom: 1.4rem; max-width: 30em; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.form label { font-family: var(--display); font-weight: 600; display: grid; gap: .35rem; font-size: 1rem; }
.form input, .form textarea {
  font: 400 1.05rem var(--body); padding: .8rem .9rem; border: 1.5px solid #9bb0aa; border-radius: 8px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--peach); border-color: var(--teal-deep); }
.hp { position: absolute; left: -9999px; }

.amounts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 1.6rem; padding: 0; border: 0; }
.amounts legend { font-family: var(--display); font-weight: 600; margin-bottom: .6rem; padding: 0; }
.amounts input { position: absolute; opacity: 0; }
.amounts label {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: .7rem 1.4rem;
  border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff;
}
.amounts input:checked + label { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.amounts input:focus-visible + label { outline: 3px solid var(--peach); outline-offset: 2px; }
.custom-amount { display: none; margin-bottom: 1.4rem; max-width: 14rem; }
.custom-amount.show { display: grid; }
.note { color: var(--ink-soft); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfdad6; padding-block: 2.5rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: flex-start; }
.footer-brand img { height: 48px; width: auto; background: #fff; padding: .35rem .7rem; border-radius: 8px; margin-bottom: .8rem; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--display); font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-photo { margin-right: 0; order: -1; max-width: 560px; }
  .two-col { grid-template-columns: 1fr; }
  .trips li { grid-template-columns: 5.5rem 1fr; }
  .trips li .text-link { grid-column: 2; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: .4rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: .55rem 0; font-size: 1.15rem; }
  .header-row { position: relative; }
}
@media (max-width: 640px) {
  .quote-block { grid-template-columns: 1fr; }
  .quote-block img { width: 150px; height: 150px; }
  .pin text { display: none; }
  body { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-reveal { stroke-dashoffset: 0; animation: none !important; }
  .btn { transition: none; }
}

/* About page figures */
.wide-fig { margin: 0 0 2.2rem; }
.wide-fig img { width: 100%; max-width: 920px; border-radius: 6px; }
.side-fig { float: right; width: min(300px, 42%); margin: .4rem 0 1rem 2rem; }
.side-fig img { width: 100%; border-radius: 6px; }
.side-fig figcaption { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); margin-top: .4rem; }
.prose h2 { clear: both; }
@media (max-width: 640px) { .side-fig { float: none; width: min(300px, 100%); margin: 0 0 1.2rem; } }

/* Yellow action colour, carried over from the original site */
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffdf82; border-color: #ffdf82; color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; border-color: #000; color: #fff; }
.support {
  position: relative; overflow: hidden; background: var(--sun);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4rem);
}
.support::before {
  content: ""; position: absolute; right: -3%; top: 50%; width: 66%; aspect-ratio: 897 / 454;
  transform: translateY(-50%); background: url(/images/world-map.png) center / contain no-repeat;
  mix-blend-mode: multiply; opacity: .45; pointer-events: none;
}
.support > * { position: relative; }
.support h2 { max-width: 16ch; }
.support p { max-width: 30rem; }
.section-tight { padding-block: 0 clamp(3rem, 7vw, 5rem); }
@media (max-width: 700px) { .support::before { width: 130%; right: -30%; opacity: .3; } }
.story-head img, .quote-block img { border-color: var(--sun); }
.nav a[aria-current="page"] { border-bottom-color: var(--sun); }

/* Photo under the intro */
.feature-photo { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.feature-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; border-radius: 6px; }
@media (max-width: 640px) { .feature-photo img { aspect-ratio: 4 / 3; } }

/* Mobile and touch polish: comfortable tap targets */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.menu-toggle { min-height: 44px; min-width: 76px; }
.footer-links a { display: inline-block; padding: .7rem 0; }
.trips .text-link, .trip-nav .text-link, .hero-actions .text-link { display: inline-block; padding: .65rem 0; }
.btn { min-height: 44px; }
.btn-small { min-height: 40px; }
.nav.open a { padding: .75rem 0; }
.nav.open a.btn { padding: .6rem 1.4rem; margin-top: .4rem; }
@media (max-width: 860px) {
  .route-map .pin circle.hit { r: 44px; }
  .route-map .pin circle.dot { r: 15px; stroke-width: 4px; }
  .route-line { stroke-width: 5; }
}
@media (hover: none) { .btn:hover { background-color: inherit; } }

/* Donation form */
.give-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.give-card { border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 4vw, 2.25rem); background: #fff; box-shadow: 0 1px 0 rgba(31,43,40,.04); }
.give-h { font-size: 1.2rem; margin: 1.8rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); color: var(--teal-deep); }
.give-card .amounts { margin-top: 0; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field label { font-family: var(--display); font-weight: 600; font-size: .98rem; }
.field label b { color: #a1261b; }
.field input, .field textarea, .stripe-field {
  font: 400 1.05rem var(--body); padding: .8rem .9rem; border: 1.5px solid #9bb0aa; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus, .stripe-field.StripeElement--focus { outline: 3px solid var(--sun); border-color: var(--teal-deep); }
.stripe-field { min-height: 48px; }
.stripe-field.StripeElement--invalid { border-color: #a1261b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.check { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--teal-deep); }
.check label { font-family: var(--display); font-weight: 600; font-size: .98rem; }
.err { margin: 0; min-height: 0; color: #a1261b; font-size: .92rem; font-family: var(--display); }
.err:empty { display: none; }
.secure { display: flex; gap: .55rem; align-items: center; color: var(--ink-soft); font-size: .98rem; margin: 0 0 1.1rem; }
.secure svg { color: var(--teal-deep); flex: none; }
.setup { background: #fff7de; border: 1.5px solid var(--sun); border-radius: 8px; padding: .9rem 1.1rem; margin: 0 0 1.2rem; }
#card-area.is-off { opacity: .45; pointer-events: none; }
.total-bar { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 1.4rem 0 1rem; font-family: var(--display); }
.total-bar span { background: var(--teal-deep); color: #fff; font-weight: 700; padding: .9rem 1.3rem; }
.total-bar strong { padding: .9rem 1.3rem; font-size: 1.3rem; color: var(--teal-deep); }
.btn-block { display: block; width: 100%; text-align: center; font-size: 1.15rem; padding: 1rem 1.5rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.give-status { margin: .9rem 0 0; font-family: var(--display); font-weight: 600; min-height: 1.4em; }
.give-status.error { color: #a1261b; }
@media (max-width: 900px) { .give-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .total-bar span, .total-bar strong { padding: .8rem 1rem; } }

/* custom amount stays hidden until "Other" is chosen */
.field.custom-amount { display: none; max-width: 14rem; }
.field.custom-amount.show { display: grid; }

/* About: Sean as the focal point */
.sean { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); align-items: stretch; }
.sean-text {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem) max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.sean-text h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.18; margin-bottom: 1.2rem; }
.sean-text p { max-width: 34em; }
.sean-text .legacy { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--teal-deep); letter-spacing: -0.02em; margin: 1.6rem 0 0; }
.sean-photo { margin: 0; min-height: 560px; position: relative; }
.sean-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.founders-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.founders-photo { margin: 0; }
.founders-photo img { width: 100%; border-radius: 8px; }
.founders h2 { margin-bottom: .2rem; }
.meta-line { font-family: var(--display); font-weight: 600; color: var(--ink-soft); margin-bottom: 1.2rem; }
@media (max-width: 900px) {
  .sean { grid-template-columns: 1fr; }
  .sean-photo { order: -1; min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; }
  .sean-text { padding: 2rem 1.25rem 2.5rem; }
  .founders-grid { grid-template-columns: 1fr; }
}

/* Trip pages: text on the left, photos down the side */
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.trip-layout.no-aside { grid-template-columns: minmax(0, 760px); }
.trip-text .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.trip-photos { column-count: 2; column-gap: .8rem; }
.photo { margin: 0 0 .8rem; break-inside: avoid; }
.photo a { display: block; border-radius: 6px; overflow: hidden; background: var(--mist); cursor: zoom-in; }
.photo img { width: 100%; height: auto; display: block; }
.stories-layout { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.stories-layout .trip-photos { column-count: 1; }
@media (max-width: 900px) {
  .trip-layout, .stories-layout { grid-template-columns: minmax(0, 1fr); }
  .stories-layout .trip-photos { column-count: 2; }
}
@media (max-width: 420px) { .trip-photos, .stories-layout .trip-photos { column-gap: .5rem; } .photo { margin-bottom: .5rem; } }

/* About: Sean with children */
.sean-inset { margin: 2rem 0 0; max-width: 32rem; }
.sean-inset img { width: 100%; height: auto; border-radius: 6px; }
.sean-inset figcaption { font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink-soft); margin-top: .5rem; }

/* Photo viewer */
.lightbox { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(14, 22, 20, .92); }
.lb-inner { display: grid; grid-template-rows: 1fr auto; place-items: center; height: 100%; padding: 3.5rem 1rem 1rem; gap: .8rem; }
.lb-inner img { max-width: min(94vw, 1500px); max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-cap { font-family: var(--display); font-weight: 500; text-align: center; max-width: 46rem; margin: 0; min-height: 1.5em; }
.lb-btn { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font: 700 1.5rem var(--display); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: .9rem; transform: none; } .lb-inner { padding-bottom: 4.5rem; } }

/* Never leave a single word alone on a line */
h1, h2, h3, .lede, .pull, .lead-quote { text-wrap: balance; }
p, li, figcaption, .cite, .meta { text-wrap: pretty; }
.nw { white-space: nowrap; }
.story-head > div { min-width: 0; }
@media (max-width: 420px) {
  .story-head { gap: 1rem; }
  .story-head img { width: 72px; height: 72px; }
  .story-head h2 { font-size: 1.3rem; }
}

/* ===== Mobile and touch optimisation ===== */
a, button, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(86, 138, 126, .28); }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); overflow-wrap: break-word; }
.site-footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
body.lb-open { overflow: hidden; }
.lightbox img { touch-action: pinch-zoom; }

/* map labels: short on phones, but big enough to read */
.pin .short { display: none; }
@media (max-width: 640px) {
  .pin text { display: block; font-size: 44px; stroke-width: 11px; }
  .pin .full { display: none; }
  .pin .short { display: inline; }
  .pin text { transform: translateY(26px); }
}

@media (max-width: 900px) {
  /* message and Donate button first, photo after */
  .hero-photo { order: 0; margin: .5rem -1.25rem 0; max-width: none; }
  .hero-grid { padding-block: 1.6rem 0; gap: 1.4rem; }
  .hero .lede { font-size: 1.15rem; margin-bottom: 1.4rem; }
}
@media (max-width: 860px) {
  .header-row { min-height: 64px; }
  .brand img { height: 44px; width: auto; }
  .nav { box-shadow: 0 14px 24px rgba(31, 43, 40, .12); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open a { font-size: 1.2rem; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .page-head { padding-block: 1.8rem .5rem; }
  .section { padding-block: 2.6rem; }
  .btn { width: auto; }
  .hero-actions { gap: .4rem 1.2rem; }
  .facts { gap: 1rem 1.2rem; }
  .give-card { padding: 1.1rem; border-radius: 8px; }
  .amounts label { padding: .65rem 1.1rem; }
  .support { padding: 2rem 1.4rem; }
  .footer-row { flex-direction: column; }
  .trips li { gap: .4rem 1rem; padding: 1.1rem 0; }
  .trip-year { font-size: 1.8rem; }
  .sean-text h2 { font-size: 1.45rem; }
}
/* very small phones (e.g. foldables at 280px) */
@media (max-width: 340px) {
  .wrap, .narrow { width: calc(100% - 1.5rem); }
  .btn { padding: .8rem 1.2rem; font-size: 1rem; }
  .trips li { grid-template-columns: 4.2rem 1fr; }
}
/* landscape phones: don't let the sticky header eat the screen */
@media (max-height: 500px) and (orientation: landscape) { .site-header { position: static; } .lb-inner { padding-top: 3rem; } .lb-inner img { max-height: calc(100vh - 6rem); } }

/* More photos below the text */
.trip-more { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.trip-more h2 { margin-bottom: 1.2rem; }
.trip-gallery { column-count: 3; column-gap: .8rem; }
@media (max-width: 1000px) { .trip-gallery { column-count: 2; } }
@media (max-width: 420px) { .trip-gallery { column-gap: .5rem; } }

/* Student portraits on the Stories page: a little larger */
.story-head img { width: 120px; height: 120px; }
.story-head { gap: 1.6rem; }
@media (max-width: 420px) { .story-head img { width: 84px; height: 84px; } }

/* ===== Navigation with a Field Trips dropdown ===== */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0;
  border-bottom: 2px solid transparent; padding: .3rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.nav-trigger:hover { border-bottom-color: var(--teal); }
.nav-item.is-current > .nav-trigger { border-bottom-color: var(--sun); }
.caret { transition: transform .15s; flex: none; }
.nav-item.open .caret { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: .4rem; display: none; }
.sub a { display: block; padding: .6rem .9rem; border-bottom: 0; border-radius: 6px; white-space: nowrap; }
.sub a:hover { background: var(--mist); border-bottom: 0; }
.sub a[aria-current="page"] { color: var(--teal-deep); background: var(--mist); }

@media (min-width: 861px) {
  .sub {
    position: absolute; top: calc(100% + .35rem); left: -.8rem; min-width: 190px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 14px 30px rgba(31, 43, 40, .14); z-index: 60;
  }
  /* invisible bridge so the menu stays open while the pointer travels down to it */
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
  .nav-item.open .sub, .nav-item:hover .sub, .nav-item:focus-within .sub { display: block; }
}
@media (max-width: 860px) {
  .nav-item { display: block; width: 100%; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: .75rem 0; font-size: 1.2rem; border-bottom: 0; min-height: 48px; }
  .nav-item.open .sub { display: block; }
  .sub { padding: 0 0 .4rem; }
  .nav.open .sub a { font-size: 1.1rem; padding: .7rem 0 .7rem 1rem; border-left: 3px solid var(--line); border-radius: 0; background: none; }
  .nav.open .sub a[aria-current="page"] { border-left-color: var(--sun); color: var(--teal-deep); }
  .nav.open .sub li + li a { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .caret { transition: none; } }

/* Sean's portrait on phones and tablets: a plain full-width image (no positioning tricks, so every browser draws it) */
@media (max-width: 900px) {
  .sean { align-items: start; }
  .sean-photo { position: static; display: block; order: -1; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
  .sean-photo img { position: static; display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; object-position: 50% 22%; }
}

.wide-fig figcaption { font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink-soft); margin-top: .6rem; max-width: 920px; }

/* Group photo under the donate intro */
.donate-photo { margin: 1.6rem 0 0; max-width: 460px; }
.donate-photo img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 900px) { .donate-photo img { max-height: 300px; object-fit: cover; object-position: 50% 30%; } }

/* Two photos under the donate intro; on phones only the first, so the form stays close */
.donate-photos { display: grid; gap: 1rem; margin-top: 1.6rem; max-width: 460px; }
.donate-photos .donate-photo { margin: 0; max-width: none; }
@media (max-width: 900px) { .donate-photos .donate-photo:nth-child(n+2) { display: none; } }
.donate-photos .donate-photo img { max-height: 380px; object-fit: cover; object-position: 50% 35%; }

/* iPhone Safari's floating toolbar sits over the bottom of the page: leave room so the last footer links can scroll clear of it */
@media (max-width: 900px) {
  .site-footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
}

/* Original homepage and contact copy blocks */
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 1.6rem 0 0; padding: 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.stats li { position: relative; }
.stats li + li::before { content: ""; position: absolute; left: -.85rem; top: .35em; bottom: .35em; width: 2px; background: rgba(31, 43, 40, .35); }
.support p + p { margin-top: -.2rem; }
.charity { padding-block: clamp(2.5rem, 6vw, 4rem); }
.charity-line { font-family: var(--display); font-weight: 600; color: var(--ink-soft); margin: 0 0 .6rem; }
.charity h2 { max-width: 22ch; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.contact-quote { margin: 0 0 2rem; padding: 0 0 0 1.2rem; border-left: 4px solid var(--sun); }
.contact-quote p { font-style: italic; font-size: 1.2rem; line-height: 1.5; margin-bottom: .6rem; }
.contact-quote footer { font-family: var(--display); font-weight: 600; color: var(--ink-soft); }
.form-h { font-size: 1.5rem; margin: 0 0 .6rem; }
.page-head .meta a { color: inherit; }

.trip-prev::before { content: "\2190\00a0"; }
.trip-next::after { content: "\00a0\2192"; }
.lb-cap:empty { display: none; }
