/* ABOUTME: Cognitive-electricity editorial palette + typography mapped into reveal.js. */
/* ABOUTME: Defines kicker, pull-quote, thesis-box, align-grid, hero, and butterfly diagram styles. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Reveal.js base tokens */
  --r-background-color: #0D0C0A;
  --r-main-font: 'Hanken Grotesk', system-ui, sans-serif;
  --r-main-font-size: 32px;
  --r-main-color: #E8E3D9;
  --r-heading-font: 'Instrument Serif', Georgia, serif;
  --r-heading-color: #F5F1E8;
  --r-heading-text-transform: none;
  --r-heading-font-weight: 400;
  --r-heading1-size: 4.2rem;
  --r-heading2-size: 2.8rem;
  --r-heading3-size: 1.6rem;
  --r-link-color: #C9A54E;
  --r-link-color-hover: #E0BB66;
  --r-selection-background-color: rgba(201, 165, 78, .35);
  --r-selection-color: #F5F1E8;

  /* Cognitive-electricity palette */
  --bg: #0D0C0A;
  --bg-2: #15130F;
  --bg-3: #1E1B16;
  --text: #E8E3D9;
  --text-bright: #F5F1E8;
  --text-dim: #8A8276;
  --text-faint: #5C564C;
  --gold: #C9A54E;
  --gold-soft: rgba(201, 165, 78, .15);
  --teal: #4DA8A0;
  --teal-soft: rgba(77, 168, 160, .15);
  --coral: #D4735E;
  --coral-soft: rgba(212, 115, 94, .15);
  --rule: rgba(232, 227, 217, .08);
  --rule-soft: rgba(232, 227, 217, .04);
}

html, body {
  background: #0D0C0A !important;
  color: var(--text);
}

.reveal-viewport, .reveal {
  background: #0D0C0A !important;
}

.reveal {
  font-family: var(--r-main-font);
  color: var(--text);
  letter-spacing: 0;
}

/* Heading reset — serif, calm weight, tight tracking */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--r-heading-font);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  line-height: 1.08;
}
.reveal h1 { font-size: var(--r-heading1-size); }
.reveal h2 { font-size: var(--r-heading2-size); }
.reveal h3 { font-size: var(--r-heading3-size); }

.reveal h1 em, .reveal h2 em, .reveal h3 em {
  font-style: italic;
  color: var(--gold);
}

/* Body / paragraph */
.reveal p { line-height: 1.55; max-width: 26em; }
.reveal .narrow p, .reveal p.narrow { max-width: 22em; }

/* Slide reset — top-aligned, generous left/right gutter */
.reveal .slides {
  text-align: left;
}
.reveal .slides > section,
.reveal .slides > section > section {
  padding: 5rem 6rem 4rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.reveal .slides > section.center,
.reveal .slides > section.center > section {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ---------- KICKER (mono eyebrow) ---------- */
.reveal .kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.reveal .kicker::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: var(--gold);
}

/* ---------- HERO ---------- */
.reveal .hero {
  margin-top: 2rem;
}
.reveal .hero h1 {
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: 2.2rem;
  max-width: 18ch;
}
.reveal .hero .dek {
  font-family: var(--r-heading-font);
  font-style: italic;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--text);
  max-width: 28ch;
  margin-bottom: 3.5rem;
  line-height: 1.35;
}
.reveal .byline {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 2.4rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.reveal .byline strong {
  display: block;
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.66rem;
  margin-bottom: 0.3rem;
}
.reveal .byline span {
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.95rem;
  font-family: var(--r-heading-font);
  font-style: italic;
}

/* ---------- PULL QUOTE (full-screen serif italic) ---------- */
.reveal .pull-quote {
  font-family: var(--r-heading-font);
  font-style: italic;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.18;
  color: var(--text-bright);
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.reveal .pull-quote::before {
  content: "\201C";
  font-size: 1.4em;
  color: var(--gold);
  position: absolute;
  top: -0.6em;
  left: -0.5em;
  line-height: 1;
  opacity: 0.6;
}
.reveal .pull-quote em { color: var(--gold); font-style: italic; }
.reveal .pull-quote cite {
  display: block;
  margin-top: 2.4rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.reveal .pull-quote.wide { max-width: 28ch; }
.reveal .pull-quote.lines {
  text-align: center;
}
.reveal .pull-quote.lines p {
  margin: 0 auto 0.4em;
  max-width: none;
}

/* ---------- INLINE CALLOUT (mono, gold underline) ---------- */
.reveal .callout {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  padding: 0.4em 0;
  border-bottom: 2px solid var(--gold);
  margin-top: 1.8rem;
}

/* ---------- ALIGNMENT GRID (two cells) ---------- */
.reveal .align-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  max-width: 86rem;
  margin: 2rem auto 0;
}
.reveal .align-grid > div {
  background: var(--bg);
  padding: 2.4rem 2.6rem 2.6rem;
  min-height: 30rem;
}
.reveal .align-grid h3 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
}
.reveal .align-grid h3 .role {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.9rem;
}
.reveal .align-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reveal .align-grid li {
  font-family: var(--r-main-font);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--text);
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule-soft);
}
.reveal .align-grid li:first-child { border-top: none; padding-top: 0; }
.reveal .align-grid li.tbd {
  color: var(--text-faint);
  font-style: italic;
}
.reveal .align-grid .dot {
  width: 0.7em;
  height: 0.7em;
}
.reveal .dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
}
.reveal .dot-teal { background: var(--teal); }
.reveal .dot-coral { background: var(--coral); }
.reveal .dot-gold { background: var(--gold); }

