:root {
  --yellow: #ffd400;
  --yellow-deep: #f5c500;
  --ink: #0a0a0a;
  --paper: #fffaf0;
  --muted: #2a2a2a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--yellow);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
}
.skip:focus { left: 12px; top: 12px; z-index: 999; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.brand-mark { display: inline-flex; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nav-cta {
  background: var(--ink);
  color: var(--yellow) !important;
  padding: 10px 14px;
  border-radius: 999px;
}
.nav-cta:hover { text-decoration: none !important; background: #222; }

/* HERO */
.hero { padding: 56px 0 80px; }
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin: 0 0 18px;
  border-top: 2px solid var(--ink);
  padding-top: 10px;
  display: inline-block;
  padding-right: 80px;
}
.hero h1 {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 8px 0 28px;
}
.lede {
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  max-width: 520px;
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 22px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-size: 14px;
}
.btn-primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--yellow); }
.btn-xl { font-size: 18px; padding: 22px 32px; }
.byline { font-size: 14px; }

/* BOOK */
.hero-book { display: flex; justify-content: center; }
.book-cover {
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.book-cover:hover { transform: rotate(0deg) scale(1.02); }
.cover-top {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 6px;
  width: 100%;
  margin: 0 0 14px;
}
.cover-face { width: 38%; margin: 4px 0 14px; }
.cover-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 0.86;
  margin: 0;
  letter-spacing: -0.01em;
}
.cover-sub {
  font-style: italic;
  font-size: 11px;
  margin: 14px 0 0;
  max-width: 80%;
}
.cover-author {
  margin-top: auto;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 13px;
  border-top: 1.5px solid var(--ink);
  padding-top: 8px;
  width: 70%;
}

