@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@300;400&display=swap');

:root {
  --sand-deep:   #1a1008;
  --sand-dark:   #2e1e0a;
  --ochre:       #c8760a;
  --amber:       #e8a020;
  --dust:        #d4a86a;
  --pale-sand:   #f0dbb8;
  --terra:       #8b3a0a;
  --dry-green:   #5a6e30;
  --text-main:   #f0dbb8;
  --text-muted:  #a08060;
  --card-bg:     rgba(30,16,4,0.75);
  --card-border: rgba(200,118,10,0.25);
  --crack-line:  rgba(200,118,10,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Playfair Display', Georgia, serif;
  background: var(--sand-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Heat shimmer background ── */
.bg-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%,   rgba(200,100,10,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 80%  40% at 80% 80%,  rgba(139,58,10,0.18)  0%, transparent 55%),
    radial-gradient(ellipse 60%  30% at 20% 60%,  rgba(200,118,10,0.12) 0%, transparent 50%),
    linear-gradient(175deg, #2a1608 0%, #120c04 50%, #0e0905 100%);
  pointer-events: none;
}

/* Noise grain overlay */
.bg-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ── Layout ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  border-bottom: 1px solid var(--crack-line);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeIn 1s 0.2s forwards;
}

.hero-left {}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--pale-sand);
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
  display: block;
}

.hero-stat {
  text-align: right;
  padding-bottom: 6px;
}
.hero-stat .big-num {
  font-family: 'DM Mono', monospace;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--ochre);
  line-height: 1;
  display: block;
}
.hero-stat .big-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.hero-desc {
  margin-top: 22px;
  grid-column: 1 / -1;
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Section utility ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}

.section-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pale-sand);
  margin-bottom: 28px;
  line-height: 1.15;
}

/* ── Causes cards ── */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}

.cause-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: slideUp 0.6s forwards;
  transition: transform 0.28s, box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}
.cause-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(200,100,0,0.2);
}
.cause-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--amber), var(--terra));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.cause-card:hover::before { transform: scaleX(1); }

.cause-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.cause-card h3 { font-size: 1.15rem; color: var(--dust); margin-bottom: 10px; font-weight: 700; }
.cause-card p { font-size: 0.93rem; line-height: 1.7; color: var(--text-muted); }

.cause-card:nth-child(1) { animation-delay: 0.7s; }
.cause-card:nth-child(2) { animation-delay: 0.85s; }
.cause-card:nth-child(3) { animation-delay: 1.0s; }
.cause-card:nth-child(4) { animation-delay: 1.15s; }
.cause-card:nth-child(5) { animation-delay: 1.3s; }
.cause-card:nth-child(6) { animation-delay: 1.45s; }

/* ── Crisis meter ── */
.crisis-section {
  margin: 56px 0;
  opacity: 0;
  animation: fadeIn 0.8s 1s forwards;
}

.crisis-meters { display: flex; flex-direction: column; gap: 16px; }

.meter-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  align-items: center;
  gap: 16px;
}

.meter-label { font-size: 0.92rem; color: var(--dust); }
.meter-track {
  height: 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 5px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--terra), var(--amber));
  width: 0;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}
.meter-val {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--amber);
  text-align: right;
}

/* ── Map placeholder: affected regions ── */
.regions-section {
  margin: 56px 0;
  opacity: 0;
  animation: fadeIn 0.8s 1.2s forwards;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.region-badge {
  padding: 16px 20px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  transition: background 0.3s, border-color 0.3s;
}
.region-badge:hover {
  background: rgba(200,118,10,0.1);
  border-color: rgba(200,118,10,0.5);
}

.region-name { font-size: 0.95rem; color: var(--pale-sand); font-weight: 700; margin-bottom: 4px; }
.region-detail { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text-muted); }

/* ── Timeline ── */
.timeline-section { margin: 56px 0; opacity: 0; animation: fadeIn 0.8s 1.4s forwards; }

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ochre), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 32px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 10px var(--ochre);
}

.tl-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}
.tl-text {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Alert band ── */
.alert-band {
  margin: 56px 0;
  padding: 28px 30px;
  background: rgba(139,58,10,0.2);
  border: 1px solid rgba(200,118,10,0.35);
  border-radius: 14px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  animation: fadeIn 0.8s 1.6s forwards;
}
.alert-icon { font-size: 2rem; flex-shrink: 0; }
.alert-text p { font-size: 0.97rem; line-height: 1.75; color: var(--text-muted); }
.alert-text strong { color: var(--amber); }

/* ── Solutions ── */
.solutions-section { margin: 56px 0; opacity: 0; animation: fadeIn 0.8s 1.8s forwards; }

.sol-list { display: flex; flex-direction: column; gap: 14px; }
.sol-item {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  align-items: flex-start;
  transition: transform 0.25s;
}
.sol-item:hover { transform: translateX(6px); }
.sol-num {
  font-family: 'DM Mono', monospace;
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(200,118,10,0.4);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.sol-content h3 { font-size: 1rem; color: var(--dust); margin-bottom: 5px; font-weight: 700; }
.sol-content p  { font-size: 0.91rem; line-height: 1.65; color: var(--text-muted); }

/* ── Footer ── */
footer {
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid var(--crack-line);
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Animations ── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stat { text-align: left; }
  .meter-row { grid-template-columns: 1fr; gap: 6px; }
  .meter-val { text-align: left; }
}
