/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-deep);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn--outline:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.btn[hidden] {
  display: none !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row--center {
  justify-content: center;
}

/* Cinematic home hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
  padding-bottom: 1.5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(237, 28, 36, 0.55), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(44, 74, 62, 0.45), transparent 45%),
    linear-gradient(160deg, #3a0a0c 0%, #8b1218 42%, #1a1a1a 100%);
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 7s ease-out;
  will-change: opacity, transform;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    to top,
    rgba(8, 6, 6, 0.92) 0%,
    rgba(12, 8, 8, 0.72) 38%,
    rgba(12, 8, 8, 0.48) 62%,
    rgba(12, 8, 8, 0.58) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 5;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: calc(var(--header-height) + 0.75rem) 0 6.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__title {
  max-width: 14ch;
  margin-bottom: 1.15rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.35s forwards;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero__text {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.55s forwards;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero .btn-row {
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.75s forwards;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.55);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@media (max-width: 699px) {
  .hero {
    align-items: center;
    padding-bottom: 2rem;
  }

  .hero__content {
    padding: calc(var(--header-height) + 0.5rem) 0 4.5rem;
  }

  .hero__scroll {
    bottom: 2rem;
  }
}

@keyframes kenBurns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: opacity 0.01ms;
    transform: none;
  }

  .hero__slide.is-active {
    transform: none;
  }
}

/* Inner page hero */
.page-hero {
  position: relative;
  min-height: clamp(16rem, 38vh, 24rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
  padding-top: var(--header-height);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(237, 28, 36, 0.4), transparent 50%),
    linear-gradient(145deg, #2a0a0c, #7a1218 55%, #1f2e28);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero__media--photo {
  background-color: #1a0a0a;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 8, 0.82), rgba(10, 8, 8, 0.4) 55%, rgba(10, 8, 8, 0.5));
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
}

.page-hero__content h1 {
  font-size: var(--font-size-page-hero);
}

.page-hero__content p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1.1rem;
}

/* Cause / feature band */
.cause-band {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.cause-band__eyebrow {
  color: var(--color-red);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section--forest .cause-band__eyebrow {
  color: var(--color-white);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-red-soft);
  color: var(--color-red-deep);
}

.status-pill--done {
  background: var(--color-forest-soft);
  color: var(--color-forest);
}

.status-pill--planned {
  background: #eee;
  color: #555;
}

/* Impact stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat {
  border-top: 2px solid var(--color-red);
  padding-top: 1rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--font-size-stat);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  color: var(--color-ink);
  font-size: 0.95rem;
}

.section--forest .stat {
  border-top-color: rgba(255, 255, 255, 0.45);
}

.section--forest .stat__label {
  color: rgba(255, 255, 255, 0.75);
}

.section--forest .pillar {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.section--forest .pillar h3 {
  color: var(--color-white);
}

.section--forest .pillar p {
  color: var(--color-white);
}

.section--forest .pillar .muted {
  color: rgba(255, 255, 255, 0.75);
}

/* Editorial lists / programme */
.pillar-grid,
.programme-grid,
.trustee-grid,
.project-grid,
.event-grid,
.facility-list {
  display: grid;
  gap: 1.5rem;
}

.pillar,
.programme,
.trustee,
.project-teaser,
.event-item {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.pillar h3,
.programme h3,
.trustee h3,
.project-teaser h3,
.event-item h3 {
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--color-ink);
}

.lead {
  font-size: inherit;
  color: var(--color-ink);
  max-width: 42rem;
}

.prose {
  max-width: 44rem;
}

.prose--wide {
  max-width: 100%;
}

.prose--wide p,
.prose--wide li,
.prose--wide h2,
.prose--wide h3 {
  max-width: 70ch;
}

.prose + .prose {
  margin-top: var(--space-4);
}

.details-block {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: var(--space-4);
}

.details-block summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.details-block[open] summary {
  color: var(--color-red);
  margin-bottom: 0.75rem;
}

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  color: var(--color-ink);
  font-size: 0.95rem;
}

.partner-strip span::after {
  content: "·";
  margin-left: 1.25rem;
  opacity: 0.4;
}

.partner-strip span:last-child::after {
  content: none;
}

.facility-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  list-style: none;
}

