/* ─── FUNDING PAGE ─────────────────────────────────────────────
   Page-specific layout only. All tokens come from styles.css.
   Never redefines :root, never sets border-radius.
   ──────────────────────────────────────────────────────────── */

/* ─── HERO ───────────────────────────────────────────────────── */

.fund-hero {
  padding: 128px 0 96px;
  border-bottom: 1px solid var(--line);
}

.fund-hero__h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 14ch;
}

.fund-hero__sub {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 56px;
}

/* Metric strip */
.fund-hero__metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.fund-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
}

.fund-metric:last-child {
  border-right: none;
}

.fund-metric__val {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.fund-metric__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── SECTION TYPOGRAPHY ─────────────────────────────────────── */

.fund-section-h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 40px;
  line-height: 0.95;
}

.fund-body-text {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 62ch;
}

.fund-body-text + .fund-body-text {
  margin-top: 24px;
}

/* ─── THESIS ─────────────────────────────────────────────────── */

.thesis {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

/* ─── WHY NOW ────────────────────────────────────────────────── */

.why-now {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.why-now__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.why-now__item {
  padding: 40px 32px;
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
}

.why-now__item:last-child {
  border-right: none;
}

.why-now__item .eyebrow {
  margin-bottom: 16px;
}

.why-now__item h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.why-now__item p {
  font-family: 'Archivo', sans-serif;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── WORKSTREAMS ────────────────────────────────────────────── */

.workstreams {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.workstreams__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.workstream {
  background: var(--bg-panel);
  padding: 40px 32px;
}

.workstream .eyebrow {
  margin-bottom: 16px;
}

.workstream h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.workstream p {
  font-family: 'Archivo', sans-serif;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
}

.workstream__link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.70rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.workstream__link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ─── THE PATH ───────────────────────────────────────────────── */

.path {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.path .fund-body-text {
  margin-bottom: 56px;
}

/* Use of funds: allocation bars */
.alloc {
  border: 1px solid var(--line);
  margin-bottom: 80px;
}

.alloc__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 32px;
  align-items: center;
  padding: 28px 32px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.alloc__row:last-child { border-bottom: none; }

.alloc__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-row: span 2;
}

.alloc__pct {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.alloc__amt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.alloc__bar {
  position: relative;
  height: 10px;
  background: #1b1b22;
  border: 1px solid var(--line);
  overflow: hidden;
}

.alloc__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--muted);
  transform-origin: left center;
  transform: scaleX(0);
  animation: alloc-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fill--amber  { background: var(--amber);  }
.fill--blue   { background: var(--blue);   }
.fill--sodium { background: var(--sodium); }

@keyframes alloc-grow {
  to { transform: scaleX(1); }
}

.alloc__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.alloc__name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.alloc__note {
  font-family: 'Archivo', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Milestone roadmap: ordered phases */
.path__sub {
  display: block;
  margin-bottom: 32px;
  color: var(--ink);
}

.roadmap {
  list-style: none;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.roadmap__phase {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 0 0 48px 0;
  position: relative;
}

.roadmap__phase:last-child { padding-bottom: 0; }

.roadmap__num {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
  margin-left: -45px;
  background: var(--bg);
  padding: 6px 0;
  width: 90px;
  text-align: center;
}

.roadmap__body { padding-top: 6px; }

.roadmap__when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}

.roadmap__body h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.roadmap__body p {
  font-family: 'Archivo', sans-serif;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
}

/* ─── THE ASK ────────────────────────────────────────────────── */

.ask {
  padding: 96px 0;
}

.ask__panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ask__headline {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.95;
}

.ask__body {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 62ch;
}

.ask__body + .ask__body {
  margin-top: -8px;
}

.ask__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.ask__alt-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.70rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.ask__alt-link:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .fund-hero { padding: 80px 0 64px; }

  .fund-hero__metrics {
    flex-direction: column;
  }

  .fund-metric {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .fund-metric:last-child { border-bottom: none; }

  .why-now__grid {
    grid-template-columns: 1fr;
  }

  .why-now__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .why-now__item:last-child { border-bottom: none; }

  .workstreams__grid {
    grid-template-columns: 1fr;
  }

  .thesis,
  .why-now,
  .workstreams,
  .path,
  .ask { padding: 72px 0; }

  .alloc__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .alloc__head {
    grid-row: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .fund-hero { padding: 56px 0 48px; }

  .fund-hero__h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .fund-hero__sub { margin-bottom: 40px; }

  .fund-metric { padding: 24px 20px; }

  .why-now__item,
  .workstream { padding: 32px 20px; }

  .ask__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .thesis,
  .why-now,
  .workstreams,
  .path,
  .ask { padding: 56px 0; }

  .alloc__row { padding: 24px 20px; }

  .roadmap__phase {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roadmap__num {
    margin-left: -33px;
    font-size: 1.6rem;
    width: 64px;
    text-align: left;
    padding-left: 12px;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .workstream__link,
  .ask__alt-link {
    transition: none;
  }

  .alloc__fill {
    animation: none;
    transform: scaleX(1);
  }
}
