:root {
  --rfi-black: #000000;
  --rfi-deep-blue: #3759B6;
  --rfi-pastel-blue: #97CEFF;
  --rfi-white: #FFFFFF;
  --rfi-dark-surface: #0a0a0a;
  --rfi-muted: #888;
  --rfi-glow: rgba(55, 89, 182, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Chakra Petch', sans-serif;
  background: var(--rfi-black);
  color: var(--rfi-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rfi-deep-blue), var(--rfi-pastel-blue));
  z-index: 1000;
  transition: width 0.3s ease;
  width: 0%;
}

/* ---- NAV DOTS ---- */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: var(--rfi-pastel-blue);
  border-color: var(--rfi-pastel-blue);
  box-shadow: 0 0 12px var(--rfi-glow);
  transform: scale(1.3);
}

/* ---- SLIDE ---- */
.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.slide-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.visible .slide-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ---- TYPOGRAPHY ---- */
.tag {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rfi-pastel-blue);
  margin-bottom: 24px;
}

.headline {
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.subhead {
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 32px;
}

.accent {
  color: var(--rfi-pastel-blue);
  text-shadow: 0 0 28px rgba(151, 206, 255, 0.3);
}
.blue { color: var(--rfi-deep-blue); }

/* ---- BIG NUMBER ---- */
.big-number {
  font-size: clamp(72px, 18vw, 140px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  padding-right: 0.08em;
  background: linear-gradient(135deg, var(--rfi-white) 30%, var(--rfi-pastel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.big-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  margin-bottom: 40px;
}

/* ---- STAT ROW ---- */
.stat-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  min-width: 120px;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--rfi-white);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-top: 4px;
}

/* ---- IMPACT CHAIN ---- */

.collective-headline {
  margin-bottom: 8px;
}
.collective-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide.visible .collective-line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.slide.visible .collective-line:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.35s; }
.slide.visible .collective-line:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.6s; }
.collective-headline-metric {
  margin: 16px 0 8px;
  text-align: center;
}
.collective-metric-number {
  font-size: clamp(52px, 14vw, 96px);
  font-weight: 800;
  line-height: 1;
}
.collective-metric-label {
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.8;
  margin-top: 4px;
}
.collective-rfi,
.collective-together,
.collective-city {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.impact-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.impact-eq {
  color: #ffffff;
  font-weight: 300;
}
.impact-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1600px;
}

/* Dense layout for cause areas with 5+ interventions (e.g., Global Health).
   Compresses card padding, gap, and type so all five fit a 9:16 mobile viewport
   without scrolling within the slide. */
.impact-grid.is-dense {
  gap: 6px;
}
.impact-grid.is-dense .ev-face {
  padding: 12px 18px;
  gap: 12px;
}
.impact-grid.is-dense .impact-number {
  font-size: 19px;
}
.impact-grid.is-dense .impact-desc {
  font-size: 13px;
  line-height: 1.25;
}
.impact-grid.is-dense .impact-charity {
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: 1.25px;
}
.impact-grid.is-dense .ev-flip-card .chain-icon {
  font-size: 20px;
  min-width: 26px;
}
.impact-grid.is-dense .ev-sentence {
  font-size: 12.5px;
  line-height: 1.4;
}
.evidence-slide.is-dense {
  padding-top: 32px;
  padding-bottom: 32px;
}
.evidence-slide.is-dense .impact-hero {
  font-size: clamp(20px, 4.5vw, 30px);
  margin-bottom: 14px;
  gap: 12px;
}
.evidence-slide.is-dense .tag {
  margin-bottom: 14px;
}
.evidence-slide.is-dense .impact-hint {
  margin-top: 10px;
  font-size: 11px;
}
.impact-card .chain-icon {
  color: var(--rfi-pastel-blue);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
}

