/* Author: Fahadbin Alam (fma52), 4/19/26 */
/* Mod by Codex, 4/23/26 */
/* From One World Relief multi-page mobile-friendly site system, 4/23/26 */
:root {
  --ink: #183447;
  --ink-soft: #628094;
  --mint: #2f9f89;
  --gold: #d7a536;
  --paper: #ffffff;
  --sky-50: #f7fcff;
  --sky-100: #eef8ff;
  --sky-200: #d9efff;
  --sky-300: #bee1f6;
  --blue-500: #4d95c2;
  --blue-700: #214f71;
  --line: rgba(24, 52, 71, 0.1);
  --shadow: 0 20px 44px rgba(45, 91, 122, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 4px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--mint), var(--blue-500), var(--gold));
  box-shadow: 0 0 20px rgba(77, 149, 194, 0.42);
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 245, 202, 0.7) 0 8rem, transparent 18rem),
    radial-gradient(circle at 74% 16%, rgba(255, 255, 255, 0.92) 0 6rem, transparent 18rem),
    radial-gradient(circle at 90% 36%, rgba(255, 255, 255, 0.56) 0 8rem, transparent 21rem),
    linear-gradient(180deg, #91ecf7 0%, #70d5f0 32%, #f6fcff 78%, #eff9ff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: min(680px, 78vh);
  z-index: -2;
  pointer-events: none;
  opacity: 0.86;
  background:
    radial-gradient(ellipse at 82% 42%, rgba(255, 255, 255, 0.98) 0 12%, rgba(255, 255, 255, 0.78) 12% 20%, transparent 31%),
    radial-gradient(ellipse at 72% 48%, rgba(255, 255, 255, 0.86) 0 10%, transparent 28%),
    radial-gradient(ellipse at 94% 50%, rgba(255, 255, 255, 0.76) 0 9%, transparent 24%),
    linear-gradient(112deg, transparent 0 58%, rgba(255, 255, 255, 0.34) 58% 60%, transparent 60% 100%),
    linear-gradient(118deg, transparent 0 66%, rgba(214, 245, 255, 0.42) 66% 69%, transparent 69% 100%);
  animation: cloud-breathe 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 23vh -18vw auto;
  height: 58vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(168deg, transparent 0 34%, rgba(255, 255, 255, 0.5) 34% 44%, transparent 44% 100%),
    linear-gradient(166deg, transparent 0 48%, rgba(178, 231, 249, 0.46) 48% 59%, transparent 59% 100%),
    linear-gradient(164deg, transparent 0 62%, rgba(77, 149, 194, 0.18) 62% 72%, transparent 72% 100%);
  transform: skewY(-4deg);
  animation: wave-drift 22s ease-in-out infinite alternate;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.08;
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: 0;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.background-shape {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(80px);
}

.background-shape-top {
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: #77ddf2;
}

.background-shape-bottom {
  left: -120px;
  bottom: -180px;
  width: 380px;
  height: 380px;
  background: #bdeeff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(231, 250, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.header-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 12px 24px rgba(77, 149, 194, 0.22);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1.02rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue-700);
}

.main-nav a[aria-current="page"] {
  color: var(--blue-700);
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -45%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-160%) rotate(16deg);
  transition: transform 0.55s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(45, 91, 122, 0.14);
}

.button:hover::after {
  transform: translateX(520%) rotate(16deg);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}

.button-outline {
  color: var(--blue-700);
  border-color: rgba(77, 149, 194, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(24, 52, 71, 0.08);
  background: rgba(245, 251, 255, 0.85);
}

.site-footer-minimal {
  margin-top: 1rem;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bar p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-note {
  margin: 0;
  font-size: 0.92rem;
}

.hero-shell {
  padding: 2.4rem 0 1.2rem;
}

.hero {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.8) 0 7rem, transparent 17rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(232, 250, 255, 0.58));
  box-shadow: 0 28px 70px rgba(33, 94, 132, 0.14);
  overflow: hidden;
}

.hero-shell-home .hero {
  animation: section-float 8s ease-in-out infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -88px;
  right: -40px;
  width: 360px;
  height: 260px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 40% 58%, rgba(255, 255, 255, 0.98) 0 24%, transparent 25%),
    radial-gradient(ellipse at 62% 46%, rgba(255, 255, 255, 0.94) 0 21%, transparent 22%),
    radial-gradient(ellipse at 78% 62%, rgba(255, 255, 255, 0.82) 0 18%, transparent 20%);
  opacity: 0.9;
  filter: blur(1px);
  animation: cloud-breathe 14s ease-in-out infinite alternate;
}

.hero::after,
.page-hero::after,
.flow-impact-section::after,
.project-detail-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% 8% -12%;
  height: 34%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(168deg, transparent 0 18%, rgba(255, 255, 255, 0.52) 18% 34%, transparent 34% 100%),
    linear-gradient(166deg, transparent 0 42%, rgba(127, 218, 243, 0.24) 42% 58%, transparent 58% 100%);
  transform: skewY(-5deg);
  animation: wave-drift 18s ease-in-out infinite alternate;
}

.home-current-scene {
  position: relative;
  min-height: min(720px, calc(100svh - 170px));
  display: grid;
  align-items: center;
}

.current-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.current-lines span {
  position: absolute;
  left: -14%;
  width: 130%;
  height: 110px;
  border-radius: 999px;
  opacity: 0.48;
  transform: rotate(-7deg);
  animation: current-line 14s ease-in-out infinite alternate;
}

.current-lines span:nth-child(1) {
  top: 12%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(123, 222, 247, 0.24), transparent);
}

.current-lines span:nth-child(2) {
  top: 47%;
  height: 86px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), rgba(55, 177, 222, 0.16), transparent);
  animation-delay: -4s;
}

.current-lines span:nth-child(3) {
  top: 72%;
  height: 70px;
  background: linear-gradient(90deg, transparent, rgba(217, 245, 255, 0.64), rgba(255, 250, 225, 0.3), transparent);
  animation-delay: -8s;
}

.hero-home {
  padding: 4.5rem 2rem 3rem;
  text-align: center;
}

.hero-donate-first {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 460px);
  align-items: center;
  gap: clamp(1.7rem, 5vw, 4.2rem);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
  text-align: left;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-donate-first .hero-copy {
  max-width: 520px;
  margin: 0;
  animation: hero-copy-breathe 9s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--blue-500);
}

.hero h1,
.page-hero h1 {
  max-width: 10ch;
  margin-inline: auto;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.hero-donate-first h1,
.hero-donate-first .lead {
  margin-inline: 0;
}

.lead {
  max-width: 36ch;
  margin: 0.9rem auto 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.quick-donation {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.88rem;
  width: 100%;
  padding: clamp(1.1rem, 2vw, 1.35rem);
  border: 1px solid rgba(77, 149, 194, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 222, 247, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 253, 255, 0.92));
  box-shadow:
    0 22px 54px rgba(45, 91, 122, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.68) inset;
  overflow: hidden;
  will-change: transform;
  animation: quick-card-lift 10s ease-in-out infinite;
}

.quick-donation::before,
.quick-donation::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.quick-donation::before {
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #13a8df, var(--blue-700), var(--mint), #13a8df);
}

.quick-donation::after {
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.56) 45%, transparent 64%);
  opacity: 0;
  transform: translateX(-74%);
  animation: quick-card-sheen 9s ease-in-out infinite;
}

.quick-donation > * {
  position: relative;
  z-index: 1;
}

.quick-donation-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -0.12rem;
}

.quick-donation-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.58rem;
  border: 1px solid rgba(77, 149, 194, 0.14);
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(238, 248, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
}

