/* =====================================================
   THE CONNECTION QUEST — Design System
   ===================================================== */

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

/* ── Design Tokens (Light) ─────────────────────────── */
:root {
  --lime:    #E0FF62;
  --violet:  #8B5CF6;
  --obsidian:#0F0F0F;
  --bone:    #F5F5F3;

  --bg:           #F5F5F3;
  --bg-card:      #FFFFFF;
  --bg-card-2:    #ECEAE8;
  --bg-card-3:    #E4E2E0;
  --text:         #0F0F0F;
  --text-2:       #55534E;
  --text-3:       #98948E;
  --border:       rgba(15, 15, 15, .09);
  --border-2:     rgba(15, 15, 15, .18);
  --shadow:       0 2px 16px rgba(15, 15, 15, .06);
  --shadow-hover: 0 10px 48px rgba(15, 15, 15, .13);
  --ring:         rgba(224, 255, 98, .5);

  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;

  --radius:    16px;
  --radius-sm: 10px;
  --gap:       clamp(10px, 1.6vw, 18px);
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Dark Mode via System ───────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0F0F0F;
    --bg-card:      #161616;
    --bg-card-2:    #1E1E1E;
    --bg-card-3:    #252525;
    --text:         #F5F5F3;
    --text-2:       #AEAAA4;
    --text-3:       #5E5B56;
    --border:       rgba(245, 245, 243, .07);
    --border-2:     rgba(245, 245, 243, .14);
    --shadow:       0 2px 20px rgba(0, 0, 0, .5);
    --shadow-hover: 0 10px 48px rgba(0, 0, 0, .7);
  }
}

/* ── Dark Mode via Manual Toggle ───────────────────── */
[data-theme="dark"] {
  --bg:           #0F0F0F;
  --bg-card:      #161616;
  --bg-card-2:    #1E1E1E;
  --bg-card-3:    #252525;
  --text:         #F5F5F3;
  --text-2:       #AEAAA4;
  --text-3:       #5E5B56;
  --border:       rgba(245, 245, 243, .07);
  --border-2:     rgba(245, 245, 243, .14);
  --shadow:       0 2px 20px rgba(0, 0, 0, .5);
  --shadow-hover: 0 10px 48px rgba(0, 0, 0, .7);
}

/* ── Light Mode via Manual Toggle ──────────────────── */
[data-theme="light"] {
  --bg:           #F5F5F3;
  --bg-card:      #FFFFFF;
  --bg-card-2:    #ECEAE8;
  --bg-card-3:    #E4E2E0;
  --text:         #0F0F0F;
  --text-2:       #55534E;
  --text-3:       #98948E;
  --border:       rgba(15, 15, 15, .09);
  --border-2:     rgba(15, 15, 15, .18);
  --shadow:       0 2px 16px rgba(15, 15, 15, .06);
  --shadow-hover: 0 10px 48px rgba(15, 15, 15, .13);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; border: none; background: none; cursor: pointer; }

/* ── Layout Utilities ──────────────────────────────── */
.container {
  width: min(1320px, 100% - clamp(24px, 5vw, 80px));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 8vw, 96px); }

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text);
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }

.nav-logo .dot {
  width: 9px; height: 9px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card-2); }
.nav-links a.active {
  color: var(--obsidian);
  background: var(--lime);
}
[data-theme="dark"] .nav-links a.active,
:root:not([data-theme="light"]) .nav-links a.active {
  color: var(--obsidian);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-links a.active { color: var(--obsidian); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
  background: var(--bg-card);
  transition: all .2s var(--ease);
}
.theme-btn:hover { border-color: var(--lime); color: var(--text); transform: rotate(12deg); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--obsidian);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  transition: transform .2s var(--ease-out), background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--violet); }

[data-theme="dark"] .nav-cta { background: var(--lime); color: var(--obsidian); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-cta { background: var(--lime); color: var(--obsidian); }
}

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: var(--shadow-hover);
  }
}

/* ── Bento Grid ─────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    border-color .25s var(--ease);
}
.bento-cell:hover {
  transform: translateY(-4px) scale(1.009);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-2);
}

.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .col-3, .col-4, .col-5 { grid-column: span 3; }
  .col-6, .col-7, .col-8, .col-9 { grid-column: span 6; }
  .col-12 { grid-column: span 6; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  [class*="col-"] { grid-column: span 1; }
}

/* ── Grain Film Effect ──────────────────────────────── */
.card-art {
  position: relative;
  overflow: hidden;
}

.card-art::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  opacity: .14;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 2.5s steps(4) infinite;
}

@keyframes grain {
  0%   { transform: translate(0,   0  ); }
  20%  { transform: translate(-2%, 1% ); }
  40%  { transform: translate(2%, -1% ); }
  60%  { transform: translate(-1%, 2% ); }
  80%  { transform: translate(1%, -2% ); }
  100% { transform: translate(0,   0  ); }
}