.impact-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--rfi-white);
  font-variant-numeric: tabular-nums;
  font-family: 'Chakra Petch', ui-monospace, monospace;
}
.impact-desc {
  font-size: 14.33px;
  color: var(--rfi-white);
  line-height: 1.3;
  margin-top: 2px;
}
.impact-charity {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rfi-pastel-blue);
  margin-top: 4px;
}
.impact-charity::before {
  content: 'VIA ';
}

.impact-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  margin: 32px 0;
}

.chain-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--rfi-dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.visible .chain-item {
  opacity: 1;
  transform: translateX(0);
}

.slide.visible .chain-item:nth-child(1) { transition-delay: 0.2s; }
.slide.visible .chain-item:nth-child(2) { transition-delay: 0.5s; }
.slide.visible .chain-item:nth-child(3) { transition-delay: 0.8s; }
.slide.visible .chain-item:nth-child(4) { transition-delay: 1.1s; }
.slide.visible .chain-item:nth-child(5) { transition-delay: 1.4s; }

.chain-arrow {
  font-size: 20px;
  color: var(--rfi-deep-blue);
  margin: 4px 0;
}

.chain-icon {
  font-size: 28px;
  min-width: 40px;
}

.chain-text {
  text-align: left;
}

.chain-text .value {
  font-size: 20px;
  font-weight: 700;
}

.chain-text .label {
  font-size: 12px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ev-sentence {
  font-size: 14px;
  color: var(--rfi-white);
  line-height: 1.55;
  margin-bottom: 4px;
}

/* Evidence slide flip cards */
.ev-flip-card {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  translate: 0 12px;
  rotate: y var(--jiggle-rot, 0deg);
  /* Scroll-velocity tilt: 200ms ease-out gives the rotation mass — it
     ramps in instead of snapping per-frame. Per-card transition-delay
     (--card-i set inline in slides.js) staggers the lean down the
     column at 100ms / row, so a scroll ripples through the cards. */
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    translate 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    rotate 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94) calc(var(--card-i, 0) * 100ms);
}
.ev-flip-card.revealed {
  opacity: 1;
  translate: 0 0;
}
.ev-flip-card:active {
  scale: 0.98;
}
.ev-flip-card:focus-visible {
  outline: 2px solid var(--rfi-pastel-blue);
  outline-offset: 3px;
  border-radius: 14px;
}
.impact-hint {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ev-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}
.ev-flip-card.flipped .ev-flip-inner {
  transform: rotateY(180deg);
}

.ev-face {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--rfi-dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ev-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}
.ev-flip-card .chain-icon {
  color: var(--rfi-pastel-blue);
  font-size: 24px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- EVIDENCE BOX ---- */
.evidence-box {
  background: var(--rfi-dark-surface);
  border: 1px solid rgba(151, 206, 255, 0.15);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: left;
  margin: 32px auto;
  max-width: 520px;
}

.evidence-box .ev-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rfi-pastel-blue);
  margin-bottom: 12px;
}

.evidence-box p {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 8px;
}

.evidence-box a {
  color: var(--rfi-pastel-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(151, 206, 255, 0.3);
}

/* ---- SHARE CARD ---- */
.share-card-headline {
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.8;
  text-align: center;
  color: var(--rfi-pastel-blue);
  margin-bottom: 4px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.share-card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.share-card-content .card-profile-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.share-card-content .card-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.share-card-content .card-event {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 6px;
}
.share-card-content .card-time {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'Chakra Petch', ui-monospace, monospace;
  color: #ffffff;
  margin-bottom: 20px;
}
.share-card-content .card-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 20px 0;
}
.share-card-content .card-lives {
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--rfi-pastel-blue);
  font-variant-numeric: tabular-nums;
}
.share-card-content .card-lives-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-top: 4px;
  margin-bottom: 12px;
}
.share-card-content .card-raised {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}
.share-card-content .card-raised-label {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
}
.share-card-content .card-through {
  font-size: 13px;
  color: #ffffff;
  line-height: 1.5;
  margin-top: 6px;
}
.share-card-content .card-stat-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align: center;
}
.share-card-content .card-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}
.share-card-content .card-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-top: 2px;
}
.share-logo-below {
  display: block;
  height: 57px;
  margin: 36px auto 12px;
  opacity: 0.9;
}
.share-actions-interactive {
  margin-top: 16px;
  text-align: center;
}

