/* ==========================================================================
   Waste to Wild Foundation — Minimal Two-Color System (#088a3e & #ffffff)
   ========================================================================== */

:root {
  --green: #088a3e;
  --white: #ffffff;

  --green-hover: rgba(8, 138, 62, 0.88);
  --green-muted: rgba(8, 138, 62, 0.78);
  --green-subtle: rgba(8, 138, 62, 0.08);
  --green-border: rgba(8, 138, 62, 0.22);
  --green-border-strong: rgba(8, 138, 62, 0.45);

  --white-muted: rgba(255, 255, 255, 0.88);
  --white-glass: rgba(255, 255, 255, 0.14);
  --white-glass-hover: rgba(255, 255, 255, 0.24);
  --white-border: rgba(255, 255, 255, 0.45);

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--green);
  background-color: var(--green);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 0;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--white);
  color: var(--green);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 2px;
}

.site-header :focus-visible,
.hero-fullbleed :focus-visible,
.story-band :focus-visible,
.green-band :focus-visible,
.site-footer :focus-visible,
.auth-gate-card :focus-visible,
.points-dashboard-card :focus-visible {
  outline-color: var(--white);
}

#hero-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 70px;
  pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.74rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

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

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

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

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

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

.btn-green:hover {
  background: var(--green-hover);
}

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

.btn-outline-green:hover {
  background: var(--green-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--green-muted);
}

.btn-ghost:hover {
  background: var(--green-subtle);
  color: var(--green);
}

.btn-xs {
  padding: 0.34rem 0.78rem;
  font-size: 0.78rem;
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.92rem 1.9rem;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--green);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  display: inline-flex;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
}

.brand-sub {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--white-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
}

.primary-nav a:hover {
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions[hidden] {
  display: none;
}

.nav-text-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.nav-text-btn:hover {
  opacity: 0.82;
}

.wallet-pill,
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white-glass);
  border: 1.5px solid var(--white-border);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.wallet-pill {
  padding: 0.38rem 0.85rem;
}

.account-pill {
  padding: 0.24rem 0.82rem 0.24rem 0.28rem;
}

.wallet-pill:hover,
.account-pill:hover {
  background: var(--white-glass-hover);
}

.wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}

.wallet-label {
  color: var(--white-muted);
  font-weight: 500;
}

.account-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-name {
  max-width: 10ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   1. Full-Bleed Hero
   ========================================================================== */

.hero-fullbleed {
  position: relative;
  min-height: clamp(580px, 84vh, 800px);
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
  color: var(--white);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(98deg, rgba(8, 138, 62, 0.86) 0%, rgba(8, 138, 62, 0.5) 54%, rgba(8, 138, 62, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content > * {
  max-width: 660px;
}

.hero-fullbleed h1 {
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.06rem, 1.3vw, 1.2rem);
  color: var(--white-muted);
  margin: 0 0 2rem;
}

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

/* ==========================================================================
   2. Three Concise Narrative Splits (#088a3e)
   ========================================================================== */

.story-band {
  background: var(--green);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
}

.story-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  scroll-margin-top: 5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.story-copy h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.story-copy p {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--white-muted);
  margin: 0 0 1rem;
}

.story-copy p:last-of-type {
  margin-bottom: 0;
}

.story-copy strong {
  color: var(--white);
}

.story-copy-on-white h2,
.story-copy-on-white strong {
  color: var(--green);
}

.story-copy-on-white p {
  color: var(--green-muted);
}

.mission-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--green-border);
}

.mission-facts dt {
  font-size: 0.78rem;
  color: var(--green-muted);
  margin-bottom: 0.2rem;
}

.mission-facts dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
}