.home-action-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.64rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.quick-amounts legend,
.quick-category,
.quick-custom-amount {
  grid-column: 1 / -1;
  font-weight: 800;
}

.quick-amounts label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 56px;
  padding: 0.68rem 0.55rem;
  border: 1px solid rgba(24, 52, 71, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 255, 0.88)),
    var(--sky-50);
  color: var(--blue-700);
  font-size: 1.04rem;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.quick-amounts label::before {
  content: "";
  position: absolute;
  inset: auto 12% -34px;
  height: 48px;
  border-radius: 999px;
  background: rgba(77, 149, 194, 0.16);
  transition: transform 0.24s ease;
}

.quick-amounts label:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(45, 91, 122, 0.12);
}

.quick-amounts label:has(input:checked) {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow:
    0 16px 32px rgba(45, 91, 122, 0.16),
    0 0 24px rgba(19, 151, 213, 0.18);
}

.quick-amounts label:has(input:checked)::before {
  transform: translateY(-14px);
  background: rgba(255, 255, 255, 0.18);
}

.quick-amounts label > * {
  position: relative;
  z-index: 1;
}

.quick-amounts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quick-custom-choice {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 54px;
  letter-spacing: 0;
}

.quick-custom-panel {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem;
  border: 1px solid rgba(77, 149, 194, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 255, 0.92)),
    var(--paper);
  box-shadow: 0 16px 34px rgba(45, 91, 122, 0.1);
  overflow: hidden;
  animation: custom-panel-open 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quick-custom-panel::before {
  content: "";
  position: absolute;
  inset: auto -18% -58px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 159, 137, 0.12), rgba(77, 149, 194, 0.16), rgba(215, 165, 54, 0.1));
  animation: panel-current 5s ease-in-out infinite alternate;
}

.quick-custom-panel[hidden] {
  display: none;
}

.quick-category {
  display: grid;
  gap: 0.36rem;
}

.quick-category select,
.quick-custom-amount input {
  width: 100%;
  border: 1px solid rgba(24, 52, 71, 0.12);
  border-radius: 14px;
  padding: 0.76rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.quick-custom-amount {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.42rem;
}

.quick-custom-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.quick-custom-input-wrap > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--blue-500));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(47, 159, 137, 0.18);
}

.quick-donation-button {
  width: 100%;
}

.home-case-panel-section {
  content-visibility: auto;
  contain-intrinsic-size: 380px;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.2rem;
}

.home-stories {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(45, 91, 122, 0.08);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-stories > * {
  position: relative;
  z-index: 1;
}

.home-stories .eyebrow {
  margin-bottom: 0;
}

.home-case-lanes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-case-lane {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.home-case-lane > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.story-link {
  display: grid;
  gap: 0.22rem;
  padding: 0.82rem;
  border: 1px solid rgba(77, 149, 194, 0.12);
  border-radius: 14px;
  background: var(--sky-50);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(45, 91, 122, 0.1);
}

.story-link strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.story-link span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.story-empty {
  margin: 0;
  padding: 0.82rem;
  border: 1px dashed rgba(77, 149, 194, 0.22);
  border-radius: 14px;
  color: var(--ink-soft);
  background: rgba(247, 252, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-proof {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-proof-home {
  max-width: 720px;
  margin-inline: auto;
}

.hero-proof div {
  padding: 1rem 0.9rem;
  border: 1px solid rgba(77, 149, 194, 0.12);
  border-radius: var(--radius-md);
  background: rgba(250, 253, 255, 0.92);
}

.hero-proof strong {
  display: block;
  font-size: 1.6rem;
  color: var(--blue-700);
}

.hero-proof span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.quick-links,
.program-grid,
.mission-grid,
.transparency-grid,
.donation-categories,
.faq-list {
  display: grid;
  gap: 1rem;
}

.quick-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

.home-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.home-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-700);
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid var(--line);
}

.home-case-flow {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 540px;
  padding: clamp(2.2rem, 5vw, 4.4rem) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 28%, rgba(117, 222, 247, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(246, 251, 255, 0), rgba(218, 246, 255, 0.5), rgba(246, 251, 255, 0));
}

.home-case-flow::before {
  content: "";
  position: absolute;
  inset: 12% -10vw auto;
  height: 52%;
  background:
    linear-gradient(104deg, transparent 0 24%, rgba(77, 149, 194, 0.16) 24% 25%, transparent 25% 52%, rgba(47, 159, 137, 0.12) 52% 53%, transparent 53%),
    linear-gradient(112deg, transparent 0 60%, rgba(215, 165, 54, 0.12) 60% 61%, transparent 61%);
  transform: rotate(-6deg);
  animation: long-current 28s ease-in-out infinite alternate;
  pointer-events: none;
}

.case-flow-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding: 0.35rem 0;
}

.case-flow-shell::before,
.case-flow-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(9vw, 120px);
  pointer-events: none;
}

.case-flow-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(246, 251, 255, 0.98), rgba(246, 251, 255, 0));
}

.case-flow-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(246, 251, 255, 0.98), rgba(246, 251, 255, 0));
}

.case-flow-track {
  display: flex;
  width: max-content;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  padding: 0.8rem max(1rem, calc((100vw - var(--max-width)) / 2)) 1.4rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: case-river 56s linear infinite;
}

.case-flow-card {
  --card-lift: 0px;
  position: relative;
  flex: 0 0 clamp(250px, 27vw, 380px);
  min-height: 430px;
  display: grid;
  align-items: end;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(24, 52, 71, 0.12);
  background: var(--ink);
  box-shadow:
    0 20px 46px rgba(45, 91, 122, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  contain: layout paint;
  opacity: 0;
  transform: translate3d(0, var(--card-lift), 0);
  animation: case-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) var(--case-delay, 0ms) forwards;
}

.case-flow-card:nth-child(even) {
  --card-lift: 1.8rem;
}

.case-flow-card:nth-child(3n) {
  --card-lift: 0.85rem;
}

.case-flow-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 46%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-70%);
  pointer-events: none;
}

.case-flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 31, 45, 0.02), rgba(11, 31, 45, 0.15) 38%, rgba(11, 31, 45, 0.82)),
    linear-gradient(120deg, rgba(77, 149, 194, 0.18), transparent 48%);
}

.case-flow-card:hover img {
  transform: scale(1.08);
}

.case-flow-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.38rem;
  margin: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #fff;
  background: rgba(11, 31, 45, 0.26);
}

.case-flow-copy span,
.case-flow-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 800;
}

.case-flow-copy strong {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.02;
}

.faith-video-section {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
  min-height: clamp(520px, 74svh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.faith-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.faith-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 31, 45, 0.86), rgba(11, 31, 45, 0.54) 48%, rgba(11, 31, 45, 0.72)),
    linear-gradient(180deg, rgba(11, 31, 45, 0.18), rgba(11, 31, 45, 0.82));
}

.faith-reminder-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.2rem);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.faith-reminder-content .eyebrow {
  color: var(--sky-300);
}

.faith-reminder-content h2 {
  max-width: 10ch;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.faith-quote-marquee {
  width: 100%;
  overflow: hidden;
}

.faith-quote-track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: faith-quote-scroll 42s linear infinite;
}

