/* contribute-editorial-luxury-v1
   Premium redesign of /contribute/:slug -- Editorial Luxury preset
   (Cormorant Garamond + Inter, bone/carbon/copper palette, sharp 4px
   radii, generous whitespace, sticky figure column for the child
   identity on desktop, single-column flow on mobile).

   WHY this stylesheet was rewritten 2026-05-26: the W26/W69 baseline
   shipped a working but anonymous form -- form-first, no visual
   storytelling, no warmth, weak trust signals. This rewrite preserves
   every selector + data-attribute the W13/W14/W24 audits assert on,
   but replaces the visual layer with a heritage-credible, parent-
   recognising design. Audience: 30-40yo stressed SA parent.
   Tone: honest-anxious-parent-recognising, not coffee-shop warm.
*/

:root {
  --el-bone:        #FAF6F0;
  --el-bone-deep:   #F2EBDE;
  --el-paper:       #FFFFFF;
  --el-carbon:      #1A1916;
  --el-graphite:    #3D3A35;
  --el-muted:       #6B6660;
  --el-mute-soft:   #9C958B;
  --el-hairline:    #E8E1D6;
  --el-copper:      #B87333;
  --el-copper-deep: #9A5F2A;
  --el-copper-tint: #F4E7D6;
  --el-shadow-1:    0 1px 2px rgba(26, 25, 22, 0.04), 0 1px 1px rgba(26, 25, 22, 0.02);
  --el-shadow-2:    0 4px 12px rgba(26, 25, 22, 0.06), 0 1px 2px rgba(26, 25, 22, 0.04);
  --el-shadow-3:    0 18px 48px rgba(26, 25, 22, 0.10), 0 2px 6px rgba(26, 25, 22, 0.04);
  --el-radius:      4px;
  --el-radius-lg:   8px;
  --el-font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --el-font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Page shell                                                          */
/* ------------------------------------------------------------------ */

html, body {
  background: var(--el-bone);
  color: var(--el-carbon);
  font-family: var(--el-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.public-contribute,
body.public-profile {
  background:
    radial-gradient(1100px 600px at 88% -10%, rgba(184, 115, 51, 0.06), transparent 60%),
    radial-gradient(800px 480px at -10% 100%, rgba(184, 115, 51, 0.04), transparent 60%),
    var(--el-bone);
  min-height: 100vh;
}

/* Subtle paper grain over the whole page -- adds the "tactile, hand-
   made not factory-printed" feel the brand needs. ~2 KB inline SVG. */
body.public-contribute::before,
body.public-profile::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------ */
/* AMBIENT: aurora-mesh blobs + particle canvas                        */
/* ------------------------------------------------------------------ */

/* Aurora mesh -- 4 large blurred orbs slowly drifting on different
   long loops. They live BEHIND content (z-index 0) and never block
   pointer events. The blur + low opacity + screen-blend keeps them
   from competing with the paper texture or the form. */
.el-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.el-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.el-blob--1 {
  width: 70vmax; height: 70vmax;
  top: -26vmax; left: -22vmax;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.78) 0%, rgba(184, 115, 51, 0.28) 35%, transparent 70%);
  animation: el-drift-1 14s ease-in-out infinite alternate;
}
.el-blob--2 {
  width: 60vmax; height: 60vmax;
  top: 8vmax; right: -26vmax;
  background: radial-gradient(circle, rgba(217, 130, 60, 0.72) 0%, rgba(217, 130, 60, 0.24) 35%, transparent 70%);
  animation: el-drift-2 18s ease-in-out infinite alternate;
}
.el-blob--3 {
  width: 54vmax; height: 54vmax;
  bottom: -22vmax; left: 18vmax;
  background: radial-gradient(circle, rgba(233, 178, 100, 0.72) 0%, rgba(233, 178, 100, 0.24) 35%, transparent 70%);
  animation: el-drift-3 16s ease-in-out infinite alternate;
}
.el-blob--4 {
  width: 48vmax; height: 48vmax;
  bottom: 8vmax; right: 4vmax;
  background: radial-gradient(circle, rgba(154, 95, 42, 0.78) 0%, rgba(154, 95, 42, 0.28) 35%, transparent 70%);
  animation: el-drift-4 20s ease-in-out infinite alternate;
}
@keyframes el-drift-1 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1);     }
  100% { transform: translate(22vw, 16vh) rotate(60deg) scale(1.18); }
}
@keyframes el-drift-2 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1);     }
  100% { transform: translate(-20vw, 14vh) rotate(-48deg) scale(1.22); }
}
@keyframes el-drift-3 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1);     }
  100% { transform: translate(14vw, -20vh) rotate(46deg) scale(0.88); }
}
@keyframes el-drift-4 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1);     }
  100% { transform: translate(-18vw, -14vh) rotate(-38deg) scale(1.3); }
}

