/* ============================================================
   DESIGN TOKENS (mirror homepage)
============================================================ */
:root {
  --paper:     #fbf7ed;
  --paper-card:#ffffff;
  --paper-tint:#f4eedd;
  --ink:       #1a2018;
  --ink-soft:  #3f4a3d;
  --ink-faint: #8a8f86;
  --rule:      rgba(26, 32, 24, 0.10);
  --hot-pink:      #4f7a55;
  --hot-pink-deep: #36573a;
  --accent:        #36573a;
  --accent-deep:   #243d27;
  --serif:  'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hand:   'Caveat', 'Comic Sans MS', cursive;
  --mono:   'JetBrains Mono', ui-monospace, monospace;
  --container: 1200px;
  --pad-x: 28px;
  --article-width: 720px;
}

/* Reset + base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

/* ============================================================
   NAV (matches homepage)
============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: color-mix(in oklab, var(--paper) 60%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(26, 18, 36, 0.06); color: var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger + mobile menu */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  margin-left: auto;
}
.nav-burger svg { display: block; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  background: color-mix(in oklab, var(--paper) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  z-index: 49;
  padding: 8px var(--pad-x) 20px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; font-size: 14.5px; font-weight: 700;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--hot-pink); color: #fff; border-color: var(--hot-pink); }
.btn-primary:hover { background: var(--hot-pink-deep); border-color: var(--hot-pink-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(2px); }

/* ============================================================
   ARTICLE
============================================================ */
.article-hero {
  padding: 56px 0 32px;
  background:
    radial-gradient(ellipse 60% 40% at 10% 10%, #ffe9a8, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, #c7f0d6, transparent 60%),
    var(--paper);
}
.article-hero .container { max-width: var(--article-width); }
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-faint);
  margin-bottom: 22px;
}
.breadcrumbs a {
  color: var(--ink-faint); border-bottom: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--accent); background: transparent; }
.breadcrumbs .sep { color: var(--ink-faint); opacity: 0.5; }
.breadcrumbs .current { color: var(--ink); font-weight: 500; }
.article-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 18px;
}
.article-eyebrow::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
.article-title {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 0 0 18px;
}
.article-title .accent {
  color: var(--accent); font-family: var(--serif);
  font-style: italic; font-weight: 600;
}
.article-deck {
  font-size: 20px; line-height: 1.5; color: var(--ink-soft);
  margin: 0 0 28px; max-width: 60ch;
}
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-faint);
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.article-meta-author {
  display: inline-flex; align-items: center; gap: 10px;
}
.article-meta-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--paper-card);
  box-shadow: 0 0 0 1px var(--rule);
}
.article-meta time { color: var(--ink-faint); }
.article-meta .updated { color: var(--accent); font-weight: 500; }
.article-meta .dot { color: var(--ink-faint); }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-meta .listen-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.article-meta .listen-btn:hover {
  background: var(--paper-tint);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.article-meta .listen-btn.speaking {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.article-meta .listen-btn svg { flex-shrink: 0; }
@media (max-width: 540px) {
  .article-meta .listen-btn { margin-left: 0; margin-top: 4px; }
}

/* Article body */
.article-body {
  padding: 32px 0 64px;
}
.article-body .container { max-width: var(--article-width); }
.article-body h2 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 56px 0 18px;
  scroll-margin-top: 96px;
}
.article-body h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 20px; line-height: 1.3; color: var(--ink);
  margin: 36px 0 12px;
}
.article-body p {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  margin: 0 0 18px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--accent); border-bottom: 1px solid var(--accent);
  font-weight: 500;
}
.article-body a:hover { background: rgba(54, 87, 58, 0.08); }
.article-body ul, .article-body ol {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  padding-left: 22px; margin: 0 0 22px;
}
.article-body li { margin: 0 0 8px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 28px 0; padding: 4px 0 4px 22px;
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--ink);
}
.article-body code {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--paper-tint); padding: 2px 6px;
  border-radius: 4px;
}

/* Scope note (set expectations up front about what the guide covers) */
.scope-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 16px 20px;
  background: var(--paper-tint);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.scope-note .scope-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.scope-note .scope-label {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}