.faith-quote-track article {
  flex: 0 0 clamp(280px, 32vw, 460px);
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.faith-quote-track p {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.16;
}

.faith-quote-track span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-impact-section {
  position: relative;
  padding: clamp(2.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.flow-impact-section::before {
  content: "";
  position: absolute;
  inset: 8% -12vw auto;
  height: 46%;
  background:
    linear-gradient(103deg, transparent 0 21%, rgba(77, 149, 194, 0.13) 21% 23%, transparent 23% 47%, rgba(47, 159, 137, 0.12) 47% 49%, transparent 49%),
    linear-gradient(112deg, transparent 0 55%, rgba(215, 165, 54, 0.12) 55% 57%, transparent 57%);
  transform: rotate(-7deg);
  animation: long-current 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.flow-impact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(340px, 1.16fr);
  gap: clamp(1.2rem, 5vw, 3.5rem);
  align-items: center;
}

.flow-impact-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.flow-impact-copy .lead {
  margin-inline: 0;
  max-width: 42ch;
}

.flow-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.flow-route a {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(77, 149, 194, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(45, 91, 122, 0.08);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.flow-route a::before {
  content: "";
  position: absolute;
  inset: auto -20% -44px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(77, 149, 194, 0.16), rgba(47, 159, 137, 0.12), rgba(215, 165, 54, 0.1));
  transition: transform 0.28s ease;
}

.flow-route a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(45, 91, 122, 0.13);
}

.flow-route a:hover::before {
  transform: translateY(-16px);
}

.flow-route span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  font-weight: 900;
}

.flow-route strong {
  font-size: 1.1rem;
}

.flow-route small {
  color: var(--ink-soft);
  font-weight: 800;
}

.flow-impact-media {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(24, 52, 71, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 80px rgba(45, 91, 122, 0.16);
  will-change: transform;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.flow-impact-media video {
  width: 100%;
  max-height: 680px;
  display: block;
  border-radius: calc(var(--radius-xl) - 10px);
  background: var(--ink);
  object-fit: contain;
}

.flow-impact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.flow-impact-stats span {
  display: grid;
  gap: 0.12rem;
  padding: 0.8rem;
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--sky-50);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 800;
}

.flow-impact-stats strong {
  color: var(--blue-700);
  font-size: 1.08rem;
}

.share-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1fr);
  align-items: center;
  gap: 1.25rem;
  min-height: calc(100svh - 170px);
}

.share-copy h1 {
  max-width: 9ch;
  margin-inline: 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.share-copy .lead {
  margin-inline: 0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.share-actions-top {
  margin-top: 1.35rem;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.66rem 0.9rem;
  border: 1px solid rgba(47, 159, 137, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.social-share-actions {
  align-items: center;
}

.social-share-actions .share-pill {
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  color: #fff;
  box-shadow: 0 14px 28px rgba(24, 52, 71, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.social-share-actions .share-pill:hover,
.social-share-actions .share-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 52, 71, 0.2);
  filter: saturate(1.08);
}

.share-logo {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.share-pill-facebook {
  background: #1877f2;
}

.share-pill-instagram {
  background:
    radial-gradient(circle at 30% 108%, #fdf497 0 17%, #fd5949 38%, #d6249f 62%, #285aeb 100%);
}

.share-pill-x {
  background: #0f1419;
}

.share-pill-whatsapp {
  background: #25d366;
}

.share-status {
  min-height: 1.4em;
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 800;
}

.qr-card {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 2.5vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 252, 0.92)),
    #fff;
  box-shadow: 0 24px 70px rgba(45, 91, 122, 0.18);
}

.qr-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(0.7rem, 2vw, 1rem);
  border: 1px solid rgba(24, 52, 71, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 8px rgba(238, 248, 255, 0.7);
}

.qr-frame img {
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: block;
}

.qr-url {
  margin: 0.9rem 0 0;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9, 27, 39, 0.86);
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal-open {
  overflow: hidden;
}

.qr-modal-panel {
  position: relative;
  width: min(92vw, 760px);
  display: grid;
  place-items: center;
  gap: 0.9rem;
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: 26px;
  background:
    linear-gradient(180deg, #fff, #eef8ff);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.qr-modal-panel img {
  width: min(80vmin, 620px);
  aspect-ratio: 1;
}

.qr-modal-panel p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 1.8rem);
  font-weight: 900;
  text-align: center;
}

.qr-modal-panel .eyebrow {
  color: var(--blue-500);
  font-size: 0.82rem;
}

.qr-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sky-50);
  font: inherit;
  font-weight: 900;
}

.receipt-card {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(45, 91, 122, 0.08);
}

.receipt-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.receipt-grid p {
  margin: 0;
  color: var(--ink);
}

.receipt-fine-print {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.nav-card,
.card,
.program-card,
.donation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(45, 91, 122, 0.08);
}

.nav-card {
  padding: 1.2rem;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(45, 91, 122, 0.12);
}

.nav-card-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--blue-500);
}

.nav-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.section {
  padding: 1.2rem 0;
}

.section-heading {
  margin-bottom: 1.2rem;
  max-width: 60ch;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.official-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(77, 149, 194, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(45, 91, 122, 0.09);
}

.official-panel-copy {
  max-width: 48ch;
}

.official-panel-copy h2 {
  margin-bottom: 0.7rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.official-panel-copy p {
  color: var(--ink-soft);
}

.official-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.official-details article {
  min-height: 110px;
  padding: 1rem;
  border: 1px solid rgba(77, 149, 194, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.official-details span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.official-details strong {
  display: block;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.35;
}

.page-hero {
  padding: 2.2rem 0 0.5rem;
}

.donate-flow-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 74px));
  display: grid;
  align-items: center;
  padding: clamp(2.4rem, 7vw, 5.5rem) 0 clamp(1.2rem, 4vw, 3rem);
  overflow: hidden;
}

.donate-flow-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 84% 22%, rgba(255, 255, 255, 0.96) 0 8rem, transparent 20rem),
    radial-gradient(circle at 78% 10%, rgba(255, 244, 198, 0.5) 0 5rem, transparent 15rem),
    linear-gradient(180deg, rgba(129, 226, 246, 0.7), rgba(246, 252, 255, 0.2) 72%);
  pointer-events: none;
}

.flow-ribbon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flow-ribbon span {
  position: absolute;
  left: -14vw;
  width: 128vw;
  height: 140px;
  border-radius: 999px;
  opacity: 0.42;
  filter: blur(1px);
  animation: donation-current-glide 16s ease-in-out infinite alternate;
}

.flow-ribbon::before,
.flow-ribbon::after {
  content: "";
  position: absolute;
  left: -8vw;
  width: 48vw;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), rgba(77, 149, 194, 0.18), transparent);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.36);
  animation: donation-current-glide 18s ease-in-out infinite alternate;
}

.flow-ribbon::before {
  top: 18%;
}

.flow-ribbon::after {
  top: 72%;
  width: 38vw;
  animation-delay: -5s;
}

.flow-ribbon span:nth-child(1) {
  top: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), rgba(74, 202, 237, 0.18), transparent);
}

.flow-ribbon span:nth-child(2) {
  top: 46%;
  height: 104px;
  background: linear-gradient(90deg, transparent, rgba(210, 244, 255, 0.62), rgba(255, 248, 218, 0.16), transparent);
  animation-delay: -4s;
}

.flow-ribbon span:nth-child(3) {
  top: 68%;
  height: 90px;
  background: linear-gradient(90deg, transparent, rgba(109, 216, 244, 0.24), rgba(255, 255, 255, 0.42), transparent);
  animation-delay: -8s;
}

.page-hero-content {
  padding: 0.5rem 0;
}

.page-hero h1 {
  max-width: 12ch;
  margin-inline: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.page-hero .lead {
  margin-inline: 0;
}

.donate-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.donate-hero-copy {
  max-width: 660px;
}

.donate-hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
}