/* ---------- THESIS BOX ---------- */
.reveal .thesis-box {
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(201,165,78,.06), rgba(77,168,160,.04));
  padding: 3rem 3.4rem 3.2rem;
  max-width: 42ch;
  margin: 0 auto;
  font-family: var(--r-heading-font);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: var(--text-bright);
}
.reveal .thesis-box p { margin: 0 0 0.8em; max-width: none; }
.reveal .thesis-box p:last-child { margin-bottom: 0; }
.reveal .thesis-box strong {
  font-weight: 400;
  color: var(--gold);
  font-style: italic;
}
.reveal .thesis-marker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
  text-align: center;
}

/* ---------- DIAGRAM HELPERS ---------- */
.reveal .stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.reveal .stage svg { width: 100%; max-width: 60rem; height: auto; }

.reveal svg .node-fill { fill: var(--bg); }
.reveal svg .node-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--text-bright);
}
.reveal svg .node-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  fill: var(--text-dim);
}
.reveal svg .signal-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  letter-spacing: 0.24em;
  fill: var(--gold);
  font-weight: 500;
}
.reveal svg .arc-slow { stroke: var(--teal); fill: none; }
.reveal svg .arc-fast { stroke: var(--coral); fill: none; }
.reveal svg .arc-dalio { stroke: var(--text-faint); fill: none; }
.reveal svg .arc-couple { stroke: var(--gold); fill: none; }
.reveal svg .node-teal { stroke: var(--teal); }
.reveal svg .node-coral { stroke: var(--coral); }
.reveal svg .node-gold { stroke: var(--gold); }
.reveal svg .glow-ring { stroke: var(--gold); fill: none; opacity: 0.35; }
.reveal svg .couple-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--gold);
}

/* Caption rows under diagrams */
.reveal .caption {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-top: 2rem;
}
.reveal .caption .sep { color: var(--text-faint); margin: 0 0.6em; }
.reveal .caption.teal { color: var(--teal); }
.reveal .caption.coral { color: var(--coral); }

.reveal .tag {
  font-family: var(--r-main-font);
  font-size: 1.15rem;
  color: var(--text);
  text-align: center;
  max-width: 40ch;
  margin: 1rem auto 0;
  line-height: 1.5;
}
.reveal .tag em { font-family: var(--r-heading-font); font-style: italic; color: var(--gold); }

.reveal .attribution {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.6rem;
}

.reveal .footnote {
  font-family: var(--r-main-font);
  font-size: 0.92rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  max-width: 50ch;
  margin: 1.4rem auto 0;
  line-height: 1.5;
}

/* Section-3 prose */
.reveal .prose {
  max-width: 42rem;
  font-size: 1.18rem;
  line-height: 1.58;
  color: var(--text);
}
.reveal .prose p { max-width: none; margin-bottom: 1.2em; }
.reveal .prose em { color: var(--text-bright); font-style: italic; }

.reveal hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.2rem 0 1.8rem;
  width: 6rem;
}

/* Slide number — minimal, mono, bottom-right */
.reveal .slide-number {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  background: transparent;
  color: var(--text-faint);
  right: 1.4rem;
  bottom: 1rem;
}