.story-photo {
  margin: 0;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* ==========================================================================
   3. White Contrast Bands (Our Work & Compact WildPoints)
   ========================================================================== */

.section {
  padding: clamp(4.25rem, 7.5vw, 6.25rem) 0;
  scroll-margin-top: 5rem;
}

.white-band {
  background: var(--white);
  color: var(--green);
}

.band-divider {
  border-top: 1px solid var(--green-border);
}

.green-band {
  background: var(--green);
  color: var(--white);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section h2 {
  font-size: clamp(2.15rem, 3.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  margin: 0;
  font-size: 1.08rem;
  color: var(--green-muted);
}

.section-header-white h2 {
  color: var(--white);
}

.section-header-white .section-sub {
  color: var(--white-muted);
}

/* Our Work 3-Column Photo Pillars */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.work-grid-on-green h3 {
  color: var(--white);
}

.work-grid-on-green p {
  color: var(--white-muted);
}

.work-photo {
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: 4px;
}

.work-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.work-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--green-muted);
}

.work-grid-on-green p {
  color: var(--white-muted);
}

.work-cta-wrap {
  text-align: center;
}

/* ==========================================================================
   4. WildPoints Explanation + Simple Donate Band (#088a3e)
   ========================================================================== */

.points-column h2 {
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.points-lead {
  font-size: 1.06rem;
  color: var(--white-muted);
  margin: 0 0 1.75rem;
  max-width: 48ch;
}

.points-lead strong {
  color: var(--white);
}

.points-guest-box[hidden],
.points-member-box[hidden] {
  display: none;
}

.points-mini-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
  color: var(--white);
}

.points-member-box {
  background: var(--white-glass);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.compact-vouchers-list {
  border-top: 1px solid var(--white-border);
  padding-top: 1rem;
}

.compact-vouchers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.compact-vouchers-head h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-muted);
  margin: 0;
}

.link-white-btn {
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.points-member-box .page-vouchers-grid {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.points-member-box .page-vouchers-empty {
  color: var(--white-muted);
  font-size: 0.88rem;
}

.points-member-box .voucher-card {
  background: var(--white);
  color: var(--green);
  border: 0;
  padding: 0.9rem 1rem;
}

.points-column-on-white h2,
.points-column-on-white .points-lead strong,
.points-column-on-white .points-mini-steps {
  color: var(--green);
}

.points-column-on-white .points-lead {
  color: var(--green-muted);
}

.points-member-solid {
  background: var(--green);
  color: var(--white);
  border: 0;
}

.donate-card-solid {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
}

.donate-card-solid h2 {
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.footer-partner-seal {
  border: 1.5px solid var(--white-border);
  background: var(--white-glass);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  text-align: center;
  max-width: 240px;
}

.footer-partner-seal strong {
  display: block;
  font-size: 0.82rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-partner-seal span {
  display: block;
  font-size: 0.78rem;
  color: var(--white-muted);
  line-height: 1.4;
}

.auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.points-dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pill-white {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--white);
  color: var(--green);
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  margin-right: 0.65rem;
}

.points-member-welcome {
  font-weight: 600;
}

.points-member-id {
  font-size: 0.84rem;
  color: var(--white-muted);
}

.points-dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  align-items: flex-end;
}

.dash-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-muted);
  margin-bottom: 0.2rem;
}

.dash-balance {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.05;
}

.dash-balance small {
  font-family: var(--font-sans);
  font-size: 1rem;
}

.dash-sub-val {
  font-size: 1.35rem;
}

.points-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.issued-vouchers-panel {
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.issued-vouchers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.issued-vouchers-header h3 {
  font-size: 1.35rem;
  margin: 0;
}

.page-vouchers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-vouchers-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green-muted);
  font-size: 0.94rem;
}

.voucher-card {
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.voucher-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.voucher-card-amount {
  font-size: 1.35rem;
  font-weight: 700;
}

.voucher-card-pts {
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--green-border);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
}

.voucher-card-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--green-border);
}

.voucher-card-expiry {
  font-size: 0.75rem;
  color: var(--green-muted);
}

/* ==========================================================================
   5. Simple Dual Conversion Band (#088a3e — mirrors 4ocean)
   ========================================================================== */

.conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.donate-column h2,
.inspire-card h2 {
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.amount-presets-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.amount-pill {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.76rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.amount-pill:hover {
  background: var(--white-glass);
}

.amount-pill.is-selected {
  background: var(--white);
  color: var(--green);
}

.custom-amount-row {
  max-width: 280px;
  margin-bottom: 1.25rem;
}

.custom-amount-row[hidden] {
  display: none;
}

.input-prefix-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green);
  pointer-events: none;
}

.custom-amount-row input[type="number"] {
  border-radius: var(--radius-pill);
  border-color: var(--white);
  padding-left: 2.15rem;
}

.freq-radio-group {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.freq-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
}

.freq-radio-label input {
  accent-color: var(--white);
  width: 1.05rem;
  height: 1.05rem;
}

.donate-points-line {
  margin: 0 0 1.5rem;
  font-size: 0.96rem;
  color: var(--white-muted);
}

.donate-points-line strong {
  color: var(--white);
}

.donate-main-btn {
  min-width: 210px;
  margin-bottom: 1.25rem;
}

.donate-footnote {
  margin: 0;
  max-width: 44ch;
  font-size: 0.84rem;
  color: var(--white-muted);
}