.facility-list {
  padding: 0;
  margin: 0;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--color-white);
}

.form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(237, 28, 36, 0.35);
  border-color: var(--color-red);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.checkbox-field:last-child {
  margin-bottom: 0;
}

.checkbox-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.28rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-red);
}

.checkbox-field label {
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  max-width: 36rem;
}

.alert--success { background: var(--color-forest-soft); color: var(--color-forest); }
.alert--error { background: var(--color-red-soft); color: var(--color-red-deep); }
.alert--info { background: var(--color-mist); color: var(--color-ink); }

.contact-details__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-details__grid strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contact-details__grid p {
  margin: 0;
}

@media (min-width: 700px) {
  .contact-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2.5rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillar-grid,
  .programme-grid,
  .trustee-grid,
  .project-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cause-band {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
  }
  .split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .programme-grid,
  .trustee-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* About page imagery */
.about-intro {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.about-featured {
  margin: 0;
  overflow: hidden;
}

.about-featured img {
  width: 100%;
  height: clamp(16rem, 42vw, 26rem);
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-gallery {
  width: 100%;
}

.about-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.about-gallery__item {
  margin: 0;
  overflow: hidden;
  min-height: 14rem;
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  max-height: 22rem;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (min-width: 700px) {
  .about-intro {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-6);
  }

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

  .about-gallery__item img {
    min-height: 18rem;
    max-height: 26rem;
  }
}

/* Sponsors marquee */
.sponsors {
  padding-block: var(--space-5);
}

.sponsors .section-intro {
  margin-bottom: var(--space-4);
}

.sponsors-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.sponsors-marquee__track {
  display: flex;
  width: max-content;
  animation: sponsors-scroll 35s linear infinite;
}

.sponsors-marquee:hover .sponsors-marquee__track,
.sponsors-marquee:focus-within .sponsors-marquee__track {
  animation-play-state: paused;
}

.sponsors-marquee__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-inline: 1.25rem;
}

.sponsors-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.375rem;
}

.sponsors-marquee__item img {
  display: block;
  height: 5.25rem;
  width: auto;
  max-width: 15rem;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.9;
}

@media (min-width: 700px) {
  .sponsors {
    padding-block: var(--space-6);
  }

  .sponsors-marquee__item {
    height: 8.25rem;
  }

  .sponsors-marquee__item img {
    height: 6.75rem;
    max-width: 19.5rem;
  }

  .sponsors-marquee__group {
    gap: 3.5rem;
    padding-inline: 1.75rem;
  }
}

@keyframes sponsors-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-marquee__track {
    animation: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sponsors-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .sponsors-marquee__group {
    padding-inline: 0;
  }
}

.donate-form__fields {
  display: grid;
  gap: 0;
}

.donate-form label:not(:has(> input[type="checkbox"])),
.event-register-form .form-field > label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

.donate-form label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  margin: 0.75rem 0 0;
  line-height: 1.45;
  cursor: pointer;
}

.donate-form label:has(> input[type="checkbox"]) input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.28rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-red);
}

.donate-form input[type="text"],
.donate-form input[type="email"],
.donate-form input[type="tel"],
.donate-form input[type="number"],
.donate-form select,
.event-register-form .form-field input:not([type="checkbox"]):not([type="radio"]),
.event-register-form .form-field select,
.event-register-form .form-field textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font: inherit;
}

.donate-form__presets {
  margin: 0.75rem 0;
}

.donate-form__presets .btn.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.donate-form__actions {
  margin-top: 1.25rem;
}

@media (max-width: 699px) {
  .split aside {
    margin-top: var(--space-5);
  }
}