/* ---- GLOBAL SLIDE / GLOBE ---- */
.global-slide {
  background: #000;
  overflow: hidden;
  height: 100vh;
}

.global-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.globe-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 500px);
  height: min(90vw, 500px);
  opacity: 0.9;
}

.global-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  z-index: 1;
  text-align: center;
  contain: layout;
}

.global-amount {
  font-size: clamp(48px, 14vw, 100px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, var(--rfi-white) 30%, var(--rfi-pastel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-height: 1.1em;
}

.global-label {
  font-size: clamp(14px, 3vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rfi-pastel-blue);
  font-weight: 600;
}

.global-copy {
  font-size: clamp(15px, 3vw, 18px);
  color: #ffffff;
  margin-top: 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  will-change: transform;
  transform: translateZ(0);
}

.share-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---- CTA BUTTON ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rfi-deep-blue);
  color: var(--rfi-white);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin: 8px;
}

.cta-btn:hover {
  background: #4568c5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rfi-glow);
}

.cta-btn:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-btn.outline {
  background: var(--rfi-deep-blue);
  border: 1px solid var(--rfi-deep-blue);
}

.cta-btn.outline:hover {
  border-color: #4568c5;
  background: #4568c5;
}

.cta-btn.outline:disabled:hover {
  border-color: var(--rfi-deep-blue);
  background: var(--rfi-deep-blue);
}

/* ---- COLLECTIVE BAR ---- */
.collective-bar {
  width: 100%;
  max-width: 520px;
  margin: 24px auto;
}

.bar-track {
  width: 100%;
  height: 32px;
  background: var(--rfi-dark-surface);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rfi-deep-blue), var(--rfi-pastel-blue));
  border-radius: 16px;
  width: 0%;
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 12px;
  font-weight: 700;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- METHODOLOGY FOOTER ---- */
.method-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 48px;
  line-height: 1.8;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- BACKGROUND EFFECTS ---- */
.bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.bg-glow-blue {
  background: var(--rfi-deep-blue);
  top: 20%;
  right: -10%;
}

.bg-glow-pastel {
  background: var(--rfi-pastel-blue);
  bottom: 20%;
  left: -10%;
}

/* ---- TIMER/RACE DISPLAY ---- */
.race-time {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.race-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--rfi-deep-blue);
  font-weight: 600;
}

/* ---- COUNT UP ANIMATION ---- */
.count-up {
  display: inline-block;
}

/* ---- SCROLL PROMPT ---- */
.scroll-prompt {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-prompt span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--rfi-muted);
  border-bottom: 2px solid var(--rfi-muted);
  transform: rotate(45deg);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ---- SEPARATOR ---- */
.sep {
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  margin: 24px auto;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.slide.visible .sep {
  width: 40px;
}
/* hook slide sep is controlled by JS show class */
.hook-sep.show {
  width: 40px;
}

/* ---- PROTOTYPE BANNER ---- */

/* ---- LOADING & ERROR SCREENS ---- */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--rfi-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-screen .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--rfi-pastel-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen .loading-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
}

