/* ABOUTME: Deck-specific styles for "Analysis is cheap. Agreement isn't.": the persistent data stack canvas, */
/* ABOUTME: the era rail and zoom plates, the question band, and each slide's proof object. */

/* ---------------------------------------------------------------------------
   COLOUR SEMANTICS: a budget of three, each hue meaning one thing everywhere.
     --gold   what this slide introduces: a new component, the requirement met, the loop turning on
     --teal   inside the boundary: exists, built, reachable (dashed teal = partial)
     --coral  the wall: what can't be done, the failure path (dashed coral = still to build)
   Grayscale is out of reach. --violet and --periwinkle are deliberately unused.
   Macomber's legend maps onto this one: his green is our teal, his blue is our gold.
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   HEADING MEASURE: the shared theme caps h2 at 18ch, about 477px on a 1920px
   canvas, which wraps headings with two-thirds of the slide empty. Every slide
   here carries a full-width object beneath its thesis. Breaks come from <br />.
   --------------------------------------------------------------------------- */
.reveal .slides section > h1,
.reveal .slides section > h2 { max-width: 100%; }

.reveal .slides section > h2 { margin-bottom: .42em; }

/* ---------------------------------------------------------------------------
   VERTICAL RHYTHM: the theme pins .ce-slide-landing to the slide floor with
   margin-top: auto while .ce-slide-mid centres everything above it, opening
   holes mid-slide. Here the landing line follows its content.
   --------------------------------------------------------------------------- */
.reveal .slides section > .ce-slide-landing,
.reveal .slides section > .edge-key {
  margin-top: 2.4rem !important;
  padding-bottom: 0;
}

/* Ambient attribution, top-right on every slide that quotes or redraws the post. */
.reveal section > .cite-strip {
  position: absolute; top: 0; right: 0;
  font: 500 15px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); text-align: right;
}
.reveal section > .cite-strip b { color: var(--text-dim); font-weight: 500; }

/* =========================================================================
   THE CANVAS
   One figure, seven slides. Each canvas slide opens on the previous slide's
   final state; every change is a Reveal `custom` fragment on the element
   itself. CSS reads the element's before-state (data-s, --x) until Reveal adds
   .visible, then its after-state (data-to, --x2). Nothing re-enters.
   ========================================================================= */
.reveal .cv { display: flex; gap: 48px; width: 1744px; margin-top: 10px; }
.reveal .cv-fig { position: relative; flex: none; width: 1496px; height: 480px; }
.reveal .cv-fig > * { position: absolute; }

.reveal .cv-head {
  top: 0; text-align: center; font: 500 13px/1 var(--mono); font-style: normal;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
}

/* --- boxes --- */
.reveal .cv-n {
  --cv-bd: rgba(232, 227, 217, .14); --cv-fill: var(--bg-2); --cv-ink: #756e63; --cv-sub: var(--text-faint); --cv-dash: solid;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  box-sizing: border-box; z-index: 2;
  border: 1.5px var(--cv-dash) var(--cv-bd); border-radius: 5px; background: var(--cv-fill);
  transition: left .75s cubic-bezier(.2, .7, .2, 1), top .75s cubic-bezier(.2, .7, .2, 1),
    width .75s cubic-bezier(.2, .7, .2, 1), height .75s cubic-bezier(.2, .7, .2, 1),
    border-color .5s ease, background-color .5s ease, border-width .5s ease, border-radius .5s ease, opacity .5s ease;
}
.reveal .cv-n.visible { left: var(--x2, var(--x)); top: var(--y2, var(--y)); width: var(--w2, var(--w)); height: var(--h2, var(--h)); }

.reveal .cv-n[data-s="role"]:not(.visible), .reveal .cv-n.visible[data-to="role"] {
  --cv-bd: rgba(232, 227, 217, .22); --cv-fill: var(--bg); --cv-dash: dashed;
}
.reveal .cv-n[data-s="have"]:not(.visible), .reveal .cv-n.visible[data-to="have"] {
  --cv-bd: var(--teal); --cv-fill: color-mix(in oklab, var(--teal) 9%, var(--bg-2)); --cv-ink: var(--text-bright); --cv-sub: var(--text-dim);
}
.reveal .cv-n[data-s="new"]:not(.visible), .reveal .cv-n.visible[data-to="new"] {
  --cv-bd: var(--gold); --cv-fill: color-mix(in oklab, var(--gold) 15%, var(--bg-2)); --cv-ink: var(--gold); --cv-sub: var(--text);
}
.reveal .cv-n[data-s="wip"]:not(.visible), .reveal .cv-n.visible[data-to="wip"] {
  --cv-bd: var(--teal); --cv-fill: var(--bg-2); --cv-ink: var(--text-bright); --cv-sub: var(--text-dim); --cv-dash: dashed;
}
.reveal .cv-n[data-s="todo"]:not(.visible), .reveal .cv-n.visible[data-to="todo"] {
  --cv-bd: var(--coral); --cv-fill: var(--bg); --cv-ink: var(--text); --cv-sub: var(--coral); --cv-dash: dashed;
}
.reveal .cv-n[data-s="hide"]:not(.visible), .reveal .cv-n.visible[data-to="hide"] { opacity: 0; }