/* Per-article gradient art */
.art-attention     { background: linear-gradient(145deg, #0d0c1d 0%, #1a1060 45%, #2d1b69 80%, #0f0f3d 100%); aspect-ratio: 16/9; }
.art-alchemy       { background: linear-gradient(145deg, #3b1500 0%, #78350f 40%, #d97706 75%, #92400e 100%); aspect-ratio: 16/9; }
.art-compass       { background: linear-gradient(145deg, #022020 0%, #0c4a6e 40%, #0d9488 75%, #059669 100%); aspect-ratio: 16/9; }
.art-homestead     { background: linear-gradient(145deg, #022c0a 0%, #14532d 40%, #15803d 75%, #052e16 100%); aspect-ratio: 16/9; }
.art-livingroom    { background: linear-gradient(145deg, #300505 0%, #7f1d1d 40%, #b91c1c 75%, #450a0a 100%); aspect-ratio: 16/9; }
.art-ai            { background: linear-gradient(145deg, #06041e 0%, #1e1b4b 40%, #3730a3 75%, #4338ca 100%); aspect-ratio: 16/9; }
.art-tools         { background: linear-gradient(145deg, #0a0e17 0%, #1e293b 40%, #334155 75%, #475569 100%); aspect-ratio: 16/9; }
.art-reclaiming    { background: linear-gradient(145deg, #1a0020 0%, #4a044e 40%, #86198f 75%, #701a75 100%); aspect-ratio: 16/9; }
.art-ghost         { background: linear-gradient(145deg, #14082e 0%, #44337a 40%, #553c9a 75%, #6d28d9 100%); aspect-ratio: 16/9; }
.art-fragmentation { background: linear-gradient(145deg, #05081e 0%, #1e3a8a 40%, #1d4ed8 70%, #5b21b6 100%); aspect-ratio: 16/9; }

/* Orb overlays inside art */
.card-art .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .5;
  pointer-events: none;
}

/* ── Pill / Tag ─────────────────────────────────────── */
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}

.tag-lime {
  background: rgba(224,255,98,.12);
  border-color: rgba(224,255,98,.28);
  color: #6a9600;
}
[data-theme="dark"] .tag-lime { color: #c8e84a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-lime { color: #c8e84a; }
}

.tag-violet {
  background: rgba(139,92,246,.1);
  border-color: rgba(139,92,246,.28);
  color: var(--violet);
}

/* ── Article Card ────────────────────────────────────── */
.article-card { display: flex; flex-direction: column; cursor: pointer; }
.article-card a { display: flex; flex-direction: column; flex: 1; }
.article-card .card-body {
  padding: 20px 22px 22px;
  flex: 1; display: flex; flex-direction: column; gap: 10px;
}

.article-card .card-title {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.028em;
  color: var(--text);
  transition: color .2s;
}
.article-card:hover .card-title { color: var(--violet); }

.article-card .card-excerpt {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: .02em;
}
.card-footer-left { display: flex; align-items: center; gap: 12px; }

/* ── Featured Card (dark overlay type) ─────────────── */
.featured-card {
  position: relative;
  min-height: 380px;
  cursor: pointer;
}
.featured-card > a {
  display: block; position: absolute; inset: 0;
}
.featured-card .card-art {
  position: absolute; inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.featured-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}
.featured-card .card-content {
  position: relative; z-index: 2;
  padding: 28px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
}
.featured-card .card-title {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: #fff;
}
.featured-card .card-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 520px;
}
.featured-card .read-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--lime);
  transition: gap .2s var(--ease-out);
}
.featured-card:hover .read-link { gap: 10px; }

/* ── Dark Stat Card ─────────────────────────────────── */
.stat-card {
  padding: 28px 30px;
  background: var(--obsidian);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 20px;
  border-color: transparent !important;
  min-height: 200px;
}
.stat-card .stat-num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--lime);
}
.stat-card .stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(245,245,243,.45);
}
.stat-card .stat-desc {
  font-size: 13px;
  color: rgba(245,245,243,.55);
  line-height: 1.6;
}

/* ── Lime CTA Card ──────────────────────────────────── */
.lime-card {
  padding: 32px;
  background: var(--lime);
  border-color: transparent !important;
  display: flex; flex-direction: column; gap: 14px;
}
.lime-card .lime-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
  color: var(--obsidian);
}
.lime-card .lime-sub {
  font-size: 14px;
  color: rgba(15,15,15,.6);
  line-height: 1.55;
}
.lime-card .lime-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  background: var(--obsidian); color: #fff;
  padding: 10px 22px; border-radius: 999px;
  align-self: flex-start;
  transition: transform .2s var(--ease-out), background .2s;
}
.lime-card .lime-btn:hover { transform: translateY(-2px); background: #333; }

/* ── Quote Card ─────────────────────────────────────── */
.quote-card {
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-card-2);
}
.quote-card blockquote {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.45;
  color: var(--text);
}
.quote-card cite {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-style: normal;
  display: flex; align-items: center; gap: 8px;
}
.quote-card cite::before {
  content: ''; display: block;
  width: 20px; height: 1.5px;
  background: var(--text-3);
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
  padding-block: clamp(72px, 12vw, 140px);
  position: relative; overflow: hidden;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.hero-label::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--lime);
  display: block;
}

.hero-title {
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .92;
  margin-bottom: 28px;
}
.hero-title .lime { color: var(--lime); }
.hero-title .dim  { color: var(--text-2); }

.hero-desc {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s;
}
.btn-lime {
  background: var(--lime); color: var(--obsidian);
}
.btn-lime:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(224,255,98,.45);
}
.btn-outline {
  border: 1.5px solid var(--border-2); color: var(--text);
}
.btn-outline:hover {
  border-color: var(--violet); color: var(--violet);
  background: rgba(139,92,246,.06);
  transform: translateY(-2px);
}

/* ── Section Label / Divider ────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.section-desc {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2); max-width: 560px; line-height: 1.65;
  margin-bottom: 40px;
}

/* ── Articles Grid (List Page) ──────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--gap);
}

/* ── Filter Bar ─────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text-3); cursor: pointer;
  background: var(--bg-card);
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--text-3); color: var(--text); }
.filter-btn.active {
  background: var(--lime);
  color: var(--obsidian);
  border-color: var(--lime);
}
[data-theme="light"] .filter-btn.active {
  background: var(--obsidian);
  color: var(--lime);
  border-color: var(--obsidian);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .filter-btn.active {
    background: var(--obsidian);
    color: var(--lime);
    border-color: var(--obsidian);
  }
}

/* ── Reading Progress ───────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--lime);
  z-index: 200;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Article Page Layout ────────────────────────────── */
.article-page-header {
  max-width: 820px;
  margin-inline: auto;
  padding-block: clamp(40px, 7vw, 80px) 0;
}

.article-page-header .back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 44px;
  transition: color .2s, gap .25s var(--ease-out);
}
.article-page-header .back-btn:hover { color: var(--violet); gap: 12px; }

.article-page-header .article-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.article-page-header .meta-sep {
  font-family: var(--mono); font-size: 11px;
  color: var(--border-2);
}
.article-page-header .meta-text {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: .04em;
}

.article-page-header h1 {
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.article-page-header .article-lead {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 40px;
}

.article-hero-art {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
  margin-block: clamp(32px, 5vw, 60px);
}

/* ── Article Body Typography ────────────────────────── */
.article-body {
  max-width: 700px;
  margin-inline: auto;
  padding-block-end: clamp(64px, 10vw, 120px);
}

.article-body > * + * { margin-top: 1.25em; }

.article-body h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.18;
  color: var(--text);
  margin-top: 3em !important;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.25;
  color: var(--text);
  margin-top: 2.2em !important;
}
.article-body h4 {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  color: var(--violet);
  margin-top: 1.8em !important;
}
.article-body p {
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--text-2);
}
.article-body strong {
  font-weight: 700; color: var(--text);
}
.article-body em {
  font-style: italic;
}
.article-body ul { padding-left: 0; }
.article-body ul li {
  position: relative; padding-left: 1.8em;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.8; color: var(--text-2);
}
.article-body ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--lime); font-weight: 700;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .article-body ul li::before { color: #5d8a00; }
}
[data-theme="light"] .article-body ul li::before { color: #5d8a00; }

.article-body ol {
  counter-reset: ol-item;
  padding-left: 0;
}
.article-body ol li {
  counter-increment: ol-item;
  padding-left: 2.8em;
  position: relative;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.8; color: var(--text-2);
}
.article-body ol li::before {
  content: counter(ol-item, decimal-leading-zero);
  position: absolute; left: 0; top: .25em;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2.8em !important;
}

/* ── Related Articles ───────────────────────────────── */
.related-section {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 7vw, 80px);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
  margin-top: 32px;
}

/* ── About Page ─────────────────────────────────────── */
.about-hero { padding-block: clamp(64px, 10vw, 108px); }
.about-intro {
  max-width: 720px;
}
.about-intro .big-text {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.28;
  margin-bottom: 28px;
  color: var(--text);
}
.about-intro p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.78;
  color: var(--text-2);
  margin-bottom: 1.4em;
}
.about-values {
  padding-block: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--border);
}

.value-card {
  padding: 28px 30px; border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.value-icon {
  font-size: 28px; line-height: 1;
  width: 52px; height: 52px;
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.value-title {
  font-size: 18px; font-weight: 700; letter-spacing: -.022em;
}
.value-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding-block: 44px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-size: 15px; font-weight: 700; letter-spacing: -.025em;
  display: flex; align-items: center; gap: 7px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: var(--text-3);
  transition: color .2s;
}
.footer-links a:hover { color: var(--violet); }
.footer-copy {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-3); letter-spacing: .03em;
}

/* ── Reveal Animation ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* staggered delay helpers */
.delay-1 { transition-delay: .08s !important; }
.delay-2 { transition-delay: .16s !important; }
.delay-3 { transition-delay: .24s !important; }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Selection ───────────────────────────────────────── */
::selection { background: var(--lime); color: var(--obsidian); }
