/* ═══════════════════════════════════════════════════════════════════════════
   FIGHTING FORWARD — Style
   Mobile-first. Dark dominant. Gold accents used with discipline.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:          #080D16;
  --bg-subtle:   #0d1520;
  --gold:        #C9A84C;
  --gold-bright: #E4C76B;
  --text:        #F2EEE6;
  --text-muted:  #8A857B;
  --text-dim:    #4a4640;
  --serif:       'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Scroll Progress Bar ────────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1000;
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
#site-header.scrolled {
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark--small {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
}
.header-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  padding: 8px 16px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  transition: all 0.3s var(--ease);
}
.header-cta:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.header-nav__link:hover { color: var(--gold); }
.learn-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.learn-link:hover { text-decoration-color: var(--gold); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 3px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), #8a6820);
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.2);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 6px 32px rgba(201, 168, 76, 0.3);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 14px 32px;
}
.btn--outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
}
.btn--large {
  padding: 20px 48px;
  font-size: 13px;
}

/* ── Section Base ───────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 40px;
}
.section-heading em {
  color: var(--gold);
  font-weight: 300;
}
.section-subtext {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 48px;
}
.section-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 540px;
}
/* Doctor name links */
.doctor-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease);
}
.doctor-link:hover {
  text-decoration-color: var(--gold);
}

.section-quote {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
  border-left: 2px solid rgba(201, 168, 76, 0.3);
  padding-left: 20px;
  margin: 32px 0;
  line-height: 1.6;
}

/* ── Section Split Layout ───────────────────────────────────────────────── */
.section-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-media {
  width: 100%;
}

/* ── Image Placeholders ─────────────────────────────────────────────────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #0d1520, #111b2a);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201, 168, 76, 0.03) 0%, transparent 70%);
}
.img-placeholder__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
}
.img-placeholder--wide {
  aspect-ratio: 16 / 9;
}

/* When real images are added, use this class */
.section-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* ── Photo Reel / Carousel ──────────────────────────────────────────────── */
.photo-reel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}
.photo-reel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.photo-reel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  border-radius: 6px;
}
img.photo-reel__slide {
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
a.photo-reel__slide {
  display: block;
}
a.photo-reel__slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}
.photo-reel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}
.photo-reel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.photo-reel__dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.section--hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.04) 0%, transparent 70%),
    var(--bg);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 12vw, 96px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(14px, 3.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.scroll-prompt {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-prompt__text {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-prompt__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ── THE STORM (Pinned) ────────────────────────────────────────────────── */
.section--storm {
  padding: 0;
}
.storm-container {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* Scan images — crossfade layer, positioned right */
.storm-scans {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.storm-scan {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 70%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.storm-scan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.55) contrast(1.15);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 100%);
}

/* Anatomy SVG — very subtle behind everything */
.storm-anatomy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s var(--ease);
}
.storm-anatomy.active {
  opacity: 0.12;
}

/* Text beats — center-left on desktop, centered on mobile */
.storm-beats {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.storm-beat {
  position: absolute;
  top: 33%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  max-width: 500px;
  opacity: 0;
  text-align: left;
}
.storm-beat p {
  font-family: var(--serif);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(8, 13, 22, 0.9), 0 0 60px rgba(8, 13, 22, 0.6);
}
.storm-beat__diagnosis {
  color: var(--gold) !important;
  font-weight: 400 !important;
  font-size: clamp(24px, 5vw, 40px) !important;
}
.storm-beat em {
  color: var(--text-muted);
}

/* Donate CTA — positioned bottom-left */
.storm-cta {
  position: absolute;
  bottom: 10vh;
  left: 24px;
  z-index: 3;
  opacity: 0;
}

/* ── RECOVERY — warm shift ──────────────────────────────────────────────── */
.section--recovery {
  background:
    linear-gradient(to bottom, var(--bg), #0a0f18 40%, var(--bg) 100%);
}
.journal-story {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.journal-story p {
  font-family: var(--serif);
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}

/* ── SUPPORT — Donation Tiers ───────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
.tier {
  background: rgba(13, 21, 32, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.tier:hover {
  border-color: rgba(201, 168, 76, 0.15);
  background: rgba(13, 21, 32, 0.8);
}
.tier--featured {
  border-color: rgba(201, 168, 76, 0.2);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.06), rgba(13, 21, 32, 0.8));
}
.tier__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.tier__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.tier__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* ── Supporters Wall ────────────────────────────────────────────────────── */
.supporters {
  margin-bottom: 64px;
  padding: 32px 24px;
  background: rgba(13, 21, 32, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 8px;
}
.supporters__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.supporter {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 3px;
  transition: border-color 0.3s var(--ease);
}
.supporter:hover {
  border-color: rgba(201, 168, 76, 0.2);
}
/* Loading shimmer */
.supporter--loading {
  width: 80px;
  height: 32px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.04) 25%, rgba(201, 168, 76, 0.08) 50%, rgba(201, 168, 76, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-color: transparent;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Empty state */
.supporter--empty {
  color: var(--text-dim);
  font-style: italic;
  background: none;
  border: none;
  padding: 0;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 60px 0 20px;
}
.final-cta__text {
  font-family: var(--serif);
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.06);
  padding: 40px 20px;
  text-align: center;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}
.footer-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ── Reveal (initial state for GSAP) ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-prompt__line {
    animation: none;
  }
  .storm-beat {
    position: relative;
    opacity: 1;
    transform: none;
    margin-bottom: 32px;
    top: auto;
    left: auto;
    right: auto;
  }
  .storm-cta {
    position: relative;
    opacity: 1;
    transform: none;
    bottom: auto;
    left: auto;
    margin-top: 40px;
  }
  .storm-beats {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 80px 20px;
  }
  .storm-container {
    height: auto;
  }
  .storm-scans {
    display: none;
  }
  .storm-scan {
    position: relative;
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    top: auto;
    left: auto;
  }
}

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .section {
    padding: 140px 40px;
  }
  .header-inner {
    height: 64px;
  }
  #site-header {
    padding: 0 32px;
  }

  .section-split {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .section-split--reverse {
    flex-direction: row-reverse;
  }
  .section-text {
    flex: 1;
  }
  .section-media {
    flex: 0 0 40%;
    max-width: 400px;
  }

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

  /* Storm: scan images shift right, text stays left */
  .storm-scan {
    left: auto;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    width: 55%;
  }
  .storm-beat {
    left: 48px;
    right: auto;
    top: 33%;
  }
  .storm-cta {
    left: 48px;
  }
}

@media (min-width: 1024px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-title {
    letter-spacing: -2px;
  }
}
