/* ─── Variables ─── */
:root {
  --bg: #0e1117;
  --surface: #161b25;
  --surface-raised: #1e2433;
  --fg: #e8e9ec;
  --fg-muted: #8a8fa3;
  --fg-subtle: #4d5266;
  --accent: #d4a843;
  --accent-dim: rgba(212, 168, 67, 0.12);
  --border: rgba(255,255,255,0.06);
}

/* ─── Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.15; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.logo-accent { color: var(--accent); }
.header-nav {
  display: flex;
  gap: 2.5rem;
}
.header-nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--fg); }

/* ─── Hero ─── */
.hero {
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 42ch;
  line-height: 1.7;
}
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.hero-stat-block {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ─── Section Labels ─── */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ─── Thesis ─── */
.thesis {
  padding: 5rem 2rem;
  background: var(--bg);
}
.thesis-inner { max-width: 1100px; margin: 0 auto; }
.thesis h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1.75rem;
  max-width: 22ch;
}
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.thesis-body {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.thesis-body:last-child { margin-bottom: 0; }
.thesis-callout {
  background: var(--surface);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}
.callout-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
}
.thesis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(212,168,67,0.2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

/* ─── Data ─── */
.data-section {
  padding: 5rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-inner { max-width: 1100px; margin: 0 auto; }
.data-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--fg);
  max-width: 30ch;
  margin-bottom: 3rem;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.data-card {
  background: var(--surface-raised);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.data-metric {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.data-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── Portfolio ─── */
.portfolio {
  padding: 5rem 2rem;
  background: var(--bg);
}
.portfolio-inner { max-width: 1100px; margin: 0 auto; }
.portfolio-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1.25rem;
  max-width: 24ch;
}
.portfolio-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 55ch;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.portfolio-clusters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.cluster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
}
.cluster-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.cluster-count {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.cluster-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── Manifesto ─── */
.manifesto {
  padding: 5rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 1100px; margin: 0 auto; }
.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--fg);
  max-width: 40ch;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.4;
  position: relative;
}
.manifesto-body {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.75;
}

/* ─── Closing ─── */
.closing {
  padding: 6rem 2rem;
  background: var(--bg);
}
.closing-inner { max-width: 1100px; margin: 0 auto; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.closing-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 50ch;
  line-height: 1.7;
}

/* ─── Afternic Portfolio Links ─── */
.editorial-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 168, 67, 0.3);
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}
.editorial-link:hover {
  border-color: var(--accent);
  color: #e8c06a;
}

.portfolio-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.closing-link {
  margin-top: 1.75rem;
}

.footer-afternic {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, border-color 0.15s;
}
.footer-afternic:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
}

/* ─── Footer ─── */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.footer-note {
  font-size: 0.72rem;
  color: var(--fg-subtle);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .thesis-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-clusters { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .thesis, .data-section, .portfolio, .manifesto, .closing { padding: 3.5rem 1.5rem; }
  .data-grid { grid-template-columns: 1fr; }
  .header-nav { gap: 1.5rem; }
}