.donate-hero-copy .lead {
  max-width: 38ch;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.payment-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.payment-rail span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(24, 52, 71, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(45, 91, 122, 0.08);
  animation: payment-float 5.2s ease-in-out infinite;
}

.payment-rail span:nth-child(2) {
  animation-delay: -1.1s;
}

.payment-rail span:nth-child(3) {
  animation-delay: -2.2s;
}

.payment-rail span:nth-child(4) {
  animation-delay: -3.3s;
}

.donate-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(45, 91, 122, 0.14);
  backdrop-filter: blur(16px);
}

.donate-share-copy h2,
.donate-share-copy h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.donate-share-copy p:last-child {
  margin-bottom: 0;
}

.donate-share-qr {
  display: grid;
  place-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(24, 52, 71, 0.08);
  border-radius: 16px;
  background: #fff;
}

.donate-share-qr img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}

.donate-share-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.flow-section {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.flow-section::before {
  content: "";
  position: absolute;
  inset: 12% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 149, 194, 0.26), transparent);
}

.flow-heading {
  max-width: 720px;
}

.flow-heading h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 14ch;
}

.flow-cards .donation-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.flow-cards .donation-card:nth-child(2) {
  transform: translateY(22px);
}

.flow-cards .donation-card:nth-child(3) {
  transform: translateY(44px);
}

.flow-cards .donation-card:nth-child(4) {
  transform: translateY(6px);
}

.flow-cards .donation-card:nth-child(5) {
  transform: translateY(28px);
}

.flow-cards .donation-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -72px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(77, 149, 194, 0.16), rgba(47, 159, 137, 0.14), rgba(215, 165, 54, 0.12));
  transition: transform 0.28s ease;
}

.flow-cards .donation-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(77, 149, 194, 0.24);
  box-shadow: 0 24px 54px rgba(45, 91, 122, 0.14);
}

.flow-cards .donation-card:hover::before {
  transform: translateY(-18px);
}

.flow-section-checkout {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(238, 248, 255, 0.74)),
    radial-gradient(circle at 86% 20%, rgba(215, 165, 54, 0.1), transparent 30%);
}

.donation-form-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(77, 149, 194, 0.2);
  box-shadow:
    0 24px 54px rgba(45, 91, 122, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  animation: donation-card-glow 7s ease-in-out infinite;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.donation-form-card-featured {
  padding: clamp(1.05rem, 2.2vw, 1.45rem);
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 222, 247, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 255, 0.94));
  backdrop-filter: blur(14px);
}

.donation-form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 4px;
  background: linear-gradient(180deg, #13a8df, var(--blue-700), var(--mint), #13a8df);
  background-size: 100% 220%;
  animation: donation-edge-flow 5.8s ease-in-out infinite;
}

.donation-form-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.62) 46%, transparent 68%);
  opacity: 0;
  transform: translateX(-72%);
  animation: donation-form-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.donation-form-card > * {
  position: relative;
  z-index: 1;
}

.donation-form-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.8rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.donation-form-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.donation-form-heading h2 {
  margin-bottom: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.08;
}

.donation-form-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(77, 149, 194, 0.16);
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(238, 248, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
}

.donation-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.48rem;
  margin-top: 0.72rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(77, 149, 194, 0.15);
}

.donation-step::before {
  display: none;
}

.donation-step > * {
  position: relative;
  z-index: 1;
}

.donation-step-heading {
  display: block;
}

.donation-step-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1397d5, var(--blue-700));
  box-shadow: 0 12px 24px rgba(19, 151, 213, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
}

.donation-step-heading h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
}

.donation-step-heading p {
  display: none;
}

.compact-select {
  margin-top: 0;
}

.donation-select-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 0.55rem;
  align-items: stretch;
}

.donation-select-pair .compact-select {
  min-width: 0;
}

.compact-select select {
  min-height: 46px;
  font-weight: 850;
}

.schedule-select select {
  border-color: rgba(19, 151, 213, 0.18);
  background:
    linear-gradient(135deg, rgba(238, 248, 255, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

.choice-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-chip {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.08rem;
  min-width: 98px;
  min-height: 58px;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(24, 52, 71, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(45, 91, 122, 0.08);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.choice-chip::before {
  content: "";
  position: absolute;
  inset: auto 16% -36px;
  height: 48px;
  border-radius: 999px;
  background: rgba(77, 149, 194, 0.16);
  transition: transform 0.22s ease;
}

.choice-chip span,
.choice-chip small {
  position: relative;
  z-index: 1;
}

.choice-chip span {
  font-weight: 900;
  line-height: 1.15;
}

.choice-chip small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.choice-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(45, 91, 122, 0.14);
}

.choice-chip.is-selected {
  border-color: rgba(19, 151, 213, 0.62);
  color: #fff;
  background: linear-gradient(135deg, #13a8df, var(--blue-700));
  box-shadow: 0 18px 36px rgba(19, 151, 213, 0.2);
}

.choice-chip.is-selected::before {
  transform: translateY(-16px);
  background: rgba(255, 255, 255, 0.18);
}

.choice-chip.is-selected small {
  color: rgba(255, 255, 255, 0.82);
}

.choice-chip.is-disabled,
.choice-chip:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.choice-chip.is-disabled:hover,
.choice-chip:disabled:hover {
  transform: none;
  box-shadow: none;
}

.form-current {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.form-current span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  font-size: 0.82rem;
  font-weight: 900;
  animation: step-pulse 4.6s ease-in-out infinite;
}

.form-current span:nth-child(2) {
  animation-delay: -1.5s;
}

.form-current span:nth-child(3) {
  animation-delay: -3s;
}

.form-current span:nth-child(4) {
  animation-delay: -4.5s;
}

.form-current span:nth-child(5) {
  animation-delay: -6s;
}

.donor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.mission-grid,
.transparency-grid,
.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.program-card,
.donation-card {
  padding: 1.15rem;
}

.program-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.95));
}

.donation-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donation-categories .donation-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.donation-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-flow-section {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
  padding: clamp(2.2rem, 6vw, 4.5rem) 0;
  overflow: hidden;
}

.contact-flow-section::before {
  content: "";
  position: absolute;
  inset: 10% -12vw auto;
  height: 58%;
  background:
    linear-gradient(104deg, transparent 0 20%, rgba(77, 149, 194, 0.16) 20% 22%, transparent 22% 52%, rgba(47, 159, 137, 0.12) 52% 54%, transparent 54%),
    linear-gradient(112deg, transparent 0 64%, rgba(215, 165, 54, 0.12) 64% 66%, transparent 66%);
  transform: rotate(-6deg);
  animation: long-current 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.contact-flow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(1.25rem, 4vw, 2.6rem);
  align-items: start;
}

.contact-methods h1 {
  max-width: 13ch;
  margin-bottom: 0.72rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.contact-intro {
  max-width: 42ch;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.contact-method-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.contact-method-card,
.contact-message-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77, 149, 194, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(45, 91, 122, 0.08);
}

.contact-method-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-message-card::before {
  content: "";
  position: absolute;
  inset: auto -16% -82px;
  height: 126px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 149, 194, 0.1), rgba(47, 159, 137, 0.08), rgba(215, 165, 54, 0.08));
  animation: panel-current 6s ease-in-out infinite alternate;
  opacity: 0.8;
}

.contact-method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(45, 91, 122, 0.12);
}