/* ---------- DIPTYCH (portrait + quote, slide 2) ---------- */
.reveal .diptych {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 78rem;
  margin: 2rem auto 0;
}
.reveal .diptych-portrait {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.reveal .diptych-portrait img {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
  border: 1px solid var(--rule);
  display: block;
}
.reveal .portrait-caption {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 22rem;
}
.reveal .portrait-caption .name {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.reveal .portrait-caption .role {
  font-family: var(--r-heading-font);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.reveal .diptych-quote .pull-quote {
  text-align: left;
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.reveal .diptych-quote .pull-quote::before { left: -0.4em; top: -0.4em; }
.reveal .diptych-quote .pull-quote cite { text-align: left; }

/* ---------- SOURCE ARTIFACT (book cover, slide 4) ---------- */
.reveal .source-artifact {
  position: absolute;
  right: 4rem;
  bottom: 3rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  max-width: 24rem;
}
.reveal .source-artifact img {
  width: 6.4rem;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  filter: brightness(0.94);
}
.reveal .source-caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.3rem;
}
.reveal .source-caption .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.reveal .source-caption .title {
  font-family: var(--r-heading-font);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
}
.reveal .source-caption .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ---------- MINDS STRIP (slide 12) ---------- */
.reveal .minds-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.4rem;
  margin: 2.2rem auto 0;
  max-width: 72rem;
  flex-wrap: wrap;
}
.reveal .minds-strip figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.reveal .minds-strip img {
  width: 7.2rem;
  height: 7.2rem;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: block;
}
.reveal .minds-strip figcaption {
  margin-top: 0.7rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.reveal .minds-strip figcaption .ver {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-top: 0.2rem;
  text-transform: none;
}

/* Background sine wave (slide 3) */
.reveal .bg-sine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reveal .bg-sine svg { width: 100%; height: 100%; }
.reveal .bg-sine path { stroke: var(--gold); fill: none; stroke-width: 1.2; }

/* Faded Dalio loop background for the hinge */
.reveal .bg-faded {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.12;
}
.reveal .bg-faded svg { width: 60%; height: 60%; }

/* ============================================================ */
/* Airspace deck — additions                                    */
/* ============================================================ */

:root {
  --periwinkle: #7B8CD4;
  --periwinkle-soft: rgba(123, 140, 212, .15);
}

/* --- the central diagram --- */
.reveal .airspace { width: 100%; max-width: 1180px; margin: 0 auto; }
.reveal .airspace svg { width: 100%; height: auto; overflow: visible; }

.reveal .airspace .craft { fill: var(--text-bright); }
.reveal .airspace .craft-track { stroke: var(--text-faint); stroke-width: 1; fill: none; opacity: .5; }

.reveal .airspace .sector { stroke: var(--gold); stroke-width: 1; fill: none; opacity: .34; stroke-dasharray: 5 7; }
.reveal .airspace .route { stroke: var(--teal); stroke-width: 1.1; fill: none; opacity: .42; }
.reveal .airspace .zone { stroke: var(--coral); fill: var(--coral); fill-opacity: .05; stroke-width: 1; opacity: .5; }
.reveal .airspace .node { fill: var(--teal); opacity: .6; }

.reveal .airspace .lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; fill: var(--text-dim);
}
.reveal .airspace .lbl.gold { fill: var(--gold); }
.reveal .airspace .lbl.teal { fill: var(--teal); }
.reveal .airspace .lbl.coral { fill: var(--coral); }
.reveal .airspace .lbl.peri { fill: var(--periwinkle); }

.reveal .airspace .planned { stroke: var(--text-dim); stroke-width: 1.4; fill: none; stroke-dasharray: 6 6; }
.reveal .airspace .actual { stroke: var(--gold); stroke-width: 1.8; fill: none; }
.reveal .airspace .delta { stroke: var(--coral); stroke-width: 1; stroke-dasharray: 2 4; opacity: .8; }

.reveal .diagram-caption {
  margin-top: 1.6rem; font-family: 'JetBrains Mono', monospace;
  font-size: .46rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}

/* --- 28-field map --- */
.reveal .field-map {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin: 1.6rem 0 0; max-width: 1180px;
}
.reveal .field-map .fm-cell {
  font-family: 'JetBrains Mono', monospace; font-size: .44rem;
  padding: .62rem .7rem; background: var(--bg-2);
  border: 1px solid var(--rule); color: var(--text-dim);
  transition: color .4s ease, border-color .4s ease, background .4s ease;
}
.reveal .field-map.lit-s1 .fm-cell.s1,
.reveal .field-map.lit-s2 .fm-cell.s2,
.reveal .field-map.lit-s3 .fm-cell.s3,
.reveal .field-map.lit-s4 .fm-cell.s4 { background: var(--bg-3); }
.reveal .field-map.lit-s1 .fm-cell.s1 { color: var(--gold); border-color: rgba(201,165,78,.45); }
.reveal .field-map.lit-s2 .fm-cell.s2 { color: var(--periwinkle); border-color: rgba(123,140,212,.45); }
.reveal .field-map.lit-s3 .fm-cell.s3 { color: var(--teal); border-color: rgba(77,168,160,.45); }
.reveal .field-map.lit-s4 .fm-cell.s4 { color: var(--coral); border-color: rgba(212,115,94,.45); }
.reveal .field-map[class*="lit-"] .fm-cell { opacity: .26; }
.reveal .field-map.lit-s1 .fm-cell.s1,
.reveal .field-map.lit-s2 .fm-cell.s2,
.reveal .field-map.lit-s3 .fm-cell.s3,
.reveal .field-map.lit-s4 .fm-cell.s4 { opacity: 1; }
.reveal .field-map.lit-all .fm-cell { opacity: 1; }
.reveal .field-map.lit-all .fm-cell.s1 { color: var(--gold); }
.reveal .field-map.lit-all .fm-cell.s2 { color: var(--periwinkle); }
.reveal .field-map.lit-all .fm-cell.s3 { color: var(--teal); }
.reveal .field-map.lit-all .fm-cell.s4 { color: var(--coral); }

/* --- four-question grid --- */
.reveal .quad { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2.4rem; }
.reveal .quad > div {
  background: var(--bg-2); border: 1px solid var(--rule);
  border-top-width: 3px; padding: 1.5rem 1.6rem 1.7rem;
}
.reveal .quad .qn {
  font-family: 'JetBrains Mono', monospace; font-size: .4rem;
  letter-spacing: .16em; color: var(--text-faint); margin-bottom: .7rem;
}
.reveal .quad .qq { font-family: 'Instrument Serif', serif; font-size: .92rem; line-height: 1.2; color: var(--text-bright); }
.reveal .quad .qs {
  margin-top: .8rem; font-family: 'JetBrains Mono', monospace;
  font-size: .38rem; letter-spacing: .1em; text-transform: uppercase;
}
.reveal .quad .q1 { border-top-color: var(--gold); }        .reveal .quad .q1 .qs { color: var(--gold); }
.reveal .quad .q2 { border-top-color: var(--periwinkle); }  .reveal .quad .q2 .qs { color: var(--periwinkle); }
.reveal .quad .q3 { border-top-color: var(--teal); }        .reveal .quad .q3 .qs { color: var(--teal); }
.reveal .quad .q4 { border-top-color: var(--coral); }       .reveal .quad .q4 .qs { color: var(--coral); }

/* --- code artifact --- */
.reveal pre.artifact {
  display: block; margin: 1.8rem 0 0; max-width: 900px;
  background: var(--bg-2); border: 1px solid var(--rule);
  border-left: 3px solid var(--gold); border-radius: 0;
  padding: 1.4rem 1.6rem; box-shadow: none; font-size: .5rem;
}
.reveal pre.artifact code {
  font-family: 'JetBrains Mono', monospace; line-height: 1.62;
  color: var(--text); white-space: pre; max-height: none;
}
.reveal pre.artifact.peri { border-left-color: var(--periwinkle); }
.reveal pre.artifact.teal { border-left-color: var(--teal); }
.reveal pre.artifact.coral { border-left-color: var(--coral); }
.reveal .artifact .k { color: var(--text-faint); }
.reveal .artifact .hl { color: var(--gold); }
.reveal .artifact .hl-peri { color: var(--periwinkle); }
.reveal .artifact .hl-teal { color: var(--teal); }

/* --- refrain lines --- */
.reveal .refrain { margin-top: 2rem; display: grid; gap: .9rem; }
.reveal .refrain p {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: .88rem; line-height: 1.3; color: var(--text-bright);
  border-left: 2px solid var(--coral); padding-left: 1.2rem; margin: 0;
}

/* --- traffic light --- */
.reveal .signal { display: flex; gap: 1.1rem; align-items: center; justify-content: center; margin: 2rem 0; }
.reveal .signal span { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--rule); }
.reveal .signal span.on-red { background: var(--coral); box-shadow: 0 0 40px rgba(212,115,94,.4); }
.reveal .signal span.on-green { background: var(--teal); box-shadow: 0 0 40px rgba(77,168,160,.4); }

/* --- vertical centring for sparse narrative slides --- */
.reveal .slides section.mid {
  display: flex !important; flex-direction: column; justify-content: center;
  min-height: 820px;
}
.reveal .slides section.mid > .kicker { flex: 0 0 auto; }

/* --- narrative beat: large quiet statement --- */
.reveal .beat {
  font-family: 'Instrument Serif', serif; font-size: 1.5rem;
  line-height: 1.26; color: var(--text-bright); max-width: 24ch;
}
.reveal .beat em { color: var(--gold); font-style: italic; }
.reveal .beat.sm { font-size: 1.15rem; max-width: 30ch; }

/* --- craft note: the small line under an artifact --- */
.reveal .craft-note {
  margin-top: 1.6rem; max-width: 72ch;
  font-size: .56rem; line-height: 1.66; color: var(--text-dim);
}
.reveal .craft-note strong { color: var(--text-bright); font-weight: 500; }

/* --- conflict rings (the impossible sky) --- */
.reveal .airspace .conflict {
  fill: none; stroke: var(--coral); stroke-width: 1.5;
  opacity: .85; stroke-dasharray: 3 4;
}
.reveal .airspace .handoff {
  stroke: var(--text-dim); stroke-width: 1.5; opacity: .5; stroke-dasharray: 2 6;
}
.reveal .airspace .wp path { fill: var(--teal); opacity: .8; }

/* --- unwritten labels: the org's implicit airspace --- */
.reveal .airspace .lbl.unwritten {
  fill: var(--text-faint); font-style: italic;
  text-transform: none; letter-spacing: .04em; font-size: 13px;
  font-family: 'Instrument Serif', serif;
}

/* --- design · express · deploy --- */
.reveal .triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2.6rem; }
.reveal .triptych > div {
  background: var(--bg-2); border: 1px solid var(--rule);
  border-top: 3px solid var(--gold); padding: 1.7rem 1.6rem 1.9rem;
}
.reveal .triptych .tv {
  font-family: 'Instrument Serif', serif; font-size: 1.28rem;
  color: var(--gold); line-height: 1; margin-bottom: .9rem;
}
.reveal .triptych p { font-size: .52rem; line-height: 1.6; color: var(--text-dim); margin: 0; }

