/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.anim-up.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.22s; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(249,248,245,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 68px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ══════════════════════════════════════════
   ARTICLE HERO — green banner
══════════════════════════════════════════ */
#article-hero {
  background: var(--green);
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.ah-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.ah-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  top: -150px; right: -80px;
}

.ah-blob-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,0,0,0.10), transparent 70%);
  bottom: -80px; left: 5%;
}

.ah-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.ah-content {
  position: relative;
  z-index: 2;
  max-width: var(--prose-w);
  margin: 0 auto;
  padding: 72px 48px 64px;
}

.ah-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 36px;
  transition: color 0.2s;
}
.ah-back:hover { color: #fff; }
.ah-back::before { content: '←'; font-size: 14px; }

.ah-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.ah-category::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
}

.ah-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.ah-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.20);
  flex-wrap: wrap;
}

.ah-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ah-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ah-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.ah-author-role {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.ah-meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.22);
}

.ah-meta-item {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ah-meta-item strong {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   ARTICLE BODY LAYOUT
══════════════════════════════════════════ */
#article-body {
  background: var(--bg-alt);
  padding: 0;
}

.article-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  align-items: start;
}

/* ── Prose column ── */
.prose {
  min-width: 0;
}

.prose p {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.88;
  color: #2D3748;
  margin-bottom: 28px;
}

.prose h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 52px 0 20px;
}

.prose h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 36px 0 16px;
}

.prose strong {
  font-weight: 700;
  color: var(--navy);
}

.prose ul, .prose ol {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.82;
  color: #2D3748;
  margin: 0 0 28px 0;
  padding-left: 24px;
}

.prose li { margin-bottom: 8px; }

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--green);
  padding: 20px 0 20px 28px;
  margin: 40px 0;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -12px; left: 18px;
  font-size: 72px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--gold);
  opacity: 0.45;
  pointer-events: none;
}

.pull-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  line-height: 1.38 !important;
  margin-bottom: 10px !important;
  padding-top: 20px;
}

.pull-quote cite {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
}

/* Data callout box */
.data-callout {
  background: var(--bg);
  border: 1px solid rgba(0,184,46,0.18);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 28px 28px 24px;
  margin: 36px 0;
}

.data-callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.data-callout-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dc-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.dc-stat-num span { color: var(--green); }

.dc-stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Article image */
.prose-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 36px 0;
}

.prose-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.prose-image figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--bg);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Divider */
.prose-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Key takeaways */
.key-takeaways {
  background: var(--navy);
  border-radius: 14px;
  padding: 32px 32px 28px;
  margin: 48px 0;
}

.kt-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kt-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--gold);
}

.kt-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kt-list li {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  display: flex;
  gap: 12px;
  margin-bottom: 0 !important;
}

.kt-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 9px;
  flex-shrink: 0;
}

/* Author bio */
.author-bio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.bio-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #00a027 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.bio-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.bio-role {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--green);
  margin-bottom: 10px;
}

.bio-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Reading progress */
.reading-progress-bar {
  position: fixed;
  top: 68px; left: 0;
  height: 3px;
  background: var(--green);
  width: 0%;
  z-index: 99;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0,184,46,0.45);
}

/* TOC widget */
.sidebar-widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.sw-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
  border-left: 2px solid transparent;
}

.toc-list a:hover, .toc-list a.active {
  background: var(--green-light);
  color: var(--green);
  border-left-color: var(--green);
}

/* Share widget */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--navy);
  transition: all 0.22s;
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

.share-btn-icon { font-size: 16px; }

/* Article info */
.article-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.ai-row-label { color: var(--muted); }
.ai-row-value { font-weight: 600; color: var(--navy); }

.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(0,184,46,0.09);
  border: 1px solid rgba(0,184,46,0.18);
  padding: 3px 9px;
  border-radius: 100px;
}

/* ══════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════ */
#related {
  background: var(--bg);
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.related-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rel-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease, border-color 0.3s;
}

.rel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.09), 0 4px 14px rgba(0,184,46,0.07);
  border-color: rgba(0,184,46,0.18);
}

.rel-image {
  height: 180px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.rel-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rel-card:hover .rel-image img { transform: scale(1.05); }

.rel-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,20,0.35), transparent 55%);
}

.rel-body { padding: 20px 20px 24px; }

.rel-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rel-category::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.rel-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.rel-card:hover .rel-title { color: var(--green); }

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

.rel-date { font-size: 11.5px; color: var(--muted); }

.rel-read {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.22s;
}

.rel-card:hover .rel-read { gap: 8px; }

/* ══════════════════════════════════════════
   NEWSLETTER STRIP
══════════════════════════════════════════ */
#newsletter {
  background: var(--navy);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.nl-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}

.nl-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,184,46,0.15), transparent 70%);
  top: -150px; right: -80px;
}

.nl-blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,204,51,0.09), transparent 70%);
  bottom: -80px; left: 5%;
}

.nl-inner {
  position: relative; z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.nl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255,204,51,0.28);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.nl-eyebrow::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}

.nl-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 14px;
}

.nl-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.52);
  line-height: 1.72;
  margin-bottom: 32px;
}

.nl-form { display: flex; gap: 10px; }

.nl-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: #fff;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 12px 20px; border-radius: 8px; outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.nl-input::placeholder { color: rgba(255,255,255,0.38); }
.nl-input:focus { border-color: rgba(0,184,46,0.5); background: rgba(255,255,255,0.13); }

.nl-submit {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--navy); background: var(--gold);
  border: none; padding: 12px 22px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; transition: all 0.25s;
}

.nl-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,204,51,0.35); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--green);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.footer-logo { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.footer-logo span { color: rgba(255,255,255,0.65); }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.48); }

/* ══════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   TABLET — 1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  /* Article layout: stack sidebar below content */
  .article-layout {
    grid-template-columns: 1fr;
    padding: 56px 32px 80px;
    gap: 48px;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Data callout stats */
  .data-callout-stats { grid-template-columns: repeat(2, 1fr); }

  /* Related grid */
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   MOBILE — 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 18px; }

  /* Nav */
  .nav-inner { padding: 0 18px; }
  .nav-cta-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(249,248,245,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 20px;
    border-bottom: 1px solid rgba(10,14,20,0.08);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(10,14,20,0.08);
  }
  .nav-links li:last-child a { border-bottom: none; }

  /* Article hero */
  .article-hero { padding: 80px 0 48px; }
  .ah-hero-content { padding: 0 18px; }
  .ah-title { font-size: clamp(26px, 7vw, 42px); }
  .ah-meta { flex-wrap: wrap; gap: 10px; }

  /* Article layout */
  .article-layout {
    grid-template-columns: 1fr;
    padding: 40px 18px 64px;
    gap: 40px;
  }

  /* Sidebar: single column stacked */
  .sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Data callout */
  .data-callout-stats { grid-template-columns: 1fr; gap: 12px; }

  /* Related */
  .related-section { padding: 0 18px 56px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Newsletter */
  .nl-form { flex-direction: column; }
  .nl-input { width: 100%; }
  .nl-btn { width: 100%; text-align: center; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 18px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ══════════════════════════════════════════
   SMALL MOBILE — 480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .article-layout { padding: 32px 16px 56px; }
  .ah-hero-content { padding: 0 16px; }
  .related-section { padding: 0 16px 48px; }
  .footer-inner { padding: 0 16px; }
}