/* ------------------------------------------------------------------ */
/* Scroll progress bar (top, 3px copper gradient)                      */
/* ------------------------------------------------------------------ */

.el-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--el-copper) 0%, #E9B264 50%, var(--el-copper-deep) 100%);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(184, 115, 51, 0.6);
  transition: width 140ms ease-out;
}

/* ------------------------------------------------------------------ */
/* Live contributor ticker (bottom-left, slides in/out)                */
/* ------------------------------------------------------------------ */

.el-ticker {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--el-hairline);
  border-left: 3px solid var(--el-copper);
  border-radius: var(--el-radius);
  padding: 10px 16px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--el-graphite);
  box-shadow: 0 12px 30px rgba(26, 25, 22, 0.10), 0 2px 6px rgba(26, 25, 22, 0.04);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 420ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: calc(100vw - 56px);
}
.el-ticker.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.el-ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BAA63;
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(43, 170, 99, 0.45);
  animation: el-ticker-pulse 1.8s ease-out infinite;
}
@keyframes el-ticker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(43, 170, 99, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(43, 170, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 170, 99, 0); }
}
.el-ticker__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
@media (max-width: 480px) {
  .el-ticker {
    bottom: 14px;
    left: 14px;
    right: 14px;
    font-size: 12px;
    padding: 8px 12px 8px 10px;
  }
}

/* Particle canvas -- JS draws drifting dots + connection lines.
   Lives above aurora but below content (z-index 1). */
.el-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

.contribute,
.public-footer {
  position: relative;
  z-index: 3;
}

/* ------------------------------------------------------------------ */
/* Layout -- single column on mobile, sticky figure on desktop         */
/* ------------------------------------------------------------------ */

main.contribute {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 40px) 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
}

@media (min-width: 960px) {
  main.contribute {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    grid-template-areas:
      "header header"
      "form   aside"
      "form   aside"
      "about  about";
    align-items: start;
  }
  .contribute__header   { grid-area: header; }
  .contribute__form     { grid-area: form;   }
  .contribute__figure   { grid-area: aside;  }
  .contribute__about    { grid-area: about;  }
}
/* On smaller screens hide the figure card -- the hero already shows
   the child name + stats; repeating the photo+name above the form
   would crowd the single-column flow. */
@media (max-width: 959px) {
  .contribute__figure { display: none; }
}

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