/* storage and compute drawn as one machine: the halves lose their shared edge */
.reveal .cv-n[data-f="top"]:not(.visible), .reveal .cv-n.visible[data-f2="top"] {
  border-bottom-width: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.reveal .cv-n[data-f="bottom"]:not(.visible), .reveal .cv-n.visible[data-f2="bottom"] {
  border-top-width: 0; border-top-left-radius: 0; border-top-right-radius: 0;
}
/* an outline holding cards (artifacts and roles, at the close) */
.reveal .cv-n[data-o]:not(.visible), .reveal .cv-n.visible[data-o2] { --cv-fill: var(--bg); }

.reveal .cv-lbl {
  position: absolute; inset: 0; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 10px 14px; overflow: hidden;
}
.reveal .cv-lbl.fragment { transition: opacity .45s ease; }
.reveal .cv-lbl b { font: 600 21px/1.14 var(--sans); color: var(--cv-ink); transition: color .5s ease; }
.reveal .cv-lbl span { font: 400 17px/1.24 var(--sans); color: var(--cv-sub); transition: color .5s ease; }
.reveal .cv-lbl.is-role b { font: italic 400 25px/1.12 var(--serif); color: var(--text-dim); }
.reveal .cv-lbl.is-ftop { justify-content: flex-end; padding-bottom: 6px; }
.reveal .cv-lbl.is-fbottom { justify-content: flex-start; padding-top: 0; }
.reveal .cv-lbl.is-outline { justify-content: flex-start; padding-top: 12px; }
.reveal .cv-lbl.is-outline b { font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.reveal .cv-src .cv-lbl { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; }
.reveal .cv-src .cv-lbl b { font-size: 19px; white-space: nowrap; }
.reveal .cv-src .cv-lbl span { font-size: 14px; text-align: right; line-height: 1.15; white-space: nowrap; }
.reveal .cv-card .cv-lbl { padding: 8px 12px; gap: 3px; }
.reveal .cv-card .cv-lbl b { font-size: 19px; }
.reveal .cv-card .cv-lbl span { font-size: 15px; }

/* --- the boundary: what you can actually query --- */
.reveal .cv-bound {
  left: 12px; top: 56px; width: 204px; height: var(--h); box-sizing: border-box; z-index: 1;
  border: 1.5px dashed rgba(232, 227, 217, .6); border-radius: 9px;
  transition: height .75s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}
.reveal .cv-bound.visible { height: var(--h2); }
.reveal .cv-bound[data-s="hide"]:not(.visible), .reveal .cv-bound.visible[data-to="hide"] { opacity: 0; }
.reveal .cv-bound i {
  position: absolute; left: 10px; top: -7px; padding: 0 6px; background: var(--bg); font: 500 12px/1 var(--mono); font-style: normal;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}

/* --- edges: grayscale, orthogonal, borders only --- */
.reveal .cv-e { background: rgba(232, 227, 217, .26); z-index: 1; }
.reveal .cv-e.h { height: 1.5px; }
.reveal .cv-e.v { width: 1.5px; }
.reveal .cv-a { width: 0; height: 0; z-index: 1; }
.reveal .cv-a.r { transform: translate(-9px, -5px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid rgba(232, 227, 217, .42); }

/* --- the two loops and the close's role cycle --- */
.reveal .cv-loop {
  --lc: var(--gold); --ls: solid;
  left: 0; top: 0; width: 1496px; height: 480px; pointer-events: none; z-index: 1;
  transition: opacity .55s ease;
}
.reveal .cv-loop .seg { position: absolute; border: 0 var(--ls) var(--lc); transition: border-color .5s ease; }
.reveal .cv-loop .seg.h { border-top-width: 2px; }
.reveal .cv-loop .seg.v { border-left-width: 2px; }
.reveal .cv-loop .tip { position: absolute; width: 0; height: 0; transition: border-color .5s ease; }
.reveal .cv-loop .tip.d { transform: translate(-6px, -10px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--lc); }
.reveal .cv-loop .tip.r { transform: translate(-10px, -6px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--lc); }
.reveal .cv-loop .tip.l { transform: translate(0, -6px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 10px solid var(--lc); }
.reveal .cv-loop b {
  position: absolute; transform: translate(-50%, -50%); padding: 0 12px; background: var(--bg);
  font: 500 14px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lc); white-space: nowrap;
  transition: color .5s ease;
}
.reveal .cv-loop[data-s="hide"]:not(.visible), .reveal .cv-loop.visible[data-to="hide"] { opacity: 0; }
.reveal .cv-loop[data-s="have"]:not(.visible), .reveal .cv-loop.visible[data-to="have"] { --lc: var(--teal); }
.reveal .cv-loop[data-s="wip"]:not(.visible), .reveal .cv-loop.visible[data-to="wip"] { --lc: var(--teal); --ls: dashed; }
.reveal .cv-loop[data-s="todo"]:not(.visible), .reveal .cv-loop.visible[data-to="todo"] { --lc: var(--coral); --ls: dashed; }
.reveal .cv-loop[data-id="cycle"] { z-index: 3; }

/* --- tags: coral walls, gold requirement checks --- */
.reveal .cv-tag {
  left: var(--r); top: var(--t); z-index: 4; transform: translateX(-100%);
  padding: 5px 9px 4px; border-radius: 2px;
  font: 600 13px/1 var(--mono); letter-spacing: .12em; white-space: nowrap;
  transition: opacity .45s ease, transform .45s ease;
}
.reveal .cv-tag.is-center { transform: translate(-50%, -50%); }
.reveal .cv-tag.is-wall { color: var(--coral); background: var(--bg); border: 1px solid var(--coral); }
.reveal .cv-tag.is-check { color: var(--bg); background: var(--gold); border: 1px solid var(--gold); }
.reveal .cv-tag[data-s="hide"]:not(.visible), .reveal .cv-tag.visible[data-to="hide"] { opacity: 0; }

/* --- the era rail: Macomber's four diagrams, the one being redrawn lit --- */
.reveal .cv-rail { flex: none; display: flex; flex-direction: column; gap: 10px; width: 200px; height: 480px; }
.reveal .rail-cell {
  position: relative; flex: none; height: 106px; margin: 0; box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: center; padding: 22px 8px 8px;
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: 3px;
  opacity: .3; transition: opacity .5s ease;
}
.reveal .rail-cell img { display: block; max-width: 182px; max-height: 74px; width: auto; height: auto; border-radius: 2px; }
.reveal .rail-cell figcaption {
  position: absolute; left: 9px; top: 6px; font: 500 12px/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
}
.reveal .rail-cell.is-lit { opacity: 1; border-color: rgba(232, 227, 217, .42); }
.reveal .rail-cell.is-lit figcaption { color: var(--text-bright); }
.reveal .rail-note { margin: 2px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* --- the zoom plate: one advance brings his figure full-slide, the next returns to ours --- */
.reveal section > .plate-zoom {
  position: absolute; inset: 0; z-index: 30; margin: 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 60px; background: var(--bg);
}
.reveal section > .plate-zoom img {
  display: block; width: auto; height: auto; max-width: 1760px; max-height: 920px;
  border: 1px solid var(--rule-strong); border-radius: 3px;
}
.reveal section > .plate-zoom figcaption { margin-top: 14px; text-align: center; font-size: 20px; color: var(--text-dim); }
.reveal section > .plate-zoom figcaption b {
  display: block; margin-bottom: 4px; font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}

/* =========================================================================
   THE QUESTION BAND: the running question, its status, what it can and can't do
   ========================================================================= */
.reveal .qband {
  display: grid; grid-template-columns: 400px 1fr 1fr; gap: 2px; width: 1744px; margin-top: 22px;
  background: var(--rule); border-top: 1px solid var(--rule);
}
.reveal .qband > div { background: var(--bg); padding: 14px 22px 12px; }
.reveal .qband b { display: block; margin-bottom: 7px; font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.reveal .qband p { max-width: none; margin: 0; font-size: 22px; line-height: 1.3; color: var(--text); }
.reveal .qband .qb-q p { font: italic 400 22px/1.24 var(--serif); color: var(--text-dim); }
.reveal .qband .qb-can b { color: var(--teal); }
.reveal .qband .qb-cant b { color: var(--coral); }
.reveal .qb-pill {
  display: inline-block; margin-bottom: 8px; padding: 5px 10px 4px; border: 1px solid var(--rule-strong); border-radius: 2px;
  font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-bright);
}
.reveal .qb-pill.is-blocked { border-color: var(--coral); color: var(--coral); }
.reveal .canvas-slide > .ce-slide-landing { margin-top: 1.1rem !important; }

/* =========================================================================
   QUOTED EVIDENCE: plates are framed and captioned, never bled into the ground.
   Macomber's diagrams are his; saying "this is his figure" beats redrawing it.
   ========================================================================= */
.reveal .plate { display: block; margin: 0; }
.reveal .plate img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-strong); border-radius: 3px; }
.reveal .plate figcaption { margin-top: 10px; font-size: 18px; line-height: 1.4; color: var(--text-dim); }
.reveal .plate figcaption b {
  display: block; margin-bottom: 4px; font: 500 13px/1.2 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
}

/* the requirement motif: four cells under the kicker, filled as Act 3 checks each one */
.reveal .marks { display: flex; gap: 7px; margin: -12px 0 22px; }
.reveal .marks i { display: block; width: 34px; height: 7px; border-radius: 1px; background: var(--rule-strong); }
.reveal .marks i.fill { transition: background-color .5s ease, box-shadow .5s ease; }
.reveal .marks i.on, .reveal .marks i.fill.visible { background: var(--gold); }
.reveal .marks i.open { background: transparent; box-shadow: inset 0 0 0 1px var(--coral); }
.reveal .marks i.open.fragment:not(.visible) { background: var(--rule-strong); box-shadow: none; }

/* badge keys sit in HTML, outside the figure they explain */
.reveal .edge-key { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.reveal .edge-key div { display: flex; align-items: center; gap: 10px; }
.reveal .edge-key em {
  min-width: 26px; height: 26px; padding: 0 7px; box-sizing: border-box; border-radius: 13px;
  display: grid; place-items: center; font: 500 14px/1 var(--mono); font-style: normal;
  border: 1px solid var(--coral); color: var(--coral);
}
.reveal .edge-key em.is-teal { border-color: var(--teal); color: var(--teal); }
.reveal .edge-key em.is-gold { border-color: var(--gold); color: var(--gold); }
.reveal .edge-key span { font: 500 16px/1.3 var(--mono); letter-spacing: .04em; color: var(--text-dim); }

/* =========================================================================
   OPENING
   ========================================================================= */
.reveal .s-title .title-dek { margin-top: 1.8rem; max-width: 58ch; font: italic 400 37px/1.36 var(--serif); color: var(--text-dim); }
.reveal .s-title .title-byline { display: flex; gap: 4rem; margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); }
.reveal .s-title .title-byline div { display: flex; flex-direction: column; gap: 6px; }
.reveal .s-title .title-byline strong { font: 500 14px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.reveal .s-title .title-byline span { font-size: 23px; color: var(--text); }

/* slide 2: his four figures at one height, widths as they fall */
.reveal .post-strip { display: flex; gap: 28px; align-items: flex-start; width: 1744px; margin-top: 14px; }
.reveal .post-strip .plate { min-width: 0; }

/* slide 3: the 2027 paragraph */
.reveal .quote-block {
  max-width: 1420px; margin-top: 1.4rem; padding-left: 36px; border-left: 2px solid var(--gold);
  font: italic 400 50px/1.24 var(--serif); color: var(--text-bright);
}
.reveal .quote-block cite, .reveal .closing-quote cite {
  display: block; margin-top: 24px; font: 500 15px/1.3 var(--mono); font-style: normal;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim);
}

/* slide 4: the running question and the four beats */
.reveal .qband.is-intro { grid-template-columns: 1fr 1fr; }
.reveal .qband .qb-q p.qb-big { font: italic 400 31px/1.2 var(--serif); color: var(--text-bright); }
.reveal .qb-beats b { color: var(--text-dim); }
.reveal .qb-beats ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: beat; }
.reveal .qb-beats li { counter-increment: beat; font-size: 22px; line-height: 1.22; color: var(--text); }
.reveal .qb-beats li::before {
  content: "0" counter(beat); display: block; margin-bottom: 6px;
  font: 500 13px/1 var(--mono); letter-spacing: .12em; color: var(--gold);
}

/* =========================================================================
   SLIDE 8: THE STAIRCASE OF WALLS
   Each row's walls are knocked down on the row below.
   ========================================================================= */
.reveal .recap { width: 1744px; margin-top: 1.2rem; border-top: 1px solid var(--rule); }
.reveal .recap-head, .reveal .recap-row {
  display: grid; grid-template-columns: 12rem 1fr 1fr; gap: 2.4rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule-soft);
}
.reveal .recap-head { padding: .6rem 0; border-bottom-color: var(--rule); }
.reveal .recap-head span, .reveal .reqs-head span, .reveal .lib-head span, .reveal .era-head span {
  font: 500 14px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
}
.reveal .recap-row b { font: 500 22px/1 var(--mono); letter-spacing: .08em; color: var(--text-bright); }
.reveal .recap-row p { max-width: none; margin: 0; font-size: 31px; line-height: 1.3; }
.reveal .recap-row .is-gone { color: var(--text-faint); text-decoration: line-through; text-decoration-color: rgba(232, 227, 217, .28); }
.reveal .recap-row:nth-child(2) .is-gone { text-decoration: none; }
.reveal .recap-row .is-wall { color: var(--coral); }
.reveal .recap .lit { border-bottom: 2px solid transparent; transition: color .5s ease, border-color .5s ease; }
.reveal .recap .lit.visible { color: var(--gold); border-bottom-color: var(--gold); }