.contact-method-card span,
.contact-method-card strong,
.contact-message-card > *,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-method-card span {
  color: var(--blue-500);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-method-card strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.contact-message-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-message-card h2 {
  margin-bottom: 0.35rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
}

.amount-grid,
.frequency-grid {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.frequency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amount-grid legend,
.frequency-grid legend {
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.amount-grid label,
.frequency-grid label {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-height: 58px;
  padding: 0.56rem 0.42rem;
  border: 1px solid rgba(24, 52, 71, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-700);
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.frequency-grid label {
  align-content: center;
  justify-items: center;
  min-height: 60px;
  border-radius: 14px;
}

.amount-grid label strong,
.frequency-grid label strong {
  font-size: 1.02rem;
  text-align: center;
}

.frequency-grid label strong {
  font-size: 0.98rem;
}

.amount-grid label small,
.frequency-grid label small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.amount-grid label:has(input:checked) small,
.frequency-grid label:has(input:checked) small {
  color: rgba(255, 255, 255, 0.82);
}

.amount-grid label::before,
.frequency-grid label::before {
  content: "";
  position: absolute;
  inset: auto 18% -42px;
  height: 54px;
  border-radius: 999px;
  background: rgba(19, 151, 213, 0.16);
  transition: transform 0.24s ease;
}

.amount-grid label:hover,
.frequency-grid label:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(45, 91, 122, 0.12);
}

.amount-grid label:has(input:checked),
.frequency-grid label:has(input:checked) {
  color: #fff;
  background: linear-gradient(135deg, #13a8df, var(--blue-700));
  box-shadow: 0 12px 26px rgba(19, 151, 213, 0.18);
}

.amount-grid label:has(input:checked)::before,
.frequency-grid label:has(input:checked)::before {
  transform: translateY(-18px);
  background: rgba(255, 255, 255, 0.18);
}

.amount-grid label > *,
.frequency-grid label > * {
  position: relative;
  z-index: 1;
}

.amount-grid input,
.frequency-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recurring-note {
  margin: 0.12rem 0 0;
  padding: 0.58rem 0.68rem;
  border: 1px solid rgba(215, 165, 54, 0.22);
  border-radius: 12px;
  color: var(--blue-700);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 224, 0.72)),
    var(--paper);
  font-size: 0.8rem;
  font-weight: 800;
}

.custom-amount-choice {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 255, 0.96)),
    var(--sky-100);
}

.custom-donation-panel {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(77, 149, 194, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 255, 0.92)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(45, 91, 122, 0.1);
  overflow: hidden;
  animation: custom-panel-open 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.custom-donation-panel::before {
  content: "";
  position: absolute;
  inset: auto -18% -68px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 159, 137, 0.12), rgba(77, 149, 194, 0.16), rgba(215, 165, 54, 0.1));
  animation: panel-current 5s ease-in-out infinite alternate;
}

.custom-donation-panel[hidden] {
  display: none;
}

.custom-donation-field {
  position: relative;
  z-index: 1;
}

.custom-donation-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.custom-donation-input-wrap > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--blue-500));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(47, 159, 137, 0.2);
}

.custom-donation-input-wrap input {
  font-size: 1.05rem;
  font-weight: 800;
}

.donor-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.donor-options label:first-child {
  display: grid;
  gap: 0.42rem;
  font-weight: 700;
}

.donor-options label:first-child span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.donor-options textarea {
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(24, 52, 71, 0.12);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.donor-options textarea:focus {
  outline: 2px solid rgba(77, 149, 194, 0.2);
  border-color: var(--blue-500);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
}

.custom-amount,
.contact-form label {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.75rem;
  font-weight: 700;
}

.custom-amount input,
.custom-amount select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 52, 71, 0.12);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.custom-amount input:focus,
.custom-amount select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(77, 149, 194, 0.2);
  border-color: var(--blue-500);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit {
  width: max-content;
  min-width: 150px;
  margin-top: 1rem;
  padding-inline: 1.35rem;
  border-radius: 999px;
  justify-self: start;
  box-shadow: 0 14px 28px rgba(45, 91, 122, 0.16);
}

.payments,
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.payments {
  margin-top: 1rem;
}

.project-filter-section {
  padding: clamp(1.2rem, 3vw, 2rem) 0 0.25rem;
}

.project-filter-row {
  margin: 0;
}

.payments span,
.category-row span,
.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--blue-700);
  font-size: 0.88rem;
  font-weight: 700;
}

.donate-button {
  width: 100%;
  margin-top: 1rem;
}

.donation-note,
.donation-status {
  margin-top: 0.65rem;
  font-size: 0.92rem;
}

.donation-status {
  min-height: 1.2rem;
  font-weight: 700;
  color: var(--blue-700);
}

.donation-status.error {
  color: #b53a2f;
}

.secure-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sky-50);
}

.secure-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue-700);
}

.secure-note p {
  margin: 0;
  font-size: 0.92rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(5.2rem, auto) auto minmax(3.4rem, auto) auto;
  gap: 0.85rem;
  align-content: stretch;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(45, 91, 122, 0.08);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
  border-color: rgba(77, 149, 194, 0.24);
  box-shadow: 0 24px 60px rgba(45, 91, 122, 0.14);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sky-200);
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 0.25s ease;
}

.project-card.project-case-003 .project-media img {
  object-position: center 70%;
}

.project-media:hover img {
  transform: scale(1.03);
}

.project-media-banner,
.current-case-banner {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  color: var(--blue-700);
  background:
    linear-gradient(135deg, rgba(238, 248, 255, 0.94), rgba(217, 239, 255, 0.82)),
    var(--sky-200);
}

.project-media-banner::before,
.current-case-banner::before {
  content: "";
  position: absolute;
  inset: 12% -18%;
  background:
    linear-gradient(104deg, transparent 0 22%, rgba(77, 149, 194, 0.15) 22% 24%, transparent 24% 52%, rgba(47, 159, 137, 0.12) 52% 54%, transparent 54%),
    linear-gradient(112deg, transparent 0 60%, rgba(215, 165, 54, 0.12) 60% 62%, transparent 62%);
  transform: rotate(-8deg);
}

.project-media-banner::after,
.current-case-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 38%;
  background: linear-gradient(90deg, rgba(77, 149, 194, 0.22), rgba(47, 159, 137, 0.16), rgba(215, 165, 54, 0.12));
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}

.project-media-banner span,
.current-case-banner span,
.project-media-banner strong,
.current-case-banner strong {
  position: relative;
  z-index: 1;
}

.project-media-banner span,
.current-case-banner span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue-500);
}

.project-media-banner strong,
.current-case-banner strong {
  margin-top: 0.2rem;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.88;
}

.project-media > span:not(.project-media-banner) {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 52, 71, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.2rem;
}

.project-card h3 {
  margin-bottom: 0.35rem;
}

.project-card > div:not(.project-meta):not(.project-impact):not(.project-actions),
.project-card p {
  padding-inline: 1.2rem;
  margin-bottom: 0;
}

.project-impact {
  display: grid;
  gap: 0.2rem;
  margin: 0 1.2rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--sky-50);
  border: 1px solid var(--line);
}

.project-impact strong {
  color: var(--blue-700);
  font-size: 1.3rem;
}

.project-impact span,
.project-update {
  color: var(--ink-soft);
}

.project-update {
  font-size: 0.92rem;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-self: end;
  margin-top: auto;
  padding: 0 1.2rem 1.2rem;
}

.project-detail-hero {
  padding: 5.5rem 0 2.5rem;
}

.project-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 2rem;
  align-items: center;
}

.project-detail-copy {
  display: grid;
  gap: 1rem;
}

.project-detail-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.back-link {
  width: fit-content;
  color: var(--blue-700);
  font-weight: 800;
}

.project-detail-feature,
.proof-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-detail-feature img,
.proof-card img,
.proof-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-feature video {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  object-fit: contain;
}

.project-detail-feature {
  aspect-ratio: 4 / 3;
}

.project-current-banner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.project-current-banner .current-case-banner {
  min-height: 0;
}

.project-detail-video-feature {
  background: var(--ink);
}

