/* =========================================================
   Indus Climate Fund — Our Story (page-specific)
   Relies on styles.css for tokens, header, footer, buttons,
   eyebrow/section-title, reveal, currents, river-thread.
   ========================================================= */

/* ---------- page hero: moved to shared styles.css ---------- */

/* ---------- story / timeline ---------- */
.story__inner { max-width: 880px; margin-inline: auto; }
.story__eyebrow { color: var(--river); display: block; margin-bottom: 2.5rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--river), var(--silt) 60%, var(--stone));
}
.tl-item { position: relative; padding: 0 0 clamp(2.5rem, 5vw, 3.8rem) clamp(2.4rem, 6vw, 3.5rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--river);
  box-shadow: 0 0 0 5px var(--paper); z-index: 1;
  transition: transform 0.4s var(--ease);
}
.tl-item:nth-child(2)::before { border-color: var(--silt); }
.tl-item:nth-child(3)::before { border-color: var(--leaf); }
.tl-item:nth-child(4)::before { border-color: var(--silt); }
.tl-item:nth-child(5)::before { border-color: var(--river); }
.tl-item.in-view::before { transform: scale(1.15); }

.tl-year {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1;
  color: var(--ink); margin: 0 0 1rem; letter-spacing: -0.01em;
}
.tl-body p { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 62ch; }
.tl-body p:last-child { margin-bottom: 0; }

.tl-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.tl-figures figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.tl-figures img { width: 100%; height: clamp(180px, 26vw, 280px); object-fit: cover; transition: transform 0.9s var(--ease); }
.tl-figures figure:hover img { transform: scale(1.05); }

/* ---------- programs ---------- */
.programs { background: var(--paper-2); }
.programs__intro {
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink);
  max-width: 60ch; margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
}
.program {
  display: grid; grid-template-columns: 0.75fr 1.5fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.2rem, 4vw, 3.2rem); padding-top: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--stone);
}
.program__title {
  position: sticky; top: 110px; align-self: start;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; letter-spacing: -0.015em;
}
.program__body p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.program__body p:last-child { margin-bottom: 0; }

.layers__caption {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--river); margin: 0.4rem 0 0.7rem !important;
}
.layers { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 0 0 1.6rem; }
.layers li {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5rem 0.85rem; border: 1px solid var(--stone); border-radius: 100px;
  color: var(--ink-soft); background: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.layers li:hover { transform: translateY(-2px); border-color: var(--river); color: var(--river); }
.layers li.is-key { border-color: var(--river); color: var(--paper); background: var(--river); }

/* ---------- support / bank ---------- */
.support { background: var(--paper); }
.support__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.support__statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); margin: 1rem 0 1.8rem; max-width: 18ch;
}
.bank-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(1.7rem, 3vw, 2.5rem); }
.bank-card__title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silt); margin: 0 0 1.4rem; }
.bank-dl { display: grid; gap: 0; margin: 0; }
.bank-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(241,238,228,0.14); }
.bank-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-dl > div:first-child { padding-top: 0; }
.bank-dl dt { color: var(--paper-soft); font-size: 0.92rem; }
.bank-dl dd { font-family: var(--font-mono); margin: 0; font-size: 0.92rem; letter-spacing: 0.03em; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .program { grid-template-columns: 1fr; gap: 1rem; }
  .program__title { position: static; }
  .support__grid { grid-template-columns: 1fr; }
  .support__statement { max-width: none; }
}
@media (max-width: 560px) {
  .tl-figures { grid-template-columns: 1fr; }
  .bank-dl > div { flex-direction: column; gap: 0.25rem; }
  .bank-dl dd { text-align: left; }
}