/* =========================================================================
   SLIDE 10: THE FAN-OUT
   One question: why does one question produce five answers? Read left to right.
   Coral is the only hue; the five paths are told apart by badge, not colour.
   ========================================================================= */
.reveal .fo-figure { position: relative; width: 1744px; height: 520px; margin-top: 6px; }
.reveal .fo-figure > * { position: absolute; }
.reveal .fo-lane, .reveal .tf-lane, .reveal .cd-invariant {
  height: 44px; box-sizing: border-box; padding: 14px 20px; border: 1px solid var(--gold); border-radius: 4px;
  background: var(--gold-soft); font: 500 15px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.reveal .fo-q, .reveal .fo-exec { height: 180px; box-sizing: border-box; padding: 18px 20px; background: var(--bg-3); border: 1px solid var(--rule-strong); border-radius: 4px; }
.reveal .fo-q { width: 300px; }
.reveal .fo-exec { width: 244px; border-color: var(--coral); }
.reveal .fo-q b, .reveal .fo-exec b { display: block; margin-bottom: 10px; font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.reveal .fo-q p { margin: 0; font: italic 400 27px/1.22 var(--serif); color: var(--text-bright); }
.reveal .fo-exec p { margin: 0; font: 400 32px/1.16 var(--serif); color: var(--text-bright); }
.reveal .fo-exec em { color: var(--coral); }
.reveal .fo-node {
  left: 380px; width: 600px; height: 72px; box-sizing: border-box; padding: 0 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--rule-strong); border-radius: 4px;
}
.reveal .fo-node b { font: 600 22px/1.1 var(--sans); color: var(--text-bright); }
.reveal .fo-node span { font: 400 18px/1.2 var(--sans); color: var(--text-dim); }
.reveal .fo-seg { background: rgba(232, 227, 217, .3); }
.reveal .fo-seg.h { height: 1.5px; }
.reveal .fo-seg.v { width: 1.5px; }
.reveal .fo-seg.is-coral { background: var(--coral); }
.reveal .fo-seg.h.is-coral { height: 2px; }
.reveal .fo-seg.v.is-coral { width: 2px; }
.reveal .fo-stub { left: 340px; width: 40px; height: 1.5px; background: rgba(232, 227, 217, .3); }
.reveal .fo-path { left: 980px; width: 482px; height: 2px; margin-top: -1px; background: var(--coral); }
.reveal .fo-badge {
  left: 1014px; width: 30px; height: 30px; transform: translateY(-50%); display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--coral); background: var(--bg); color: var(--coral); font: 500 15px/1 var(--mono);
}
.reveal .fo-val {
  left: 1262px; transform: translate(-50%, -50%); padding: 0 14px; background: var(--bg); white-space: nowrap;
  font: 500 40px/1 var(--mono); color: var(--text-bright); font-variant-numeric: tabular-nums;
}
.reveal .fo-val small { margin-left: 10px; font: 400 16px/1 var(--mono); letter-spacing: .08em; color: var(--text-dim); }
.reveal .fo-tip { width: 0; height: 0; transform: translate(-10px, -5px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--coral); }