.contribute__header {
  margin: 0 0 8px;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
  background:
    linear-gradient(135deg, #FFFBF3 0%, #F6E9D2 100%);
  border: 1px solid var(--el-hairline);
  border-radius: var(--el-radius-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 48px rgba(184, 115, 51, 0.10), 0 2px 6px rgba(26, 25, 22, 0.04);
}

/* Animated mesh behind hero content -- three large copper radials
   drifting on long offsets. INSIDE the hero card so the card itself
   moves. */
.contribute__header-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.contribute__header-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
}
.contribute__header-mesh span:nth-child(1) {
  width: 60%; height: 140%;
  top: -40%; left: -10%;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.40), transparent 65%);
  animation: el-hero-mesh-1 16s ease-in-out infinite alternate;
}
.contribute__header-mesh span:nth-child(2) {
  width: 55%; height: 130%;
  top: -30%; right: -15%;
  background: radial-gradient(circle, rgba(233, 178, 100, 0.55), transparent 65%);
  animation: el-hero-mesh-2 20s ease-in-out infinite alternate;
}
.contribute__header-mesh span:nth-child(3) {
  width: 50%; height: 120%;
  bottom: -40%; left: 30%;
  background: radial-gradient(circle, rgba(154, 95, 42, 0.35), transparent 65%);
  animation: el-hero-mesh-3 22s ease-in-out infinite alternate;
}
@keyframes el-hero-mesh-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15%, 10%) scale(1.15); }
}
@keyframes el-hero-mesh-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12%, 8%) scale(1.2); }
}
@keyframes el-hero-mesh-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, -10%) scale(0.9); }
}

/* ----- Hero 2-column grid (text left, orb right) ----- */
.contribute__header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .contribute__header-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 40px;
  }
}

.contribute__header-text { min-width: 0; }
.contribute__header-art  { display: flex; justify-content: center; align-items: center; }

.contribute__eyebrow {
  margin: 0 0 14px;
  font-family: var(--el-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--el-copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contribute__eyebrow::before,
.contribute__eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.contribute__name {
  margin: 0 0 18px;
  font-family: var(--el-font-display);
  font-weight: 600;
  font-size: clamp(52px, 8.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}
.contribute__name-inner {
  background: linear-gradient(110deg,
    #5A2C0A 0%,
    var(--el-copper-deep) 20%,
    var(--el-copper) 40%,
    #F4C77A 55%,
    var(--el-copper) 70%,
    var(--el-copper-deep) 88%,
    #5A2C0A 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: el-name-shimmer 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(184, 115, 51, 0.25));
}
@keyframes el-name-shimmer {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

.contribute__lead {
  margin: 0 0 24px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--el-graphite);
}

.contribute__back {
  margin: 18px 0 0;
  font-size: 14px;
}
.contribute__back a {
  display: inline-block;
  color: var(--el-copper-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  padding: 8px 2px;
  min-height: 44px;
  line-height: 1.7;
  transition: border-color 160ms ease, color 160ms ease;
}
.contribute__back a:hover {
  color: var(--el-carbon);
  border-bottom-color: var(--el-copper);
}

/* ----- Hero stats row (counter rollup) ----- */
.contribute__stats {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
  flex-wrap: wrap;
  margin: 0;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 115, 51, 0.16);
  border-radius: var(--el-radius);
  box-shadow: 0 6px 18px rgba(184, 115, 51, 0.10);
}
.contribute__stat {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contribute__stat dt {
  font-family: var(--el-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--el-copper);
  margin: 0;
}
.contribute__stat dd {
  margin: 0;
  font-family: var(--el-font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  color: var(--el-carbon);
  line-height: 1;
  letter-spacing: -0.015em;
}
.contribute__stat-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(184, 115, 51, 0.4), transparent);
}
@media (max-width: 520px) {
  .contribute__stat-divider { display: none; }
  .contribute__stats {
    gap: 12px 22px;
    padding: 14px 18px;
  }
}

/* ----- Animated SVG orb (right column of hero) ----- */
.el-orb {
  width: clamp(180px, 26vw, 260px);
  height: clamp(180px, 26vw, 260px);
  position: relative;
}
.el-orb__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.el-orb__halo {
  transform-origin: 120px 120px;
  animation: el-orb-halo-pulse 4s ease-in-out infinite;
}
@keyframes el-orb-halo-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50%      { transform: scale(1.08); opacity: 1;   }
}
.el-orb__petals {
  transform-origin: 120px 120px;
  animation: el-orb-petals-spin 28s linear infinite;
}
@keyframes el-orb-petals-spin {
  to { transform: rotate(360deg); }
}
.el-orb__core {
  transform-origin: 120px 120px;
  animation: el-orb-core-breath 3.5s ease-in-out infinite;
}
@keyframes el-orb-core-breath {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.06); }
}
.el-orb__sparkles {
  transform-origin: 120px 120px;
  animation: el-orb-sparkles-spin 22s linear infinite reverse;
}
.el-orb__sparkles circle {
  animation: el-orb-twinkle 2.8s ease-in-out infinite;
}
.el-orb__sparkles circle:nth-child(odd)  { animation-delay: 0s;    }
.el-orb__sparkles circle:nth-child(even) { animation-delay: 1.4s;  }
@keyframes el-orb-twinkle {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1;   }
}
@keyframes el-orb-sparkles-spin {
  to { transform: rotate(-360deg); }
}