.project-detail-feature figcaption,
.proof-card figcaption {
  padding: 0.8rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-detail-section {
  padding-block: 2rem;
}

.project-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-fact-grid > div {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(45, 91, 122, 0.08);
}

.project-fact-grid span {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-fact-grid strong {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.project-story-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.project-story-body {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.68);
}

.project-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
}

.proof-card-large {
  grid-row: span 2;
}

.proof-card-featured {
  grid-column: 1 / -1;
}

.proof-card-featured video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-proof video {
  aspect-ratio: 16 / 10;
  background: var(--ink);
}

.timeline-heading {
  max-width: 780px;
  margin-bottom: 1rem;
}

.timeline-heading h2 {
  max-width: 16ch;
}

#case-timeline {
  scroll-margin-top: 112px;
}

.project-timeline {
  --timeline-rail-start: 12.5%;
  --timeline-rail-end: 87.5%;
  --timeline-track-top: 4.35rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.2rem);
  padding: 1.3rem 0 1rem;
  counter-reset: case-step;
}

.project-timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-rail-start);
  right: calc(100% - var(--timeline-rail-end));
  top: var(--timeline-track-top);
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 147, 31, 0.08), #ffd166 16%, #ff9f1c 44%, #f47c20 72%, rgba(255, 181, 71, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.48) 18px 24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.82) inset,
    0 0 20px rgba(255, 159, 28, 0.46),
    0 0 52px rgba(244, 124, 32, 0.26);
  animation: timeline-glow 3s ease-in-out infinite, timeline-line-flow 12s linear infinite;
}

.project-timeline::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--timeline-track-top) - 10px);
  left: var(--timeline-rail-start);
  width: 28px;
  height: 28px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, #fff8db 0 18%, #ffd166 19% 40%, #ff8f1f 41% 70%, #c94f16 71%),
    #ff9f1c;
  box-shadow:
    0 0 0 10px rgba(255, 159, 28, 0.13),
    0 0 26px rgba(255, 159, 28, 0.72),
    0 0 70px rgba(244, 124, 32, 0.34);
  transform: translateX(-50%);
  animation: timeline-runner-horizontal 8.5s cubic-bezier(0.64, 0, 0.36, 1) infinite;
}

.project-timeline > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 260px;
  padding: 0.92rem clamp(0.85rem, 1.6vw, 1.1rem) 1.2rem;
  border: 1px solid rgba(255, 159, 28, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 213, 132, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 242, 0.92));
  box-shadow:
    0 18px 44px rgba(132, 76, 24, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: timeline-card-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc((var(--timeline-index, 1) - 1) * 120ms);
}

.project-timeline > div:nth-child(1) {
  --timeline-index: 1;
}

.project-timeline > div:nth-child(2) {
  --timeline-index: 2;
}

.project-timeline > div:nth-child(3) {
  --timeline-index: 3;
}

.project-timeline > div:nth-child(4) {
  --timeline-index: 4;
}

.project-timeline > div:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 124, 32, 0.48);
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 213, 132, 0.4), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 249, 236, 0.96));
  box-shadow:
    0 28px 64px rgba(132, 76, 24, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.project-timeline span {
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1.2rem;
  border: 6px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.68), transparent 20%),
    linear-gradient(135deg, #ffd166, #ff9f1c 48%, #c95b16);
  box-shadow:
    0 0 0 9px rgba(255, 159, 28, 0.12),
    0 0 32px rgba(244, 124, 32, 0.44),
    0 10px 28px rgba(94, 45, 14, 0.18);
  font-weight: 900;
  font-size: 1.1rem;
  animation: timeline-node-pulse 2.8s ease-in-out infinite;
  animation-delay: calc((var(--timeline-index, 1) - 1) * 180ms);
}

.project-timeline span::before,
.project-timeline span::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.project-timeline span::before {
  inset: -15px;
  border: 1px solid rgba(255, 159, 28, 0.34);
  opacity: 0.86;
  animation: timeline-ring-breathe 3.4s ease-in-out infinite;
  animation-delay: calc((var(--timeline-index, 1) - 1) * 160ms);
}

.project-timeline span::after {
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.project-timeline time {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 0.72rem;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  color: #9d4919;
  background: rgba(255, 159, 28, 0.13);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-timeline h3 {
  max-width: 13ch;
  margin: 0 auto 0.48rem;
  line-height: 1.05;
}

.project-timeline p {
  max-width: 24ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

.timeline-step-active span {
  background: linear-gradient(135deg, #ffd166, #ff9f1c 48%, #ec6a1a);
  box-shadow:
    0 0 0 8px rgba(255, 159, 28, 0.18),
    0 0 36px rgba(255, 159, 28, 0.58),
    0 0 70px rgba(236, 106, 26, 0.2);
}

.timeline-step-pending {
  border-color: rgba(120, 148, 165, 0.18);
  background:
    radial-gradient(circle at 50% 9%, rgba(217, 239, 255, 0.32), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 251, 0.9));
}

.timeline-step-pending span {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.56), transparent 20%),
    linear-gradient(135deg, #c9d8e3, #6f8798);
  box-shadow:
    0 0 0 8px rgba(120, 148, 165, 0.12),
    0 0 24px rgba(120, 148, 165, 0.24);
}

.timeline-step-maintenance span {
  background: linear-gradient(135deg, #ff9f1c, #2f9f89);
}

.timeline-step-maintenance time {
  color: #1f7465;
  background: rgba(47, 159, 137, 0.12);
}

@keyframes timeline-glow {
  0%, 100% { opacity: 0.72; filter: saturate(0.96); }
  50% { opacity: 1; filter: saturate(1.35); }
}

@keyframes timeline-line-flow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 220px 0; }
}

@keyframes timeline-runner-horizontal {
  0%, 9% {
    left: var(--timeline-rail-start);
  }
  30%, 39% {
    left: 37.5%;
  }
  60%, 69% {
    left: 62.5%;
  }
  91%, 100% {
    left: var(--timeline-rail-end);
  }
}

@keyframes timeline-runner-vertical {
  0%, 9% {
    top: 2.2rem;
  }
  30%, 39% {
    top: 34%;
  }
  60%, 69% {
    top: 63%;
  }
  91%, 100% {
    top: calc(100% - 2.2rem);
  }
}

@keyframes timeline-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timeline-node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes timeline-ring-breathe {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.34;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

.project-detail-cta {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(33, 79, 113, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(217, 239, 255, 0.92), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.project-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--blue-700);
  font-size: 0.88rem;
  font-weight: 800;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  filter: blur(8px);
}

.motion-ready .reveal[data-reveal-variant="slide-left"] {
  transform: translateX(-48px);
}

.motion-ready .reveal[data-reveal-variant="slide-right"] {
  transform: translateX(48px);
}

.motion-ready .reveal[data-reveal-variant="scale"] {
  transform: translateY(28px) scale(0.96);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-current {
  from {
    transform: translateX(-3vw) rotate(-5deg);
  }
  to {
    transform: translateX(3vw) rotate(-3deg);
  }
}

@keyframes current-shimmer {
  0%, 100% {
    opacity: 0.42;
    filter: saturate(0.95);
  }
  50% {
    opacity: 0.74;
    filter: saturate(1.2);
  }
}

@keyframes long-current {
  from {
    transform: translateX(-4vw) rotate(-8deg);
  }
  to {
    transform: translateX(4vw) rotate(-6deg);
  }
}

@keyframes cloud-breathe {
  from {
    transform: translate3d(-1vw, 0, 0) scale(0.98);
  }
  to {
    transform: translate3d(1.4vw, -1.2vh, 0) scale(1.03);
  }
}

@keyframes wave-drift {
  from {
    transform: translateX(-3vw) skewY(-4deg);
  }
  to {
    transform: translateX(3vw) skewY(-5deg);
  }
}

@keyframes current-line {
  from {
    transform: translateX(-4vw) rotate(-7deg);
  }
  to {
    transform: translateX(4vw) rotate(-5deg);
  }
}

@keyframes hero-copy-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes quick-card-lift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes quick-card-sheen {
  0%, 58%, 100% {
    opacity: 0;
    transform: translateX(-74%);
  }
  70% {
    opacity: 0.3;
  }
  88% {
    opacity: 0;
    transform: translateX(74%);
  }
}

@keyframes case-river {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 0.5rem), 0, 0);
  }
}