/* =========================================================================
   SLIDES 11–12: THE TEST AND THE FOUR REQUIREMENTS
   ========================================================================= */
.reveal .test-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; width: 1744px; margin-top: 1rem; align-items: start; }
.reveal .code-plate pre {
  width: auto; margin: 0; padding: 26px 30px; box-shadow: none; font-size: inherit;
  background: var(--bg-2); border: 1px solid var(--rule-strong); border-radius: 4px;
}
.reveal .code-plate code { display: block; max-height: none; white-space: pre; font: 400 23px/1.5 var(--mono); color: var(--text); }
.reveal .test-loop { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.reveal .test-loop li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 29px; line-height: 1.3; color: var(--text); }
.reveal .test-loop li b { font: 500 16px/1.9 var(--mono); color: var(--gold); }

.reveal .reqs { width: 1744px; margin-top: 1rem; border-top: 1px solid var(--rule); }
.reveal .reqs-head, .reveal .reqs-row {
  display: grid; grid-template-columns: 26rem 1fr 24rem; gap: 2.4rem; align-items: baseline;
  padding: 1.3rem 0; border-bottom: 1px solid var(--rule-soft);
}
.reveal .reqs-head { padding: .6rem 0; border-bottom-color: var(--rule); }
.reveal .reqs-row b { font: 400 37px/1.1 var(--serif); color: var(--text-bright); }
.reveal .reqs-row:last-child b { color: var(--gold); }
.reveal .reqs-row p { max-width: none; margin: 0; font-size: 27px; line-height: 1.3; color: var(--text); }
.reveal .reqs-row i { font: italic 400 27px/1.25 var(--serif); color: var(--text-dim); }