/* ------------------------------------------------------------------ */
/* Form card                                                           */
/* ------------------------------------------------------------------ */

.contribute__form {
  background: var(--el-paper);
  border: 1px solid var(--el-hairline);
  border-radius: var(--el-radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--el-shadow-2);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 36px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 280ms ease;
}
.contribute__form:hover {
  box-shadow: var(--el-shadow-3);
}
/* Mouse-follow card glow -- whole form lights up where cursor is.
   JS sets --mx/--my on the .contribute__form element. */
.contribute__form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 50%),
    rgba(184, 115, 51, 0.07),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 360ms ease;
  pointer-events: none;
  z-index: -1;
}
.contribute__form:hover::before {
  opacity: 1;
}

.contribute__form fieldset,
.contribute__form section {
  border: none;
  margin: 0;
  padding: 0;
}

.contribute__form legend,
.contribute__form .amount-picker__legend {
  font-family: var(--el-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--el-copper);
  margin: 0 0 18px;
  padding: 0;
  display: block;
}

/* ------------------------------------------------------------------ */
/* Amount picker -- copper-glow on selected chip                       */
/* ------------------------------------------------------------------ */

.contribute__amount--redesigned .amount-picker__chips,
.contribute__amount--redesigned [role="radiogroup"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.contribute__amount--redesigned .amount-picker__chip,
.contribute__amount--redesigned button[type="button"][data-amount-cents] {
  appearance: none;
  background: var(--el-paper);
  border: 1.5px solid var(--el-hairline);
  border-radius: var(--el-radius);
  padding: 18px 12px;
  font-family: var(--el-font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--el-carbon);
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Mouse-follow copper glow inside each chip -- JS sets --mx/--my */
.contribute__amount--redesigned .amount-picker__chip::after,
.contribute__amount--redesigned button[type="button"][data-amount-cents]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(184, 115, 51, 0.28),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: -1;
}
.contribute__amount--redesigned .amount-picker__chip:hover::after,
.contribute__amount--redesigned button[type="button"][data-amount-cents]:hover::after {
  opacity: 1;
}
/* Press pulse -- subtle scale punch on active */
.contribute__amount--redesigned .amount-picker__chip:active,
.contribute__amount--redesigned button[type="button"][data-amount-cents]:active {
  transform: scale(0.97);
}

.contribute__amount--redesigned .amount-picker__chip:hover,
.contribute__amount--redesigned button[type="button"][data-amount-cents]:hover {
  border-color: var(--el-copper);
  background: var(--el-copper-tint);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 115, 51, 0.18);
}

.contribute__amount--redesigned .amount-picker__chip[aria-pressed="true"],
.contribute__amount--redesigned .amount-picker__chip.is-selected,
.contribute__amount--redesigned button[type="button"][data-amount-cents][aria-pressed="true"],
.contribute__amount--redesigned button[type="button"][data-amount-cents].is-selected {
  background: var(--el-carbon);
  border-color: var(--el-carbon);
  color: var(--el-bone);
  box-shadow: 0 6px 18px rgba(26, 25, 22, 0.22);
}