/* --- two-column contrast --- */
.reveal .versus { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2.4rem; }
.reveal .versus > div { background: var(--bg-2); border: 1px solid var(--rule); padding: 1.7rem 1.7rem 1.9rem; }
.reveal .versus .vh {
  font-family: 'JetBrains Mono', monospace; font-size: .4rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem;
}
.reveal .versus .a { border-top: 3px solid var(--teal); } .reveal .versus .a .vh { color: var(--teal); }
.reveal .versus .b { border-top: 3px solid var(--coral); } .reveal .versus .b .vh { color: var(--coral); }
.reveal .versus p { font-size: .56rem; line-height: 1.58; color: var(--text); margin: 0 0 .7rem; }
.reveal .versus p:last-child { margin-bottom: 0; }

/* --- humans + workers row --- */
.reveal .roster { display: flex; gap: 2px; margin-top: 2.4rem; }
.reveal .roster > div {
  flex: 1; background: var(--bg-2); border: 1px solid var(--rule);
  padding: 1.3rem 1.2rem; text-align: center;
}
.reveal .roster .rk {
  font-family: 'JetBrains Mono', monospace; font-size: .36rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: .6rem;
}
.reveal .roster .rn { font-family: 'JetBrains Mono', monospace; font-size: .46rem; color: var(--text-bright); }
.reveal .roster .human { border-top: 3px solid var(--gold); }
.reveal .roster .worker { border-top: 3px solid var(--periwinkle); }