/* =========================================================================
   SLIDES 14–15: THE LIBRARY, AND TWO AGENTS
   ========================================================================= */
.reveal .lib { width: 1744px; margin-top: 1rem; border-top: 1px solid var(--rule); }
.reveal .lib-head, .reveal .lib-row {
  display: grid; grid-template-columns: 15rem 22rem 1fr; gap: 2.4rem; align-items: baseline;
  padding: 1.45rem 0; border-bottom: 1px solid var(--rule-soft);
}
.reveal .lib-head { padding: .6rem 0; border-bottom-color: var(--rule); }
.reveal .lib-row b { font: 500 18px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.reveal .lib-row strong { font: 400 42px/1.1 var(--serif); color: var(--teal); }
.reveal .lib-row p { max-width: none; margin: 0; font-size: 29px; line-height: 1.3; color: var(--text); }

.reveal .traces { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; width: 1744px; margin-top: .6rem; }
.reveal .trace-head {
  padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: 500 15px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
}
.reveal .trace ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.reveal .trace li {
  position: relative; counter-increment: step; padding: 10px 12px 10px 2.8rem;
  border-bottom: 1px solid var(--rule-soft); font-size: 25px; line-height: 1.3; color: var(--text);
  transition: color .5s ease, background-color .5s ease;
}
.reveal .trace li::before { content: counter(step); position: absolute; left: 12px; top: 14px; font: 500 14px/1 var(--mono); color: var(--teal); }
.reveal .trace li b { font-weight: 600; transition: color .5s ease; }
.reveal .trace li.diverge.visible { background: var(--coral-soft); color: var(--text-bright); }
.reveal .trace li.diverge.visible::before, .reveal .trace li.diverge.visible b { color: var(--coral); }

.reveal .req-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; width: 1744px; margin-top: 1.4rem; background: var(--rule); }
.reveal .req-check { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 14px 20px; background: var(--bg); }
.reveal .req-check b { grid-row: span 2; font: 500 24px/1 var(--mono); color: var(--gold); }
.reveal .req-check span { font: 500 15px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-bright); }
.reveal .req-check p { grid-column: 2; max-width: none; margin: 4px 0 0; font-size: 20px; line-height: 1.25; color: var(--text-dim); }
.reveal .req-check.is-open { box-shadow: inset 0 -2px 0 var(--coral); }
.reveal .req-check.is-open b, .reveal .req-check.is-open span { color: var(--coral); }

