/* ─────────────────────────────────────────────────────────────
   EVP — Shared Design System
   Brand: Cool Black #14191F · Lilac #7474A3 · Steel Blue #AEC2E0
   ───────────────────────────────────────────────────────────── */

/* ─── METRIK FONTS ────────────────────────────────────────── */
@font-face {
  font-family: 'Metrik';
  src: url('fonts/Wayne-Fearnley---Metrik-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metrik';
  src: url('fonts/Wayne-Fearnley---Metrik-Light-Italic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Metrik';
  src: url('fonts/Wayne-Fearnley---Metrik-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metrik';
  src: url('fonts/Wayne-Fearnley---Metrik-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Metrik';
  src: url('fonts/Wayne-Fearnley---Metrik-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metrik';
  src: url('fonts/Wayne-Fearnley---Metrik-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET & VARIABLES ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light-first: clean white canvas */
  --bg:           #FAFAFA;
  --bg-card:      #FFFFFF;
  --bg-surface:   #F2F0ED;
  --border:       #E8E4E0;
  --text:         #1A1A1A;
  --text-muted:   #6B6560;
  --text-body:    #403C38;
  --accent:       #7474A3;
  --accent-light: #5C5C8A;
  --accent-warm:  #1C4AA6;
  --font:         'Metrik', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:         'DM Mono', 'JetBrains Mono', monospace;
  --nav-h:        72px;
  --max-w:        100%;
  --r:            4px;
  --transition:   0.22s ease;
}

[data-theme="dark"] {
  --bg:           #14191F;
  --bg-card:      #1C2128;
  --bg-surface:   #232830;
  --border:       #2D3440;
  --text:         #FFFFFF;
  --text-muted:   #B2AAA8;
  --text-body:    #D4D0CE;
  --accent-light: #AEC2E0;
  --accent-warm:  #4DB5EE;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }

/* ─── LAYOUT HELPERS ────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 80px 0;
  border-bottom: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '//';
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  opacity: 1;
}

.section-label::after {
  content: '▌';
  color: #C6DFE6;
  opacity: 0.5;
  font-size: 0.85em;
  animation: cursor-blink 1s step-end infinite;
}

.section-headline {
  font-size: clamp(28px, 3.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-hero-headline {
  font-size: clamp(36px, 5vw, 100px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 1100px;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: none;
  background: var(--bg);
  z-index: 100;
  transition: background var(--transition);
}

nav.scrolled {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0);
  margin-top: 4px;
}

[data-theme="dark"] .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-logo-text {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-ghost {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-ghost:hover { color: var(--text); border-color: var(--accent); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-cta:hover { border-color: #AEC2E0; color: #ffffff; background: #AEC2E0; }

.nav-cta-wrap { position: relative; display: inline-block; }
.nav-cta-menu {
  position: absolute; top: 100%; right: 0; min-width: 100%; margin-top: 6px;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12); z-index: 200;
}
.nav-cta-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; }
.nav-cta-wrap:hover .nav-cta-menu, .nav-cta-wrap:focus-within .nav-cta-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-cta-menu a {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 3px; color: var(--text-muted); text-decoration: none; white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-cta-menu a:hover { background: #AEC2E0; color: #ffffff; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

/* ─── MOBILE HAMBURGER ──────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.nav-hamburger:hover { color: var(--text); border-color: var(--accent); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:first-child { border-top: none; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--text); }

.mobile-menu .mobile-menu-cta {
  margin-top: 24px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.mobile-menu .mobile-menu-cta:hover {
  border-color: #AEC2E0; color: #ffffff; background: #AEC2E0;
}

.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* ─── TICKER ──────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-bottom: none;
  padding: 14px 0;
  background: var(--text);
  color: var(--bg);
  margin-top: var(--nav-h);
}

.ticker-track {
  display: flex;
  animation: ticker 32s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

[data-theme="dark"] .ticker-item { color: rgba(255,255,255,0.4); }

.ticker-item::before {
  content: '·';
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-warm);
  opacity: 0.8;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── BUTTONS & LINKS ────────────────────────────────────── */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.view-all:hover { color: var(--accent-light); border-color: var(--accent); }
.view-all::after { content: '→'; transition: transform var(--transition); }
.view-all:hover::after { transform: translateX(4px); }

.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-primary:hover {
  border-color: #AEC2E0;
  color: #ffffff;
  background: #AEC2E0;
}

.btn-outline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: #AEC2E0;
  color: #ffffff;
  background: #AEC2E0;
}

/* ─── CARDS (Portfolio) ──────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.card:hover::before { opacity: 0.02; }

.card-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 20px;
}

.card-company {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.card-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.card:hover .card-arrow { transform: translate(3px, -3px); color: var(--accent-light); }

/* ─── TEAM CARDS ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  min-height: 220px;
  display: block;
  text-decoration: none;
  border-radius: 8px;
}

.team-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s ease;
}

.team-card:hover .team-bg { transform: scale(1.06); }

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.08) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.team-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 2px;
}

.team-role {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-quote {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.team-card:hover .team-quote {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TEAM MEMBER PAGE ──────────────────────────────────── */
.partner-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-top: 4px;
}
.partner-desc p { margin: 0; }

/* ─── STAT ROW ───────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 56px 0;
  border-top: none;
  border-bottom: none;
}

.stat-item {
  padding: 12px 24px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: transparent; }

.stat-val {
  font-size: clamp(22px, 2.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-val em {
  font-style: normal;
  color: var(--accent);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

/* ─── APPROACH PILLARS ───────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar {
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.pillar:hover { border-color: var(--accent); transform: translateY(-2px); }

.pillar-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.pillar-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── NEWS / PERSPECTIVES ────────────────────────────────── */
.news-list {
  border-top: 1px solid var(--border);
}

.news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  gap: 40px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.news-item:hover .news-title { color: var(--accent-light); }
.news-item:hover .news-arrow { transform: translate(4px, -4px); color: var(--accent-light); }

.news-title {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color var(--transition);
  line-height: 1.4;
}

.news-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 7px;
  letter-spacing: 0.03em;
}

.news-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.news-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--accent);
}

.news-arrow {
  font-size: 15px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

/* ─── FUND CTA BAR ───────────────────────────────────────── */
.fund-bar {
  background: var(--accent);
  color: #FFFFFF;
  padding: 80px 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.fund-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/dark_bg.png') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.fund-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.fund-bar-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}

.fund-bar-headline {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 560px;
  line-height: 1.25;
}

.fund-bar-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  background: #FFFFFF;
  color: var(--accent);
  border-radius: 100px;
  transition: opacity var(--transition);
}

.fund-bar-cta::after { content: '→'; }
.fund-bar-cta:hover { opacity: 0.9; }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/dark_bg.png') right center/50% no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

[data-theme="light"] .page-hero-bg { opacity: 0.03; }

.page-hero-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 28px;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.testimonial {
  background: var(--bg);
  padding: 36px 32px;
  transition: background var(--transition);
}

.testimonial:hover { background: var(--bg-card); }

.testimonial-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.testimonial-company {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 20px;
  width: auto;
}

/* Light-first: show dark logo by default, white in dark mode */
.footer-logo-white { display: none; }
.footer-logo-dark { display: block; }
[data-theme="dark"] .footer-logo-white { display: block; }
[data-theme="dark"] .footer-logo-dark { display: none; }

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: 0.02em;
}

.footer-social a:hover { color: var(--text); border-color: var(--accent); }

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-family: var(--mono);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 11px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 680px;
  text-align: right;
  line-height: 1.6;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: 24px 16px; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* Collapse the full nav to a hamburger before the logo + 6 links + actions
   run out of comfortable spacing (~1041px is the hard min, plus a buffer).
   Below this the groups would jam together and eat into the side gutters. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-ghost { display: none; }
  .nav-cta { display: none; }
  .nav-cta-wrap { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-disclaimer { text-align: left; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .fund-bar-inner { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 120px 0 60px; }
}

/* ─── UNIQUE ELEMENTS ────────────────────────────────────── */

/* Retro dot-grid background for sections */
.dot-grid-bg {
  position: relative;
}

.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.dot-grid-bg > * { position: relative; z-index: 1; }

/* Blinking cursor on headlines */
.blink-cursor {
  font-size: 0.5em;
  color: #7474A3;
  opacity: 0.35;
  animation: cursor-blink 1s step-end infinite;
  margin-left: 4px;
  font-weight: 300;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Code-line section divider */
.section-divider {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--border);
  letter-spacing: 0.2em;
  text-align: center;
  padding: 24px 0;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}


/* Stat counter animation */
.stat-val[data-count] {
  transition: none;
}

/* ─── ENTRANCE ANIMATIONS ────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ARTICLE PAGES ──────────────────────────────────────── */
.article-hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--border);
}

.article-category {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-category a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.article-category a:hover { color: var(--accent); }

.article-title {
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 820px;
  margin-bottom: 28px;
}

.article-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 32px;
}

.article-byline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.article-body {
  padding: 64px 0 80px;
  max-width: 700px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 52px 0 18px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.article-body h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 32px 0 10px;
  color: var(--text);
}

.article-body ul {
  margin: 0 0 22px 0;
  padding-left: 20px;
}

.article-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 48px;
  transition: color var(--transition);
}

.article-back:hover { color: var(--accent); }

.related-articles {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}
