/* ================================================================
   MAYANKWADHERA.COM — EDITORIAL DESIGN SYSTEM
   Luxury advisory aesthetic: Cormorant Garamond + Outfit
   Dark charcoal / warm parchment, gold accent architecture
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap");

/* ========== TOKENS ========== */
:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
  --radius: 2px;
  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --article-width: 740px;
  --wide-width: 1100px;
}

[data-theme="dark"] {
  --bg-primary: #0f0f0e;
  --bg-secondary: #141412;
  --bg-elevated: #1c1c19;
  --bg-card: #1a1a17;
  --text-primary: #e8e4db;
  --text-secondary: #a09b8e;
  --text-muted: #6b6760;
  --accent: #c4975a;
  --accent-dim: #8b6d3f;
  --accent-glow: rgba(196, 151, 90, 0.10);
  --line: rgba(196, 151, 90, 0.15);
  --line-subtle: rgba(255,255,255,0.06);
  --line-strong: rgba(196, 151, 90, 0.25);
  --nav-bg: rgba(15,15,14,0.88);
  --grain-opacity: 0.35;
  --glow-color: rgba(196, 151, 90, 0.08);
  --card-border: rgba(255,255,255,0.06);
  --toggle-bg: rgba(255,255,255,0.08);
  --dropcap-color: #c4975a;
  --rule-gradient: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

[data-theme="light"] {
  --bg-primary: #f5f2ec;
  --bg-secondary: #edeae3;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a18;
  --text-secondary: #5a5750;
  --text-muted: #8a867d;
  --accent: #a06830;
  --accent-dim: #c49565;
  --accent-glow: rgba(160, 104, 48, 0.07);
  --line: rgba(160, 104, 48, 0.18);
  --line-subtle: rgba(0,0,0,0.07);
  --line-strong: rgba(160, 104, 48, 0.30);
  --nav-bg: rgba(245,242,236,0.88);
  --grain-opacity: 0.2;
  --glow-color: rgba(160, 104, 48, 0.06);
  --card-border: rgba(0,0,0,0.08);
  --toggle-bg: rgba(0,0,0,0.06);
  --dropcap-color: #a06830;
  --rule-gradient: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Film grain texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
  opacity: var(--grain-opacity);
}

::selection { background: var(--accent); color: var(--bg-primary); }
a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-primary); }

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 0%; height: 2px;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-subtle);
  transition: background var(--transition);
}
.nav-logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--text-primary); letter-spacing: 0.02em; }
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 0.75rem !important; font-weight: 500 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim); padding: 0.55rem 1.35rem;
  transition: all 0.3s ease !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--bg-primary) !important; }
.nav-cta::after { display: none !important; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-subtle); background: var(--toggle-bg);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; color: var(--text-secondary); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-glow); }
.theme-toggle svg { width: 16px; height: 16px; transition: transform 0.4s ease; }
.theme-toggle:hover svg { transform: rotate(30deg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--text-primary); transition: all 0.3s ease; }

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 10rem 3rem var(--space-xl);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 45vw; height: 45vw;
  background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 60%);
  pointer-events: none;
}
/* Decorative bottom rule */
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 3rem;
  width: 120px; height: 1px;
  background: var(--rule-gradient);
}