/* ============================================================ */
/* System view — layered strata                                 */
/* ============================================================ */

.reveal .strata { display: grid; gap: 3px; margin-top: 1.5rem; }

/* the actors band: activity sits ON TOP of the system */
.reveal .actors-band {
  display: flex; align-items: center; gap: 2.6rem;
  padding: 1.25rem 1.7rem; background: var(--bg-2);
  border: 1px solid var(--rule); border-left: 4px solid var(--text-faint);
}
.reveal .actors-band .ab-label {
  font-family: 'JetBrains Mono', monospace; font-size: .42rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
  min-width: 8.5rem;
}
.reveal .actors-band .ab-craft { display: flex; gap: 2.1rem; align-items: center; }
.reveal .actors-band svg { width: 26px; height: 26px; }
.reveal .actors-band .craft { fill: var(--text-bright); }

/* one system layer */
.reveal .stratum {
  display: grid; grid-template-columns: 9rem 23rem 1fr;
  align-items: baseline; gap: 1.8rem;
  padding: 1.32rem 1.7rem; background: var(--bg-2);
  border: 1px solid var(--rule); border-left: 4px solid var(--rule);
  transition: border-color .45s ease, background .45s ease;
}
.reveal .stratum .sn {
  font-family: 'JetBrains Mono', monospace; font-size: .42rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
}
.reveal .stratum .sv {
  font-family: 'Instrument Serif', serif; font-size: .96rem;
  line-height: 1.1; color: var(--text-bright);
}
.reveal .stratum .sg { font-size: .64rem; line-height: 1.5; color: var(--text-dim); }