/* Right: Stay Inspired Rounded Card */
.inspire-card {
  background: var(--white-glass);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
}

.inspire-card > p {
  margin: -0.75rem 0 1.5rem;
  color: var(--white-muted);
  font-size: 0.96rem;
}

.pill-form input[type="text"],
.pill-form input[type="email"] {
  border-radius: var(--radius-pill);
  border-color: var(--white);
  padding: 0.78rem 1.2rem;
}

.newsletter-success {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   Shared Inputs & Post-Interaction Validation
   ========================================================================== */

.field {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.28rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--green);
  background: var(--white);
  border: 1.5px solid var(--green-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
}

input::placeholder {
  color: var(--green-muted);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 4.5rem;
}

.toggle-password-btn {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--green-subtle);
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.34rem 0.62rem;
  border-radius: 8px;
  cursor: pointer;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

.rules-list {
  margin: 0.1rem 0 0.45rem;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: var(--green-muted);
}

.field:has(input:is(:user-invalid, .user-invalid-fallback)) .rules-list {
  color: var(--green);
  font-weight: 700;
}

.field:has(input:is(:user-valid, .user-valid-fallback)) .rules-list {
  visibility: hidden;
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-style: dashed;
  border-color: var(--green);
}

.error-msg {
  display: none;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.error-msg-white {
  color: var(--white);
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg,
.input-prefix-wrap:has(input:is(:user-invalid, .user-invalid-fallback)) + .error-msg,
.password-input-wrap:has(input:is(:user-invalid, .user-invalid-fallback)) + .error-msg {
  display: block;
}

/* ==========================================================================
   6. Clean Footer (#088a3e)
   ========================================================================== */

.site-footer {
  background: var(--green);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4rem 0 2.25rem;
}

.footer-grid-3 {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  align-items: start;
}

.footer-brand p {
  color: var(--white-muted);
  font-size: 0.92rem;
  max-width: 32ch;
  margin: 0.9rem 0 0;
}

.footer-contact a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.footer-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.footer-nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-nav-links a:hover {
  opacity: 0.8;
}

.footer-founder-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-founder-col blockquote {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--white-muted);
  font-style: italic;
}

.founder-signature {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: var(--white-muted);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
}

.scroll-top-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--white-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
}

.scroll-top-btn:hover {
  background: var(--white);
  color: var(--green);
}

.footer-legal-links {
  display: flex;
  gap: 1.4rem;
}

.footer-legal-links a {
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Native Modal Dialogs (dialog + light-dismiss + animate-to-from-top-layer)
   ========================================================================== */

dialog.modal-dialog {
  width: min(500px, calc(100% - 2rem));
  max-height: min(88dvh, 720px);
  margin: auto;
  padding: 1.75rem;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--green);
  overflow-y: auto;

  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.26s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.modal-dialog {
    transform: scale(0.95);
  }
}

dialog.modal-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(8, 138, 62, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.26s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog.modal-dialog[open]:where(:not([data-closing])) {
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: scale(1);

    @starting-style {
      transform: scale(0.95);
    }
  }

  &::backdrop {
    background-color: rgba(8, 138, 62, 0.55);
    backdrop-filter: blur(4px);

    @starting-style {
      background-color: rgba(8, 138, 62, 0);
      backdrop-filter: blur(0px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.modal-dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-muted);
}

.dialog-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.dialog-close {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--green-border);
  background: var(--white);
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dialog-close:hover {
  background: var(--green-subtle);
}

.dialog-body-text {
  margin: 0 0 0.85rem;
  color: var(--green-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-pill);
  padding: 0.22rem;
}

.auth-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--green);
  color: var(--white);
}

.auth-context-banner,
.auth-form-error,
.auth-info-note,
.redeem-warning {
  margin: 0 0 0.9rem;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--green);
  background: var(--green-subtle);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.convert-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.convert-chip {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.56rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-border);
  background: var(--white);
  color: var(--green);
  cursor: pointer;
}

.convert-chip.is-selected {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.wallet-hero-box {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-hero-label {
  display: block;
  font-size: 0.76rem;
  color: var(--white-muted);
}

.wallet-hero-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.wallet-hero-value small {
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.wallet-tier-caption {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--white-muted);
}

.wallet-hero-impact {
  text-align: right;
}

.wallet-hero-impact strong {
  font-size: 1.2rem;
}

.dialog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dialog-section h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-muted);
  margin-bottom: 0.6rem;
}