@keyframes case-card-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes faith-quote-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 0.45rem), 0, 0);
  }
}

@keyframes custom-panel-open {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-current {
  from {
    transform: translateX(-3vw);
  }
  to {
    transform: translateX(3vw);
  }
}

@keyframes ribbon-drift {
  from {
    transform: translateX(-4vw) rotate(-6deg);
  }
  to {
    transform: translateX(4vw) rotate(-3deg);
  }
}

@keyframes section-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ribbon-flow {
  from {
    transform: translateX(-4vw) rotate(-6deg);
  }
  to {
    transform: translateX(4vw) rotate(-4deg);
  }
}

@keyframes donation-current-glide {
  from {
    transform: translate3d(-3vw, 0, 0);
    opacity: 0.34;
  }
  to {
    transform: translate3d(3vw, 0, 0);
    opacity: 0.5;
  }
}

@keyframes donation-card-glow {
  0%, 100% {
    box-shadow:
      0 24px 54px rgba(45, 91, 122, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.72) inset,
      0 0 0 0 rgba(19, 151, 213, 0);
  }
  50% {
    box-shadow:
      0 30px 66px rgba(45, 91, 122, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.82) inset,
      0 0 34px rgba(19, 151, 213, 0.12);
  }
}

@keyframes donation-edge-flow {
  0%, 100% {
    background-position: 0 0;
  }
  50% {
    background-position: 0 100%;
  }
}

@keyframes donation-form-sheen {
  0%, 62%, 100% {
    opacity: 0;
    transform: translateX(-72%);
  }
  72% {
    opacity: 0.32;
  }
  88% {
    opacity: 0;
    transform: translateX(72%);
  }
}

@keyframes drift-bubble {
  from {
    transform: translate3d(-18px, 12px, 0) scale(0.92);
  }
  to {
    transform: translate3d(28px, -20px, 0) scale(1.08);
  }
}

@keyframes payment-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(77, 149, 194, 0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(77, 149, 194, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  body::before,
  body::after,
  .hero-shell-home .hero,
  .hero-donate-first .hero-copy,
  .hero::after,
  .page-hero::after,
  .home-case-flow::before,
  .case-flow-track,
  .case-flow-card,
  .case-flow-card img,
  .case-flow-card::before,
  .faith-quote-track,
  .quick-donation,
  .quick-donation::before,
  .quick-donation::after,
  .quick-amounts label:has(input:checked),
  .contact-flow-section::before,
  .contact-method-card::before,
  .contact-message-card::before,
  .flow-impact-section::after,
  .project-detail-hero::after,
  .current-lines span,
  .flow-impact-section::before,
  .flow-ribbon span,
  .flow-ribbon::before,
  .flow-ribbon::after,
  .payment-rail span,
  .form-current span,
  .quick-custom-panel,
  .quick-custom-panel::before,
  .custom-donation-panel,
  .custom-donation-panel::before,
  .project-timeline::before,
  .project-timeline::after,
  .project-timeline > div,
  .project-timeline span,
  .project-timeline span::before,
  .timeline-step-active span,
  .offline-dino,
  .dino-tail,
  .dino-leg,
  .offline-ground,
  .offline-sun {
    animation: none;
  }

.scroll-progress {
  display: none;
}

  .project-card,
  .proof-card,
  .project-detail-feature,
  .flow-impact-media,
  .home-stories,
  .case-flow-card,
  .contact-message-card,
  .donation-form-card {
    transform: none;
  }

  .case-flow-track {
    width: auto;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .case-flow-shell {
    overflow-x: auto;
  }

  .case-flow-shell::before,
  .case-flow-shell::after {
    display: none;
  }

  .case-flow-card {
    opacity: 1;
  }

  .faith-video-bg {
    display: none;
  }

  .faith-quote-track {
    width: auto;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

.offline-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.86) 0 8rem, transparent 20rem),
    radial-gradient(circle at 12% 8%, rgba(255, 244, 203, 0.72) 0 7rem, transparent 19rem),
    linear-gradient(180deg, #94eef8 0%, #74d8f2 38%, #f6fcff 100%);
}

.offline-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
}

.offline-card {
  width: min(100%, 780px);
  padding: clamp(1.35rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(237, 250, 255, 0.88)),
    linear-gradient(120deg, transparent 0 48%, rgba(255, 245, 202, 0.42) 48% 54%, transparent 54% 100%);
  box-shadow: 0 28px 80px rgba(23, 85, 128, 0.18);
}

.offline-dino-scene {
  position: relative;
  min-height: 230px;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(24, 52, 71, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 223, 129, 0.72) 0 3rem, transparent 3.2rem),
    linear-gradient(180deg, #bdf2fb 0%, #ecfbff 67%, #d9f0f8 68%, #c2e1ee 100%);
}

.offline-sun {
  position: absolute;
  top: 2.1rem;
  right: 3rem;
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff6c9, #f7c247 66%, #d59722);
  box-shadow: 0 0 44px rgba(247, 194, 71, 0.45);
  animation: offline-sun-pulse 4s ease-in-out infinite;
}

.offline-ground {
  position: absolute;
  right: -20%;
  bottom: 2.25rem;
  left: -20%;
  height: 12px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, var(--blue-700) 0 34px, transparent 34px 58px),
    linear-gradient(90deg, rgba(33, 79, 113, 0.16), rgba(47, 159, 137, 0.3));
  opacity: 0.72;
  animation: offline-ground-roll 1.2s linear infinite;
}

.offline-dino {
  position: absolute;
  bottom: 4.05rem;
  left: clamp(2rem, 16vw, 7rem);
  width: 172px;
  height: 128px;
  animation: offline-dino-hop 1s ease-in-out infinite;
}

.dino-body,
.dino-head,
.dino-tail,
.dino-leg,
.dino-eye {
  position: absolute;
  display: block;
}

.dino-body {
  right: 34px;
  bottom: 25px;
  width: 86px;
  height: 70px;
  border-radius: 45% 52% 42% 40%;
  background: linear-gradient(135deg, #4d95c2, #214f71);
  box-shadow: inset -14px -14px 0 rgba(24, 52, 71, 0.12);
}

.dino-head {
  right: 12px;
  top: 10px;
  width: 68px;
  height: 60px;
  border-radius: 23px 27px 18px 18px;
  background: linear-gradient(135deg, #4d95c2, #2f789f);
  box-shadow: inset -10px -10px 0 rgba(24, 52, 71, 0.1);
}

.dino-head::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 13px;
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.dino-tail {
  left: 8px;
  bottom: 55px;
  width: 62px;
  height: 23px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(90deg, #2f9f89, #4d95c2);
  transform: rotate(-14deg);
  transform-origin: right center;
  animation: offline-tail-wag 0.9s ease-in-out infinite;
}

.dino-leg {
  bottom: 0;
  width: 20px;
  height: 39px;
  border-radius: 0 0 12px 12px;
  background: #183447;
}

.dino-leg-front {
  right: 50px;
  animation: offline-leg-front 1s ease-in-out infinite;
}

.dino-leg-back {
  right: 89px;
  animation: offline-leg-back 1s ease-in-out infinite;
}

.dino-eye {
  top: 27px;
  right: 31px;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #102738;
}

.offline-card h1 {
  max-width: 620px;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
}

.offline-card p:not(.eyebrow) {
  max-width: 600px;
  font-size: 1.08rem;
}

.offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

@keyframes offline-dino-hop {
  0%, 100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-12px);
  }
}

@keyframes offline-tail-wag {
  0%, 100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(-3deg);
  }
}

@keyframes offline-leg-front {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-7deg);
  }
}