.donate-summary {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-mist);
  max-width: 28rem;
}

.donate-summary h3 {
  margin: 0 0 1rem;
  font-size: var(--font-size-h4);
}

.donate-summary__list {
  margin: 0;
}

.donate-summary__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.donate-summary__row:last-child {
  border-bottom: 0;
}

.donate-summary__term,
.donate-summary__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.donate-summary__value,
.donate-summary__row dd {
  margin: 0;
}

.event-register-form .form-field input.is-locked,
.event-register-form .form-field input:read-only {
  background: var(--color-mist);
  color: var(--color-ink-muted);
  cursor: not-allowed;
}

.form-error {
  color: var(--color-red);
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(26, 26, 26, 0.08);
  padding: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Site alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.alert--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.alert--error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.alert--info {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}

/* Section variants */
.section--red {
  background: var(--color-red);
  color: var(--color-white);
}

.section--red h2,
.section--red .cause-band__eyebrow,
.section--red p {
  color: var(--color-white);
}

.section--red .btn--primary {
  background: var(--color-white);
  color: var(--color-red);
}

.section--red .btn--primary:hover {
  background: var(--color-mist);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.06);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-red);
}

.countdown__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  margin-top: 0.35rem;
}

/* Save the date card */
.save-the-date__card {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(26, 26, 26, 0.08);
  text-align: center;
}

.save-the-date__card .section-intro {
  text-align: center;
}

.save-the-date__card .btn-row {
  justify-content: center;
}

@media (min-width: 700px) {
  .save-the-date__card {
    padding: 2.5rem 2rem;
  }
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 100%;
}

.newsletter-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

.newsletter-form .form-field {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.newsletter-form input {
  width: 100%;
  background: var(--color-white);
  color: var(--color-ink);
  border-color: transparent;
}

.newsletter-form .btn {
  align-self: stretch;
  width: 100%;
}

@media (min-width: 700px) {
  .newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
  }

  .newsletter-form__fields {
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / 3;
    width: 100%;
  }

  .newsletter-form .btn {
    grid-column: 3;
    align-self: end;
    width: auto;
    min-width: 160px;
  }
}

/* News thumbnails */
.news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.news-grid .media-slot img {
  object-position: top center;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-featured {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.news-body {
  max-width: 70ch;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.share-bar__label {
  font-weight: 600;
  color: var(--color-ink-muted);
  margin-right: 0.5rem;
}

.share-bar__link {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--color-mist);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.share-bar__link:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* Progress bar */
.progress-bar {
  margin: 1.25rem 0;
}

.progress-bar__track {
  height: 1rem;
  background: var(--color-mist);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--color-red);
  border-radius: 999px;
  transition: width 0.6s var(--ease);
  min-width: 0.5rem;
}

.progress-bar__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

.progress-bar__target-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  font-style: italic;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1rem;
  border-left: 3px solid var(--color-red);
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 0.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__year {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
}

.timeline__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

/* The year pill straddles the rail only once the centred timeline has slack
   either side of it; narrower viewports stack it above the entry instead. */
@media (min-width: 1000px) {
  .timeline {
    padding-left: 2rem;
  }

  .timeline__item {
    padding: 0 0 2rem 3rem;
  }

  .timeline__year {
    position: absolute;
    left: -2rem;
    top: 0;
    transform: translateX(-50%);
    margin-bottom: 0;
    white-space: nowrap;
  }

  .timeline__item h3 {
    margin-top: 2rem;
  }
}

.timeline__item p {
  color: var(--color-ink-muted);
  margin: 0;
}

/* Mission / Vision / Values */
.mission-grid {
  display: grid;
  gap: 1.5rem;
}

.mission-card {
  background: var(--color-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.04);
}

.mission-card h3 {
  color: var(--color-red);
  margin-top: 0;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.value-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: var(--color-mist);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Founder message */
.founder-message {
  background: var(--color-forest);
  color: var(--color-white);
}

.founder-message h2,
.founder-message .cause-band__eyebrow,
.founder-message p {
  color: var(--color-white);
}

.founder-message .section-intro p {
  color: var(--color-gold);
}

.founder-message__body {
  max-width: 100%;
  margin: 0;
  column-count: 1;
}

.founder-message__body p:first-of-type {
  font-weight: 600;
  font-size: 1.1em;
}

@media (min-width: 900px) {
  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .founder-message__body {
    column-count: 2;
    column-gap: 2rem;
  }
}

/* Route cards */
.route-cards {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.route-card {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.04);
}

.route-card__step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.route-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.route-card__content h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.route-card__content p {
  margin: 0;
  color: var(--color-ink-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.04);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-red);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-ink-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-mist);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--color-ink-muted);
}