.dialog-section-head h3 {
  margin-bottom: 0;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.voucher-item {
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.voucher-item-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.voucher-item-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--green-muted);
}

.voucher-code-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px dashed var(--green);
  color: var(--green);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--green-border);
}

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

.empty-state {
  margin: 0;
  font-size: 0.9rem;
  color: var(--green-muted);
}

.redeem-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  margin: 0 0 1rem;
}

.redeem-summary dt {
  font-size: 0.74rem;
  color: var(--green-muted);
  margin-bottom: 0.2rem;
}

.redeem-summary dd {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
}

.voucher-success-box {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-align: center;
  margin-bottom: 1.15rem;
}

.voucher-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.95rem;
}

.voucher-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.voucher-code-row code {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--white-glass);
  color: var(--white);
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--white);
  white-space: nowrap;
}

.voucher-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--white-muted);
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--green-border);
}

.dialog-footer-split {
  justify-content: space-between;
}

/* ==========================================================================
   Scroll-Driven Decorative Reveal (scroll-entry-exit-effects guide)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes card-reveal-in {
      from {
        opacity: 0.25;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-card {
      animation: card-reveal-in auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .story-grid,
  .conversion-grid,
  .footer-grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-center-col {
    justify-content: flex-start;
  }

  .footer-nav-links {
    text-align: left;
  }

  .work-grid,
  .page-vouchers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .work-grid,
  .page-vouchers-grid,
  .field-row,
  .redeem-summary,
  .convert-presets,
  .mission-facts {
    grid-template-columns: 1fr;
  }

  .header-actions .nav-donate-cta {
    display: none;
  }
}


/* ==========================================================================
   Subpages: Our Mission & Our Impact (Strictly #088a3e & #ffffff)
   ========================================================================== */

.primary-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.subpage-hero {
  min-height: clamp(480px, 68vh, 660px);
}

.stacked-title {
  font-size: clamp(3.2rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.centered-editorial {
  max-width: 780px;
  text-align: center;
}

.centered-editorial h2 {
  margin-bottom: 1.15rem;
}

.centered-editorial p {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--green-muted);
  margin: 0 0 1.25rem;
}

.centered-editorial-white h2,
.centered-editorial-white strong {
  color: var(--white);
}

.centered-editorial-white p {
  color: var(--white-muted);
}

.lead-statement {
  font-size: 1.18rem !important;
  color: var(--green) !important;
}

.vision-heading {
  font-size: 1.6rem;
  margin: 2rem 0 0.7rem;
  color: var(--green);
}

.vision-copy {
  margin-bottom: 2rem !important;
}

.stat-callout-band {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.big-callout {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.9vw, 2.35rem) !important;
  line-height: 1.32 !important;
  color: var(--green) !important;
  margin-bottom: 1rem !important;
}

.citation-line {
  font-size: 0.84rem !important;
  color: var(--green-muted) !important;
  margin-bottom: 0 !important;
}

/* Full-width Photo Overlay Feature Banners */
.feature-overlay-band {
  position: relative;
  min-height: clamp(440px, 60vh, 580px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 7vw, 5.5rem) 0;
  overflow: hidden;
  color: var(--white);
}

.feature-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 138, 62, 0.92) 0%, rgba(8, 138, 62, 0.72) 52%, rgba(8, 138, 62, 0.22) 100%);
}

.feature-overlay-content {
  position: relative;
  z-index: 1;
}

.feature-overlay-content > * {
  max-width: 600px;
}

.feature-overlay-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  color: var(--white);
  margin-bottom: 1.15rem;
}

.feature-overlay-content p {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--white-muted);
  margin: 0 0 1.25rem;
}

.feature-overlay-content .btn {
  margin-top: 0.5rem;
}

/* Framed Polaroid-Style Split Donation Photo */
.support-split-grid {
  align-items: center;
}

.framed-field-photo {
  margin: 0;
  background: var(--white);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.85rem 1rem;
  box-shadow: 0 16px 36px rgba(8, 138, 62, 0.12);
}

.framed-field-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.framed-field-photo figcaption {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green-muted);
  text-align: center;
}

.donate-card-solid h3 {
  font-size: clamp(1.85rem, 2.8vw, 2.35rem);
  color: var(--white);
  margin-bottom: 1.35rem;
}

/* Our Impact: 4-Column Operational Pillars */
.pillars-4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillars-4-grid .work-card h3 {
  font-size: 1.28rem;
  color: var(--white);
}

.pillars-4-grid .work-card p {
  color: var(--white-muted);
  font-size: 0.92rem;
}