/* ── Article hero — richer atmosphere ── */
.article-hero {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line-subtle);
}
/* Second glow — warm amber bottom-left */
.article-hero::before {
  top: auto; bottom: -30%; right: auto; left: -15%;
  width: 50vw; height: 50vw;
  background: radial-gradient(ellipse,
    rgba(196, 151, 90, 0.05) 0%,
    transparent 55%
  );
}
[data-theme="light"] .article-hero::before {
  background: radial-gradient(ellipse,
    rgba(160, 104, 48, 0.04) 0%,
    transparent 55%
  );
}
.page-hero .section-label {
  opacity: 0; transform: translateY(15px);
  animation: fadeUp 0.7s 0.2s forwards;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300; line-height: 1.12;
  max-width: 750px; color: var(--text-primary);
  opacity: 0; transform: translateY(25px);
  animation: fadeUp 0.9s 0.35s forwards;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lead {
  font-size: 1.1rem; font-weight: 300; line-height: 1.8;
  max-width: 600px; color: var(--text-secondary);
  margin-top: var(--space-md);
  opacity: 0; transform: translateY(15px);
  animation: fadeUp 0.7s 0.55s forwards;
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--space-xl) 3rem;
  transition: background var(--transition);
}
.section.alt { background: var(--bg-secondary); }
.section-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-sm);
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 300; line-height: 1.2;
  max-width: 680px; color: var(--text-primary);
}
.section-heading em { font-style: italic; color: var(--accent); }
.section-body {
  font-size: 1.02rem; font-weight: 300; line-height: 1.85;
  color: var(--text-secondary); max-width: 580px;
  margin-top: var(--space-md);
}
.section-intro {
  max-width: 600px; color: var(--text-secondary);
  font-size: 1.02rem; line-height: 1.85; font-weight: 300;
  margin-top: var(--space-sm);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg-primary); background: var(--accent);
  padding: 0.95rem 1.85rem; border: none; cursor: pointer;
  transition: all 0.35s ease;
}
.btn-primary:hover {
  background: var(--text-primary); color: var(--bg-primary);
  transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); padding: 0.95rem 0;
  border: none; background: none; cursor: pointer;
  transition: all 0.3s ease; position: relative;
}
.btn-secondary::after {
  content: ''; position: absolute; bottom: 0.7rem; left: 0;
  width: 100%; height: 1px; background: var(--text-muted);
  transition: background 0.3s ease;
}
.btn-secondary:hover { color: var(--text-primary); }
.btn-secondary:hover::after { background: var(--accent); }
.cta-row { display: flex; gap: 1.5rem; margin-top: var(--space-lg); flex-wrap: wrap; }

/* ========== GRIDS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-xl); align-items: start; }

/* ========== CARDS ========== */
.card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--card-border); background: var(--bg-card);
  position: relative; transition: all 0.4s ease; cursor: default;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.5s ease;
}
.card:hover::before { width: 100%; }
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px var(--accent-glow);
}
.card .kicker {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: var(--space-sm);
}
.card h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 400;
  color: var(--text-primary); line-height: 1.3;
  margin-bottom: var(--space-sm); margin-top: 0;
}
.card p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7; font-weight: 300;
}
.card ul { list-style: none; margin-top: var(--space-sm); }
.card ul li {
  font-size: 0.88rem; color: var(--text-secondary); font-weight: 300;
  padding: 0.35rem 0 0.35rem 1rem; position: relative;
}
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 0.85rem;
  width: 4px; height: 4px; background: var(--accent-dim); border-radius: 50%;
}
.card .cta-row { margin-top: var(--space-md); }

/* ========== PANEL ========== */
.panel {
  padding: var(--space-lg); border: 1px solid var(--line); background: var(--bg-card);
}
.panel .label {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: var(--space-sm);
}
.panel ul { list-style: none; }
.panel ul li {
  font-size: 0.92rem; color: var(--text-secondary); font-weight: 300;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line-subtle);
}
.panel ul li:last-child { border-bottom: none; }
.panel ul li a { transition: all 0.3s ease; }
.panel ul li a:hover { padding-left: 8px; }

/* ========== QUOTE & STATEMENT ========== */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300; font-style: italic; line-height: 1.45;
  color: var(--text-primary);
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 300; font-style: italic; line-height: 1.45;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding: var(--space-lg) var(--space-lg);
  background: var(--accent-glow);
  position: relative;
}
.statement::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 5rem; font-weight: 700;
  color: var(--accent-dim);
  position: absolute; top: -0.15em; left: 0.3em;
  line-height: 1; opacity: 0.3;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(25px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.07s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.14s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.21s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.28s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.42s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.49s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.56s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ========== FOOTER ========== */
.footer { padding: var(--space-lg) 3rem var(--space-md); border-top: 1px solid var(--line-subtle); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: var(--space-lg); }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--text-primary); margin-bottom: var(--space-sm); }
.footer-brand-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; max-width: 320px; line-height: 1.6; }
.footer-links { display: flex; gap: var(--space-xl); }
.footer-col h5 { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-dim); margin-bottom: var(--space-sm); }
.footer-col a { display: block; font-size: 0.83rem; color: var(--text-muted); font-weight: 300; padding: 0.2rem 0; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--line-subtle); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.73rem; color: var(--text-muted); font-weight: 300; }
.footer-entities { display: flex; gap: 2rem; }
.footer-entities span { font-size: 0.7rem; color: var(--text-muted); font-weight: 300; opacity: 0.6; }

