/* ============================================================
   PRESENTATION — video-friendly typography, big visuals,
   slide-style sections, unique page layouts.
   ============================================================ */

/* ---- Bigger base for video recording ---- */
:root {
  --fs-base:  1.12rem;
  --fs-md:    1.32rem;
  --fs-lg:    1.7rem;
  --fs-xl:    2.4rem;
  --fs-2xl:   3.2rem;
  --fs-hero:  4.4rem;

  --frame-bg: linear-gradient(135deg,
              color-mix(in srgb, var(--accent-1) 8%,  var(--bg-1)) 0%,
              color-mix(in srgb, var(--accent-2) 8%,  var(--bg-1)) 50%,
              color-mix(in srgb, var(--accent-3) 8%,  var(--bg-1)) 100%);
  --frame-border: 1px solid color-mix(in srgb, var(--accent-2) 35%, var(--border));
}

body { font-size: var(--fs-base); line-height: 1.55; }

/* ---- Prominent SVG frame --- the centerpiece of every chapter ---- */
.svg-frame {
  position: relative;
  background: var(--frame-bg);
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2.4vw, 28px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55);
  margin: var(--space-4) 0 var(--space-6);
  overflow: hidden;
}
.svg-frame::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(600px 240px at 100% 100%, rgba(244,114,182,.14), transparent 60%);
  pointer-events: none;
}
.svg-frame > img,
.svg-frame > object,
.svg-frame > svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.svg-frame .frame-caption {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.svg-frame .frame-caption .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-accent); display: inline-block;
  animation: ping-soft 2s infinite;
}

/* ---- Big page hero (every chapter starts with one) ---- */
.page-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-5) 0 var(--space-3);
}
.page-hero .eyebrow-bar {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
}
.page-hero .eyebrow-bar .pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  font-weight: 800;
}
.page-hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.4rem;
  line-height: 1.04;
}
.page-hero .tagline {
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 60ch;
  margin: 0;
}

/* ---- "Slide" section: full-attention block ---- */
.slide {
  padding: var(--space-6) 0;
  border-top: 1px dashed var(--border);
}
.slide:first-of-type { border-top: none; }
.slide .slide-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.slide h2 { font-size: var(--fs-xl); margin: 0 0 var(--space-3); }