.work-photo-43 img {
  aspect-ratio: 4 / 3;
}

/* Our Impact: 3 KPI Icons */
.kpi-3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.kpi-icon {
  display: inline-flex;
  color: var(--green);
}

.kpi-big {
  font-size: clamp(2.25rem, 3.6vw, 3.1rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.05;
}

.kpi-item p {
  margin: 0;
  max-width: 30ch;
  font-size: 0.94rem;
  color: var(--green-muted);
}

/* Our Impact: Interactive Kilograms / Pounds Flip Counter */
.counter-box {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.counter-lead {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  color: var(--white-muted);
}

.unit-toggle {
  display: inline-flex;
  border: 1.5px solid var(--white);
  border-radius: var(--radius-pill);
  padding: 0.22rem;
  margin-bottom: 1.75rem;
}

.unit-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.48rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.unit-btn.is-active {
  background: var(--white);
  color: var(--green);
}

.flip-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.digit-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(2.5rem, 5.2vw, 3.7rem);
  height: clamp(3.4rem, 6.8vw, 4.8rem);
  background: var(--white);
  color: var(--green);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 700;
}

.digit-comma {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  align-self: flex-end;
  padding-bottom: 0.35rem;
}

.digit-unit-suffix {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-left: 0.5rem;
}

.counter-sub {
  margin: 0;
  font-size: 0.96rem;
  color: var(--white-muted);
}

.counter-sub strong {
  color: var(--white);
}

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

.infra-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: var(--white-glass);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.infra-badge {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.infra-card h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.infra-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--white-muted);
}

/* Our Impact: 3-Card Operations Spotlight */
.spotlight-3-grid,
.involve-3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.spotlight-card,
.involve-card {
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.spotlight-stat {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.spotlight-card h3,
.involve-card h3 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.55rem;
}

.spotlight-card p,
.involve-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--green-muted);
}

.involve-donate-split {
  margin-top: 3.5rem;
}

/* What We Measure & Transparency */
.measure-col h2,
.transparency-col h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.15rem;
}

.measure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.measure-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--white-muted);
  font-size: 0.98rem;
}

.measure-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  font-weight: 700;
}

.transparency-col p {
  margin: 0 0 1rem;
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.transparency-col strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .pillars-4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-3-grid,
  .infra-2x2-grid,
  .spotlight-3-grid,
  .involve-3-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pillars-4-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Subpages v2 — 4ocean-style layout, Waste to Wild identity
   (Our Mission & Our Impact)
   ========================================================================== */

.subpage-hero .stacked-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.section-flush-top {
  padding-top: 0;
}

.tint-band {
  background: #eef6f1;
  color: var(--green);
}

/* Mission: 4-photo row */
.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.thumb-row figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumb-row figure:hover img {
  transform: scale(1.04);
}

/* Mission: big stat band */
.stat-band {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.stat-band-inner {
  max-width: 860px;
  text-align: center;
}

.stat-band-text {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 1.75rem;
}

.stat-band-text strong {
  font-weight: 800;
}

.stat-band-cite {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-muted);
}

/* Feature overlay: photo stays visible on the right */
.feature-left .feature-scrim {
  background: linear-gradient(90deg, rgba(8, 138, 62, 0.95) 0%, rgba(8, 138, 62, 0.8) 38%, rgba(8, 138, 62, 0.15) 70%, rgba(8, 138, 62, 0) 100%);
}

.feature-left .feature-overlay-content > * {
  max-width: 520px;
}

/* Donation: tilted polaroid + light form (both pages) */
.donate-ref-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.polaroid-photo {
  margin: 0;
  background: var(--white);
  padding: 0.9rem 0.9rem 1.1rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  transform: rotate(-6deg);
  max-width: 440px;
  justify-self: center;
}

.polaroid-right {
  transform: rotate(5deg);
}

.polaroid-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.polaroid-photo figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--green);
  text-align: center;
}

.donate-panel {
  text-align: center;
}

.donate-panel h2 {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  color: var(--green);
  margin-bottom: 0.75rem;
}

.donate-panel-sub {
  margin: 0 0 2rem;
  color: var(--green-muted);
  font-size: 1.04rem;
}

.donate-panel .amount-presets-pill,
.donate-panel .freq-radio-group {
  justify-content: center;
}

.donate-panel .amount-pill {
  border-color: var(--green);
  color: var(--green);
  min-width: 96px;
}

.donate-panel .amount-pill:hover {
  background: var(--green-subtle);
}

