/* ============================================
     Fundraising Platform — unique visual grammar
     METAPHOR: goal thermometers + pledge tiers + donor leaderboard
     Mission-driven momentum, not yard signs or poker cards
     ============================================ */

  .crumb {
    padding: 20px 0 0;
    font-size: 13px; color: var(--fg-mute);
    display: flex; gap: 10px; align-items: center;
  }
  .crumb a { color: var(--fg-mute); }
  .crumb a:hover { color: var(--accent); }
  .crumb .sep { opacity: 0.4; }

  /* ─── HERO ─────────────────────── */
  .fund-hero {
    padding: 48px 0 72px;
    position: relative;
    overflow: hidden;
  }
  .fund-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 55% 45% at 88% 15%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 68%),
      repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 40px,
        color-mix(in oklch, var(--border) 35%, transparent) 40px,
        color-mix(in oklch, var(--border) 35%, transparent) 41px
      );
    opacity: 0.4;
    pointer-events: none;
  }
  .fund-hero-grid {
    display: grid; grid-template-columns: 1.1fr minmax(300px, 1fr);
    gap: 56px; align-items: center;
    position: relative;
  }
  @media (max-width: 980px) { .fund-hero-grid { grid-template-columns: 1fr; } }

  .fund-hero-viz {
    width: 100%;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  @media (max-width: 980px) {
    .fund-hero-viz { justify-content: center; min-width: 0; }
  }

  .platform-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px 5px 8px; border-radius: 999px;
    background: color-mix(in oklch, var(--accent) 12%, var(--bg-card));
    border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--border));
    font-size: 11.5px; font-family: "Geist Mono", monospace; letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 22px;
  }
  .platform-tag::before {
    content: ""; display: inline-block; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
  }
  .fund-hero h1 {
    font-size: clamp(48px, 6.5vw, 96px);
    line-height: 0.94; letter-spacing: -0.04em; font-weight: 600;
    margin: 0 0 22px; max-width: 13ch;
  }
  .fund-hero h1 em {
    font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
    letter-spacing: -0.02em; color: var(--accent);
  }
  .fund-hero .lede {
    font-size: 19px; color: var(--fg-dim); max-width: 52ch;
    line-height: 1.5; margin: 0 0 28px;
  }
  .hero-meta {
    display: flex; flex-wrap: wrap; gap: 16px 24px;
    margin-top: 20px;
    font-size: 13px; color: var(--fg-mute);
  }
  .hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-meta .check {
    width: 16px; height: 16px; border-radius: 50%;
    background: color-mix(in oklch, var(--accent) 18%, transparent);
    border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
    position: relative;
  }
  .hero-meta .check::after {
    content: ""; position: absolute; left: 5px; top: 3px;
    width: 4px; height: 7px;
    border: solid var(--accent);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }

  /* goal thermometer stack */
  .goal-stack {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  @media (max-width: 980px) {
    .goal-stack { width: min(100%, 360px); height: 360px; margin: 0 auto; }
  }
  @media (max-width: 480px) {
    .goal-stack { width: 100%; height: 340px; max-width: 320px; }
  }
  .gcard {
    position: absolute;
    width: 260px;
    max-width: 88%;
    padding: 22px 22px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 40px -16px rgba(0,0,0,0.22);
    box-sizing: border-box;
    transition: transform 280ms ease, box-shadow 280ms ease;
  }
  .gcard .lbl {
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 10px; opacity: 0.8;
  }
  .gcard .amt {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(32px, 4vw, 48px); line-height: 0.95;
    letter-spacing: -0.03em;
  }
  .gcard .bar-wrap {
    margin-top: 14px; height: 8px; border-radius: 999px;
    background: color-mix(in oklch, var(--border) 60%, transparent);
    overflow: hidden;
  }
  .gcard .bar {
    height: 100%; border-radius: 999px;
    background: var(--accent);
    transition: width 400ms ease;
  }
  .gcard .sub {
    margin-top: 10px;
    font-family: "Geist Mono", monospace; font-size: 11px;
    letter-spacing: 0.06em; opacity: 0.75;
  }
  .gcard.g1 {
    top: 8px; left: 12px;
    background: var(--bg-card);
    color: var(--fg);
    transform: rotate(-5deg);
    z-index: 1;
  }
  .gcard.g1 .bar { width: 42%; }
  .gcard.g2 {
    top: 108px; right: 0; left: auto;
    background: var(--accent);
    color: var(--accent-ink);
    border-color: color-mix(in oklch, var(--accent) 80%, oklch(0.3 0.02 50));
    transform: rotate(4deg);
    z-index: 3;
  }
  .gcard.g2 .lbl { color: var(--accent-ink); }
  .gcard.g2 .bar-wrap { background: color-mix(in oklch, var(--accent-ink) 25%, transparent); }
  .gcard.g2 .bar { width: 78%; background: var(--accent-ink); }
  .gcard.g3 {
    bottom: 8px; left: 36px;
    background: color-mix(in oklch, var(--gold) 12%, var(--bg-card));
    color: var(--fg);
    border-color: color-mix(in oklch, var(--gold) 40%, var(--border));
    transform: rotate(-2deg);
    z-index: 2;
  }
  .gcard.g3 .bar { width: 100%; background: var(--gold); }
  @media (max-width: 480px) {
    .gcard { width: 220px; padding: 18px 18px 22px; }
    .gcard.g1 { top: 6px; left: 4px; }
    .gcard.g2 { top: 96px; right: 0; }
    .gcard.g3 { bottom: 6px; left: 20px; }
  }
  .goal-stack:hover .gcard.g1 { transform: rotate(-7deg) translateY(-6px); }
  .goal-stack:hover .gcard.g2 { transform: rotate(6deg) translateY(-10px); }
  .goal-stack:hover .gcard.g3 { transform: rotate(-3deg) translateY(-4px); }
  @media (prefers-reduced-motion: reduce) {
    .gcard, .goal-stack:hover .gcard { transition: none; }
    .goal-stack:hover .gcard.g1 { transform: rotate(-5deg); }
    .goal-stack:hover .gcard.g2 { transform: rotate(4deg); }
    .goal-stack:hover .gcard.g3 { transform: rotate(-2deg); }
  }

  /* impact rule */
  .impact-rule {
    display: flex; align-items: center; gap: 16px;
    padding: 48px 0;
    color: var(--fg-mute);
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
  }
  .impact-rule::before, .impact-rule::after {
    content: ""; flex: 1;
    border-top: 2px solid var(--border-strong);
  }

  /* quote */
  .fund-quote {
    position: relative;
    padding: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
      linear-gradient(135deg, color-mix(in oklch, var(--accent) 10%, var(--bg-elev)) 0%, var(--bg-elev) 55%),
      var(--bg-elev);
    border: 1px solid var(--border);
  }
  .fund-quote blockquote {
    margin: 0; max-width: 34ch;
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .fund-quote cite {
    display: block; margin-top: 18px;
    font-family: "Geist", sans-serif; font-style: normal;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--fg-mute);
  }

  /* pledge steps */
  .pledge-strip {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 14px; counter-reset: pledgestep;
  }
  @media (max-width: 1100px) { .pledge-strip { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .pledge-strip { grid-template-columns: 1fr; } }
  .pledge-step {
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 20px;
    counter-increment: pledgestep;
    cursor: default;
  }
  .pledge-step::before {
    content: "Step " counter(pledgestep, decimal-leading-zero);
    display: block; font-family: "Geist Mono", monospace;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
  }
  .tier-chip {
    display: inline-block;
    padding: 6px 10px;
    background: color-mix(in oklch, var(--accent) 10%, var(--bg-card));
    border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--border));
    border-radius: 4px;
    font-family: "Geist Mono", monospace; font-size: 11px;
    color: var(--accent); margin-bottom: 14px;
  }
  .pledge-step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
  .pledge-step p { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.5; }

  /* versus */
  .versus {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--bg-elev);
  }
  @media (max-width: 720px) { .versus { grid-template-columns: 1fr; } }
  .vs-side { padding: 32px; }
  .vs-side.old {
    border-right: 1px solid var(--border);
    color: var(--fg-dim);
  }
  @media (max-width: 720px) {
    .vs-side.old { border-right: 0; border-bottom: 1px solid var(--border); }
  }
  .vs-side.new {
    background:
      radial-gradient(700px 200px at 100% 0%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 55%),
      var(--bg-elev);
  }
  .vs-side .label {
    font-family: "Geist Mono", monospace; font-size: 11px;
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
  }
  .vs-side.old .label { color: var(--fg-mute); }
  .vs-side.new .label { color: var(--accent); }
  .vs-side h3 { font-size: 22px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.02em; }
  .vs-side ul { list-style: none; padding: 0; margin: 0; }
  .vs-side li {
    padding: 11px 0; border-top: 1px solid var(--border);
    font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
  }
  .vs-side li:first-child { border-top: 0; }
  .vs-side.old li::before {
    content: "×"; color: var(--fg-mute); font-weight: 600; flex-shrink: 0;
  }
  .vs-side.new li::before {
    content: "✓"; color: var(--accent); font-weight: 600; flex-shrink: 0;
  }

  /* event types catalog */
  .type-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  @media (max-width: 900px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .type-grid { grid-template-columns: 1fr; } }
  .type-card {
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    transition: border-color 200ms ease, background 200ms ease;
    cursor: default;
  }
  .type-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card);
  }
  .type-card .tc-id {
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
  }
  .type-card h4 { margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
  .type-card p { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.5; }
  .type-card .tc-tags {
    margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px;
  }
  .type-card .tc-tags span {
    font-family: "Geist Mono", monospace; font-size: 10px;
    padding: 4px 8px; border-radius: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--fg-dim); letter-spacing: 0.04em;
  }

  /* sponsor tiers */
  .tier-ladder {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  @media (max-width: 900px) { .tier-ladder { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) { .tier-ladder { grid-template-columns: 1fr; } }
  .tier-rung {
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    text-align: center;
    transition: border-color 200ms ease, transform 200ms ease;
  }
  .tier-rung.featured {
    border-color: color-mix(in oklch, var(--accent) 50%, var(--border));
    background: color-mix(in oklch, var(--accent) 6%, var(--bg-card));
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -28px rgba(0,0,0,0.2);
  }
  .tier-rung .tr-amt {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: 36px; line-height: 1; color: var(--accent);
    margin-bottom: 6px;
  }
  .tier-rung .tr-name {
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--fg-mute); margin-bottom: 12px;
  }
  .tier-rung p { margin: 0; font-size: 13px; color: var(--fg-dim); line-height: 1.45; }

  /* donor leaderboard (dark) */
  .donor-mat {
    background: var(--ps-bg); border: 1px solid var(--ps-border);
    border-radius: var(--radius-lg); padding: 28px 32px;
    position: relative; overflow: hidden;
  }
  .donor-mat::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(600px 240px at 100% 0%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 55%);
    pointer-events: none;
  }
  .donor-mat > * { position: relative; }
  .donor-mat .head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 16px; border-bottom: 1px solid var(--ps-border);
    color: var(--ps-fg); margin-bottom: 8px;
  }
  .donor-mat .head .live {
    font-family: "Geist Mono", monospace; font-size: 11px;
    color: oklch(0.78 0.18 27); letter-spacing: 0.08em;
  }
  .donor-mat .head .live::before {
    content: ""; display: inline-block;
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; margin-right: 6px; vertical-align: middle;
    animation: pulse 1.8s ease-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  @media (prefers-reduced-motion: reduce) {
    .donor-mat .head .live::before { animation: none; }
  }
  .donor-row {
    display: grid; grid-template-columns: 36px 1fr auto auto;
    gap: 14px; align-items: center;
    padding: 14px 0; border-top: 1px solid var(--ps-border);
    color: var(--ps-fg);
  }
  .donor-row:first-of-type { border-top: 0; }
  .donor-row .rank {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: 22px; color: var(--accent); text-align: center;
  }
  .donor-row .nm { font-weight: 500; font-size: 14px; }
  .donor-row .sub { font-size: 12px; color: var(--ps-mute); margin-top: 2px; }
  .donor-row .raised {
    font-family: "Geist Mono", monospace; font-size: 13px;
    color: var(--ps-fg); font-weight: 500;
  }
  .donor-row .badge {
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 4px;
    background: color-mix(in oklch, var(--accent) 25%, transparent);
    color: var(--ps-fg);
    border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--ps-border));
  }

  /* goal tracker block */
  .goal-block {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  }
  @media (max-width: 900px) { .goal-block { grid-template-columns: 1fr; } }
  .thermo-viz {
    padding: 32px;
    background: var(--ps-bg);
    border: 1px solid var(--ps-border);
    border-radius: var(--radius-lg);
    display: flex; gap: 24px; align-items: flex-end; justify-content: center;
    min-height: 280px;
  }
  .thermo {
    width: 48px; height: 200px;
    border-radius: 999px 999px 8px 8px;
    background: var(--ps-elev);
    border: 2px solid var(--ps-border);
    position: relative; overflow: hidden;
  }
  .thermo .fill {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, var(--accent), color-mix(in oklch, var(--accent) 70%, oklch(0.4 0.15 27)));
    border-radius: 0 0 6px 6px;
    transition: height 400ms ease;
  }
  .thermo.t1 .fill { height: 68%; }
  .thermo.t2 .fill { height: 84%; }
  .thermo.t3 .fill { height: 52%; }
  .thermo .cap {
    position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
    font-family: "Geist Mono", monospace; font-size: 10px;
    color: var(--ps-mute); white-space: nowrap;
  }

  /* big number */
  .big-number { text-align: center; padding: 40px 0; }
  .big-number .n {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(100px, 14vw, 200px); line-height: 0.85;
    letter-spacing: -0.05em; color: var(--accent);
  }
  .big-number .label {
    margin-top: 20px; font-size: 17px; color: var(--fg-dim);
    max-width: 46ch; margin-left: auto; margin-right: auto;
  }

  /* features */
  .fund-feats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  @media (max-width: 720px) { .fund-feats { grid-template-columns: 1fr; } }
  .ff {
    display: grid; grid-template-columns: auto 1fr; gap: 16px;
    padding: 22px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-elev);
    transition: background 180ms ease, border-color 180ms ease;
  }
  .ff:hover { background: var(--bg-card); border-color: var(--border-strong); }
  .ff .icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: grid; place-items: center;
  }
  .ff h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
  .ff p { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.45; }

  /* organizer story */
  .org-story {
    display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px;
    align-items: center; padding: 20px 0;
  }
  @media (max-width: 900px) { .org-story { grid-template-columns: 1fr; } }
  .org-photo {
    aspect-ratio: 4/3; border-radius: var(--radius-lg);
    background:
      linear-gradient(135deg, color-mix(in oklch, var(--accent) 14%, var(--bg-card)), var(--bg-card)),
      var(--bg-card);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    font-family: "Geist Mono", monospace; font-size: 11px; color: var(--fg-mute);
  }
  .org-story .pull {
    display: inline-block; padding: 4px 12px;
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    color: var(--accent);
    font-family: "Geist Mono", monospace; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 20px; border-radius: 4px;
  }
  .org-story .quote {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12;
    margin: 0 0 20px;
  }

  /* other platforms */
  .other-platforms {
    display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--bg-elev);
  }
  .op-row {
    display: grid; grid-template-columns: 100px 1fr auto;
    gap: 24px; align-items: center;
    padding: 18px 24px; border-top: 1px solid var(--border);
    text-decoration: none; color: inherit;
    cursor: pointer;
    transition: background 160ms ease;
  }
  .op-row:first-child { border-top: 0; }
  .op-row:hover { background: var(--bg-card); }
  .op-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .op-row .id { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--accent); }
  .op-row .name { font-size: 17px; font-weight: 500; }
  .op-row .desc { font-size: 13px; color: var(--fg-mute); margin-top: 2px; }
  .op-row .arrow { transition: transform 160ms, color 160ms; color: var(--fg-mute); }
  .op-row:hover .arrow { color: var(--accent); transform: translateX(4px); }

  /* CTA */
  .fund-cta {
    text-align: center; padding: 88px 32px;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(700px 280px at 50% 100%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 55%),
      radial-gradient(500px 200px at 20% 0%, color-mix(in oklch, var(--gold) 10%, transparent), transparent 50%),
      var(--bg-elev);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
  }
  .fund-cta h2 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.035em; line-height: 1; margin: 0 0 18px;
  }
  .fund-cta h2 em {
    font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
    color: var(--accent);
  }
  .fund-cta p { color: var(--fg-dim); font-size: 18px; max-width: 48ch; margin: 0 auto 28px; }