/* ---- KPI / big stat ---- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.kpi .num {
  font-size: 3.2rem; font-weight: 900; line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi .num small { font-size: 1.2rem; -webkit-text-fill-color: var(--text-3); }
.kpi .key { font-weight: 800; color: var(--text-1); margin-top: 0.3rem; }
.kpi .desc { color: var(--text-3); font-size: var(--fs-sm); margin-top: 0.2rem; }

/* ---- Definition card: TERM + emoji-free icon + 1-line def ---- */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); }
.def {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.def .term {
  display: block;
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.def .def-body { color: var(--text-2); margin-top: 0.3rem; }
.def.is-1 { border-left-color: var(--accent-1); }
.def.is-2 { border-left-color: var(--accent-2); }
.def.is-3 { border-left-color: var(--accent-3); }
.def.is-4 { border-left-color: var(--success); }

/* ---- Pillars (used on fundamentals): hex-like 2x3 grid ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}
.pillar .num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #07090f;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.pillar h3 { font-size: var(--fs-md); margin: 0 0 0.3rem; }
.pillar p  { color: var(--text-3); margin: 0; font-size: var(--fs-sm); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---- Timeline (horizontal era strip) ---- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: var(--space-5) 0;
}
.timeline::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 26px; height: 4px;
  background: var(--grad-accent); opacity: .8; border-radius: 2px;
}
.era {
  text-align: center;
  position: relative;
  padding: 0 var(--space-2);
}
.era .dot {
  width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg-0);
  border: 4px solid var(--accent-2);
  margin: 14px auto 14px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.era .year {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.era h4 { margin: 0.3rem 0; font-size: var(--fs-md); }
.era p { color: var(--text-3); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: var(--space-3); }
  .timeline::before { display: none; }
}

/* ---- Triptych (3 columns of equal weight) ---- */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.triptych > * { padding: var(--space-4); border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.triptych h4 { margin-top: 0; }
@media (max-width: 800px) { .triptych { grid-template-columns: 1fr; } }

/* ---- Split-pane (left/right halves) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: stretch; }
.split > * { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); }
.split .pane-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 0.6rem;
}
.split .pane-2 .pane-title { color: var(--accent-3); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---- Glossary: term + dot + one-liner ---- */
.glossary { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.glossary li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-3);
  padding: 0.7rem var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.glossary li .g-term {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-1);
}
.glossary li .g-def { color: var(--text-2); }
@media (max-width: 700px) {
  .glossary li { grid-template-columns: 1fr; }
}

/* ---- Command grid (for cheat sheets) ---- */
.cmd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.cmd-cell {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3);
}
.cmd-cell h4 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.cmd-cell pre.code {
  margin: 0; font-size: 0.92rem;
}
@media (max-width: 800px) { .cmd-grid { grid-template-columns: 1fr; } }

/* ---- Decision tree (numbered choices) ---- */
.decisions { counter-reset: dnum; display: grid; gap: var(--space-2); }
.decision {
  counter-increment: dnum;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
}
.decision::before {
  content: counter(dnum);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
  font-weight: 900; font-size: 1.2rem;
}
.decision .d-title { font-weight: 800; color: var(--text-1); }
.decision .d-body { color: var(--text-3); font-size: var(--fs-sm); }

/* ---- Quadrant (Adopt/Trial/Assess/Hold) ---- */
.quadrant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.quad {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}
.quad .quad-head {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-3);
}
.quad .quad-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.quad.adopt  { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); }
.quad.adopt  .quad-tag { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }
.quad.trial  { border-color: color-mix(in srgb, var(--accent-2) 50%, var(--border)); }
.quad.trial  .quad-tag { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--accent-2); }
.quad.assess { border-color: color-mix(in srgb, var(--accent-3) 50%, var(--border)); }
.quad.assess .quad-tag { background: color-mix(in srgb, var(--accent-3) 22%, transparent); color: var(--accent-3); }
.quad.hold   { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.quad.hold   .quad-tag { background: color-mix(in srgb, var(--danger) 22%, transparent); color: var(--danger); }
.quad ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.quad ul li {
  padding: 0.5rem 0.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.quad ul li strong { color: var(--text-1); }
.quad ul li span { color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 800px) { .quadrant { grid-template-columns: 1fr; } }

/* ---- Flashcards (Q&A) ---- */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.flash {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  perspective: 1000px;
  min-height: 200px;
  cursor: pointer;
}
.flash .flash-inner {
  position: relative;
  width: 100%; height: 100%; min-height: 200px;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}
.flash.is-flipped .flash-inner { transform: rotateY(180deg); }
.flash .flash-side {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: var(--space-4);
  display: flex; flex-direction: column; justify-content: space-between;
}
.flash .flash-back { transform: rotateY(180deg); background: var(--bg-elev); border-radius: inherit; }
.flash .q-no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--accent-1);
}
.flash .q-text {
  font-size: var(--fs-md);
  color: var(--text-1);
  font-weight: 700;
  margin-top: 0.4rem;
}
.flash .flip-hint {
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.flash .flash-back .a-text {
  color: var(--text-2);
  font-size: 0.98rem;
}

/* ---- Big quote / pull-quote ---- */
.pull-quote {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
  border-left: 4px solid var(--accent-2);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pull-quote small {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ---- "vs" comparison ---- */
.vs {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: var(--space-3);
  align-items: stretch;
}
.vs .vs-mark {
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  background: var(--grad-accent);
  color: #07090f;
  border-radius: 50%;
  width: 64px; height: 64px;
  align-self: center; justify-self: center;
}
.vs .panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.vs .panel h3 { margin-top: 0; }
.vs .panel ul { padding-left: 1.1rem; margin: 0; }
@media (max-width: 700px) {
  .vs { grid-template-columns: 1fr; }
  .vs .vs-mark { margin: var(--space-2) auto; }
}

/* ---- Steps (numbered horizontal) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -14px; left: var(--space-3);
  background: var(--grad-accent);
  color: #07090f;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
}
.step h4 { margin: 0.5rem 0 0.3rem; }
.step p { color: var(--text-3); margin: 0; font-size: var(--fs-sm); }

/* ---- Anatomy callouts (labels around a diagram) ---- */
.anatomy {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-4);
  align-items: start;
}
.anatomy .anatomy-list { list-style: none; padding: 0; margin: 0; }
.anatomy .anatomy-list li {
  display: grid; grid-template-columns: 32px 1fr; gap: 0.9rem;
  padding: 0.8rem 0;
  align-items: start;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 60%, transparent);
}
.anatomy .anatomy-list li:last-child { border-bottom: none; }

/* Only the direct-child <b> becomes the number badge — not nested <b> tags. */
.anatomy .anatomy-list li > b {
  background: var(--grad-accent); color: #07090f;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.85rem;
  margin-top: 0.15rem;
}
.anatomy .anatomy-list li > span {
  color: var(--text-2);
  line-height: 1.55;
  font-size: 1rem;
}
.anatomy .anatomy-list li > span b {
  display: inline;
  color: var(--text-1);
  font-weight: 800;
  background: none;
  width: auto; height: auto;
  margin: 0;
  border-radius: 0;
}
@media (max-width: 900px) { .anatomy { grid-template-columns: 1fr; } }

/* ---- Service constellation (cloud services circular layout, but as grid) ---- */
.constellation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}
.svc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}
.svc .svc-name { font-weight: 800; color: var(--text-1); }
.svc .svc-role {
  display: block; margin-top: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.svc .svc-icon {
  width: 40px; height: 40px;
  margin: 0 auto var(--space-2);
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-1) 14%, transparent);
  color: var(--accent-1);
}