.donate-panel .amount-pill.is-selected {
  background: var(--green);
  color: var(--white);
}

.donate-panel .custom-amount-row {
  margin-inline: auto;
}

.donate-panel .custom-amount-row input[type="number"] {
  border-color: var(--green-border-strong);
}

.donate-panel .freq-radio-label {
  color: var(--green);
}

.donate-panel .freq-radio-label input {
  accent-color: var(--green);
}

.donate-panel .donate-points-line {
  color: var(--green-muted);
}

.donate-panel .donate-points-line strong {
  color: var(--green);
}

.donate-panel .donate-footnote {
  margin-inline: auto;
  color: var(--green-muted);
}

/* Impact: crisis band (left aligned) */
.crisis-inner h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.crisis-inner p {
  max-width: 1000px;
  margin: 0 0 1.1rem;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--white-muted);
}

.crisis-inner p:last-child {
  margin-bottom: 0;
}

.crisis-inner strong {
  color: var(--white);
}

/* Impact: How We Work cards on white */
.pillars-ref .work-card h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.pillars-ref .work-card p {
  color: var(--green-muted);
  font-size: 0.94rem;
}

.work-photo-34 img {
  aspect-ratio: 3 / 4;
}

/* Impact: numbers band */
.numbers-header {
  max-width: 780px;
}

.numbers-header strong {
  color: var(--white);
}

.kpi-ref {
  margin-bottom: 0;
}

.kpi-ref .kpi-icon {
  color: var(--white);
}

.kpi-ref .kpi-item p {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--white);
  max-width: 18ch;
}

.kpi-ref .kpi-item p strong {
  font-weight: 800;
}

/* Impact: photo-filled counter */
.counter-ref {
  text-align: center;
}

.counter-ref-title {
  font-family: var(--font-sans) !important;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem) !important;
  line-height: 1.35;
  max-width: 860px;
  margin: 0 auto 1.5rem !important;
  color: var(--green);
}

.unit-toggle-light {
  border-color: var(--green);
}

.unit-toggle-light .unit-btn {
  color: var(--green);
}

.unit-toggle-light .unit-btn.is-active {
  background: var(--green);
  color: var(--white);
}

.photo-counter {
  gap: 0;
  align-items: baseline;
  background-image: url("assets/mission-action.jpg");
  background-size: cover;
  background-position: center 40%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
}

.photo-counter .digit-tile,
.photo-counter .digit-comma {
  background: none;
  color: transparent;
  min-width: 0;
  height: auto;
  border-radius: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(4.5rem, 13vw, 10.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  align-self: auto;
}

.photo-counter .digit-unit-suffix {
  color: var(--green);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  margin-left: 0.6rem;
}

.counter-ref .counter-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--green-muted);
}

.counter-ref .counter-sub strong {
  color: var(--green);
}

/* Impact: infrastructure icon list */
.infra-ref-title {
  font-family: var(--font-sans) !important;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.75rem !important;
}

.infra-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3.5rem;
}

.infra-ref-item h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.55rem;
}

.infra-ref-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  flex-shrink: 0;
}

.infra-ref-item p {
  margin: 0;
  color: var(--white-muted);
  font-size: 0.98rem;
  max-width: 46ch;
}

/* Impact: spotlight photo tiles */
.spotlight-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.spotlight-ref {
  text-align: center;
}

.spotlight-ref figure {
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.spotlight-ref img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spotlight-ref h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.spotlight-ref .spotlight-stat {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.spotlight-ref p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--green-muted);
}

/* Impact: scale comparison */
.scale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.scale-question {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 500;
}

.scale-question strong {
  font-weight: 800;
}

.scale-big {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.scale-big-label {
  margin: 0.2rem 0 0.9rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1;
}

.scale-sub {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--green-muted);
}

.scale-sub strong {
  color: var(--green);
}

/* Impact: annual opportunity */
.opportunity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.opportunity-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.opportunity-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.opportunity-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.opportunity-block h3 {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.55rem 1rem;
  margin: 0 0 0.6rem;
  border-radius: 4px;
}

.opportunity-block p {
  margin: 0;
  color: var(--green-muted);
  font-size: 0.98rem;
}

.opportunity-block strong {
  color: var(--green);
}

/* Impact: gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

/* Impact: measure + transparency */
.measure-ref h2,
.transparency-ref h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.measure-ref h2 {
  color: var(--white);
}

.measure-ref .measure-list li {
  font-size: 1.05rem;
}