/* ========== IMAGE CLASSES ========== */
.page-hero-img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 45%; max-width: 550px;
  object-fit: cover; object-position: center;
  opacity: 0.18; pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}
[data-theme="light"] .page-hero-img { opacity: 0.12; }

.pillar-img {
  width: 100%; height: 140px;
  object-fit: cover; object-position: center;
  border-bottom: 1px solid var(--line-subtle);
  opacity: 0.7; transition: opacity 0.4s ease;
}
.pillar:hover .pillar-img { opacity: 1; }

.fw-icon { width: 32px; height: 32px; flex-shrink: 0; opacity: 0.6; transition: opacity 0.3s ease; }
.fw-item:hover .fw-icon { opacity: 1; }

.guide-cover {
  width: 100%; height: 200px;
  object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--line-subtle);
  margin-bottom: var(--space-md);
}

.section-divider { width: 100%; height: 80px; object-fit: cover; opacity: 0.4; display: block; }
[data-theme="light"] .section-divider { opacity: 0.25; }

.cta-glow-bg {
  position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
  width: 80%; max-width: 800px; pointer-events: none; opacity: 0.5;
}
[data-theme="light"] .cta-glow-bg { opacity: 0.3; }


/* ================================================================
   TL;DR ANSWER BOX — AI/AEO extraction target
   ================================================================ */

.tldr-box {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-glow);
  position: relative;
}
.tldr-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}
.tldr-box p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-primary);
  margin: 0;
}

/* ================================================================
   TABLE OF CONTENTS
   ================================================================ */

.toc {
  border: 1px solid var(--line-subtle);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
}
.toc-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.toc-list li {
  counter-increment: toc-counter;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-subtle);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border-bottom: none;
}
.toc-list li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-dim);
  min-width: 1.5rem;
  transition: color 0.3s ease;
}
.toc-list li a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.toc-list li a:hover::before { color: var(--accent); }

/* ================================================================
   ARTICLE TYPOGRAPHY — the editorial reading experience
   ================================================================ */

/* Container */
.wrap {
  max-width: var(--article-width);
  margin: 0 auto;
  position: relative;
}
.wrap.wide { max-width: var(--wide-width); }

/* Grids inside wrap need wider container */
.wrap.grid-2,
.wrap.grid-3 { max-width: var(--wide-width); }

/* ── Article H2 — section headings with gold rule ── */
.wrap > h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--text-primary);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-subtle);
  position: relative;
}
/* Gold accent dash above heading */
.wrap > h2::before {
  content: '';
  position: absolute; top: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--accent);
}
.wrap > h2:first-child {
  margin-top: 0; padding-top: 0;
  border-top: none;
}
.wrap > h2:first-child::before { display: none; }

/* ── Article H3 — subsection headings ── */
.wrap > h3,
.wrap h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

/* ── Body paragraphs ── */
.wrap > p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  hanging-punctuation: first;
}

/* Drop cap on first body paragraph after first h2 */
.wrap > h2:first-child + p::first-letter,
.wrap > h2 + p::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 -0.03em;
  color: var(--dropcap-color);
}

/* ── Strong & emphasis ── */
.wrap > p strong,
.wrap > ul li strong,
.wrap > ol li strong {
  color: var(--text-primary);
  font-weight: 500;
}
.wrap > p em {
  font-style: italic;
  color: var(--text-primary);
}

/* ── Inline links ── */
.wrap > p a,
.wrap > ul li a,
.wrap > ol li a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.wrap > p a:hover,
.wrap > ul li a:hover,
.wrap > ol li a:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ── Lists ── */
.wrap > ul,
.wrap > ol {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}
.wrap > ul li,
.wrap > ol li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}
.wrap > ul { list-style: none; padding-left: 0; }
.wrap > ul > li {
  position: relative;
  padding-left: 1.3rem;
}
.wrap > ul > li::before {
  content: '';
  position: absolute; left: 0; top: 0.75em;
  width: 5px; height: 5px;
  background: var(--accent-dim); border-radius: 50%;
}