/* MARQUEE STRIP */
.strip {
  background: var(--ink);
  color: var(--yellow);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: 18px 0;
}
.strip-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  animation: scroll 28s linear infinite;
}
.strip-track span { flex-shrink: 0; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* INSIDE */
.inside { padding: 96px 0; background: var(--yellow); }
.inside h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  max-width: 900px;
  margin: 0 0 56px;
  letter-spacing: -0.01em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 28px 24px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.num {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: 14px;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.card h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.inside-lede {
  font-size: 18px;
  max-width: 760px;
  margin: -32px 0 56px;
  line-height: 1.55;
}

.parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.part {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 26px 24px;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
}
.part header { margin-bottom: 16px; border-bottom: 2px dashed var(--ink); padding-bottom: 14px; }
.part-tag {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: 11px;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.part h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.part header p { margin: 0; font-size: 14px; color: var(--muted); }
.part ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.part li {
  counter-increment: ch;
  font-size: 15px;
  padding-left: 32px;
  position: relative;
  line-height: 1.4;
}
.part li::before {
  content: counter(ch, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
}

.scorecards {
  margin-top: 56px;
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.scorecards .eyebrow { border-color: var(--yellow); color: var(--yellow); }
.scorecards h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.scorecards p { margin: 0; font-size: 16px; }
.score-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.score-list li {
  border-left: 4px solid var(--yellow);
  padding: 4px 0 4px 16px;
}
.score-list strong {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.score-list span { font-size: 14px; opacity: 0.9; }

@media (max-width: 820px) {
  .scorecards { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .inside-lede { margin-top: -16px; }
}

/* AUTHOR */
.author { padding: 96px 0; background: var(--ink); color: var(--yellow); }
.author .eyebrow { border-color: var(--yellow); }
.author h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 6vw, 76px);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.author p { font-size: 17px; max-width: 540px; }
.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pull {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  border-left: 6px solid var(--yellow);
  padding: 4px 0 4px 22px;
  margin: 0;
}
.pull cite {
  display: block;
  margin-top: 18px;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* BUY */
.buy { padding: 120px 0; text-align: center; background: var(--yellow); }
.buy h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.buy p { font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.buy .fine { font-size: 13px; margin-top: 20px; opacity: 0.7; }

/* FOOT */
.foot {
  background: var(--ink);
  color: var(--yellow);
  padding: 28px 0;
  font-size: 14px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .author-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding: 32px 0 56px; }
  .inside, .author { padding: 72px 0; }
  .buy { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .card, .btn-primary, .book-cover { transition: none; }
}

/* ===================================================================
   BLOG
   =================================================================== */

.blog-main { background: var(--yellow); }

/* Blog hero */
.blog-hero { padding: 64px 0 40px; }
.blog-hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 8px 0 20px;
}
.blog-hero .lede { max-width: 640px; }

/* Breadcrumb */
.crumbs {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { opacity: 0.6; }

/* Post grid (index) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  padding: 24px 0 96px;
}
.post-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.post-card .day {
  display: inline-block;
  align-self: flex-start;
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.post-card h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.post-card p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.post-card .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  border-radius: 4px;
}
.post-card .read {
  margin-top: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

/* Article */
.article { padding: 40px 0 96px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article .day {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  background: var(--ink);
  color: var(--yellow);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.article h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.article .standfirst {
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 14px;
}
.article .meta {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 12px 0;
  margin: 20px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.prose { font-size: 17px; line-height: 1.65; }
.prose h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}
.prose h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose blockquote {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.15;
  border-left: 6px solid var(--ink);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
}

/* Callout / stat blocks */
.callout {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px 24px;
  margin: 30px 0;
}
.callout .label {
  font-family: "Archivo Black", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.dark { background: var(--ink); color: var(--yellow); }
.callout.dark .label { background: var(--yellow); color: var(--ink); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.stat {
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--ink);
  padding: 20px 18px;
  text-align: center;
}
.stat .big {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  display: block;
}
.stat .cap { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px; display: block; }

/* The takeaway box */
.takeaway {
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 28px 26px;
  margin: 40px 0;
}
.takeaway h2 { color: var(--yellow); margin: 0 0 14px; }
.takeaway ul { margin: 0; padding-left: 20px; }
.takeaway li { margin-bottom: 8px; font-size: 16px; }

/* FAQ */
.faq { margin: 48px 0; }
.faq h2 { margin-bottom: 18px; }
.faq details {
  border: 3px solid var(--ink);
  background: var(--paper);
  margin-bottom: 12px;
  box-shadow: 6px 6px 0 var(--ink);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Archivo Black", sans-serif;
  font-size: 17px;
  line-height: 1.2;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 2px dashed var(--ink); }
.faq .answer { padding: 16px 20px 20px; font-size: 16px; line-height: 1.6; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Sources */
.sources { margin: 40px 0; font-size: 14px; }
.sources h2 { font-size: 20px; }
.sources ol { padding-left: 22px; }
.sources li { margin-bottom: 8px; line-height: 1.45; }

/* Post nav */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 3px solid var(--ink);
  padding-top: 24px;
  margin-top: 40px;
}
.post-nav a {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

/* CTA band inside article */
.article-cta {
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 32px 28px;
  margin: 48px 0;
  text-align: center;
}
.article-cta h2 { color: var(--yellow); margin: 0 0 12px; }
.article-cta p { margin: 0 0 20px; }

@media (max-width: 820px) {
  .blog-hero { padding: 40px 0 24px; }
  .article { padding: 24px 0 64px; }
}

/* ===================================================================
   VIZ FRAMEWORK : diagrams, charts, animations (brutalist, on-brand)
   Shared by every blog post. Motion is scroll-triggered via viz.js and
   fully disabled under prefers-reduced-motion. Everything stays
   readable with motion off.
   =================================================================== */

/* Scroll reveal. .js is added to <html> before paint so non-JS and
   reduced-motion users always see the final state. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Figure wrapper */
.figure {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 24px 22px 20px;
  margin: 34px 0;
}
.figure.dark { background: var(--ink); color: var(--yellow); }
.figtitle {
  font-family: "Archivo Black", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin: 0 0 16px;
}
.figure.dark .figtitle { background: var(--yellow); color: var(--ink); }
.figcap {
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0 0;
  opacity: 0.85;
}
.figure.dark .figcap { opacity: 0.9; }

/* Animated counters */
.countup { font-variant-numeric: tabular-nums; }

/* ---- Horizontal bar chart ---- */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; font-weight: 700; line-height: 1.2; }
.bar-track {
  position: relative;
  height: 26px;
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.figure.dark .bar-track { background: rgba(255, 255, 255, 0.12); border-color: var(--yellow); }
.bar-fill {
  height: 100%;
  width: var(--w, 0%);
  background: var(--ink);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 7px,
    rgba(255, 255, 255, 0.14) 7px, rgba(255, 255, 255, 0.14) 14px);
}
.bar-fill.alt { background-color: var(--yellow-deep); }
.figure.dark .bar-fill { background-color: var(--yellow); }
.js .bars .bar-fill { width: 0; }
.bars.in-view .bar-fill { width: var(--w, 0%); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
.bar-val { font-family: "Archivo Black", sans-serif; font-size: 15px; min-width: 48px; text-align: right; }

/* ---- Flow / sequence ---- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: stretch; }
.flow-step {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 14px 14px;
}
.figure.dark .flow-step { background: var(--ink); color: var(--yellow); border-color: var(--yellow); box-shadow: 5px 5px 0 var(--yellow); }
.flow-step .step-num {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.figure.dark .flow-step .step-num { background: var(--yellow); color: var(--ink); }
.flow-step h4 { font-family: "Archivo Black", sans-serif; font-size: 15px; margin: 0 0 6px; line-height: 1.1; }
.flow-step p { margin: 0; font-size: 13px; line-height: 1.4; }
.flow-step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
  z-index: 2;
}
.flow-step:last-child::after { content: ""; }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { content: "↓"; right: 50%; top: auto; bottom: -16px; transform: translateX(50%); }
  .flow-step:last-child::after { content: ""; }
}

/* ---- Bullseye (concentric focus target) ---- */
.bullseye { display: grid; place-items: center; padding: 10px 0 4px; }
.bullseye-rings {
  position: relative;
  width: min(320px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--ink);
  display: grid;
  place-items: start center;
  text-align: center;
  transform: scale(0.6);
  opacity: 0;
}
.bullseye.in-view .ring { transform: scale(1); opacity: 1; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease; transition-delay: var(--d, 0s); }
.ring span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 7px;
}
.ring-1 { width: 100%; height: 100%; background: var(--paper); }
.ring-2 { width: 66%; height: 66%; background: var(--yellow); }
.ring-3 {
  width: 33%; height: 33%; background: var(--ink); color: var(--yellow);
  place-items: center; border-color: var(--yellow);
}
.ring-3 strong { font-family: "Archivo Black", sans-serif; font-size: 13px; line-height: 1; }

/* ---- Decision tree ---- */
.tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.tree-node {
  background: var(--ink); color: var(--yellow);
  font-family: "Archivo Black", sans-serif; font-size: 15px;
  border: 3px solid var(--ink); padding: 12px 18px; text-align: center;
}
.tree-stem { width: 3px; height: 22px; background: var(--ink); }
.tree-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.tree-leaf {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 14px 12px; text-align: center;
}
.tree-leaf h4 { font-family: "Archivo Black", sans-serif; font-size: 15px; margin: 0 0 6px; }
.tree-leaf p { margin: 0; font-size: 12.5px; line-height: 1.4; }
.tree-leaf .verdict {
  display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 8px; margin-bottom: 8px;
}
@media (max-width: 640px) { .tree-branches { grid-template-columns: 1fr; } }

/* ---- Gauge (single ratio donut) ---- */
.gauge-wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.gauge {
  --p: 0;
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--paper) 70%, transparent 71% 100%),
    conic-gradient(var(--ink) calc(var(--p) * 1%), rgba(0,0,0,0.1) 0);
  border: 3px solid var(--ink);
  position: relative;
}
.figure.dark .gauge { background:
    radial-gradient(closest-side, var(--ink) 70%, transparent 71% 100%),
    conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255,255,255,0.12) 0);
  border-color: var(--yellow); }
.gauge.in-view { transition: --p 1.1s ease; }
.gauge .gauge-num { font-family: "Archivo Black", sans-serif; font-size: 30px; line-height: 1; }
.gauge .gauge-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* ===================================================================
   BUSINESS MODEL CANVAS : interactive, animated nine-box grid
   =================================================================== */
.bmc {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: minmax(96px, auto);
  gap: 8px;
}
.bmc-cell {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 12px 12px 10px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, box-shadow 0.12s ease;
  transition-delay: var(--d, 0s);
}
.js .bmc-cell:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bmc.in-view .bmc-cell { opacity: 1; transform: none; }
.bmc-cell:hover { box-shadow: 6px 6px 0 var(--ink); z-index: 3; }
.bmc-cell .bmc-ico { font-size: 18px; line-height: 1; }
.bmc-cell .bmc-h {
  font-family: "Archivo Black", sans-serif;
  font-size: 12.5px;
  line-height: 1.1;
  margin: 8px 0 4px;
  letter-spacing: -0.01em;
}
.bmc-cell .bmc-q { font-size: 11.5px; line-height: 1.35; color: var(--muted); margin: 0; }
.bmc-cell .bmc-more {
  font-size: 11.5px; line-height: 1.4; margin: 8px 0 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}
.bmc-cell.open { background: var(--yellow); }
.bmc-cell.open .bmc-more { max-height: 260px; opacity: 1; margin-top: 10px; }
.bmc-cell .bmc-n {
  position: absolute; top: 8px; right: 8px;
  font-family: "Archivo Black", sans-serif; font-size: 10px;
  background: var(--ink); color: var(--yellow);
  border-radius: 999px; padding: 1px 7px;
}
.bmc-hint { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 0; opacity: 0.7; }
/* Standard BMC layout: 5 top columns over 2 rows, bottom split in two */
.bmc-kp { grid-column: 1 / 3;  grid-row: 1 / 3; }
.bmc-ka { grid-column: 3 / 5;  grid-row: 1 / 2; }
.bmc-kr { grid-column: 3 / 5;  grid-row: 2 / 3; }
.bmc-vp { grid-column: 5 / 7;  grid-row: 1 / 3; background: #fff4c2; }
.bmc-cr { grid-column: 7 / 9;  grid-row: 1 / 2; }
.bmc-ch { grid-column: 7 / 9;  grid-row: 2 / 3; }
.bmc-cs { grid-column: 9 / 11; grid-row: 1 / 3; }
.bmc-co { grid-column: 1 / 6;  grid-row: 3 / 4; }
.bmc-rv { grid-column: 6 / 11; grid-row: 3 / 4; }
.bmc-vp.open, .bmc-cell.open { background: var(--yellow); }
@media (max-width: 720px) {
  .bmc { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bmc-cell { grid-column: auto !important; grid-row: auto !important; }
  .bmc-vp, .bmc-co, .bmc-rv { grid-column: 1 / 3 !important; }
}

/* ---- Animated line chart (SVG stroke draw) ---- */
.linechart { width: 100%; height: auto; display: block; }
.linechart .grid { stroke: rgba(0,0,0,0.12); stroke-width: 1; }
.linechart .axis { stroke: var(--ink); stroke-width: 2.5; }
.linechart .draw {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
.linechart .line-burn { stroke: var(--ink); }
.linechart .line-rev { stroke: var(--yellow-deep); stroke-width: 5; }
.figure.reveal.in-view .linechart .draw { animation: draw 1.6s ease forwards; }
.figure.reveal.in-view .linechart .dot,
.figure.reveal.in-view .linechart .lbl { animation: popIn 0.4s ease 1.4s both; }
.linechart .dot { opacity: 0; }
.linechart .lbl { opacity: 0; font-size: 11px; font-weight: 800; font-family: "Inter", sans-serif; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .bmc-cell, .ring { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bars .bar-fill, .bars.in-view .bar-fill { transition: none !important; }
  .flow-step, .gauge { transition: none !important; }
  .linechart .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .linechart .dot, .linechart .lbl { opacity: 1 !important; animation: none !important; }
}