.error-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.error-screen .error-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.error-screen .error-message {
  font-size: 16px;
  color: #ffffff;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ---- DONOR LIST ---- */
.donor-list {
  max-width: 520px;
  margin: 24px auto 0;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.donor-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.donor-item:last-child {
  border-bottom: none;
}

.donor-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.donor-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--rfi-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donor-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--rfi-pastel-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.donor-message {
  font-size: 13px;
  color: #ffffff;
  font-style: italic;
  margin-top: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-more {
  padding: 16px 0 4px;
  font-size: 13px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* ---- HIDDEN UTILITY ---- */
.hidden {
  display: none !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .stat-row { gap: 20px; }
  .stat-value { font-size: 28px; }
  .chain-item { padding: 16px 20px; }
  .share-card { padding: 28px; }
  .nav-dots { right: 10px; gap: 10px; }
  .nav-dot { width: 8px; height: 8px; }
  .donor-list { max-height: 50vh; }
  .donor-name { font-size: 14px; }
  .donor-amount { font-size: 14px; }
}

/* ==========================================================================
   DELIGHT LAYER — hook choreography, scoreboard chain, message thread
   ========================================================================== */

/* ---- HOOK SLIDE: phased intro sequence ---- */

/* Phases stack in the centre of the slide */
.hook-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.hook-ph.active {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   IMAGERY
   ============================================= */

.ambient-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: grayscale(100%);
  pointer-events: none;
  will-change: background-position;
}
.hook-ambient-bg {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hook-ambient-bg.active {
  opacity: 0.28;
}
/* Vignette overlay on ambient images */
.ambient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(10, 10, 10, 0.72) 100%);
}

/* Phase 1: clock */
.hook-clock {
  font-size: clamp(52px, 14vw, 96px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  font-family: 'Chakra Petch', 'SF Mono', ui-monospace, monospace;
}

/* "Your Results Are In" phase */
.hook-results-in {
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
}
.hook-ph-results.active .hook-results-in {
  opacity: 1;
}
.hook-results-cursor {
  display: inline-block;
  opacity: 0;
  margin-left: 1px;
}
.hook-results-cursor.blink {
  animation: cursorBlink 0.4s step-end infinite;
}
.hook-results-cursor.visible {
  opacity: 1;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Phase 2: logo flash */
.hook-logo-flash {
  height: 96px;
  max-width: 80%;
}

/* Phase 3: content */
.hook-ph-content {
  width: 100%;
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}

.hook-line {
  display: block;
  font-size: clamp(34px, 8.5vw, 68px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hook-line.show {
  opacity: 1;
  transform: translateY(0);
}

.hook-sep {
  background: rgba(255,255,255,0.2);
  opacity: 0;
  margin-top: 20px;
  transition: opacity 0.4s ease;
}
.hook-sep.show { opacity: 1; }

.hook-copy {
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.6;
  color: #ffffff;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hook-copy .hook-name {
  color: var(--rfi-pastel-blue);
  font-weight: 600;
}
.hook-copy.show {
  opacity: 1;
  transform: translateY(0);
}

.hook-date {
  margin-top: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hook-date.show {
  opacity: 1;
  transform: translateY(0);
}

.hook-wordmark {
  height: 64px;
  max-width: 80%;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hook-wordmark.show {
  opacity: 1;
  transform: translateY(0);
}

.hook-scroll-prompt {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hook-scroll-prompt.show { opacity: 1; }

/* ---- IMPACT CHAIN SCOREBOARD ---- */
.chain-scoreboard .chain-item,
.chain-scoreboard .chain-arrow {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Override the global nth-child chain animation */
.slide.visible .chain-scoreboard .chain-item { transition-delay: 0s !important; opacity: 0; transform: translateY(12px); }
.slide.visible .chain-scoreboard .chain-item.chain-item-visible {
  opacity: 1;
  transform: translateY(0);
}
.chain-scoreboard .chain-arrow.chain-arrow-visible {
  opacity: 1;
  transform: translateY(0);
  animation: arrow-pulse 0.6s ease-out;
}
@keyframes arrow-pulse {
  0%   { transform: translateY(-6px) scale(0.9); opacity: 0; }
  50%  { transform: translateY(0) scale(1.15); opacity: 1; color: var(--rfi-pastel-blue); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.scoreboard {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.5px;
}
.scoreboard.scoreboard-rolling {
  color: var(--rfi-pastel-blue);
  text-shadow: 0 0 12px rgba(151, 206, 255, 0.5);
}
.scoreboard.scoreboard-landed {
  animation: scoreboard-land 0.5s ease-out;
}
@keyframes scoreboard-land {
  0%   { transform: scale(1.08); text-shadow: 0 0 20px rgba(151, 206, 255, 0.9); color: var(--rfi-pastel-blue); }
  100% { transform: scale(1); text-shadow: 0 0 0 rgba(151, 206, 255, 0); color: var(--rfi-white); }
}

.supporters-context {
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 500;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 24px;
}

/* ---- SUPPORTERS: message thread ---- */
.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.msg-row.msg-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.msg-avatar {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rfi-deep-blue), var(--rfi-pastel-blue));
  color: var(--rfi-white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.msg-bubble {
  background: var(--rfi-dark-surface);
  border: 1px solid rgba(151, 206, 255, 0.15);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
  max-width: calc(100% - 50px);
  font-family: 'Chakra Petch', sans-serif;
}
.msg-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.msg-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--rfi-pastel-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.msg-amount {
  font-size: 11px;
  font-weight: 500;
  color: rgba(244, 246, 251, 0.4);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.msg-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rfi-white);
}
/* ---- BACKER CARDS ---- */
.backer-card {
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--rfi-dark-surface);
  border: 1px solid rgba(151, 206, 255, 0.1);
  border-radius: 12px;
}
.backer-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--rfi-pastel-blue);
  letter-spacing: 1px;
  min-width: 16px;
  padding-top: 3px;
}
.backer-avatar {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rfi-deep-blue), var(--rfi-pastel-blue));
  color: var(--rfi-white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.backer-body {
  flex: 1;
  min-width: 0;
}
.backer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.backer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--rfi-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.backer-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--rfi-pastel-blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.backer-quote {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.backer-reaction {
  font-size: 14px;
  font-weight: 600;
  color: var(--rfi-pastel-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msg-bubble-typing {
  display: flex;
  gap: 4px;
  padding: 14px;
  align-items: center;
}
.msg-bubble-typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rfi-muted);
  animation: typing-bounce 1s infinite ease-in-out;
}
.msg-bubble-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.msg-bubble-typing .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

/* ---- SHARE IMPACT SLIDE ---- */
.share-impact-headline {
  font-size: clamp(22px, 5vw, 40px);
  margin-bottom: 16px;
  text-wrap: balance;
}
.share-impact-body {
  font-size: clamp(15px, 3vw, 17px);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto 24px;
}
.share-cta-card {
  background: var(--rfi-dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  margin: 0 auto 32px;
  max-width: 440px;
}
.share-impact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.cta-btn.outline-dark {
  background: #000000;
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
}

/* ---- CONTINUE SLIDE (What's Next rework) ---- */
.continue-ask {
  background: linear-gradient(145deg, #0d1117, #111827);
  border: 1px solid rgba(55, 89, 182, 0.3);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 28px auto 20px;
  max-width: 440px;
}
.continue-ask-amount {
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--rfi-white) 30%, var(--rfi-pastel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.continue-per {
  font-size: 0.35em;
  font-weight: 500;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 6px;
}
.continue-ask-impact {
  font-size: 15px;
  line-height: 1.6;
  color: var(--rfi-white);
}
.continue-ask-impact .accent {
  font-weight: 600;
}
.continue-cta {
  font-weight: 700;
  letter-spacing: 1.5px;
}
.continue-secondary {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.continue-secondary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 14px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hook-line,
  .hook-copy,
  .hook-date,
  .hook-ph,
  .chain-scoreboard .chain-item,
  .chain-scoreboard .chain-arrow,
  .msg-row {
    transition-duration: 0.2s !important;
  }
  .scoreboard.scoreboard-landed,
  .chain-scoreboard .chain-arrow.chain-arrow-visible {
    animation: none;
  }
}