/* ---- Quote-divider (between slides) ---- */
.divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  color: var(--text-3);
  margin: var(--space-6) 0;
  padding: 0 var(--space-3);
}
.divider::before, .divider::after {
  content: " — — — ";
  color: var(--border);
  margin: 0 .6rem;
}

/* =============================================================
   TEACHING-STYLE blocks — for deep, student-friendly content.
   ============================================================= */

/* ---- Story / scenario block — narrative opener ---- */
.story {
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--accent-2) 8%, var(--bg-card)) 0%,
              color-mix(in srgb, var(--accent-1) 6%, var(--bg-card)) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-1);
}
/* Works both inside .story and as a standalone tag above any block. */
.story-tag, .story .story-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.25rem 0.7rem;
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.story p { margin: 0.5rem 0; }
.story p:last-child { margin-bottom: 0; }
.story strong { color: var(--accent-1); }

/* ---- Definition list — multiple perspectives, with source ---- */
.def-list { display: grid; gap: var(--space-3); margin: var(--space-3) 0; }
.def-list .quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}
.def-list .quote-card .source {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 0.6rem;
}
.def-list .quote-card .quote {
  color: var(--text-1);
  font-size: 1.04rem;
  line-height: 1.6;
  margin: 0;
}
.def-list .quote-card::before {
  content: "\201C";
  position: absolute;
  top: -10px; right: 14px;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: color-mix(in srgb, var(--accent-2) 30%, transparent);
  line-height: 1;
  pointer-events: none;
}

/* ---- Idea card — title + paragraph + sub-bullets ---- */
.ideas { display: grid; gap: var(--space-3); margin: var(--space-3) 0; }
@media (min-width: 900px) {
  .ideas.cols-2 { grid-template-columns: 1fr 1fr; }
}
.idea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.idea:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-2) 50%, var(--border)); }
.idea .idea-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--accent-1);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.idea h3 {
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.idea > p {
  color: var(--text-2);
  margin: 0 0 0.8rem;
  line-height: 1.6;
  font-size: 1rem;
}
.idea ul.rich, .rich {
  list-style: none;
  padding: 0;
  margin: 0;
}
.idea ul.rich li, ul.rich > li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 60%, transparent);
  color: var(--text-2);
  line-height: 1.55;
}
.idea ul.rich li:last-child, ul.rich > li:last-child { border-bottom: none; }
.idea ul.rich li::before, ul.rich > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.idea ul.rich li b, ul.rich > li b {
  color: var(--text-1);
  font-weight: 800;
  margin-right: 0.35rem;
}

/* ---- "In one line" recap box ---- */
.recap {
  background: color-mix(in srgb, var(--accent-1) 8%, var(--bg-card));
  border: 1px dashed color-mix(in srgb, var(--accent-1) 45%, var(--border));
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
}
.recap .recap-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 0.4rem;
}
.recap p { margin: 0.3rem 0; color: var(--text-1); font-size: 1.06rem; line-height: 1.55; }
.recap p strong { color: var(--accent-1); }

/* ---- Section opener: small lead paragraph under h2 ---- */
.lead {
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0.4rem 0 var(--space-3);
  max-width: 75ch;
}

/* ---- Pitfall list (don't / do pairs) ---- */
.pitfalls { display: grid; gap: var(--space-3); margin: var(--space-3) 0; }
.pitfall {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-3);
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.pitfall .pf-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  text-align: center;
  white-space: nowrap;
}
.pitfall.is-bad .pf-tag {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  color: var(--danger);
}
.pitfall.is-good .pf-tag {
  background: color-mix(in srgb, var(--success) 20%, transparent);
  color: var(--success);
}
.pitfall .pf-body { color: var(--text-2); line-height: 1.55; }
.pitfall .pf-body b { color: var(--text-1); }

/* ---- Animated reveal: cards fade-rise on viewport entry ---- */
@media (prefers-reduced-motion: no-preference) {
  .idea, .def-list .quote-card, .kpi, .pillar, .step, .quad, .def, .flash {
    animation: fade-up 0.5s ease-out both;
  }
  .ideas .idea:nth-child(2), .def-list > *:nth-child(2) { animation-delay: 0.06s; }
  .ideas .idea:nth-child(3), .def-list > *:nth-child(3) { animation-delay: 0.12s; }
  .ideas .idea:nth-child(4), .def-list > *:nth-child(4) { animation-delay: 0.18s; }
  .ideas .idea:nth-child(5)                              { animation-delay: 0.24s; }
  .ideas .idea:nth-child(6)                              { animation-delay: 0.30s; }
}

/* ---- Section h2 with index ---- */
h2.with-index {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
h2.with-index .ix {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--grad-accent);
  color: #07090f;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.3rem;
}
@media (max-width: 700px) {
  h2.with-index { grid-template-columns: 1fr; }
  h2.with-index .ix { width: 44px; height: 44px; font-size: 1.1rem; }
}