/* slide 13: the status key for our names on the canvas */
.reveal .cv-legend {
  display: flex; align-items: center; gap: 10px; max-width: none; margin: 10px 0 0;
  font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}
.reveal .cv-legend i { display: inline-block; width: 22px; height: 12px; margin-left: 18px; box-sizing: border-box; border-radius: 2px; }
.reveal .cv-legend i:first-child { margin-left: 0; }
.reveal .cv-legend .is-built { border: 1.5px solid var(--teal); }
.reveal .cv-legend .is-partial { border: 1.5px dashed var(--teal); }
.reveal .cv-legend .is-todo { border: 1.5px dashed var(--coral); }
.reveal .cv-legend .is-check { background: var(--gold); }

/* =========================================================================
   SLIDE 17: THE TASK FORCE
   One question: how do three agents end up with one answer? Five columns by role.
   Teal is work moving forward, coral the send-back, gold the write-back.
   ========================================================================= */
.reveal .tf-figure { position: relative; width: 1744px; height: 530px; margin-top: 6px; }
.reveal .tf-figure > * { position: absolute; }
.reveal .tf-node { box-sizing: border-box; padding: 14px 18px; background: var(--bg-3); border: 1px solid var(--rule-strong); border-radius: 4px; }
.reveal .tf-node b { display: block; margin-bottom: 8px; font: 500 14px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.reveal .tf-node p { max-width: none; margin: 0; font-size: 23px; line-height: 1.28; color: var(--text); }
.reveal .tf-node em { color: var(--text-bright); }
.reveal .tf-node.is-human { border-color: rgba(232, 227, 217, .5); }
.reveal .tf-node.is-gold { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 12%, var(--bg-3)); }
.reveal .tf-node.is-gold b { color: var(--gold); }
.reveal .tf-path, .reveal .tf-seg.h { height: 2px; margin-top: -1px; }
.reveal .tf-seg.v { width: 2px; margin-left: -1px; }
.reveal .tf-path.is-teal, .reveal .tf-seg.is-teal { background: var(--teal); }
.reveal .tf-path.is-gold, .reveal .tf-seg.is-gold { background: var(--gold); }
.reveal .tf-path.is-coral, .reveal .tf-seg.h.is-coral { background: repeating-linear-gradient(90deg, var(--coral) 0 9px, transparent 9px 15px); }
.reveal .tf-seg.v.is-coral { background: repeating-linear-gradient(180deg, var(--coral) 0 9px, transparent 9px 15px); }
.reveal .tf-badge {
  width: 30px; height: 30px; transform: translate(-50%, -50%); display: grid; place-items: center;
  border-radius: 50%; border: 1px solid; background: var(--bg); font: 500 15px/1 var(--mono);
}
.reveal .tf-badge.is-teal { color: var(--teal); border-color: var(--teal); }
.reveal .tf-badge.is-gold { color: var(--gold); border-color: var(--gold); }
.reveal .tf-badge.is-coral { color: var(--coral); border-color: var(--coral); }
.reveal .tf-tip { width: 0; height: 0; }
.reveal .tf-tip.u { transform: translateX(-6px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--coral); }
.reveal .tf-tip.d { transform: translate(-6px, -10px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--gold); }
.reveal .tf-note { transform: translateY(-50%); padding-left: 8px; white-space: nowrap; font: 500 15px/1 var(--mono); letter-spacing: .06em; color: var(--coral); }