/* TL;DR box */
.tldr {
  margin: 28px 0 36px;
  padding: 28px 32px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.tldr h3 {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { font-size: 16px; line-height: 1.5; color: var(--ink); margin-bottom: 8px; }
.tldr li:last-child { margin-bottom: 0; }

/* Table of contents — inline on mobile, sticky LHS sidebar on desktop */
.toc {
  margin: 0 0 36px;
  padding: 22px 28px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.toc-title {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--ink-faint);
}
.toc li {
  font-size: 15px; line-height: 1.5;
  margin-bottom: 8px;
}
.toc li:last-child { margin-bottom: 0; }
.toc a {
  color: var(--ink-soft);
  border-bottom: none;
  font-weight: 500;
  transition: color 0.15s, font-weight 0.15s;
  display: block;
}
.toc a:hover {
  color: var(--accent);
  background: transparent;
}
.toc a.active {
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 1280px) {
  .toc {
    position: fixed;
    top: 110px;
    left: max(20px, calc((100vw - 720px) / 2 - 252px));
    width: 220px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    margin: 0;
    padding: 18px 0 18px 20px;
    background: transparent;
    border: none;
    border-left: 2px solid var(--rule);
    border-radius: 0;
  }
  .toc-title {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .toc li {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  .toc a {
    padding-left: 12px;
    margin-left: -14px;
    border-left: 2px solid transparent;
    transition: color 0.15s, font-weight 0.15s, border-color 0.15s;
  }
  .toc a.active {
    border-left-color: var(--accent);
  }
}

/* Comparison table */
.compare {
  margin: 32px 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 15px;
  /* Scrolling-shadow cue: edge shadows show only when the table overflows
     and auto-hide when scrolled to that end. Pure CSS, no JS. */
  background:
    linear-gradient(to right, var(--paper-card) 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), var(--paper-card) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(26,32,24,0.16), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(26,32,24,0.16), rgba(0,0,0,0)) 100% 0;
  background-color: var(--paper-card);
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 16px 100%, 16px 100%;
  background-attachment: local, local, scroll, scroll;
}
.compare table { width: 100%; min-width: 540px; border-collapse: collapse; }
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare th {
  background: var(--paper-tint);
  font-weight: 700; color: var(--ink);
  font-size: 13px; letter-spacing: 0.02em;
}
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 22%; }

/* Stat callout (big-number card) */
.stat-callout {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.stat-callout .stat-number {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  flex-shrink: 0;
}
.stat-callout .stat-body {
  flex: 1;
}
.stat-callout .stat-body p {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.stat-callout .stat-body cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
@media (max-width: 540px) {
  .stat-callout { flex-direction: column; gap: 12px; padding: 24px 22px; text-align: left; align-items: flex-start; }
  .stat-callout .stat-number { font-size: 48px; }
}

/* Inline figure (for screenshots) — v4 aesthetic */
.article-figure {
  margin: 40px 0;
}
.article-figure.article-hero-figure {
  margin: 0 0 32px;
}
.article-figure img {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(26, 32, 24, 0.10);
}
.article-figure .figure-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  padding: 32px;
  background:
    radial-gradient(ellipse 65% 55% at 25% 30%, #dfeed6, transparent 70%),
    radial-gradient(ellipse 55% 50% at 80% 70%, #ffe9a8, transparent 70%),
    radial-gradient(ellipse 45% 40% at 50% 50%, #c7f0d6, transparent 70%),
    var(--paper);
  font-family: var(--hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-deep);
  text-align: center;
  line-height: 1.2;
  position: relative;
}
.article-figure .figure-placeholder svg {
  display: block;
  margin-top: 14px;
  color: var(--accent-deep);
}
.article-figure figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* Buyer-journey impact diagram */
.buyer-journey {
  margin: 36px 0;
  padding: 24px 26px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.buyer-journey > h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 20px;
  text-align: center;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.journey-stage {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 14px 10px 16px;
  border-radius: 8px;
  text-align: center;
}
.stage-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.journey-stage h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 6px 0 12px;
  line-height: 1.2;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.impact-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.impact-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--impact);
  background: var(--accent);
  border-radius: 3px;
}
.impact-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 880px) {
  .buyer-journey { padding: 18px 16px; }
  .journey-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .journey-stage {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
    padding: 14px 16px;
    text-align: left;
  }
  .journey-stage .stage-num {
    grid-row: 1;
    grid-column: 1;
    font-size: 12px;
    align-self: center;
  }
  .journey-stage h5 {
    grid-row: 1;
    grid-column: 2 / span 2;
    min-height: auto !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3;
    display: block !important;
    text-align: left;
    justify-content: flex-start;
  }
  .journey-stage .impact-bar {
    grid-row: 2;
    grid-column: 1 / span 2;
    width: 100%;
    margin-bottom: 0;
  }
  .journey-stage .impact-label {
    grid-row: 2;
    grid-column: 3;
    font-size: 11px;
    text-align: right;
    align-self: center;
    white-space: nowrap;
  }
}

/* Framework grid (2x2 visual for the 4 structural elements) */
.framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.framework-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 24px 22px;
}
.framework-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.framework-card h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 8px 0 10px;
}
.framework-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* Pull quote / citation-magnet block */
.pull-quote {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--paper-tint);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 22px; line-height: 1.4;
  color: var(--ink); font-style: italic;
}

/* FAQ */
.faq { margin: 32px 0; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  font-family: var(--sans); font-weight: 700;
  font-size: 19px; color: var(--ink); margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.faq-a { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* In-article CTA — inline on mobile, sticky RHS sidebar on desktop */
.article-cta {
  position: relative;
  margin: 48px 0 0;
  padding: 32px 28px 28px;
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26, 32, 24, 0.06);
  text-align: left;
}
.article-cta .cta-note {
  display: block;
  font-family: var(--hand);
  font-size: 26px; font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
  line-height: 1;
  transform: rotate(-3deg);
  transform-origin: left bottom;
  width: fit-content;
}
.article-cta .cta-chat-mock {
  margin: 12px 0 18px;
  padding: 12px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.article-cta a.chat-mock-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-bottom: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-cta a.chat-mock-link:hover .cta-chat-mock {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 32, 24, 0.08);
  border-color: var(--accent);
}

/* Inline early-page CTA banner (used above the scroll cliff in long posts) */
.inline-cta {
  margin: 28px 0;
  padding: 16px 22px;
  background: var(--paper-tint);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.inline-cta p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.inline-cta a {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.inline-cta a:hover {
  background: rgba(54, 87, 58, 0.08);
}
.cta-chat-mock .chat-mock-header {
  display: flex;
  gap: 5px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.cta-chat-mock .chat-mock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.45;
}
.cta-chat-mock .chat-bubble {
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 11px;
  border-radius: 12px;
  max-width: 85%;
  margin-bottom: 6px;
  font-family: var(--sans);
}
.cta-chat-mock .chat-bubble-user {
  background: var(--accent);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  text-align: left;
  width: fit-content;
}
.cta-chat-mock .chat-bubble-ai {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
  width: fit-content;
  margin-right: auto;
  margin-bottom: 0;
}
.cta-chat-mock .chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 14px;
}
.cta-chat-mock .chat-typing span {
  width: 5px; height: 5px;
  background: var(--ink-faint);
  border-radius: 50%;
  display: inline-block;
  animation: chat-bounce 1.4s infinite ease-in-out;
}
.cta-chat-mock .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.cta-chat-mock .chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.article-cta h3 {
  font-family: var(--sans); font-weight: 800;
  font-size: 22px; line-height: 1.2;
  color: var(--ink); margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.article-cta p {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.article-cta .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.article-cta .btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}
.article-cta .arr { transition: transform 0.2s; }
.article-cta .btn:hover .arr { transform: translateX(3px); }

@media (min-width: 1280px) {
  .article-cta {
    position: fixed;
    top: 110px;
    right: max(20px, calc((100vw - 720px) / 2 - 252px));
    width: 220px;
    margin: 0;
    padding: 22px 20px 20px;
  }
  .article-cta h3 {
    font-size: 17px;
  }
  .article-cta p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .article-cta .btn {
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  .article-cta .cta-note {
    font-size: 22px;
    top: -12px; right: 14px;
  }
  .toc, .article-cta {
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .toc.fade-out, .article-cta.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Author byline at end */
.author-card {
  margin: 48px 0 0;
  padding: 24px 28px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-card img {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
}
.author-card h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.author-card p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ============================================================
   FOOTER (matches homepage)
============================================================ */
footer {
  background: var(--paper-tint);
  padding: 64px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 13.5px; line-height: 1.6;
  margin-top: 14px; color: var(--ink-soft); max-width: 32ch;
}
.footer-col h5 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--ink-soft); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-faint);
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: block; }
  .article-title { font-size: 32px; }
  .article-deck { font-size: 18px; }
  .article-body h2 { font-size: 24px; margin: 40px 0 14px; }
  .article-body p, .article-body li { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .author-card { flex-direction: column; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 10px 12px; }
}

/* Skeleton-state markers (REMOVE once prose is in) */
.GEMMA-WRITE {
  display: block;
  background: #fff7d6;
  border-left: 4px solid #f59e0b;
  padding: 14px 18px;
  margin: 14px 0;
  font-family: var(--mono);
  font-size: 13px; line-height: 1.5;
  color: #78350f;
  border-radius: 4px;
}
.GEMMA-WRITE::before {
  content: "✏️ WRITE: ";
  font-weight: 700;
}

/* ── Click-to-zoom figures (added 2026-05-30: Clarity showed dead clicks on figures) ── */
.article-figure img { cursor: zoom-in; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(26,32,24,0.88); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px; cursor: zoom-out; opacity: 0; transition: opacity 0.15s ease; }
.lightbox-overlay.open { display: flex; opacity: 1; }
.lightbox-overlay img { max-width: 95vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.lightbox-close { position: fixed; top: 16px; right: 24px; width: 44px; height: 44px; font-size: 30px; color: #fff; background: none; border: none; cursor: pointer; line-height: 1; }