/* unwritten variant — the org's implicit airspace */
.reveal .stratum.unwritten .sv {
  font-style: italic; color: var(--text-dim);
}

/* ours variant — field names */
.reveal .stratum .sv.field {
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  letter-spacing: .02em;
}

.reveal .stratum.l1 { border-left-color: var(--gold); }        .reveal .stratum.l1 .sn { color: var(--gold); }
.reveal .stratum.l2 { border-left-color: var(--periwinkle); }  .reveal .stratum.l2 .sn { color: var(--periwinkle); }
.reveal .stratum.l3 { border-left-color: var(--periwinkle); }  .reveal .stratum.l3 .sn { color: var(--periwinkle); }
.reveal .stratum.l4 { border-left-color: var(--teal); }        .reveal .stratum.l4 .sn { color: var(--teal); }
.reveal .stratum.l5 { border-left-color: var(--coral); }       .reveal .stratum.l5 .sn { color: var(--coral); }
.reveal .stratum.l6 { border-left-color: var(--coral); }       .reveal .stratum.l6 .sn { color: var(--coral); }

/* the empty-system state */
.reveal .stratum.void {
  border-left-color: var(--rule-strong); background: transparent;
  border-style: dashed;
}
.reveal .stratum.void .sn { color: var(--text-dim); }
.reveal .stratum.void .sv { color: var(--text-faint); font-style: italic; }
.reveal .stratum.void .sg { color: var(--text-faint); font-style: italic; }

/* ---- legibility bumps ---- */
.reveal .field-map .fm-cell { font-size: .54rem; padding: .78rem .85rem; }
.reveal .versus p { font-size: .66rem; line-height: 1.56; }
.reveal .versus .vh { font-size: .44rem; }
.reveal .triptych p { font-size: .6rem; line-height: 1.55; }
.reveal .triptych .tv { font-size: 1.4rem; }
.reveal .craft-note { font-size: .62rem; }
.reveal .quad .qq { font-size: 1.02rem; }

/* --- takeaway: the explicit core message of a slide --- */
.reveal .takeaway {
  margin-top: 1.9rem; padding: .1rem 0 .1rem 1.2rem;
  border-left: 3px solid var(--gold);
  font-family: 'Instrument Serif', serif;
  font-size: .88rem; line-height: 1.34;
  color: var(--text-bright); max-width: 56ch;
}
.reveal .takeaway em { color: var(--gold); font-style: italic; }
.reveal .takeaway.wide { max-width: 74ch; }

/* ============================================================ */
/* LEGIBILITY FLOOR                                             */
/* Nothing readable sits below .58rem. Body copy lives at       */
/* .78–.85rem. Applied last so it wins the cascade.             */
/* ============================================================ */