.contribute__custom-amount {
  position: relative;
  padding-top: 22px;
  margin-top: 14px;
  border-top: 1px solid var(--el-hairline);
}

/* All form-field labels (rendered by the shared text-input / textarea /
   checkbox partials) -- targeted globally inside the form so partial
   markup gets the same high-contrast treatment as inline labels. */
.contribute__form .form-field > label,
.contribute__form label,
.contribute__custom-amount label {
  font-family: var(--el-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--el-carbon);
  letter-spacing: 0.005em;
  display: block;
  margin: 0 0 8px;
}
/* Required asterisk -- copper accent so it reads as "important" not
   "broken". The partial wraps it in <span aria-hidden="true">*</span>. */
.contribute__form label span[aria-hidden="true"] {
  color: var(--el-copper);
  font-weight: 700;
  margin-left: 2px;
}
/* Checkbox-row label keeps medium weight so it doesn't shout */
.contribute__form .form-field--checkbox > label {
  font-weight: 500;
  font-size: 14px;
  color: var(--el-graphite);
}

.contribute__custom-amount input[type="text"],
.contribute__custom-amount input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--el-font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--el-carbon);
  background: var(--el-bone);
  border: 1.5px solid var(--el-hairline);
  border-radius: var(--el-radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.contribute__custom-amount input[type="text"]:focus,
.contribute__custom-amount input[type="number"]:focus {
  outline: none;
  border-color: var(--el-copper);
  background: var(--el-paper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.18);
}

.contribute__amount-hint {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--el-mute-soft);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ */
/* Your details                                                        */
/* ------------------------------------------------------------------ */

.contribute__who {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contribute__who label,
.contribute__who .form-label {
  font-family: var(--el-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--el-graphite);
  letter-spacing: 0.01em;
  display: block;
  margin: 0 0 8px;
}

.contribute__who input[type="text"],
.contribute__who input[type="email"],
.contribute__who textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--el-font-body);
  font-size: 15px;
  color: var(--el-carbon);
  background: var(--el-bone);
  border: 1.5px solid var(--el-hairline);
  border-radius: var(--el-radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.contribute__who input[type="text"]:focus,
.contribute__who input[type="email"]:focus,
.contribute__who textarea:focus {
  outline: none;
  border-color: var(--el-copper);
  background: var(--el-paper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.18);
}

.contribute__who textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

/* Checkbox -- custom mark, copper on check.
   22x22 box + 11px padding on the wrapping label = 44+px finger
   target without making the box itself huge. */
.contribute__who input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1.5px solid var(--el-mute-soft);
  border-radius: 4px;
  background: var(--el-paper);
  cursor: pointer;
  vertical-align: -5px;
  margin-right: 10px;
  position: relative;
  transition: all 140ms ease;
}
.contribute__who input[type="checkbox"]:hover {
  border-color: var(--el-copper);
}
.contribute__who input[type="checkbox"]:checked {
  background: var(--el-copper);
  border-color: var(--el-copper);
}
.contribute__who input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
/* Make the whole checkbox row a generous tap target on mobile */
.contribute__form .form-field--checkbox > label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(184, 115, 51, 0.12);
}