/* =========================================================================
   CLOSE AND APPENDIX
   ========================================================================= */
.reveal .s-meaning .echo { max-width: 1300px; margin: 0 0 2.6rem; font: italic 400 31px/1.35 var(--serif); color: var(--text-faint); }
.reveal .closing-quote {
  max-width: 1540px; padding-left: 40px; border-left: 2px solid var(--gold);
  font: italic 400 76px/1.1 var(--serif); color: var(--text-bright);
}
.reveal .closing-quote em { color: var(--gold); }

.reveal .ce-asks.three h3 { font-size: 34px; }
.reveal .ce-asks.three p { max-width: none; font-size: 26px; }

.reveal .qa { width: 1744px; margin-top: .8rem; border-top: 1px solid var(--rule); }
.reveal .qa-row { display: grid; grid-template-columns: 30rem 1fr; gap: 2.4rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--rule-soft); }
.reveal .qa-row b { font: 400 34px/1.15 var(--serif); color: var(--text-bright); }
.reveal .qa-row p { max-width: none; margin: 0; font-size: 26px; line-height: 1.35; color: var(--text); }

.reveal .era-ledger { width: 1744px; margin-top: .6rem; border-top: 1px solid var(--rule); }
.reveal .era-head, .reveal .era-row { display: grid; grid-template-columns: 9rem 1fr 1fr; gap: 2rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
.reveal .era-head { padding: .5rem 0; border-bottom-color: var(--rule); }
.reveal .era-head span:nth-child(2) { color: var(--teal); }
.reveal .era-head span:nth-child(3) { color: var(--coral); }
.reveal .era-row b { font: 500 18px/1 var(--mono); letter-spacing: .08em; color: var(--text-bright); }
.reveal .era-row p { max-width: none; margin: 0; font-size: 22px; line-height: 1.3; color: var(--text); }
.reveal .era-row p + p { color: var(--text-dim); }
.reveal .era-row p strong { font-weight: 600; color: var(--text-bright); }
/* the cracks ledger reads without-then-with, so its colours swap and the guarantee reads brightest */
.reveal .era-ledger.is-cracks .era-head, .reveal .era-ledger.is-cracks .era-row { grid-template-columns: 17rem 1fr 1fr; }
.reveal .era-ledger.is-cracks .era-head span:nth-child(2) { color: var(--coral); }
.reveal .era-ledger.is-cracks .era-head span:nth-child(3) { color: var(--teal); }
.reveal .era-ledger.is-cracks .era-row b { font: 400 28px/1.15 var(--serif); letter-spacing: 0; }
.reveal .era-ledger.is-cracks .era-row p { color: var(--text-dim); }
.reveal .era-ledger.is-cracks .era-row p + p { color: var(--text); }

/* =========================================================================
   SLIDE 18: CONSENSUS BY DEFAULT
   One question: how do agents working in parallel end up on one answer without
   having to catch each other's divergence? Time runs left to right; the data
   layer is one committed history along the bottom. Teal is a read of a committed
   version, gold a commit, coral what the layer refuses. The failure paths are
   demoted to the key row beneath, not drawn inline.
   ========================================================================= */
.reveal .cd-figure { position: relative; width: 1744px; height: 450px; margin-top: 6px; }
.reveal .cd-figure > * { position: absolute; }
.reveal .cd-invariant { left: 0; top: 0; width: 1744px; }
.reveal .cd-lane-label { left: 0; width: 236px; transform: translateY(-50%); }
.reveal .cd-lane-label b { display: block; margin-bottom: 6px; font: 500 14px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.reveal .cd-lane-label span { display: block; font-size: 21px; line-height: 1.2; color: var(--text); }
.reveal .cd-lane-label.is-track b { color: var(--gold); }
.reveal .cd-lane { left: 260px; width: 1230px; height: 0; border-top: 1px dashed rgba(232, 227, 217, .24); }
.reveal .cd-track { left: 260px; width: 1190px; height: 3px; margin-top: -1.5px; background: var(--gold); }
.reveal .cd-ver {
  z-index: 2; transform: translate(-50%, -50%); padding: 6px 12px 5px; white-space: nowrap;
  background: var(--bg); border: 1.5px solid var(--gold); border-radius: 14px; font: 600 15px/1 var(--mono); color: var(--gold);
}
.reveal .cd-ver-note { transform: translateX(-50%); white-space: nowrap; font: 500 14px/1.2 var(--mono); letter-spacing: .04em; color: var(--text-dim); }
.reveal .cd-read, .reveal .cd-commit, .reveal .cd-reject { width: 2px; margin-left: -1px; }
.reveal .cd-read { background: var(--teal); }
.reveal .cd-commit { background: var(--gold); }
.reveal .cd-reject { background: repeating-linear-gradient(180deg, var(--coral) 0 7px, transparent 7px 12px); }
.reveal .cd-tip { width: 0; height: 0; }
.reveal .cd-tip.u { transform: translateX(-6px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--teal); }
.reveal .cd-tip.d { transform: translate(-6px, -10px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--gold); }
.reveal .cd-tip.r { transform: translate(-9px, -5px); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid rgba(232, 227, 217, .4); }
.reveal .cd-x { transform: translate(-50%, -50%); font: 600 24px/1 var(--mono); color: var(--coral); }
.reveal .cd-note { transform: translateY(-50%); padding: 2px 6px; white-space: nowrap; background: var(--bg); font: 500 14px/1 var(--mono); letter-spacing: .04em; }
.reveal .cd-note.is-teal { color: var(--teal); }
.reveal .cd-note.is-gold { color: var(--gold); }
.reveal .cd-note.is-coral { color: var(--coral); }
.reveal .cd-note.is-left { transform: translate(-100%, -50%); }
.reveal .cd-badge {
  z-index: 3; width: 30px; height: 30px; transform: translate(-50%, -50%); display: grid; place-items: center;
  border: 1px solid; border-radius: 50%; background: var(--bg); font: 500 15px/1 var(--mono);
}
.reveal .cd-badge.is-gold { color: var(--gold); border-color: var(--gold); }
.reveal .cd-badge.is-coral { color: var(--coral); border-color: var(--coral); }
.reveal .cd-stamp {
  left: 1500px; width: 230px; height: 40px; transform: translateY(-50%); box-sizing: border-box;
  display: flex; align-items: center; padding: 0 14px; white-space: nowrap;
  border: 1px solid var(--teal); border-radius: 3px; background: color-mix(in oklab, var(--teal) 9%, var(--bg-2));
  font: 500 14px/1 var(--mono); color: var(--text-bright);
}
.reveal .cd-bus.h { height: 2px; margin-top: -1px; background: var(--teal); }
.reveal .cd-bus.v { width: 2px; background: var(--teal); }
.reveal .cd-answer {
  left: 1500px; top: 352px; width: 244px; height: 86px; box-sizing: border-box; padding: 12px 16px;
  border: 1px solid var(--gold); border-radius: 4px; background: color-mix(in oklab, var(--gold) 14%, var(--bg-2));
}
.reveal .cd-answer b { display: block; margin-bottom: 6px; font: 400 28px/1 var(--serif); color: var(--gold); }
.reveal .cd-answer span { display: block; font: 500 15px/1.2 var(--mono); color: var(--text-bright); }
.reveal .edge-key .cd-key-head { font: 500 14px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