.gallery-item__trigger {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
}

.gallery-item__trigger img {
  transition: transform 0.25s var(--ease);
}

.gallery-item__trigger:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.94);
  color: var(--color-white);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox__caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 0;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--color-red);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

/* People page */
.people-group {
  margin-bottom: 3rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.people-card {
  background: var(--color-white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.04);
}

.people-card img,
.people-card__placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background: var(--color-mist);
}

.people-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.people-card .muted {
  color: var(--color-ink-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* In-body media slots */
.media-slot {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--color-mist);
}

.media-slot img,
.media-slot__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot__placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--color-ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.04), transparent 55%),
    var(--color-mist);
}

.media-slot--landscape {
  aspect-ratio: 16 / 10;
}

.media-slot--square {
  aspect-ratio: 1;
}

.media-slot--portrait {
  aspect-ratio: 3 / 4;
  max-width: 18rem;
}

.media-slot--inline {
  margin: 1.25rem 0 0;
}

.media-slot--teaser {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.media-slot--featured {
  width: 100%;
}

.media-slot--founder {
  float: none;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0 0 1.25rem;
  break-inside: avoid;
}

.media-slot--founder img {
  height: auto;
  object-fit: contain;
}

.media-slot--founder .media-slot__placeholder {
  min-height: 12rem;
}

.media-slot--editable {
  position: relative;
  outline: 2px dashed rgba(178, 34, 34, 0.35);
  outline-offset: -2px;
}

.media-slot--editable.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.media-slot__editor {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-slot--editable:hover .media-slot__editor,
.media-slot--editable:focus-within .media-slot__editor {
  opacity: 1;
}

.media-slot__btn {
  appearance: none;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.media-slot__btn--clear {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.admin-media-chip {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--color-forest);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
}

.admin-media-chip a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.split--media {
  align-items: center;
}

.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.media-gallery--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1000px) {
  .media-gallery--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.way-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 699px) {
  .media-gallery,
  .media-pair {
    gap: 0.5rem;
  }

  .way-thumbs {
    gap: 0.6rem;
  }

  .way-thumbs__item h3 {
    font-size: 0.95rem;
  }

  .way-thumbs__item p {
    font-size: 0.85rem;
  }
}

.way-thumbs__item h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.1rem;
}

.way-thumbs__item p {
  margin: 0;
}

/* Public site modal */
.site-modal {
  width: min(100% - 2rem, 28rem);
  padding: 0;
  border: 0;
  background: transparent;
}

.site-modal::backdrop {
  background: rgba(26, 26, 26, 0.55);
}

.site-modal__card {
  background: var(--color-white);
  color: var(--color-ink);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.22);
  text-align: center;
}

.site-modal__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-forest-soft);
  color: var(--color-forest);
}

.site-modal__icon--info {
  background: var(--color-mist);
  color: var(--color-ink);
}

.site-modal__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-red);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.site-modal h2 {
  margin: 0 0 0.75rem;
  font-size: var(--font-size-h3);
}

.site-modal p {
  margin: 0;
  color: var(--color-ink-muted);
}

.site-modal__actions {
  margin-top: 1.5rem;
}

.site-modal__actions .btn {
  min-width: 8rem;
}