@keyframes offline-leg-back {
  0%, 100% {
    transform: translateY(7px) rotate(7deg);
  }
  50% {
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes offline-ground-roll {
  to {
    transform: translateX(-58px);
  }
}

@keyframes offline-sun-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 980px) {
  .header-cta {
    display: none;
  }

  .header-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.7rem 0;
  }

  .main-nav {
    width: 100%;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.35rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
  }

  .quick-links,
  .home-action-panel,
  .home-case-lane > div,
  .home-case-lanes,
  .mission-grid,
  .transparency-grid,
  .program-grid,
  .donation-categories,
  .donation-layout,
  .contact-layout,
  .project-grid,
  .faq-list,
  .share-shell,
  .contact-flow-grid,
  .flow-impact-grid,
  .project-detail-hero-grid,
  .project-story-grid,
  .project-proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .official-panel {
    grid-template-columns: 1fr;
  }

  .hero-donate-first {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-donate-first .hero-copy {
    margin: 0 auto;
  }

  .home-action-panel {
    justify-self: center;
  }

  .hero-donate-first h1,
  .hero-donate-first .lead {
    margin-inline: auto;
  }

  .donate-hero-grid {
    grid-template-columns: 1fr;
  }

  .amount-grid,
  .frequency-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .donor-grid {
    grid-template-columns: 1fr;
  }

  .project-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-current-scene {
    min-height: 0;
  }

  .flow-route,
  .flow-impact-stats {
    grid-template-columns: 1fr;
  }

  .case-flow-card {
    flex-basis: min(78vw, 320px);
    min-height: 360px;
  }

  .contact-methods h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .header-wrap {
    min-height: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .hero-shell {
    padding-top: 1.4rem;
  }

  .hero-home {
    padding: 3rem 1.1rem 2.2rem;
    border-radius: 24px;
  }

  .hero-donate-first {
    padding: 2.2rem 1rem 1rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 9ch;
    font-size: clamp(2.2rem, 11vw, 2.8rem);
    text-wrap: balance;
  }

  .hero-donate-first .hero-copy {
    max-width: min(100%, 22rem);
  }

  .lead,
  .page-hero .lead {
    max-width: 30ch;
  }

  .quick-links,
  .home-action-panel,
  .home-case-lane > div,
  .mission-grid,
  .transparency-grid,
  .program-grid,
  .donation-categories,
  .donation-layout,
  .contact-layout,
  .project-grid,
  .faq-list,
  .hero-proof,
  .amount-grid,
  .quick-amounts,
  .home-case-lanes,
  .receipt-grid,
  .share-shell,
  .contact-flow-grid,
  .flow-impact-grid,
  .project-detail-hero-grid,
  .project-story-grid,
  .project-proof-grid,
  .project-fact-grid,
  .project-timeline {
    grid-template-columns: 1fr;
  }

  .official-details {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-custom-choice {
    grid-column: 1 / -1;
  }

  .frequency-grid {
    grid-template-columns: 1fr;
  }

  .current-lines span {
    height: 72px;
  }

  .flow-impact-copy h2 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .faith-video-section {
    min-height: 560px;
  }

  .faith-reminder-content h2 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .faith-quote-track article {
    flex-basis: min(82vw, 340px);
  }

  .case-flow-track {
    gap: 0.75rem;
  }

  .case-flow-card:nth-child(even) {
    margin-top: 1rem;
  }

  .project-detail-hero {
    padding: 2.4rem 0 1rem;
  }

  .project-detail-copy h1 {
    max-width: none;
    font-size: clamp(2.3rem, 14vw, 4rem);
  }

  .project-detail-feature {
    aspect-ratio: 1 / 1;
  }

  .project-detail-actions {
    flex-direction: column;
  }

  .project-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 0;
  }

  .project-timeline::before {
    left: 2.35rem;
    right: auto;
    top: 2.2rem;
    bottom: 2.2rem;
    width: 8px;
    height: auto;
    background:
      linear-gradient(180deg, rgba(255, 147, 31, 0.12), #ff9f1c 18%, #f47c20 58%, rgba(255, 181, 71, 0.55)),
      repeating-linear-gradient(180deg, transparent 0 14px, rgba(255, 255, 255, 0.3) 14px 18px);
  }

  .project-timeline::after {
    left: 2.6rem;
    top: 2.2rem;
    transform: translate(-50%, -50%);
    animation: timeline-runner-vertical 8.5s cubic-bezier(0.64, 0, 0.36, 1) infinite;
  }

  .project-timeline > div {
    justify-items: start;
    min-height: 0;
    padding: 1rem 1rem 1.05rem 5.2rem;
    text-align: left;
  }

  .project-timeline span {
    position: absolute;
    left: calc(2.6rem - 28px);
    top: 0.92rem;
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    border-width: 5px;
  }

  .project-timeline time,
  .project-timeline h3,
  .project-timeline p {
    margin-inline: 0;
    max-width: none;
  }

  .proof-card,
  .proof-card-large {
    grid-row: auto;
  }

  .share-shell {
    min-height: 0;
    padding-top: 1rem;
  }

  .donate-share-card {
    grid-template-columns: 1fr;
  }

  .donate-flow-hero {
    min-height: 0;
  }

  .flow-ribbon span {
    height: 82px;
  }

  .donation-step {
    padding-top: 0.72rem;
  }

  .donation-step-heading {
    text-align: left;
  }

  .donation-select-pair {
    grid-template-columns: 1fr;
  }

  .choice-chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .choice-chip {
    min-width: 0;
    border-radius: 18px;
  }

  .frequency-grid {
    grid-template-columns: 1fr;
  }

  .donation-form-heading {
    grid-template-columns: 1fr;
  }

  .donation-form-heading > span {
    justify-self: start;
  }

  .flow-cards .donation-card,
  .flow-cards .donation-card:nth-child(2),
  .flow-cards .donation-card:nth-child(3),
  .flow-cards .donation-card:nth-child(4),
  .flow-cards .donation-card:nth-child(5) {
    transform: none;
  }

  .donate-share-qr {
    width: min(100%, 220px);
  }

  .share-copy h1 {
    max-width: none;
  }

  .share-actions .button,
  .share-actions .share-pill {
    flex: 1 1 100%;
  }

  .social-share-actions .share-pill {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    min-height: 52px;
  }

  .qr-card {
    padding: 0.85rem;
    border-radius: 22px;
  }

  .qr-frame {
    padding: 0.65rem;
    border-radius: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .nav-card,
  .card,
  .program-card,
  .donation-card,
  .project-card {
    padding: 1rem;
  }

  .project-card {
    padding: 0;
  }

  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .offline-shell {
    padding: 0.8rem;
  }

  .offline-card {
    border-radius: 22px;
  }

  .offline-dino-scene {
    min-height: 190px;
    border-radius: 18px;
  }

  .offline-dino {
    left: 1.4rem;
    scale: 0.86;
    transform-origin: left bottom;
  }

  .offline-sun {
    top: 1.5rem;
    right: 1.5rem;
    width: 3.7rem;
  }

  .offline-actions .button {
    width: 100%;
  }
}