/* ── Executive summary list (first list in article) ── */
.section > .wrap > ul:first-child li,
.section > .wrap > h2:first-child + ul li {
  font-size: 1.02rem;
  line-height: 1.85;
  padding: 0.6rem 0 0.6rem 1.3rem;
  border-bottom: 1px solid var(--line-subtle);
}
.section > .wrap > ul:first-child li:last-child,
.section > .wrap > h2:first-child + ul li:last-child {
  border-bottom: none;
}


/* ================================================================
   FAQ ACCORDION — refined details/summary
   ================================================================ */

.faq {
  border-top: 1px solid var(--line-subtle);
}

.faq .wrap > h2 {
  border-top: none;
  padding-top: 0;
  margin-bottom: var(--space-md);
}
.faq .wrap > h2::before { display: none; }

.faq details {
  border-bottom: 1px solid var(--line-subtle);
}
.faq details:last-of-type { border-bottom: none; }

.faq summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  transition: color 0.3s ease;
  gap: var(--space-sm);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent-dim);
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-subtle);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.faq details[open] summary::after {
  content: '\2212';
  color: var(--bg-primary);
  background: var(--accent);
  border-color: var(--accent);
}
.faq summary:hover { color: var(--accent); }
.faq summary:hover::after { border-color: var(--accent); }

.faq details p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  padding: 0 0 1.25rem 0;
  max-width: 640px;
}


/* ================================================================
   RELATED READING — refined link list
   ================================================================ */

.section.alt .wrap > h3 {
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.section.alt .wrap > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section.alt .wrap > ul > li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-subtle);
}
.section.alt .wrap > ul > li::before { display: none; }
.section.alt .wrap > ul > li:last-child { border-bottom: none; }

.section.alt .wrap > ul > li a {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-secondary);
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.section.alt .wrap > ul > li a::before {
  content: '\2192';
  font-size: 0.8rem;
  color: var(--accent-dim);
  transition: transform 0.3s ease;
}
.section.alt .wrap > ul > li a:hover {
  color: var(--accent);
}
.section.alt .wrap > ul > li a:hover::before {
  transform: translateX(4px);
}


/* ================================================================
   ARTICLE BYLINE
   ================================================================ */
.byline {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.78rem; color: var(--text-muted);
  margin-top: var(--space-md);
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.6s 0.7s forwards;
}
.byline .separator { color: var(--accent-dim); }


/* ================================================================
   SECTION RULE — decorative gold gradient between sections
   ================================================================ */
.section-rule {
  display: block;
  width: 100%;
  height: 1px;
  border: none;
  background: var(--rule-gradient);
  opacity: 0.5;
}