/* system strata */
.reveal .stratum { padding: 1.14rem 1.7rem; grid-template-columns: 10rem 24rem 1fr; }
.reveal .stratum .sn { font-size: .54rem; }
.reveal .stratum .sv { font-size: 1.06rem; }
.reveal .stratum .sv.field { font-size: .84rem; }
.reveal .stratum .sg { font-size: .78rem; line-height: 1.44; }
.reveal .actors-band { padding: 1.05rem 1.7rem; }
.reveal .actors-band .ab-label { font-size: .54rem; min-width: 10rem; }

/* field map */
.reveal .field-map .fm-cell { font-size: .68rem; padding: .82rem .9rem; }

/* two-column contrast */
.reveal .versus > div { padding: 1.8rem 1.8rem 2rem; }
.reveal .versus .vh { font-size: .54rem; margin-bottom: 1.1rem; }
.reveal .versus p { font-size: .82rem; line-height: 1.5; margin-bottom: .9rem; }

/* design · express · deploy */
.reveal .triptych > div { padding: 1.8rem 1.7rem 2rem; }
.reveal .triptych .tv { font-size: 1.52rem; margin-bottom: 1rem; }
.reveal .triptych p { font-size: .8rem; line-height: 1.46; }

/* four questions */
.reveal .quad > div { padding: 1.6rem 1.7rem 1.8rem; }
.reveal .quad .qn { font-size: .5rem; }
.reveal .quad .qq { font-size: 1.16rem; }
.reveal .quad .qs { font-size: .5rem; }

/* artifacts and prose */
.reveal pre.artifact { padding: 1.5rem 1.7rem; font-size: .74rem; }
.reveal pre.artifact code { line-height: 1.66; }
.reveal .craft-note { font-size: .8rem; line-height: 1.5; max-width: 80ch; }
.reveal .takeaway { font-size: 1rem; line-height: 1.3; }
.reveal .refrain p { font-size: .98rem; }
.reveal .diagram-caption { font-size: .58rem; }
.reveal .tag { font-size: .86rem; line-height: 1.42; }
.reveal .thesis-box p { font-size: .95rem; line-height: 1.44; }

/* ============================================================ */
/* LEGIBILITY FLOOR v2 — projection-distance sizing             */
/* Body copy ~= h2/2.7. Dim greys promoted to --text where they  */
/* carry meaning. Nothing meaningful below .68rem.               */
/* ============================================================ */

.reveal .stratum { padding: 1.02rem 1.7rem; grid-template-columns: 10.5rem 25rem 1fr; }
.reveal .stratum .sn { font-size: .66rem; }
.reveal .stratum .sv { font-size: 1.3rem; }
.reveal .stratum .sv.field { font-size: 1.04rem; }
.reveal .stratum .sg { font-size: 1rem; line-height: 1.34; color: var(--text); }
.reveal .stratum.void .sg,
.reveal .stratum.unwritten .sg { color: var(--text-dim); }
.reveal .actors-band { padding: .95rem 1.7rem; }
.reveal .actors-band .ab-label { font-size: .66rem; min-width: 10.5rem; }
.reveal .actors-band svg { width: 30px; height: 30px; }

.reveal .field-map .fm-cell { font-size: .84rem; padding: .88rem .95rem; }

.reveal .versus > div { padding: 1.9rem 1.9rem 2.1rem; }
.reveal .versus .vh { font-size: .62rem; margin-bottom: 1.2rem; }
.reveal .versus p { font-size: 1.04rem; line-height: 1.42; color: var(--text); margin-bottom: 1rem; }

.reveal .triptych > div { padding: 1.9rem 1.8rem 2.1rem; }
.reveal .triptych .tv { font-size: 1.7rem; }
.reveal .triptych p { font-size: 1rem; line-height: 1.38; color: var(--text); }

.reveal .quad > div { padding: 1.7rem 1.8rem 1.9rem; }
.reveal .quad .qn { font-size: .6rem; }
.reveal .quad .qq { font-size: 1.34rem; }

.reveal pre.artifact { padding: 1.6rem 1.8rem; font-size: .96rem; }
.reveal pre.artifact code { line-height: 1.6; }

.reveal .craft-note { font-size: 1rem; line-height: 1.4; color: var(--text); max-width: 72ch; }
.reveal .craft-note strong { color: var(--text-bright); }
.reveal .takeaway { font-size: 1.2rem; line-height: 1.26; }
.reveal .refrain p { font-size: 1.16rem; }
.reveal .diagram-caption { font-size: .68rem; }
.reveal .tag { font-size: 1.06rem; line-height: 1.36; }
.reveal .thesis-box p { font-size: 1.12rem; line-height: 1.4; }
.reveal .kicker { font-size: .7rem; }