.measure-ref .measure-list strong {
  color: var(--white);
}

.transparency-ref p {
  margin: 0;
  max-width: 1000px;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--green-muted);
}

.transparency-ref strong {
  color: var(--green);
}

/* Impact: Tiny Plastics card */
.danger-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.danger-media {
  position: absolute;
  inset: 0;
}

.danger-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.danger-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 138, 62, 0.95) 0%, rgba(8, 138, 62, 0.82) 45%, rgba(8, 138, 62, 0.2) 80%, rgba(8, 138, 62, 0.05) 100%);
}

.danger-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 3.75rem);
}

.danger-copy h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.danger-copy h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  margin: 1.75rem 0 0.5rem;
}

.danger-copy p,
.pieces-list li {
  color: var(--white-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.danger-copy p {
  margin: 0 0 0.9rem;
}

.danger-copy strong {
  color: var(--white);
}

.pieces-list {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Impact: ways to get involved */
.involve-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
  text-align: center;
}

.involve-ref p {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--green-muted);
  font-size: 0.98rem;
}

.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  margin-bottom: 1rem;
}

.photo-strip img {
  width: 100%;
  height: clamp(220px, 32vw, 400px);
  object-fit: cover;
}

/* Impact: FAQ */
.faq-wrap {
  max-width: 860px;
}

.faq-group {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2.25rem 0 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 700;
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--green-muted);
}

/* Responsive */
@media (max-width: 980px) {
  .thumb-row,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donate-ref-grid,
  .scale-grid,
  .opportunity-grid,
  .infra-ref-grid,
  .spotlight-ref-grid,
  .involve-ref-grid {
    grid-template-columns: 1fr;
  }

  .polaroid-photo {
    max-width: 340px;
  }

  .danger-media::after {
    background: rgba(8, 138, 62, 0.85);
  }

  .feature-left .feature-scrim {
    background: rgba(8, 138, 62, 0.82);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .pillars-4-grid.pillars-ref {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.9rem;
  }

  .pillars-ref .work-card h3 {
    font-size: 1.05rem;
  }
}

/* Header turns solid while scrolling even if JavaScript is unavailable */
@supports (animation-timeline: scroll()) {
  @keyframes header-solid {
    from { background-color: transparent; }
    to { background-color: var(--green); border-bottom-color: rgba(255, 255, 255, 0.2); }
  }

  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80px;
  }
}

.subpage-hero {
  min-height: clamp(420px, 58vh, 560px);
}


/* ==========================================================================
   Responsive refresh — mobile menu + clean tablet/mobile layouts
   ========================================================================== */

.brand-name,
.brand-sub {
  white-space: nowrap;
}

.work-cta-wrap {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 26px;
  height: 18px;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7.75px; }
.menu-toggle-bars span:nth-child(3) { top: 15.5px; }

.menu-open .menu-toggle-bars span:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
.menu-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle-bars span:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }

.site-header.menu-open {
  background: var(--green);
  animation: none;
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-height: calc(100dvh - 4.75rem);
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 0 1.75rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-links a {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-menu-links a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mobile-menu-actions[hidden] {
  display: none;
}

.mobile-menu-donate {
  width: 100%;
}

@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Tablet (≤980px) ---------- */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .nav-text-btn,
  .header-actions #header-signup-btn,
  .header-actions .wallet-pill,
  .header-actions .account-pill {
    display: none;
  }

  .header-inner {
    min-height: 4.25rem;
  }

  /* Keep 3-up grids side by side on tablets */
  .kpi-3-grid,
  .spotlight-ref-grid,
  .involve-ref-grid,
  .spotlight-3-grid,
  .involve-3-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .infra-ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.25rem;
  }

  .donate-ref-grid,
  .scale-grid,
  .opportunity-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.25rem;
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .feature-left .feature-scrim {
    background: linear-gradient(90deg, rgba(8, 138, 62, 0.94) 0%, rgba(8, 138, 62, 0.8) 55%, rgba(8, 138, 62, 0.35) 100%);
  }

  .footer-grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-founder-col {
    grid-column: 1 / -1;
  }

  .footer-center-col {
    align-items: flex-start;
  }
}