.contribute__who label.has-checkbox,
.contribute__who .checkbox-row label {
  font-weight: 400;
  font-size: 14px;
  color: var(--el-graphite);
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Trust strip -- 3 stacked cards, copper accents                      */
/* ------------------------------------------------------------------ */

.contribute__trust {
  background: var(--el-bone);
  border: 1px solid var(--el-hairline);
  border-left: 3px solid var(--el-copper);
  border-radius: var(--el-radius);
  padding: 18px 20px;
  margin: 0;
}
.contribute__trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contribute__trust-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.contribute__trust-mark {
  font-size: 18px;
  line-height: 1.2;
  color: var(--el-copper);
}
.contribute__trust-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--el-graphite);
}
.contribute__trust-text strong {
  color: var(--el-carbon);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Live-money disclaimer                                               */
/* ------------------------------------------------------------------ */

.contribute__disclaimer {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF6EC 100%);
  border: 1px solid var(--el-hairline);
  border-radius: var(--el-radius);
  padding: 20px 22px;
  margin: 0;
}
.contribute__disclaimer-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--el-carbon);
  line-height: 1.55;
}
.contribute__disclaimer-lead strong {
  color: var(--el-copper-deep);
  font-weight: 600;
}
.contribute__disclaimer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contribute__disclaimer-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--el-graphite);
  padding-left: 16px;
  position: relative;
}
.contribute__disclaimer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--el-copper);
}
.contribute__disclaimer-list strong {
  color: var(--el-carbon);
  font-weight: 600;
}
.contribute__disclaimer-list a {
  display: inline-block;
  color: var(--el-copper-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  padding: 4px 2px;
  min-height: 32px;
  line-height: 1.6;
}
.contribute__disclaimer-list a:hover {
  color: var(--el-carbon);
  border-bottom-color: var(--el-copper);
}

/* ------------------------------------------------------------------ */
/* Actions -- big copper CTA + ghost cancel                            */
/* ------------------------------------------------------------------ */

.contribute__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--el-hairline);
}

.contribute__submit,
.btn.contribute__submit,
.btn--primary.contribute__submit {
  appearance: none;
  background: linear-gradient(135deg, var(--el-copper) 0%, var(--el-copper-deep) 100%);
  color: #fff;
  border: 1.5px solid var(--el-copper);
  padding: 16px 32px;
  font-family: var(--el-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--el-radius);
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(184, 115, 51, 0.32),
    0 0 0 0 rgba(184, 115, 51, 0.55);
  transition: transform 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 180ms ease,
              box-shadow 180ms ease;
  min-width: 220px;
  min-height: 52px;
  position: relative;
  animation: el-cta-pulse 2.6s ease-in-out infinite;
}
@keyframes el-cta-pulse {
  0%, 100% {
    box-shadow:
      0 6px 18px rgba(184, 115, 51, 0.32),
      0 0 0 0 rgba(184, 115, 51, 0.55);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(184, 115, 51, 0.42),
      0 0 0 14px rgba(184, 115, 51, 0);
  }
}
.contribute__submit:hover,
.btn.contribute__submit:hover {
  background: var(--el-copper-deep);
  border-color: var(--el-copper-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(154, 95, 42, 0.34);
}
.contribute__submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(154, 95, 42, 0.24);
}
.contribute__submit:focus-visible {
  outline: 3px solid rgba(184, 115, 51, 0.4);
  outline-offset: 2px;
}

.btn--link {
  color: var(--el-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 12px;
  border-radius: var(--el-radius);
  transition: color 160ms ease, background 160ms ease;
}
.btn--link:hover {
  color: var(--el-carbon);
  background: var(--el-bone-deep);
}

/* ------------------------------------------------------------------ */
/* Aside on desktop -- sticky figure column                            */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Sticky figure card -- child identity (photo + name + caption)       */
/* ------------------------------------------------------------------ */

.contribute__figure {
  position: sticky;
  top: 28px;
  align-self: start;
  z-index: 1;
}
.contribute__figure-card {
  background: var(--el-paper);
  border: 1px solid var(--el-hairline);
  border-radius: var(--el-radius-lg);
  overflow: hidden;
  box-shadow: var(--el-shadow-2);
  display: flex;
  flex-direction: column;
  position: relative;
}
.contribute__figure-card::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--el-copper) 0%, #E9B264 50%, var(--el-copper-deep) 100%);
  border-radius: var(--el-radius-lg) var(--el-radius-lg) 0 0;
  z-index: 2;
}
.contribute__figure-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.contribute__figure-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 9s ease-in-out;
  transform: scale(1.02);
}
.contribute__figure-card:hover .contribute__figure-photo img {
  transform: scale(1.08);
}
.contribute__figure-caption {
  padding: 18px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--el-hairline);
}
.contribute__figure-eyebrow {
  font-family: var(--el-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--el-copper);
}
.contribute__figure-name {
  font-family: var(--el-font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--el-carbon);
}
.contribute__figure-sub {
  font-size: 12.5px;
  color: var(--el-muted);
  letter-spacing: 0.01em;
}
.contribute__figure-quote {
  margin: 0;
  padding: 18px 22px 22px;
  font-family: var(--el-font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--el-graphite);
  position: relative;
}
.contribute__figure-quote::before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 14px;
  font-family: var(--el-font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--el-copper);
  opacity: 0.32;
}

