/* ==========================================================================
   The Matt & Joan Dorman Charitable Foundation — Preview Styles
   Edit CSS custom properties below to update brand colors site-wide.
   ========================================================================== */

:root {
  /* California sunshine — sky, sand, ocean aqua, warm gold accents */
  --navy: #12324a;
  --navy-deep: #0c2438;
  --navy-soft: #2a5570;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --teal-soft: #2dd4bf;
  --orange: #ea580c;
  --orange-bright: #f97316;
  --orange-soft: #fb923c;
  --monarch: #f4a261;
  --gold: #d4a017;
  --gold-soft: #f0d78c;
  --sky: #e8f4fc;
  --sky-soft: #f0f8ff;
  --white: #ffffff;
  --warm: #fff8ef;
  --warm-deep: #ffe8c8;
  --page-teal: #eaf6f4;
  --page-teal-mid: #dff3f0;
  --page-teal-deep: #cfece8;
  --page-teal-light: #f4fbfa;
  --ink: #0f2438;
  --muted: rgba(15, 36, 56, 0.82);
  --line: rgba(18, 50, 74, 0.12);
  --shadow: 0 16px 40px rgba(18, 50, 74, 0.1);
  /* Rich teal-green cards (earlier site depth) on sunny pages */
  --card: #0f5c56;
  --card-border: rgba(126, 231, 216, 0.38);
  --card-ink: #ffffff;
  --card-muted: rgba(255, 255, 255, 0.92);
  --card-wash:
    radial-gradient(ellipse 75% 55% at 95% 0%, rgba(255, 159, 28, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(94, 234, 212, 0.28), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 28%),
    linear-gradient(160deg, #1a7a72 0%, #127066 38%, #0f5c56 68%, #0a4540 100%);
  --card-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 -2px 0 rgba(0, 0, 0, 0.22) inset,
    0 22px 48px rgba(8, 40, 38, 0.38),
    0 10px 24px rgba(15, 92, 86, 0.28),
    0 0 0 1px rgba(94, 234, 212, 0.12);
  --card-shadow-hover:
    0 2px 0 rgba(255, 255, 255, 0.28) inset,
    0 -2px 0 rgba(0, 0, 0, 0.24) inset,
    0 28px 60px rgba(8, 40, 38, 0.42),
    0 14px 30px rgba(15, 92, 86, 0.34),
    0 0 0 1px rgba(94, 234, 212, 0.22);
  --radius: 10px;
  --max: 1120px;
  --header-h: 84px;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --butterfly-pattern: url("../images/decor/butterfly-original-tile.png");
  --page-wash:
    radial-gradient(ellipse 90% 55% at 88% 8%, rgba(125, 211, 252, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(253, 224, 171, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(167, 243, 208, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 8% 72%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
    linear-gradient(165deg, #f7fbff 0%, #e8f4fc 38%, #fff8ef 72%, #f0faf7 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-wash);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--butterfly-pattern) 18px 24px / 120px 120px repeat;
  opacity: 0.055;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

/* -------------------------------------------------------------------------- */
/* Typography                                                                  */
/* -------------------------------------------------------------------------- */

h1,
h2,
h3,
.brand-name,
.tagline {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                      */
/* -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 90% 60% at 85% 10%, rgba(125, 211, 252, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 45% at 15% 90%, rgba(253, 224, 171, 0.4), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(232, 244, 252, 0.65) 100%);
}

.section--warm {
  background:
    radial-gradient(ellipse 80% 55% at 80% 20%, rgba(253, 224, 171, 0.55), transparent 50%),
    linear-gradient(165deg, #fff8ef 0%, #fff1d6 45%, #e8f4fc 100%);
}

.section--sky {
  background:
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(45, 212, 191, 0.18), transparent 50%),
    linear-gradient(180deg, #e8f4fc 0%, #f0faf7 55%, #fff8ef 100%);
}

.section--butterfly {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 80%, rgba(251, 146, 60, 0.16), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(45, 212, 191, 0.2), transparent 42%),
    linear-gradient(180deg, #f0faf7, #e8f4fc);
}

.section--board {
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(253, 224, 171, 0.45), transparent 55%),
    linear-gradient(180deg, #fff8ef 0%, #eaf6f4 100%);
}

.section--navy {
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(251, 146, 60, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(125, 211, 252, 0.35), transparent 50%),
    linear-gradient(160deg, #e0f2fe, #f0faf7 55%, #fff8ef);
  color: var(--ink);
}

.section--navy h2,
.section--navy h3,
.section--navy .brand-name {
  color: var(--ink);
}

.section--navy .section-intro,
.section--navy p {
  color: var(--muted);
}

.section--navy .eyebrow {
  color: var(--orange);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

/* -------------------------------------------------------------------------- */
/* Header / Nav                                                                */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 50, 74, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 14px rgba(18, 50, 74, 0.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 550;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange);
  background: rgba(251, 146, 60, 0.14);
}

.site-nav .nav-donate {
  margin-left: 0.35rem;
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55rem 0.95rem;
}

.site-nav .nav-donate:hover {
  background: var(--orange-bright);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Mobile app-style bottom navigation */
.mobile-tabbar,
.mobile-more-sheet,
.mobile-more-backdrop {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --header-h: 58px;
    --tabbar-h: 4.35rem;
  }

  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .site-header .container.header-inner,
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: var(--header-h);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 0.55rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .logo-text strong {
    font-size: 0;
    line-height: 0;
  }

  .logo-text strong::after {
    content: "Dorman Foundation";
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.15;
    color: var(--ink);
  }

  .logo-text span {
    display: none;
  }

  /* Top menu chrome moves to bottom tab bar */
  .nav-toggle,
  .site-nav,
  .header-tools {
    display: none !important;
  }

  .sticky-donate {
    display: none !important;
  }

  body.has-sticky-donate {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    min-height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(18, 50, 74, 0.1);
    backdrop-filter: blur(12px);
  }

  .mobile-tabbar__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 48px;
    padding: 0.2rem 0.15rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(18, 50, 74, 0.62);
    text-decoration: none;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tabbar__item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar__item[aria-current="page"],
  .mobile-tabbar__item[aria-pressed="true"] {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.14);
  }

  .mobile-tabbar__item--donate {
    color: var(--orange);
  }

  .mobile-tabbar__item--donate svg {
    fill: currentColor;
    stroke: none;
  }

  .mobile-tabbar__item--donate[aria-current="page"],
  .mobile-tabbar__item--donate:hover {
    background: rgba(251, 146, 60, 0.22);
    color: var(--orange);
  }

  .mobile-more-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 145;
    background: rgba(18, 50, 74, 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .mobile-more-backdrop[hidden],
  .mobile-more-sheet[hidden] {
    display: none !important;
  }

  .mobile-more-sheet {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    max-height: min(78vh, 34rem);
    overflow: auto;
    padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: #fffdf8;
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 40px rgba(18, 50, 74, 0.16);
    color: var(--ink);
  }

  .mobile-more-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.18);
  }

  .mobile-more-sheet__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 550;
  }

  .mobile-more-sheet__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-more-sheet__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
    background: rgba(232, 244, 252, 0.65);
  }

  .mobile-more-sheet__links a[aria-current="page"],
  .mobile-more-sheet__links a:hover {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.16);
  }

  .mobile-more-sheet__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }

  .mobile-more-sheet .quiet-toggle {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 44px;
  }

  .mobile-more-sheet .lang-switch {
    margin: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Author display rules beat the [hidden] UA style — keep toggles honest */
.btn[hidden],
a.btn[hidden] {
  display: none !important;
}

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

.btn--primary {
  background: linear-gradient(135deg, #f77f00 0%, #e85d04 55%, #d45104 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ff9f1c 0%, #f77f00 50%, #e85d04 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(232, 93, 4, 0.34);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(18, 50, 74, 0.22);
}

.btn--secondary:hover {
  background: rgba(232, 244, 252, 0.9);
  color: var(--navy);
  border-color: var(--teal);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: rgba(18, 50, 74, 0.2);
}

.btn--ghost-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--light:hover {
  background: var(--sky);
  color: var(--navy);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 78% 45%, rgba(253, 224, 171, 0.55), transparent 65%),
    linear-gradient(115deg, #fff8ef 0%, #e8f4fc 42%, #dbeafe 72%, #f0faf7 100%);
  color: var(--ink);
}

.hero--artwork {
  background: #dbeafe;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 248, 239, 0.92) 0%, rgba(232, 244, 252, 0.78) 42%, rgba(255, 255, 255, 0.35) 68%, rgba(255, 255, 255, 0.12) 100%),
    radial-gradient(circle at 78% 35%, rgba(251, 146, 60, 0.16), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  min-height: min(92vh, 860px);
}

.hero-copy {
  max-width: 38rem;
}

.hero-mark {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  animation: float-soft 7s var(--ease) infinite;
}

.hero .brand-name {
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 3.9rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero .tagline {
  color: var(--orange);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-style: italic;
  margin: 0 0 1.25rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.14rem;
  max-width: 34rem;
}

.hero .eyebrow {
  color: var(--orange);
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 720px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(255, 248, 239, 0.9) 10%, rgba(232, 244, 252, 0.78) 55%, rgba(255, 255, 255, 0.72) 100%),
      radial-gradient(circle at 70% 20%, rgba(251, 146, 60, 0.16), transparent 45%);
  }

  .hero-bg {
    object-position: center 30%;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 3rem;
  background:
    radial-gradient(ellipse 90% 70% at 85% 20%, rgba(125, 211, 252, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(253, 224, 171, 0.5), transparent 50%),
    linear-gradient(135deg, #e8f4fc 0%, #fff8ef 50%, #f0faf7 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero--warm {
  background:
    radial-gradient(ellipse 80% 60% at 15% 80%, rgba(251, 146, 60, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(253, 224, 171, 0.45), transparent 50%),
    linear-gradient(140deg, #fff8ef 0%, #ffe8c8 45%, #e8f4fc 100%);
}

.page-hero-accent {
  position: absolute;
  right: clamp(1rem, 6vw, 4rem);
  top: 50%;
  width: clamp(72px, 12vw, 120px);
  opacity: 0.28;
  transform: translateY(-50%) rotate(12deg);
  pointer-events: none;
  animation: float-soft 8s var(--ease) infinite;
}

.page-hero p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.15rem;
}

/* -------------------------------------------------------------------------- */
/* Content patterns                                                            */
/* -------------------------------------------------------------------------- */

.purpose-grid,
.help-grid,
.partner-grid,
.board-grid,
.event-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .purpose-grid,
  .help-grid,
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.feature-block {
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.feature-block h3 {
  margin-top: 0.25rem;
  color: var(--card-ink);
}

.feature-block p:last-child {
  margin-bottom: 0;
  color: var(--card-muted);
}

.feature-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 6px 12px rgba(232, 93, 4, 0.18));
}

.board-invite__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.board-invite .section-intro {
  margin-inline: auto;
}

.contact-form-panel {
  max-width: 40rem;
}

.contact-form-panel form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.placeholder-note,
.disclosure,
.form-success,
.form-error {
  border-left: 3px solid var(--orange);
  background: rgba(232, 93, 4, 0.06);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.form-success {
  border-left-color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
}

.form-error {
  border-left-color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  color: #7a1c14;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.placeholder-box {
  border: 1px solid var(--card-border);
  background: var(--card-wash);
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
}

.placeholder-box h3,
.placeholder-box h4 {
  margin-top: 0;
  color: var(--card-ink);
}

.placeholder-box p,
.placeholder-box .section-intro {
  color: rgba(255, 255, 255, 0.96);
}

.placeholder-box p:last-child {
  margin-bottom: 0;
}

.placeholder-box strong,
.feature-block strong,
.board-card--profile strong,
.donate-wizard strong,
.zelle-card strong,
.song-card strong,
.challenge-reward strong,
.setlist-card strong,
.impact-story strong,
.path-card strong {
  color: #ffffff;
}

/* Links inherit page teal (dark) — force readable contrast on teal cards */
.feature-block a,
.placeholder-box a,
.board-card--profile a,
.donate-wizard a:not(.btn),
.zelle-card a:not(.btn),
.song-card a:not(.btn),
.challenge-reward a:not(.btn),
.setlist-card a:not(.btn),
.impact-story a,
.path-card a:not(.btn),
.catch-board a:not(.btn) {
  color: #fff4d0;
  text-decoration-color: rgba(255, 244, 208, 0.85);
  font-weight: 700;
}

.feature-block a:hover,
.placeholder-box a:hover,
.board-card--profile a:hover,
.donate-wizard a:not(.btn):hover,
.zelle-card a:not(.btn):hover,
.song-card a:not(.btn):hover,
.challenge-reward a:not(.btn):hover,
.setlist-card a:not(.btn):hover,
.impact-story a:hover,
.path-card a:not(.btn):hover,
.catch-board a:not(.btn):hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.feature-block,
.placeholder-box,
.board-card--profile,
.donate-wizard,
.zelle-card,
.song-card,
.challenge-reward,
.setlist-card,
.impact-story,
.path-card {
  color: #ffffff;
}

.feature-block p,
.board-card--profile .board-bio,
.donate-wizard .section-intro,
.donate-wizard .form-note,
.donate-wizard p,
.zelle-card p,
.zelle-card .form-note,
.song-card p,
.song-card__meta,
.song-card__status,
.challenge-reward p,
.setlist-card p,
.impact-story p,
.path-card p {
  color: rgba(255, 255, 255, 0.96);
}

.donate-wizard .checkbox-row,
.donate-wizard .newsletter-signup,
.donate-wizard .newsletter-signup p,
.donate-wizard .dedication-check,
.zelle-card .checkbox-row,
.zelle-card .newsletter-signup p {
  color: rgba(255, 255, 255, 0.96);
}

.donate-wizard .form-error,
.zelle-card .form-error {
  color: #ffe1e1;
  background: rgba(180, 35, 24, 0.28);
  border-left-color: #ffb4b0;
}

.donate-wizard .form-success,
.zelle-card .form-success {
  color: #e8fff8;
  background: rgba(45, 212, 191, 0.18);
  border-left-color: #7ee7d5;
}

.field-optional {
  font-weight: 400;
  color: var(--muted);
}

.donate-wizard .field-optional,
.zelle-card .field-optional {
  color: rgba(255, 255, 255, 0.78);
}

.placeholder-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.55rem;
}

.event-list {
  gap: 1.25rem;
}

.event-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.event-item:first-child {
  border-top: 1px solid var(--line);
}

.event-item h3 {
  margin: 0;
}

.event-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.partner-grid .placeholder-box,
.help-grid .placeholder-box {
  min-height: 100%;
}

.butterfly-story {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 800px) {
  .butterfly-story {
    grid-template-columns: minmax(220px, 0.9fr) 1.2fr;
    gap: 3rem;
  }
}

.butterfly-emblem {
  position: relative;
  margin: 0 auto;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0.55rem;
  background:
    conic-gradient(from 180deg, rgba(232, 93, 4, 0.55), rgba(247, 127, 0, 0.2), rgba(11, 31, 58, 0.35), rgba(232, 93, 4, 0.55));
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.14);
}

.butterfly-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
}

.butterfly-story img {
  width: 160px;
  margin-inline: auto;
}

/* Board */

.board-card {
  text-align: center;
  padding: 0.5rem 0.75rem 1.25rem;
}

.board-photo {
  width: 176px;
  height: 176px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #d6c4ac;
  border: 4px solid var(--white);
  box-shadow:
    0 0 0 3px rgba(232, 93, 4, 0.28),
    0 14px 34px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 2rem;
}

img.board-photo {
  display: block;
  width: 176px !important;
  height: 176px !important;
  max-width: 176px !important;
  max-height: 176px !important;
  object-fit: cover !important;
  object-position: center 18%;
  flex-shrink: 0;
}

.board-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
}

.board-role {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

.board-bio {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: left;
  line-height: 1.55;
}

.board-bio + .board-bio {
  margin-top: 0.65rem;
}

.board-grid--profiles {
  gap: 2rem 1.5rem;
}

.board-card--profile {
  position: relative;
  padding: 1.6rem 1.25rem 1.7rem;
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  border-top: 3px solid rgba(126, 231, 216, 0.55);
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.board-card--profile:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.board-card--profile h3 {
  color: var(--card-ink);
}

.board-card--profile .board-bio {
  color: var(--card-muted);
}

.music-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 850px) {
  .music-panel {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.music-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
  background: var(--navy);
}

.music-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  object-position: center 20%;
}

.music-visual figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(18, 50, 74, 0.78));
  color: var(--white);
}

.music-visual strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.music-visual span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.community-photo {
  border: 3px solid rgba(15, 118, 110, 0.45);
  box-shadow: var(--card-shadow);
  background: var(--white);
}

.community-photo img {
  aspect-ratio: 1 / 1;
  min-height: 280px;
}

/* Old-site style: photo + “Together, We Can Help!” panel */
.together-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 3px solid rgba(15, 118, 110, 0.55);
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.together-panel__media {
  margin: 0;
  min-height: 260px;
  background: #0f5c56;
}

.together-panel__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.together-panel__copy {
  padding: clamp(1.5rem, 4vw, 2.35rem);
  display: grid;
  align-content: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4fffc 100%);
}

.together-panel__copy h2 {
  margin-bottom: 0.65rem;
}

.together-panel__copy p {
  color: var(--muted);
}

.together-panel__copy .btn-row {
  margin-top: 1.1rem;
}

@media (min-width: 860px) {
  .together-panel {
    grid-template-columns: 1.15fr 0.95fr;
    min-height: 360px;
  }

  .together-panel__media,
  .together-panel__media img {
    min-height: 100%;
    height: 100%;
  }
}

.founders-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 480px;
  background: var(--warm);
  border: 1px solid rgba(232, 93, 4, 0.18);
  box-shadow:
    0 18px 40px rgba(11, 31, 58, 0.12),
    0 0 0 8px rgba(255, 255, 255, 0.65);
}

.founders-frame::before,
.founders-frame::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 34px;
  background: url("../images/decor/butterfly-original-sm.png") center / contain no-repeat;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.founders-frame::before {
  top: -12px;
  left: -8px;
  transform: rotate(-18deg);
}

.founders-frame::after {
  right: -10px;
  bottom: -10px;
  transform: rotate(22deg) scaleX(-1);
  opacity: 0.4;
}

.founders-frame img {
  object-fit: cover;
  object-position: center 18%;
  background: var(--warm);
}

/* Forms */

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.donate-options {
  display: grid;
  gap: 1rem;
}

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

.donate-option {
  border: 1px solid var(--card-border);
  background: var(--card-wash);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
}

.donate-option h3 {
  color: var(--card-ink);
}

.donate-option p {
  color: var(--card-muted);
}

.donate-option h3 {
  margin-top: 0;
}

.donate-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .donate-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

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

.amount-btn {
  min-height: 3.25rem;
  border: 2px solid rgba(232, 213, 163, 0.28);
  background: rgba(8, 28, 32, 0.55);
  color: var(--card-ink);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.amount-btn:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.amount-btn.is-selected,
.amount-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.custom-amount-label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.custom-amount-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(232, 213, 163, 0.22);
  border-radius: var(--radius);
  padding: 0 0.9rem;
  background: rgba(8, 28, 32, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.custom-amount-field span {
  font-weight: 700;
  color: var(--gold-soft);
}

.custom-amount-field input {
  color: var(--card-ink);
  background: transparent;
}

.custom-amount-field input {
  border: 0;
  padding-left: 0;
}

.pay-methods {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .pay-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pay-methods__note {
    grid-column: 1 / -1;
  }
}

/* Donate wizard */
.donate-wizard {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
}

.donate-wizard h2,
.donate-wizard h3 {
  color: var(--card-ink);
}

.donate-wizard .section-intro,
.donate-wizard .form-note,
.donate-wizard p {
  color: var(--card-muted);
}

.donate-wizard .eyebrow {
  color: var(--orange-soft);
}

.donate-wizard .btn--secondary {
  color: var(--card-ink);
  border-color: rgba(232, 213, 163, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.donate-wizard .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

.donate-wizard__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.donate-wizard__steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(244, 247, 245, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 213, 163, 0.16);
}

.donate-wizard__steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.donate-wizard__steps li.is-active,
.donate-wizard__steps li.is-done {
  color: var(--card-ink);
  border-color: rgba(232, 93, 4, 0.5);
  background: rgba(232, 93, 4, 0.18);
}

.donate-wizard__steps li.is-active span,
.donate-wizard__steps li.is-done span {
  background: var(--orange);
  color: #fff;
}

.donate-wizard__panel[hidden] {
  display: none !important;
}

.donate-wizard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.donate-wizard__amount-hero {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.85rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.14);
  border: 1px solid rgba(232, 93, 4, 0.35);
}

.donate-wizard__amount-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 247, 245, 0.72);
}

.donate-wizard__amount-hero strong {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 550;
  color: var(--orange-soft);
  line-height: 1;
}

.pay-choice {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .pay-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pay-choice__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 7rem;
  padding: 1.15rem 1.2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid rgba(232, 213, 163, 0.22);
  background: rgba(8, 28, 32, 0.45);
  color: var(--card-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 20px rgba(0, 0, 0, 0.18);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pay-choice__btn:hover,
.pay-choice__btn:focus-visible {
  border-color: rgba(232, 93, 4, 0.7);
  background: rgba(232, 93, 4, 0.14);
  outline: none;
}

.pay-choice__label {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 550;
}

.pay-choice__hint {
  color: rgba(244, 247, 245, 0.7);
  font-size: 0.95rem;
}

.send-panel {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .send-panel {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
}

.send-panel__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  color: #111;
}

.send-panel__qr .pay-qr {
  width: 200px;
  min-height: 200px;
  display: grid;
  place-items: center;
  background: #fff;
}

/* qrcode.js draws canvas then swaps to an <img>; force the img visible */
.send-panel__qr .pay-qr img {
  width: 200px !important;
  height: 200px !important;
  display: block !important;
}

.send-panel__qr .pay-qr canvas {
  display: none !important;
}

.send-panel__qr .form-note {
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  margin: 0;
}

.donate-thanks {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.donate-thanks[hidden] {
  display: none !important;
}

.zelle-card {
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
}

.zelle-card h3 {
  color: var(--card-ink);
}

.zelle-card p,
.zelle-card .form-note {
  color: var(--card-muted);
}

.zelle-card h3 {
  margin-top: 0.2rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-weight: 600;
  color: inherit;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  flex-shrink: 0;
  padding: 0;
  accent-color: var(--orange);
}

.newsletter-signup {
  margin-top: 1rem;
}

.newsletter-signup--footer {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 2rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid rgba(234, 88, 12, 0.35);
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  box-shadow:
    0 14px 32px rgba(18, 50, 74, 0.1),
    0 0 0 1px rgba(18, 50, 74, 0.06);
}

@media (min-width: 820px) {
  .newsletter-signup--footer {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 1.15fr);
    align-items: end;
    gap: 1.5rem 2rem;
    padding: 1.5rem 1.75rem;
  }
}

.newsletter-signup h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.newsletter-signup--footer .eyebrow {
  margin-bottom: 0.35rem;
}

.newsletter-signup p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.newsletter-signup__label {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.newsletter-signup__label > span:first-child {
  font-size: 0.92rem;
}

.newsletter-signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.newsletter-signup__row input[type="email"] {
  flex: 1 1 14rem;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
  border: 2px solid rgba(18, 50, 74, 0.35);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 2px rgba(18, 50, 74, 0.06);
}

.newsletter-signup__row input[type="email"]::placeholder {
  color: rgba(15, 36, 56, 0.55);
  opacity: 1;
}

.newsletter-signup__row input[type="email"]:focus {
  outline: 3px solid rgba(234, 88, 12, 0.35);
  outline-offset: 2px;
  border-color: var(--orange);
}

.newsletter-signup__row .btn {
  min-height: 3rem;
  padding-inline: 1.25rem;
  flex: 0 0 auto;
}

.newsletter-signup .form-success,
.newsletter-signup .form-error {
  margin-top: 0.75rem;
}

.zelle-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--card-ink);
}

.zelle-steps li {
  margin-bottom: 0.55rem;
}

.zelle-recipient {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 28, 32, 0.45);
  border: 1px solid rgba(232, 213, 163, 0.22);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.zelle-email {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-soft);
  word-break: break-word;
}

.donate-wizard input,
.donate-wizard textarea,
.donate-wizard select {
  background: rgba(8, 28, 32, 0.55);
  border-color: rgba(232, 213, 163, 0.22);
  color: var(--card-ink);
}

.donate-wizard label {
  color: var(--card-ink);
}

.cta-band {
  text-align: center;
}

.cta-band .lede,
.cta-band p {
  margin-inline: auto;
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(253, 224, 171, 0.55), transparent 55%),
    linear-gradient(165deg, #e8f4fc 0%, #fff8ef 60%, #f0faf7 100%);
  color: var(--muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--butterfly-pattern) 12px 18px / 110px 110px repeat;
  opacity: 0.08;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer h2,
.site-footer h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(18, 50, 74, 0.1);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.footer-meta .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-list a {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Motion preferences */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Reveal on scroll — content stays visible unless JS enables motion */

.reveal {
  opacity: 1;
  transform: none;
}

html.js-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------- */
/* Monarch accents                                                             */
/* -------------------------------------------------------------------------- */

.has-wing {
  position: relative;
}

.has-wing::after {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 0.95em;
  margin-left: 0.45rem;
  vertical-align: -0.05em;
  background: url("../images/decor/butterfly-original-sm.png") center / contain no-repeat;
  opacity: 0.75;
}

.page-hero h1.has-wing::after {
  opacity: 0.65;
}

.eyebrow {
  position: relative;
  padding-left: 1.35rem;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.95rem;
  height: 0.78rem;
  transform: translateY(-50%);
  background: url("../images/decor/butterfly-original-sm.png") center / contain no-repeat;
  opacity: 0.9;
}

.butterfly-drift {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.butterfly-drift__item {
  position: absolute;
  opacity: 0.14;
  filter: drop-shadow(0 6px 10px rgba(7, 45, 42, 0.1));
  animation: butterfly-float 18s var(--ease) infinite;
}

.butterfly-drift__item--a {
  top: 16%;
  left: 2%;
  animation-duration: 20s;
}

.butterfly-drift__item--b {
  top: 58%;
  right: 3%;
  opacity: 0.11;
  transform: scaleX(-1);
  animation-duration: 24s;
  animation-delay: -4s;
  animation-name: butterfly-float-flip;
}

.butterfly-drift__item--c {
  top: 32%;
  right: 12%;
  opacity: 0.1;
  animation-duration: 28s;
  animation-delay: -8s;
}

.butterfly-drift__item--d {
  bottom: 12%;
  left: 8%;
  opacity: 0.12;
  animation-duration: 22s;
  animation-delay: -2s;
}

.butterfly-drift__item--e {
  top: 8%;
  left: 42%;
  opacity: 0.07;
  width: 70px;
  height: auto;
  animation-duration: 32s;
  animation-delay: -12s;
}

.butterfly-drift__item--f {
  top: 44%;
  left: 18%;
  opacity: 0.09;
  transform: scaleX(-1);
  animation-duration: 26s;
  animation-delay: -6s;
  animation-name: butterfly-float-flip;
}

.butterfly-drift__item--g {
  bottom: 28%;
  right: 22%;
  opacity: 0.1;
  animation-duration: 21s;
  animation-delay: -10s;
}

.butterfly-drift__item--h {
  top: 22%;
  right: 28%;
  opacity: 0.055;
  width: 96px;
  height: auto;
  animation-duration: 36s;
  animation-delay: -16s;
}

@keyframes butterfly-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  50% {
    transform: translate3d(14px, -22px, 0) rotate(8deg);
  }
}

@keyframes butterfly-float-flip {
  0%,
  100% {
    transform: scaleX(-1) translate3d(0, 0, 0) rotate(4deg);
  }
  50% {
    transform: scaleX(-1) translate3d(-12px, -20px, 0) rotate(-10deg);
  }
}

.media-frame {
  background: var(--warm);
}

.cta-band {
  position: relative;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 52px;
  background: url("../images/decor/butterfly-original-sm.png") center / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.cta-band::before {
  left: 6%;
  top: 22%;
  transform: rotate(-16deg);
}

.cta-band::after {
  right: 7%;
  bottom: 18%;
  transform: rotate(18deg) scaleX(-1);
}

@media (max-width: 720px) {
  .butterfly-drift__item--c,
  .butterfly-drift__item--d,
  .butterfly-drift__item--e,
  .butterfly-drift__item--f,
  .butterfly-drift__item--h {
    display: none;
  }

  .cta-band::before,
  .cta-band::after {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Impact flight path                                                          */
/* -------------------------------------------------------------------------- */

.impact-path .section-intro {
  max-width: 46rem;
}

.impact-stage {
  position: relative;
  margin: 2rem 0 1.75rem;
  min-height: 220px;
  padding: 1.25rem 0.5rem 0.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  color: var(--card-ink);
}

.impact-trail {
  position: absolute;
  inset: 18% 4% 28% 4%;
  width: auto;
  height: auto;
  color: rgba(126, 231, 216, 0.45);
  pointer-events: none;
}

.impact-flyer {
  position: absolute;
  left: 4%;
  top: 58%;
  width: 52px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: left 0.85s var(--ease), top 0.85s var(--ease), transform 0.85s var(--ease);
  z-index: 2;
  pointer-events: none;
}

.impact-flyer.is-flapping {
  animation: impact-flap 0.85s var(--ease);
}

@keyframes impact-flap {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  40% {
    transform: rotate(12deg) scale(1.08);
  }
  70% {
    transform: rotate(-4deg) scale(0.96);
  }
}

.impact-stops {
  list-style: none;
  margin: 0;
  padding: 8.5rem 0.75rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 3;
}

.impact-stop {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--card-muted);
  font: inherit;
  cursor: pointer;
  padding: 0.35rem;
}

.impact-stop__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(126, 231, 216, 0.45);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 0 rgba(232, 93, 4, 0), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.impact-stop__label {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  color: var(--card-muted);
}

.impact-stop.is-active .impact-stop__dot,
.impact-stop[aria-pressed="true"] .impact-stop__dot {
  background: var(--orange);
  border-color: var(--orange-soft);
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.22);
}

.impact-stop.is-active .impact-stop__label,
.impact-stop[aria-pressed="true"] .impact-stop__label {
  color: var(--orange-soft);
}

.impact-story {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--radius);
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  min-height: 8.5rem;
  color: var(--card-ink);
}

.impact-story__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.impact-story h3 {
  margin: 0 0 0.55rem;
  color: var(--card-ink);
}

.impact-story p:last-child {
  margin-bottom: 0;
  color: var(--card-muted);
}

.impact-gifts__label {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.impact-gifts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .impact-stage {
    min-height: 0;
  }

  .impact-trail {
    display: none;
  }

  .impact-flyer {
    display: none;
  }

  .impact-stops {
    padding-top: 0.5rem;
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Thank-you postcard                                                          */
/* -------------------------------------------------------------------------- */

.postcard-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(18, 50, 74, 0.4);
  backdrop-filter: blur(6px);
}

.postcard-overlay[hidden] {
  display: none !important;
}

.postcard {
  position: relative;
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 4px;
  background:
    linear-gradient(145deg, #f7f0e6 0%, #efe4d2 55%, #e8d9c4 100%);
  color: #1a2433;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(11, 31, 58, 0.08);
  transform: translateY(12px) rotate(-1.5deg);
  animation: postcard-in 0.55s var(--ease) forwards;
}

@keyframes postcard-in {
  to {
    transform: translateY(0) rotate(-1.5deg);
  }
}

.postcard__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #5a6675;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.postcard__song {
  margin: 0 0 1rem;
}

.postcard__song .btn {
  width: 100%;
}

.postcard__song .btn.is-playing {
  background: rgba(232, 93, 4, 0.16);
  border-color: rgba(232, 93, 4, 0.45);
  color: #9a3412;
}

.postcard__stamp {
  position: absolute;
  top: 1rem;
  right: 2.4rem;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(232, 93, 4, 0.55);
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(8deg);
  animation: stamp-flutter 3.2s ease-in-out infinite;
}

.postcard__stamp img {
  animation: stamp-wing 1.8s ease-in-out infinite;
}

@keyframes stamp-flutter {
  0%,
  100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(11deg) translateY(-3px); }
}

@keyframes stamp-wing {
  0%,
  100% { transform: scaleX(1); }
  50% { transform: scaleX(1.08); }
}

.postcard__from {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a5a2b;
}

.postcard__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: #0b1f3a;
}

.postcard__body {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #243041;
}

.postcard__note {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: #5a6675;
}

.postcard .btn {
  width: 100%;
  justify-content: center;
}

.postcard__actions {
  display: grid;
  gap: 0.65rem;
}

.postcard .btn--secondary {
  color: #0b1f3a;
  border-color: rgba(11, 31, 58, 0.35);
}

.postcard .btn--secondary:hover {
  background: rgba(11, 31, 58, 0.08);
  color: #0b1f3a;
  border-color: #0b1f3a;
}

/* Sticky donate bar (mobile) */
.sticky-donate {
  display: none;
}

@media (max-width: 820px) {
  .sticky-donate {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(18, 50, 74, 0.12);
    backdrop-filter: blur(10px);
  }

  .sticky-donate p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink);
    max-width: 55%;
  }

  .sticky-donate .btn {
    flex-shrink: 0;
  }

  body.has-sticky-donate {
    padding-bottom: 5.5rem;
  }

  body.is-quiet .sticky-donate {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-flyer,
  .postcard {
    transition: none !important;
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Moment meter                                                                */
/* -------------------------------------------------------------------------- */

.moment-meter {
  position: relative;
  padding: 1.35rem 0 1.15rem;
  background:
    radial-gradient(ellipse 80% 120% at 90% 0%, rgba(253, 224, 171, 0.55), transparent 55%),
    linear-gradient(90deg, #e8f4fc 0%, #fff8ef 50%, #f0faf7 100%);
  border-bottom: 1px solid var(--line);
}

.moment-meter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.moment-meter__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.moment-meter__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--ink);
}

.moment-meter__title span {
  color: var(--orange);
}

.moment-meter__text {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.moment-meter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.moment-meter__bar {
  width: min(100% - 2.5rem, var(--max));
  margin: 1rem auto 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.moment-meter__fill {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e85d04, #e8d5a3);
  transition: width 0.8s var(--ease);
}

/* -------------------------------------------------------------------------- */
/* Choose your path                                                            */
/* -------------------------------------------------------------------------- */

.path-grid {
  display: grid;
  gap: 1.25rem;
}

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

.path-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.4rem 1.35rem 1.45rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  border-top: 3px solid rgba(232, 93, 4, 0.7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 4, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  color: inherit;
}

.path-card h3 {
  margin: 0;
}

.path-card p {
  margin: 0;
  color: var(--muted);
}

.path-card__cta {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--orange-soft);
}

.intent-banner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 1rem 0 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.14);
  border: 1px solid rgba(232, 93, 4, 0.35);
  color: var(--ink);
  font-size: 0.95rem;
}

.intent-banner[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Monarch challenge                                                           */
/* -------------------------------------------------------------------------- */

.monarch-challenge .section-intro {
  margin-bottom: 0;
}

.challenge-header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .challenge-header {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.challenge-progress {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2.4rem, 1fr));
  gap: 0.45rem;
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--card-muted);
  border-radius: var(--radius);
}

.challenge-progress li {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.challenge-progress li span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 213, 163, 0.28);
  background: rgba(8, 28, 32, 0.45);
  color: var(--card-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.challenge-progress li.is-current,
.challenge-progress li.is-done {
  color: var(--orange-soft);
}

.challenge-progress li.is-current span {
  border-color: var(--orange);
  background: rgba(232, 93, 4, 0.22);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.12);
}

.challenge-progress li.is-done span {
  border-color: var(--orange-soft);
  background: var(--orange);
  color: #fff;
}

.challenge-board,
.catch-board {
  position: relative;
  height: clamp(280px, 48vw, 360px);
  margin: 0 0 1rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--card-wash);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
  touch-action: manipulation;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.catch-board.is-touch {
  cursor: pointer;
}

.challenge-board.is-complete {
  box-shadow:
    var(--card-shadow),
    0 0 0 1px rgba(232, 93, 4, 0.28),
    0 18px 40px rgba(232, 93, 4, 0.16);
}

.catch-sky {
  position: absolute;
  inset: 0 0 28% 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(ellipse 70% 55% at 20% 10%, rgba(125, 211, 252, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.catch-meadow {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background:
    radial-gradient(ellipse 40% 80% at 18% 100%, rgba(111, 128, 88, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 90% at 72% 100%, rgba(94, 234, 212, 0.22), transparent 68%),
    linear-gradient(180deg, transparent, rgba(8, 40, 32, 0.55));
  pointer-events: none;
}

.catch-hint,
.catch-score {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.catch-hint {
  left: 1rem;
  top: 1rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 20, 24, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

.catch-score {
  right: 1rem;
  top: 1rem;
  min-width: 4.2rem;
  text-align: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f3d3a;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.catch-butterfly {
  position: absolute;
  left: 18%;
  top: 42%;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: left 1.15s var(--ease), top 1.15s var(--ease);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
  will-change: left, top, transform;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none; /* board proximity handler owns taps */
}

.catch-butterfly img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  animation: catch-flap 0.55s ease-in-out infinite;
  transform-origin: 50% 55%;
}

.catch-butterfly.is-caught {
  pointer-events: none;
}

.catch-butterfly.is-caught img {
  animation: catch-caught 0.55s var(--ease) both;
}

@keyframes catch-flap {
  0%,
  100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.08); }
}

@keyframes catch-caught {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  40% { transform: scale(1.35) rotate(-18deg); opacity: 1; }
  100% { transform: scale(0.2) rotate(40deg); opacity: 0; }
}

.catch-net {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 72px;
  margin: -18px 0 0 -18px;
  color: #ffd38a;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-18deg) scale(0.9);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
  transition: opacity 0.15s ease;
}

.catch-board.is-active .catch-net,
.catch-board.is-touch .catch-net.is-visible {
  opacity: 1;
}

.catch-net.is-swinging {
  animation: catch-swing 0.38s var(--ease);
}

@keyframes catch-swing {
  0% { transform: translate(-50%, -50%) rotate(-28deg) scale(0.95); }
  40% { transform: translate(-50%, -50%) rotate(24deg) scale(1.12); }
  100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
}

.catch-splash {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 6;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f3d3a;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.catch-splash.is-show {
  animation: catch-splash-in 0.7s var(--ease) both;
}

@keyframes catch-splash-in {
  0% { opacity: 0; transform: translate(-50%, -10%) scale(0.7); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -90%) scale(1); }
}

.challenge-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.challenge-status {
  margin: 0;
  color: var(--muted);
  flex: 1 1 240px;
}

.challenge-skip {
  flex-shrink: 0;
}

.challenge-reward {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(247, 127, 0, 0.22), transparent 50%),
    var(--card-wash);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
  animation: challenge-reward-in 0.45s var(--ease) both;
}

.challenge-reward h3 {
  color: var(--card-ink);
}

.challenge-reward p {
  color: var(--card-muted);
}

@keyframes challenge-reward-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.challenge-reward[hidden] {
  display: none !important;
}

.challenge-reward__copy h3 {
  margin: 0.2rem 0 0.45rem;
  color: #ffffff;
}

.challenge-reward__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.challenge-reward__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.challenge-replay {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #ffd38a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.challenge-replay:hover {
  color: #ffffff;
}

@media (max-width: 720px) {
  .challenge-progress {
    grid-template-columns: repeat(auto-fit, minmax(2.1rem, 1fr));
    gap: 0.25rem;
    padding: 0.7rem 0.55rem;
  }

  .challenge-progress li {
    font-size: 0.68rem;
  }

  .catch-board,
  .challenge-board {
    height: clamp(280px, 74vw, 360px);
    cursor: pointer;
  }

  .catch-butterfly {
    width: 108px;
    height: 108px;
  }

  .catch-hint {
    max-width: calc(100% - 7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catch-butterfly img,
  .catch-butterfly.is-caught img,
  .catch-net.is-swinging,
  .catch-splash.is-show,
  .challenge-reward {
    animation: none !important;
  }

  .catch-butterfly {
    transition: left 0.2s linear, top 0.2s linear !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Quiet generosity mode                                                       */
/* -------------------------------------------------------------------------- */

.quiet-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.quiet-toggle[aria-pressed="true"] {
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(234, 88, 12, 0.45);
  color: var(--orange);
}

body.is-quiet .butterfly-drift,
body.is-quiet .impact-path,
body.is-quiet .monarch-challenge,
body.is-quiet .moment-meter,
body.is-quiet .choose-path,
body.is-quiet .pass-butterfly,
body.is-quiet .music-setlist {
  display: none !important;
}

body.is-quiet .quiet-focus {
  display: block;
}

.quiet-focus {
  display: none;
  padding: 1.25rem 0;
  background: rgba(232, 244, 252, 0.75);
  border-bottom: 1px solid var(--line);
}

.quiet-focus__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quiet-focus p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}


/* -------------------------------------------------------------------------- */
/* Matt song player                                                            */
/* -------------------------------------------------------------------------- */

.song-card {
  position: relative;
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(247, 127, 0, 0.2), transparent 55%),
    var(--card-wash);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  color: var(--card-ink);
}

.song-card h3 {
  margin: 0.25rem 0 0.35rem;
  color: var(--card-ink);
}

.song-card__meta {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.song-card__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.song-card__status {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.song-card .btn--secondary {
  color: #0f3d3a;
  background: #ffffff;
  border-color: #ffffff;
}

.song-card .btn--secondary:hover {
  color: #0f3d3a;
  background: #fff4e5;
  border-color: #fff4e5;
}

.song-card__eq {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  opacity: 0.45;
}

.song-card__eq span {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: var(--orange-soft);
  transform-origin: bottom;
}

.song-card.is-playing .song-card__eq {
  opacity: 1;
}

.song-card.is-playing .song-card__eq span {
  animation: song-eq 0.9s ease-in-out infinite;
}

.song-card.is-playing .song-card__eq span:nth-child(2) { animation-delay: 0.1s; }
.song-card.is-playing .song-card__eq span:nth-child(3) { animation-delay: 0.22s; }
.song-card.is-playing .song-card__eq span:nth-child(4) { animation-delay: 0.08s; }
.song-card.is-playing .song-card__eq span:nth-child(5) { animation-delay: 0.28s; }

@keyframes song-eq {
  0%,
  100% { height: 35%; }
  50% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .postcard__stamp,
  .postcard__stamp img,
  .song-card.is-playing .song-card__eq span {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Music setlist / dedication                                                  */
/* -------------------------------------------------------------------------- */

.dedication-label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.dedication-label input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.dedication-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--muted);
}

.dedication-check input {
  width: auto;
  margin-top: 0.2rem;
}

.setlist-card {
  padding: 1.4rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  min-height: 100%;
}

.setlist-card h3 {
  margin: 0.35rem 0 1rem;
}

.setlist-names {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}

.setlist-names li {
  margin-bottom: 0.45rem;
}

.setlist-empty {
  list-style: none;
  margin-left: -1.2rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Pass the butterfly                                                          */
/* -------------------------------------------------------------------------- */

.pass-stage {
  position: relative;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(201, 164, 92, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.pass-butterfly__wing {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  opacity: 0.55;
  animation: float-soft 7s var(--ease) infinite;
}

.pass-card {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 700px) {
  .pass-card {
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
  }
}

.pass-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.3);
  background: #ffffff;
}

.pass-card__quote {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  color: var(--ink);
}

.pass-card__name {
  margin: 0;
  font-weight: 700;
  color: var(--orange);
}

.pass-card__role {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pass-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.pass-progress {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .butterfly-drift__item {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Language switch + mobile readiness                                          */
/* -------------------------------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 2.2rem;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch__btn.is-active,
.lang-switch__btn[aria-pressed="true"] {
  background: rgba(251, 146, 60, 0.22);
  color: var(--ink);
}

.header-inner {
  gap: 0.65rem;
}

@media (max-width: 980px) {
  .lang-switch {
    margin-left: 0;
  }

  .lang-switch__btn {
    min-width: 2.4rem;
    min-height: 2.4rem;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.7rem 0.85rem;
  }
}

/* Prevent iOS input zoom + improve touch forms */
input,
select,
textarea,
button,
.btn,
.amount-btn {
  font-size: 16px;
}

.btn,
.amount-btn,
.challenge-flower,
.challenge-skip,
[data-song-play],
[data-copy-zelle],
[data-donate-submit] {
  min-height: 44px;
}

.amount-grid {
  gap: 0.65rem;
}

@media (max-width: 720px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero-copy,
  .page-hero .container,
  .section-intro {
    max-width: 100%;
  }

  .hero-mark {
    width: 88px;
    height: auto;
  }

  .brand-name {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .donate-layout,
  .split {
    gap: 1.5rem;
  }

  .amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .amount-btn {
    padding: 0.75rem 0.35rem;
  }

  .custom-amount-field input,
  .dedication-label input,
  form input,
  form select,
  form textarea {
    width: 100%;
    max-width: 100%;
  }

  .song-card__controls,
  .challenge-reward__amounts,
  .btn-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .song-card__controls .btn,
  .challenge-reward__amounts .btn,
  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  .postcard {
    width: min(100%, 26rem);
    margin: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
  }

  .board-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  body {
    overflow-x: hidden;
  }

  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

/* -------------------------------------------------------------------------- */
/* Public events list + map                                                    */
/* -------------------------------------------------------------------------- */

.event-empty {
  margin: 0;
  color: rgba(15, 40, 44, 0.72);
  font-size: 1.02rem;
}

.events-map-wrap {
  margin-top: 1.75rem;
}

.events-map {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 40, 44, 0.12);
  background: #dce8e4;
  z-index: 1;
}

.event-item .btn-row {
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .events-map {
    height: 220px;
    border-radius: 12px;
  }
}

/* Install on phone / tablet */
.install-banner {
  position: fixed;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.45rem 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.28);
  border: 1px solid var(--line);
}

@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
  .install-banner {
    display: flex;
  }
}

@media (max-width: 980px) {
  .install-banner {
    bottom: calc(var(--tabbar-h, 4.35rem) + 0.65rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (display-mode: standalone) {
  .install-banner,
  .install-sheet {
    display: none !important;
  }
}

.install-banner__btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.install-banner__label {
  display: block;
}

.install-banner__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 50, 74, 0.06);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 31, 58, 0.45);
}

.install-sheet__card {
  width: min(100%, 420px);
  background: #f7faf8;
  color: #0f282c;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.28);
}

.install-sheet__card h2 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  color: #0b1f3a;
}

.install-sheet__card p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.install-sheet__steps {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.install-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.install-sheet__actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
}