/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-primary); padding: 1.5rem;
    border-bottom: 1px solid var(--line-subtle); gap: 1.25rem;
  }
  .nav-toggle { display: flex; }

  .section, .page-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .page-hero { padding-top: 7rem; }
  .page-hero::after { left: 1.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .wrap { max-width: 100%; }
  .wrap.grid-2, .wrap.grid-3 { max-width: 100%; }

  .wrap > h2 { margin-top: 2.5rem; padding-top: 2rem; }

  /* Smaller drop cap on mobile */
  .wrap > h2:first-child + p::first-letter,
  .wrap > h2 + p::first-letter {
    font-size: 2.8em;
  }

  .faq summary { font-size: 1.02rem; padding: 0.9rem 0; }

  .statement { font-size: 1.15rem; padding: var(--space-md); }
  .statement::before { font-size: 3.5rem; }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
  .footer-entities { flex-direction: column; gap: 0.5rem; }

  .cta-row { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { font-size: 0.75rem; }

  .card { padding: var(--space-md) var(--space-sm); }
  .card h3 { font-size: 1.15rem; }

  .tldr-box { padding: var(--space-sm) var(--space-md); }
  .toc { padding: var(--space-sm) var(--space-md); }

  .panel { padding: var(--space-md); }

  .byline { flex-wrap: wrap; }

  .page-hero .lead { font-size: 1rem; }

  .feature-row { gap: var(--space-lg); }

  .section { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
}

/* ================================================================
   INLINE SVG DIAGRAMS — article diagram figures
   ================================================================ */

.article-diagram { margin: 2rem 0; text-align: center; }
.article-diagram svg { max-width: 100%; height: auto; }
.article-diagram figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

@media (max-width: 480px) {
  .page-hero h1 { font-size: 2rem; }
  .page-hero { padding-top: 6rem; }
  .wrap > h2 { font-size: 1.45rem; }
  .wrap > p { font-size: 0.97rem; }
  .section { padding-left: 1rem; padding-right: 1rem; }
  .page-hero { padding-left: 1rem; padding-right: 1rem; }
  .page-hero::after { left: 1rem; }
  .nav { padding: 0.85rem 1rem; }
  .nav-logo { font-size: 1.15rem; }
  .statement { padding: var(--space-sm); font-size: 1.05rem; }
  .faq summary { font-size: 0.95rem; }
}

/* ========== EMAIL GATE (assessments) ========== */
.email-gate form { flex-direction: column; }
@media (min-width: 480px) {
  .email-gate form { flex-direction: row; }
}

/* ================================================================
   INSIGHTS INDEX — Pillar Sections
   ================================================================ */
.pillar-section { margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.pillar-section:first-of-type { margin-top: 0; }
.pillar-section h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 300; margin: 0.3rem 0 0.5rem; }
.pillar-lead { font-size: 0.92rem; color: var(--text-secondary); max-width: 620px; margin: 0; }

/* ================================================================
   INSIGHTS INDEX — Cluster Cards
   ================================================================ */
.insight-cluster { border: 1px solid var(--card-border); background: var(--bg-card); margin-bottom: var(--space-sm); transition: border-color 0.3s; }
.insight-cluster:hover { border-color: var(--line); }
.insight-cluster summary { display: flex; justify-content: space-between; align-items: flex-start; padding: var(--space-md) var(--space-lg); cursor: pointer; list-style: none; gap: var(--space-md); }
.insight-cluster summary::-webkit-details-marker { display: none; }
.insight-cluster summary::marker { display: none; }
.cluster-info { flex: 1; }
.cluster-info .kicker { margin-bottom: 0.3rem; }
.cluster-info h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin: 0 0 0.4rem; color: var(--text-primary); }
.cluster-info p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.cluster-count { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--accent); background: var(--accent-glow); border: 1px solid var(--line); padding: 0.25rem 0.6rem; white-space: nowrap; margin-top: 0.2rem; letter-spacing: 0.05em; }

/* Cluster article list */
.insight-cluster ul { list-style: none; padding: 0 var(--space-lg) var(--space-md); margin: 0; border-top: 1px solid var(--line-subtle); }
.insight-cluster li { border-bottom: 1px solid var(--line-subtle); }
.insight-cluster li:last-child { border-bottom: none; }
.insight-cluster li a { display: block; padding: 0.65rem 0; font-size: 0.92rem; color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.insight-cluster li a:hover { color: var(--accent); }

/* Featured first article */
.cluster-featured { border-left: 2px solid var(--accent); padding-left: var(--space-sm) !important; margin-left: -1px; }
.cluster-featured a { font-size: 1rem !important; color: var(--text-primary) !important; font-weight: 400; }

/* Expand/collapse indicator */
.insight-cluster summary .cluster-count::after { content: ' +'; }
.insight-cluster details[open] summary .cluster-count::after { content: ' −'; }

/* Insights start-here card */
.insights-start { background: var(--bg-card); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: var(--space-lg); margin-bottom: var(--space-xl); }
.insights-start .kicker { margin-bottom: var(--space-sm); }
.insights-start h3 { margin-top: 0; font-size: 1.2rem; }
.insights-start ol { padding-left: 1.2rem; margin-top: var(--space-md); line-height: 2.2; }

/* Pillar filter buttons */
.pillar-filter { padding: 0.4rem 0.9rem; border: 1px solid var(--card-border); background: transparent; color: var(--text-secondary); font-size: 0.72rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.pillar-filter.active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }
.pillar-filter:hover:not(.active) { border-color: var(--text-secondary); }
.filter-count { font-size: 0.65rem; opacity: 0.6; margin-left: 0.2em; }

/* Insight search bar */
.insight-search { width: 100%; padding: 0.85rem 1.2rem; border: 1px solid var(--card-border); background: var(--bg-card); color: var(--text-primary); font-size: 0.95rem; font-family: var(--sans); outline: none; transition: border-color 0.3s; }
.insight-search:focus { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}