/* ------------------------------------------------------------------ */
/* About section                                                       */
/* ------------------------------------------------------------------ */

.contribute__about {
  background: transparent;
  border-top: 1px solid var(--el-hairline);
  padding: clamp(24px, 4vw, 40px) clamp(8px, 2vw, 24px) 0;
  margin: 0;
}
.contribute__about-heading {
  margin: 0 0 14px;
  font-family: var(--el-font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  color: var(--el-carbon);
}
.contribute__about p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--el-graphite);
  max-width: 64ch;
}

/* ------------------------------------------------------------------ */
/* Errors                                                              */
/* ------------------------------------------------------------------ */

.contribute__banner--error,
.form-error,
.field-error {
  background: #FCEDE4;
  border: 1px solid #E3A87C;
  color: #7A3A12;
  padding: 12px 16px;
  border-radius: var(--el-radius);
  font-size: 13px;
  line-height: 1.5;
}
.contribute__form .field-error {
  margin-top: 6px;
  font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.public-footer {
  text-align: center;
  padding: 32px 16px 48px;
  border-top: 1px solid var(--el-hairline);
  margin-top: 40px;
}
.public-footer small {
  font-size: 12px;
  color: var(--el-mute-soft);
  letter-spacing: 0.04em;
}
.public-footer a {
  display: inline-block;
  color: var(--el-graphite);
  text-decoration: none;
  border-bottom: 1px solid var(--el-hairline);
  padding: 8px 4px;
  min-height: 44px;
  line-height: 1.7;
}
.public-footer a:hover {
  color: var(--el-copper-deep);
  border-bottom-color: var(--el-copper);
}

/* ------------------------------------------------------------------ */
/* Reveal animations -- on initial render                              */
/* ------------------------------------------------------------------ */

@keyframes el-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contribute__header   { animation: el-fadeUp 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.contribute__form     { animation: el-fadeUp 700ms 120ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.contribute__about    { animation: el-fadeUp 700ms 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

@media (prefers-reduced-motion: reduce) {
  .contribute__header,
  .contribute__form,
  .contribute__about,
  .el-blob,
  .contribute__name-inner,
  .contribute__submit,
  .el-ticker__dot,
  .el-orb__halo,
  .el-orb__petals,
  .el-orb__core,
  .el-orb__sparkles,
  .el-orb__sparkles circle,
  .contribute__header-mesh span {
    animation: none !important;
  }
  /* CRITICAL FIX: animation:none cancels the keyframes but
     animation-fill-mode:both pins the 0% state. The fade-up keyframe's
     0% is opacity:0 + translateY(14px) -- so without these resets the
     whole page renders invisible under reduced-motion. */
  .contribute__header,
  .contribute__form,
  .contribute__about {
    opacity: 1 !important;
    transform: none !important;
  }
  .contribute__name-inner {
    background-position: 50% 50% !important;
  }
  .el-particles,
  .el-ticker { display: none; }
  .contribute__form {
    transform: perspective(1400px) rotateX(0) rotateY(0) !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ */
/* Mobile refinements                                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
  .contribute__header {
    padding: 28px 22px;
  }
  .contribute__form {
    padding: 22px 18px;
  }
  .contribute__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .contribute__submit {
    width: 100%;
    min-width: 0;
  }
  .btn--link {
    text-align: center;
  }
}