/* ---------- Mobile (≤760px) ---------- */
@media (max-width: 760px) {
  .container {
    width: calc(100% - 2.5rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-flush-top {
    padding-top: 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section h2,
  .centered-editorial h2 {
    font-size: clamp(1.85rem, 7.5vw, 2.3rem);
  }

  /* Heros */
  .hero-fullbleed {
    min-height: auto;
    padding: 7rem 0 3.5rem;
  }

  .subpage-hero {
    min-height: 380px;
  }

  .hero-fullbleed h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .subpage-hero .stacked-title {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  /* Text blocks */
  .centered-editorial p,
  .crisis-inner p,
  .transparency-ref p {
    font-size: 1rem;
  }

  .lead-statement {
    font-size: 1.06rem !important;
  }

  .stat-band {
    padding: 3.5rem 0;
  }

  .stat-band-text {
    font-size: 1.5rem;
  }

  /* Grids → single column, compact */
  .kpi-3-grid,
  .spotlight-ref-grid,
  .involve-ref-grid,
  .spotlight-3-grid,
  .involve-3-grid,
  .infra-ref-grid,
  .donate-ref-grid,
  .scale-grid,
  .opportunity-grid,
  .work-grid,
  .story-grid,
  .conversion-grid {
    grid-template-columns: 1fr;
  }

  .thumb-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2.5rem;
  }

  .work-grid {
    gap: 2.25rem;
  }

  .work-photo img {
    aspect-ratio: 4 / 3;
  }

  .mission-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem;
  }

  /* Impact numbers: icon left, text right */
  .kpi-ref {
    gap: 1.25rem;
  }

  .kpi-ref .kpi-item {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  .kpi-ref .kpi-icon svg {
    width: 40px;
    height: 40px;
  }

  .kpi-ref .kpi-item p {
    max-width: none;
    font-size: 1.12rem;
  }

  .photo-counter .digit-tile,
  .photo-counter .digit-comma {
    font-size: clamp(3.6rem, 19vw, 5rem);
  }

  .infra-ref-title {
    margin-bottom: 1.75rem !important;
  }

  .infra-ref-grid {
    gap: 1.5rem;
  }

  /* Spotlight: photo left, text right */
  .spotlight-ref-grid {
    gap: 1.25rem;
  }

  .spotlight-ref {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 1rem;
    text-align: left;
  }

  .spotlight-ref figure {
    grid-row: 1 / 4;
    margin: 0;
  }

  .spotlight-ref img {
    aspect-ratio: 1 / 1;
    height: 100%;
  }

  .spotlight-ref h3 {
    font-size: 1.05rem;
  }

  .spotlight-ref .spotlight-stat {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .spotlight-ref p {
    margin: 0;
    font-size: 0.88rem;
  }

  /* Scale callout */
  .scale-copy {
    text-align: center;
  }

  .scale-big {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .scale-big-label {
    font-size: 2rem;
  }

  .polaroid-photo {
    max-width: 280px;
  }

  .opportunity-photo img {
    aspect-ratio: 16 / 10;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  /* Ways to get involved: badge left */
  .involve-ref-grid {
    gap: 1.25rem;
  }

  .involve-ref {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .involve-ref .check-badge {
    margin: 0;
    flex-shrink: 0;
  }

  .involve-ref p {
    margin: 0;
    max-width: none;
  }

  .danger-card {
    min-height: auto;
    border-radius: var(--radius-md);
  }

  .danger-copy {
    padding: 2rem 1.5rem;
  }

  .photo-strip img {
    height: 200px;
  }

  .feature-overlay-band {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .feature-left .feature-scrim {
    background: rgba(8, 138, 62, 0.86);
  }

  .donate-panel h2 {
    font-size: 1.9rem;
  }

  .donate-panel .amount-presets-pill {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .donate-panel .amount-pill {
    min-width: 0;
    padding-inline: 0.5rem;
  }

  .donate-panel #other-amount-btn {
    grid-column: 1 / -1;
  }

  .donate-main-btn {
    width: 100%;
  }

  .faq-item summary {
    font-size: 0.95rem;
  }

  /* Footer */
  .site-footer {
    text-align: left;
  }

  .footer-grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
    text-align: left;
  }

  .footer-center-col {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ---------- Small phones (≤640px) ---------- */
@media (max-width: 640px) {
  .header-actions .nav-donate-cta {
    display: none;
  }

  .header-actions {
    gap: 0;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .story-grid,
  .conversion-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .mission-facts dd {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .mission-facts dt {
    font-size: 0.72rem;
  }
}

@media (max-width: 980px) {
  .header-actions {
    margin-left: auto;
  }

  .mission-facts dd {
    font-size: 1.1rem;
    white-space: nowrap;
  }
}

/* Ways To Get Involved: two items, centered */
@media (min-width: 761px) {
  .involve-ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-inline: auto;
  }
}