/* label floor */
.reveal .versus .vh { font-size: .68rem; }
.reveal .quad .qn { font-size: .68rem; }

/* --- worked example: flow chain --- */
.reveal .flow { display: flex; align-items: stretch; gap: 0; margin-top: 2.2rem; }
.reveal .flow .step {
  flex: 1; background: var(--bg-2); border: 1px solid var(--rule);
  border-top: 3px solid var(--teal); padding: 1.3rem 1.2rem 1.5rem;
  position: relative;
}
.reveal .flow .step + .step { margin-left: 3px; }
.reveal .flow .step.human { border-top-color: var(--gold); background: var(--bg-3); }
.reveal .flow .sk {
  font-family: 'JetBrains Mono', monospace; font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .7rem;
}
.reveal .flow .step.human .sk { color: var(--gold); }
.reveal .flow .sl { font-family: 'Instrument Serif', serif; font-size: 1.14rem; color: var(--text-bright); line-height: 1.16; }
.reveal .flow .sd { margin-top: .6rem; font-size: .76rem; line-height: 1.36; color: var(--text-dim); }

/* --- roster --- */
.reveal .roster { display: flex; gap: 3px; margin-top: 2.2rem; }
.reveal .roster > div { flex: 1; background: var(--bg-2); border: 1px solid var(--rule); padding: 1.5rem 1.3rem 1.6rem; text-align: left; }
.reveal .roster .rk { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .8rem; }
.reveal .roster .rn { font-family: 'Instrument Serif', serif; font-size: 1.2rem; color: var(--text-bright); line-height: 1.14; }
.reveal .roster .rd { margin-top: .6rem; font-size: .78rem; line-height: 1.36; color: var(--text-dim); }
.reveal .roster .human { border-top: 3px solid var(--gold); }
.reveal .roster .worker { border-top: 3px solid var(--periwinkle); }

/* flow: legibility floor */
.reveal .flow .sk { font-size: .68rem; }
.reveal .flow .sd { font-size: .96rem; line-height: 1.3; color: var(--text); }
.reveal .flow .sl { font-size: 1.2rem; }
.reveal .flow .step { padding: 1.4rem 1.25rem 1.6rem; }

/* roster: legibility floor */
.reveal .roster .rd { font-size: .96rem; line-height: 1.32; color: var(--text); }
.reveal .roster .rk { font-size: .68rem; }
.reveal .roster > div { padding: 1.6rem 1.4rem 1.8rem; }

/* --- failure vocabulary --- */
.reveal .failgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 2.1rem; }
.reveal .failgrid > div { background: var(--bg-2); border: 1px solid var(--rule); border-top: 3px solid var(--coral); padding: 1.5rem 1.6rem 1.7rem; }
.reveal .failgrid .fh { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: .9rem; }
.reveal .failgrid .fn { font-family: 'Instrument Serif', serif; font-size: 2.1rem; color: var(--text-bright); line-height: 1; margin-bottom: .7rem; }
.reveal .failgrid .fl { font-family: 'JetBrains Mono', monospace; font-size: .8rem; line-height: 1.72; color: var(--text); }
.reveal .failgrid p { font-size: .96rem; line-height: 1.36; color: var(--text); margin: 0; }

/* failgrid: argument-led, not count-led */
.reveal .failgrid { grid-template-columns: 1fr 1fr; margin-top: 1.7rem; }
.reveal .failgrid > div { padding: 1.5rem 1.6rem 1.7rem; }
.reveal .failgrid p { font-size: .98rem; line-height: 1.42; }
.reveal .failgrid p strong { color: var(--text-bright); font-weight: 500; }
.reveal .beat.sm { font-size: 1.16rem; max-width: 62ch; line-height: 1.3; color: var(--text); margin-top: 1.5rem; }

/* --- speed trails: capability escalation --- */
.reveal .airspace .trail { stroke: var(--gold); stroke-width: 1.6; fill: none; opacity: .55; }
.reveal .airspace .trail.hot { stroke: var(--coral); opacity: .7; }
.reveal .airspace .craft.fast { fill: var(--gold); }
