/* The deck's look (DESIGN.md §3), after the speaker's aiuj deck (site/assets/css/deck.css): canvas 1600 × 900.
   Zones, identical on every content slide:
     kicker   y = 52        (.kicker: part numeral + part name, a hairline, cues at the right end)
     title    y = 84–190    (h2, Instrument Serif 60 px; a full sentence; optional italic clause)
     body     y = 222–804   (.body: grids, cards, tables, figures)
     sources  y ≈ 812       (.src: data files and references)
     footer   y = 846       (.foot: inserted by build.py)
   Colours only through the tokens of design/tokens.css (copied to assets/tokens.css by build.py):
   --ar ARLoop (indigo), --pn the PreNorm loop (gold), --check checked or re-checked (cypress),
   --err findings and failures (carmine); everything else neutral ink.                                   */

.reveal-viewport { background: var(--paper); }
.reveal { font-family: var(--f-text); color: var(--ink); font-size: 28px; font-weight: 400; }
.reveal .slides { text-align: left; }
.reveal .slides section {
  height: 900px; width: 1600px; padding: 0 !important; box-sizing: border-box;
  line-height: 1.42; letter-spacing: -0.003em; isolation: isolate;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'cv11';
}
.reveal .slides section::before {          /* dotted paper, barely visible, fading towards the bottom left */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--rule-strong) 1.1px, transparent 1.3px);
  background-size: 32px 32px; background-position: 16px 16px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 88% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 55% at 88% 0%, #000 0%, transparent 70%);
}

/* ── type ────────────────────────────────────────────────────────────────── */
.reveal h1, .reveal h2, .reveal h3 { font-family: var(--f-display); font-weight: 400; color: inherit;
  letter-spacing: -0.012em; text-transform: none; margin: 0; text-shadow: none; line-height: 1.06; }
.reveal .kicker {
  position: absolute; top: 52px; left: 96px; right: 96px; margin: 0; height: 24px;
  font-family: var(--f-label); font-size: 16px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); display: flex; gap: 18px; align-items: center; white-space: nowrap;
}
.reveal .kicker b { color: var(--check); font-weight: 700; }
.reveal .kicker .line { flex: 1; height: 1px; background: var(--rule); min-width: 40px; }
.reveal h2 {
  position: absolute; top: 84px; left: 96px; right: 96px;
  font-size: 60px; line-height: 1.04; text-wrap: balance;
}
.reveal h2 em, .reveal h1 em { font-style: italic; color: var(--check); }
.reveal h2 em.ar, .reveal h1 em.ar { color: var(--ar); }
.reveal h2 em.pn, .reveal h1 em.pn { color: var(--pn); }
.reveal h2 em.err, .reveal h1 em.err { color: var(--err); }
.reveal h2 em.ink, .reveal h1 em.ink { color: var(--ink-2); }
.reveal h3 { font-size: 34px; line-height: 1.12; }
.reveal .body {
  position: absolute; top: 222px; left: 96px; right: 96px; bottom: 96px;
  display: flex; flex-direction: column; gap: 24px;
}
.reveal .body > * { flex-shrink: 0; }            /* overflow must show (and be caught), never be squeezed away */
.reveal .body.center { justify-content: center; }
.reveal .body.top-tight { top: 204px; }
.reveal p { margin: 0; }
.reveal .lede { font-size: 31px; line-height: 1.36; color: var(--ink-2); max-width: 1300px; }
.reveal .small, .reveal .small li { font-size: 22px; line-height: 1.4; color: var(--ink-2); }
.reveal .tiny { font-size: 18px; line-height: 1.38; color: var(--ink-3); }
.reveal strong, .reveal b { font-weight: 650; }
.reveal i, .reveal em { font-style: italic; }
.reveal sub, .reveal sup { font-size: .68em; line-height: 0; position: relative; vertical-align: baseline; }
.reveal sup { top: -.5em; }
.reveal sub { bottom: -.22em; }
.reveal a { color: var(--check); text-decoration: none; border-bottom: 1.5px solid rgba(19,112,63,.35); }
.reveal .muted { color: var(--ink-3); }
.reveal ul, .reveal ol { margin: 0; padding: 0; }
.reveal ul.clean { list-style: none; display: grid; gap: 14px; }
.reveal ul.clean > li { position: relative; padding-left: 34px; }
.reveal ul.clean > li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 12px; height: 12px;
  border-radius: 3px; background: var(--ink-3); transform: rotate(45deg) scale(.8); }
.reveal ul.clean.check > li::before { background: var(--check); }
.reveal ul.clean.ar > li::before { background: var(--ar); }
.reveal ul.clean.pn > li::before { background: var(--pn); }
.reveal ul.clean.err > li::before { background: var(--err); }
.reveal ul.clean > li.check::before { background: var(--check); }
.reveal ul.clean > li.err::before { background: var(--err); }
.reveal ul.clean > li.ar::before { background: var(--ar); }
.reveal ul.clean > li.pn::before { background: var(--pn); }
.reveal ul.clean.small { gap: 10px; }
.reveal ul.clean.small > li { padding-left: 28px; }
.reveal ol.steps { list-style: none; counter-reset: st; display: grid; gap: 14px; }
.reveal ol.steps > li { counter-increment: st; position: relative; padding-left: 58px; }
.reveal ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center;
  font-family: var(--f-label); font-size: 18px; color: var(--ink-2); }
.reveal ol.steps.small > li { padding-left: 50px; }
.reveal ol.steps.small > li::before { width: 36px; height: 36px; font-size: 18px; }

/* role words */
.reveal .t-ar { color: var(--ar); font-weight: 600; }
.reveal .t-pn { color: var(--pn); font-weight: 600; }
.reveal .t-check { color: var(--check); font-weight: 600; }
.reveal .t-err { color: var(--err); font-weight: 600; }
.reveal .mono { font-family: var(--f-code); font-size: .88em; letter-spacing: 0; }
.reveal .nowrap { white-space: nowrap; }

/* ── grids, cards, labels, chips ─────────────────────────────────────────── */
.reveal .cols { display: grid; gap: 44px; align-items: start; }
.reveal .cols.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.reveal .cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.reveal .cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.reveal .cols.w64 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.reveal .cols.w46 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.reveal .cols.w73 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.reveal .cols > * { min-width: 0; }
.reveal .cols.mid { align-items: center; }
.reveal .stack { display: flex; flex-direction: column; gap: 18px; }
.reveal .card {
  border: 1px solid var(--rule); border-radius: 18px; padding: 22px 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18));
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -30px rgba(17,28,22,.35);
  position: relative; overflow: hidden;
}
.reveal .card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rule-strong); }
.reveal .card.ar::before { background: var(--ar); }
.reveal .card.pn::before { background: var(--pn); }
.reveal .card.check::before { background: var(--check); }
.reveal .card.err::before { background: var(--err); }
.reveal .card h3 { font-size: 32px; line-height: 1.1; margin: 0 0 8px; }
.reveal .card p, .reveal .card li { font-size: 23px; line-height: 1.4; color: var(--ink-2); }
.reveal .card p + p { margin-top: 8px; }
.reveal .card .label { margin-bottom: 8px; display: block; }
.reveal .card.tight { padding: 16px 22px 18px; }
.reveal .card.tight p, .reveal .card.tight li { font-size: 21px; }
.reveal .label { font-family: var(--f-label); font-size: 18px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); }
.reveal .label.ar { color: var(--ar); } .reveal .label.pn { color: var(--pn); }
.reveal .label.check { color: var(--check); } .reveal .label.err { color: var(--err); }
.reveal .chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 4px; border-radius: 999px;
  font-family: var(--f-label); font-size: 18px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--ink-2); background: rgba(255,255,255,.4); white-space: nowrap;
  line-height: 1.3; vertical-align: middle; }
.reveal .chip.ar { color: var(--ar); border-color: rgba(63,79,196,.4); background: var(--ar-soft); }
.reveal .chip.pn { color: var(--pn); border-color: rgba(168,111,12,.45); background: var(--pn-soft); }
.reveal .chip.check { color: var(--check); border-color: rgba(19,112,63,.4); background: var(--check-soft); }
.reveal .chip.err { color: var(--err); border-color: rgba(180,35,44,.4); background: var(--err-soft); }
.reveal h2 .chip { font-size: 18px; vertical-align: 12px; margin-left: 10px; }
/* a finding about the paper: F1 ... F9 */
.reveal .fid { display: inline-block; font-family: var(--f-label); font-weight: 700; font-size: max(18px, .72em); letter-spacing: .04em;
  color: var(--err); background: var(--err-soft); border: 1px solid rgba(180,35,44,.4); border-radius: 6px;
  padding: 0 7px; margin-right: 8px; line-height: 1.45; vertical-align: .08em; }
/* cues for the speaker, at the right end of the kicker row */
.reveal .kicker .cue { font-size: 16px; letter-spacing: .08em; padding: 2px 11px 3px; border-radius: 999px;
  border: 1px solid var(--rule-strong); color: var(--ink-2); font-weight: 600; }
.reveal .kicker .cue-board { background: var(--night-2); color: var(--moon); border-color: var(--night-2); }
.reveal .kicker .cue-board::before { content: '✎ board · '; color: var(--pn-n); }
.reveal .kicker .cue-live { background: var(--night); color: var(--check-n); border-color: var(--night); }
.reveal .kicker .cue-live::before { content: '▶ live · '; color: var(--moon); }
.reveal .kicker .cue-live .f { color: var(--moon); text-transform: none; letter-spacing: 0; }
.reveal .kicker .cue-opt::before { content: 'optional · '; }
.reveal .kicker .cue-pending { border-style: dashed; }
.reveal .kicker .cue-pending::before { content: 'pending · '; }

/* ── numbers ────────────────────────────────────────────────────────────── */
.reveal .stats { display: grid; gap: 28px; }
.reveal .stats.s2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reveal .stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reveal .stats.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reveal .stat { border-top: 2px solid var(--ink); padding-top: 12px; }
.reveal .stat .num { font-family: var(--f-display); font-size: 88px; line-height: .95; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums; display: block; }
.reveal .stat .num small { font-size: .38em; letter-spacing: 0; margin-left: 8px; color: var(--ink-3); font-family: var(--f-text); }
.reveal .stat .what { font-size: 22px; line-height: 1.32; color: var(--ink-2); display: block; margin-top: 8px; }
.reveal .stat.sm .num { font-size: 64px; }
.reveal .stat.ar { border-color: var(--ar); } .reveal .stat.ar .num { color: var(--ar); }
.reveal .stat.pn { border-color: var(--pn); } .reveal .stat.pn .num { color: var(--pn); }
.reveal .stat.check { border-color: var(--check); } .reveal .stat.check .num { color: var(--check); }
.reveal .stat.err { border-color: var(--err); } .reveal .stat.err .num { color: var(--err); }
.reveal .stat.ink { border-color: var(--ink-3); } .reveal .stat.ink .num { color: var(--ink-2); }

/* ── formulas ───────────────────────────────────────────────────────────── */
.reveal .eq { font-size: 34px; color: var(--ink); }
.reveal .eq.big { font-size: 42px; }
.reveal .eq.sm { font-size: 28px; }
.reveal .eq mjx-container[display="true"] { margin: .3em 0 !important; }
.reveal mjx-container { color: inherit; }
.reveal mjx-container[display="true"] { max-width: 100%; text-align: left !important; }
.reveal mjx-container[display="true"] > svg { max-width: 100%; height: auto; }
.reveal .eqbox { border: 1px solid var(--rule); border-radius: 18px; padding: 16px 30px; background: rgba(255,255,255,.45); }
.reveal .legend { display: grid; gap: 8px; font-size: 22px; color: var(--ink-2); }
.reveal .legend b { font-family: var(--f-display); font-weight: 400; font-size: 1.25em; color: var(--ink); }

/* ── code: a paper panel, JuliaMono; highlighting in weights and greys only (DESIGN §2) ─────── */
.reveal pre { margin: 0; width: 100%; box-shadow: none; font-size: 19px; line-height: 1.5; }
.reveal pre code, .reveal pre code.hljs {
  display: block; font-family: var(--f-code); font-size: 1em; background: #FBF8F1; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 14px; padding: 16px 22px; max-height: none; overflow: hidden;
  line-height: 1.5; font-variant-ligatures: none; tab-size: 4; white-space: pre;
}
.reveal pre.sm { font-size: 18px; }
.reveal pre.out code, .reveal pre.out code.hljs { background: var(--night); color: var(--moon-2); border-color: var(--night); }
.reveal code { font-family: var(--f-code); font-size: .92em; letter-spacing: 0; background: none; padding: 0; }
.reveal .cap code, .reveal .tiny code, .reveal .small code, .reveal table.tbl code { font-size: 1em; }
.reveal .hljs-keyword, .reveal .hljs-built_in, .reveal .hljs-literal { font-weight: 700; color: var(--ink); }
.reveal .hljs-string { color: var(--ink-2); font-style: italic; }
.reveal .hljs-comment { color: var(--ink-3); font-style: italic; }
.reveal .hljs-number, .reveal .hljs-title, .reveal .hljs-params { color: var(--ink); }
.reveal .codecap { font-family: var(--f-label); font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px; }

/* ── tables: hairlines only, tabular numbers, row tints by role ─────────── */
.reveal table.tbl { border-collapse: collapse; width: 100%; font-size: 22px; line-height: 1.3; border: none; margin: 0; }
.reveal table.tbl:not(.words) td:not(:first-child) { font-variant-numeric: tabular-nums; }
.reveal table.tbl th, .reveal table.tbl td { border: none; padding: 9px 14px; text-align: right; vertical-align: baseline; }
.reveal table.tbl th { font-family: var(--f-label); font-size: 18px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--rule-strong); white-space: nowrap;
  vertical-align: bottom; }
.reveal table.tbl th:first-child, .reveal table.tbl td:first-child { text-align: left; }
.reveal table.tbl td { border-bottom: 1px solid var(--rule); color: var(--ink); }
.reveal table.tbl tr.grp th { border-bottom: none; padding-bottom: 0; text-align: center; color: var(--ink-3); }
.reveal table.tbl tr.grp th.g { box-shadow: inset 0 -1px 0 var(--rule-strong); }
.reveal table.tbl tbody tr.ar td { background: var(--ar-soft); }
.reveal table.tbl tbody tr.ar td:first-child { box-shadow: inset 4px 0 0 var(--ar); padding-left: 18px; }
.reveal table.tbl tbody tr.pn td { background: var(--pn-soft); }
.reveal table.tbl tbody tr.pn td:first-child { box-shadow: inset 4px 0 0 var(--pn); padding-left: 18px; }
.reveal table.tbl tbody tr.ar12 td:first-child { box-shadow: inset 4px 0 0 var(--ar); padding-left: 18px; }
.reveal table.tbl tbody tr.ref td:first-child { box-shadow: inset 4px 0 0 var(--ink-3); padding-left: 18px; }
.reveal table.tbl tbody tr.ctl td { color: var(--ink-3); }
.reveal table.tbl tbody tr.diff td { font-weight: 650; border-top: 1.5px solid var(--rule-strong); border-bottom: none; }
.reveal table.tbl th.mark { color: var(--check); box-shadow: inset 0 -2px 0 var(--check); }
.reveal table.tbl tbody td.mark { background: var(--check-soft); }
.reveal table.tbl tbody tr.ar td.mark, .reveal table.tbl tbody tr.pn td.mark { background: var(--check-soft); }
.reveal table.tbl td.once { text-align: center; color: var(--ink-3); }
.reveal table.tbl .sub { color: var(--ink-3); font-size: 18px; }
.reveal table.tbl.words td, .reveal table.tbl.words th { text-align: left; }
.reveal table.tbl.compact, .reveal table.tbl-tab1, .reveal table.tbl-tab2, .reveal table.tbl-tab3 { font-size: 20px; }
.reveal table.tbl-tab1 th, .reveal table.tbl-tab1 td, .reveal table.tbl-tab2 th, .reveal table.tbl-tab2 td,
.reveal table.tbl-tab3 th, .reveal table.tbl-tab3 td { padding: 7px 11px; }
.reveal table.tbl.compact th, .reveal table.tbl.compact td { padding: 7px 11px; }
.reveal table.tbl.dense { font-size: 19px; }
.reveal table.tbl.dense th, .reveal table.tbl.dense td { padding: 6px 9px; }
.reveal table.tbl.dense th { font-size: 18px; letter-spacing: 0; }

/* ── figures ────────────────────────────────────────────────────────────── */
.reveal figure { margin: 0; }
.reveal svg.chart { display: block; max-width: 100%; height: auto; overflow: visible; }
.reveal img.fig { display: block; max-width: 100%; height: auto; }
.reveal figure.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: #fff;
  box-shadow: 0 30px 60px -40px rgba(17,28,22,.5); }
.reveal figure.shot img { display: block; width: 100%; height: auto; margin: 0; }
.reveal figcaption, .reveal .cap { font-size: 18px; line-height: 1.38; color: var(--ink-3); padding-top: 8px; }
.reveal .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -1px; margin: 0 6px 0 0; }

/* ── a result that is not there yet ─────────────────────────────────────── */
.reveal .pending-box { border: 1.5px dashed var(--rule-strong); border-radius: 18px; padding: 20px 26px;
  background: rgba(255,255,255,.35); }
.reveal .pending-box .label { display: block; margin-bottom: 8px; }
.reveal .pending-box .pending-chip { display: inline-block; padding: 2px 11px 3px; border-radius: 999px;
  border: 1px dashed var(--rule-strong); color: var(--ink-2); }
.reveal .pending-box p { font-size: 22px; color: var(--ink-2); }
.reveal .pending-box p + p { margin-top: 8px; }
.reveal .pending-box code { font-size: .86em; }

/* ── sources and footer ─────────────────────────────────────────────────── */
.reveal .src { position: absolute; left: 96px; right: 96px; bottom: 62px; font-size: 16px; line-height: 1.35;
  color: var(--ink-3); z-index: 2; }
.reveal .src code { font-size: .92em; color: var(--ink-3); }
.reveal .src a { color: inherit; border-bottom-color: var(--rule-strong); }
.reveal .foot { position: absolute; left: 96px; right: 96px; bottom: 26px; height: 22px; display: flex; gap: 24px;
  justify-content: space-between; align-items: center; font-family: var(--f-label); font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); z-index: 2; white-space: nowrap; }
.reveal .foot .who { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.reveal .foot .tm { display: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
body.show-time .reveal .foot .tm { display: inline; }
.reveal .foot a.notes { color: var(--check); border-bottom: none; }
.reveal .foot a.notes:hover { text-decoration: underline; }
.reveal .foot .n { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.reveal .foot .n b { color: var(--check); font-weight: 700; }

/* ── night slides: title, part dividers, closing ────────────────────────── */
.reveal .slides section.night { color: var(--moon); }
.reveal .slides section.night::before {
  background-image: radial-gradient(rgba(243,238,223,.22) 1px, transparent 1.3px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 0%, transparent 72%);
  opacity: .5;
}
.reveal .night h2 em, .reveal .night h1 em { color: var(--check-n); }
.reveal .night h1 em.ar, .reveal .night h2 em.ar { color: var(--ar-n); }
.reveal .night .lede, .reveal .night .small { color: var(--moon-2); }
.reveal .night .tiny { color: var(--moon-3); }
.reveal .night a { color: var(--check-n); border-bottom-color: rgba(72,216,138,.4); }
.reveal .night .label { color: var(--moon-3); }
.reveal .night .chip { color: var(--moon-2); border-color: rgba(243,238,223,.3); background: rgba(243,238,223,.05); }
.reveal .night .t-ar { color: var(--ar-n); } .reveal .night .t-pn { color: var(--pn-n); }
.reveal .night .t-check { color: var(--check-n); } .reveal .night .t-err { color: var(--err-n); }

/* title slide */
.reveal .title-slide .t-top { position: absolute; left: 96px; top: 64px; display: flex; flex-direction: column; gap: 10px;
  font-family: var(--f-label); font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.reveal .title-slide .t-series { color: var(--check-n); font-weight: 700; }
.reveal .title-slide .t-date { color: var(--moon-3); }
.reveal .title-slide h1.t-title { position: absolute; left: 92px; top: 190px; width: 1000px; font-size: 128px; line-height: .95;
  letter-spacing: -0.022em; color: var(--moon); }
.reveal .title-slide .t-sub { position: absolute; left: 96px; top: 330px; width: 980px; font-family: var(--f-display);
  font-size: 50px; line-height: 1.08; color: var(--moon-2); }
.reveal .title-slide .t-sub em { color: var(--check-n); }
.reveal .title-slide .t-review { position: absolute; left: 96px; top: 470px; width: 860px; font-size: 24px; line-height: 1.45;
  color: var(--moon-2); }
.reveal .title-slide .t-who { position: absolute; left: 96px; top: 600px; display: flex; flex-direction: column; gap: 6px;
  font-size: 22px; color: var(--moon-2); }
.reveal .title-slide .t-who b { font-size: 30px; color: var(--moon); font-weight: 600; margin-bottom: 4px; }
.reveal .title-slide .t-paper { position: absolute; left: 96px; right: 520px; bottom: 54px; font-size: 18px; line-height: 1.45;
  color: var(--moon-3); }
.reveal .title-slide .t-art { position: absolute; right: 70px; top: 120px; width: 620px; }
.reveal .title-slide .t-art svg { width: 100%; height: auto; overflow: visible; }
.reveal .title-slide .t-art .cap { color: var(--moon-3); font-size: 18px; }
.reveal .t-qr { position: absolute; right: 96px; bottom: 54px; display: flex; align-items: flex-end; gap: 18px; margin: 0; }
.reveal .t-qr figcaption { font-family: var(--f-label); font-size: 18px; letter-spacing: .02em; color: var(--moon-3);
  text-align: right; line-height: 1.5; padding: 0; }
.reveal .t-qr figcaption span { color: var(--moon-2); }
.reveal .t-qr .t-qr-box { width: 150px; height: 150px; padding: 12px; border-radius: 14px; background: var(--paper); }
.reveal .t-qr .t-qr-box svg { width: 100%; height: 100%; display: block; }

/* part divider */
.reveal .divider .numeral { position: absolute; left: 90px; top: 96px; font-family: var(--f-display); font-size: 250px;
  line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(243,238,223,.36); letter-spacing: -0.02em; }
.reveal .divider .dv-text { position: absolute; left: 96px; bottom: 120px; width: 820px; display: flex; flex-direction: column; gap: 24px; }
.reveal .divider .dv-text .label { color: var(--check-n); font-weight: 700; }
.reveal .divider .dv-text h2 { position: static; font-size: 76px; line-height: 1.0; }
.reveal .divider .dv-text .lede { font-size: 27px; max-width: 780px; }
.reveal .divider .art { position: absolute; right: 70px; top: 150px; width: 600px; }
.reveal .divider .art svg { width: 100%; height: auto; overflow: visible; }

/* closing */
.reveal .closing h1 { position: absolute; left: 92px; top: 150px; font-size: 120px; line-height: .95; color: var(--moon); }
.reveal .closing .c-lede { position: absolute; left: 96px; top: 330px; width: 900px; font-size: 28px; line-height: 1.45; color: var(--moon-2); }
.reveal .closing .c-links { position: absolute; left: 96px; bottom: 70px; display: grid; gap: 8px;
  font-family: var(--f-label); font-size: 18px; letter-spacing: .06em; color: var(--moon-2); }
.reveal .closing .c-links b { color: var(--check-n); font-weight: 500; }

/* ── entry animations (screen only; ?print-pdf shows the final state) ───── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
html:not(.print-pdf):not(.export) .reveal section .rise { opacity: 0; }
html:not(.print-pdf):not(.export) .reveal section.present .rise {
  animation: rise .7s cubic-bezier(.2,.75,.25,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
html:not(.print-pdf):not(.export) .reveal section .fade { opacity: 0; }
html:not(.print-pdf):not(.export) .reveal section.present .fade { animation: fadein .9s ease forwards;
  animation-delay: calc(var(--d, 0) * 140ms + 150ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal section .rise, .reveal section .fade { opacity: 1 !important; animation: none !important; }
}
html.print-pdf .reveal .slides section::before { opacity: .4; }
html.print-pdf .reveal .fragment, html.export .reveal .fragment { opacity: 1 !important; transform: none !important;
  visibility: visible !important; }

/* reveal.js controls in the deck's colours */
.reveal .controls { color: var(--check); }
.reveal .progress { color: var(--check); height: 4px; }
.reveal .slide-number { display: none; }
.reveal code, .reveal pre { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }

/* the findings as a two-column list (no table: DESIGN.md §3) */
.reveal ul.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reveal ul.flist { gap: 20px; }
.reveal ul.flist li { font-size: 23px; line-height: 1.35; color: var(--ink-2); }
.reveal ul.flist .label { margin: 0 10px 0 4px; }
.reveal ul.flist .ftxt { display: inline; }
/* Tab. 1 reduced: ARLoop's column in its colour */
.reveal table.tbl td.num-ar b { color: var(--ar); }
.reveal .s1-stats .stat .what { font-size: 20px; line-height: 1.3; }

/* ── the conclusion of a slide: a night band at the foot of the body (results, the idea, caveats) ─────── */
.reveal .verdict { display: flex; align-items: center; gap: 24px; padding: 14px 28px 15px; border-radius: 16px;
  background: var(--night); color: var(--moon); margin-top: auto; }
.reveal .verdict .v-chip { flex: none; font-family: var(--f-label); font-size: 18px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 14px 6px; border-radius: 999px; border: 1.5px solid currentColor;
  color: var(--moon-2); white-space: nowrap; }
.reveal .verdict.check .v-chip { color: var(--check-n); }
.reveal .verdict.ar .v-chip { color: var(--ar-n); }
.reveal .verdict.pn .v-chip { color: var(--pn-n); }
.reveal .verdict.err .v-chip { color: var(--err-n); }
.reveal .verdict p { font-size: 25px; line-height: 1.3; color: var(--moon); }
.reveal .verdict p b { color: #FFFFFF; font-weight: 650; }
.reveal .verdict .t-ar { color: var(--ar-n); } .reveal .verdict .t-pn { color: var(--pn-n); }
.reveal .verdict .t-check { color: var(--check-n); } .reveal .verdict .t-err { color: var(--err-n); }
.reveal .verdict .fid { background: rgba(255,122,110,.14); color: var(--err-n); border-color: rgba(255,122,110,.45); }
.reveal .verdict.light { background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); }
.reveal .verdict.light p { color: var(--ink-2); }
.reveal .verdict.light p b { color: var(--ink); }
.reveal .verdict.light .v-chip { color: var(--err); }
.reveal .verdict.light.ink .v-chip { color: var(--ink-2); }

/* ── flowcharts: boxes joined by arrows (protocols and designs instead of bullet lists) ─────────────── */
.reveal .flow { display: flex; align-items: stretch; }
.reveal .flow > .node { flex: 1 1 0; min-width: 0; border: 1px solid var(--rule-strong); border-radius: 14px;
  padding: 12px 18px 14px; background: rgba(255,255,255,.5); position: relative; }
.reveal .flow > .node .nl { display: block; font-family: var(--f-label); font-size: 18px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; white-space: nowrap; }
.reveal .flow > .node .nt { display: block; font-size: 22px; line-height: 1.32; color: var(--ink); }
.reveal .flow > .node.ar { border-color: rgba(63,79,196,.55); background: var(--ar-soft); }
.reveal .flow > .node.ar .nl { color: var(--ar); }
.reveal .flow > .node.pn { border-color: rgba(168,111,12,.55); background: var(--pn-soft); }
.reveal .flow > .node.pn .nl { color: var(--pn); }
.reveal .flow > .node.check { border-color: rgba(19,112,63,.55); background: var(--check-soft); }
.reveal .flow > .node.check .nl { color: var(--check); }
.reveal .flow > .node.err { border-color: rgba(180,35,44,.5); background: var(--err-soft); }
.reveal .flow > .node.err .nl { color: var(--err); }
.reveal .flow > .node.grow { flex-grow: 1.35; }
.reveal .flow > .arrow { flex: none; width: 46px; display: grid; place-items: center; color: var(--ink-3);
  font-size: 34px; line-height: 1; font-family: var(--f-text); }
.reveal .flow > .op { flex: none; width: 54px; display: grid; place-items: center; color: var(--ink-2);
  font-family: var(--f-display); font-size: 46px; line-height: 1; }
.reveal .flow.big > .node .nt { font-size: 24px; }
.reveal .flow.eqn > .node { text-align: center; }
.reveal .flow.eqn > .node .num { display: block; font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--ink); }
.reveal .flow.eqn > .node.ar .num { color: var(--ar); }

/* the fixes that make a loop trainable, one chip per model */
.reveal .fixes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.reveal .fixes > div { border-top: 2px solid var(--ink-3); padding-top: 8px; }
.reveal .fixes > div.ar { border-color: var(--ar); }
.reveal .fixes b { display: block; font-size: 24px; font-weight: 650; color: var(--ink); }
.reveal .fixes > div.ar b { color: var(--ar); }
.reveal .fixes span { display: block; font-size: 21px; line-height: 1.3; color: var(--ink-2); margin-top: 2px; }
.reveal .fixes span.who { font-size: 18px; color: var(--ink-3); margin-top: 0; }

/* result rows: one line per test, its verdict chip at the left */
.reveal .rrows { display: grid; gap: 0; }
.reveal .rrows > .rr { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: baseline;
  padding: 13px 0 14px; border-bottom: 1px solid var(--rule); }
.reveal .rrows > .rr:first-child { border-top: 1.5px solid var(--rule-strong); }
.reveal .rrows > .rr .chip { justify-self: start; }
.reveal .rrows > .rr p { font-size: 22px; line-height: 1.35; color: var(--ink-2); }
.reveal .rrows > .rr p b { color: var(--ink); }
.reveal .rrows.wide > .rr { grid-template-columns: 500px 200px minmax(0, 1fr); padding: 10px 0 11px; }
.reveal .rrows.tight > .rr { padding: 9px 0 10px; grid-template-columns: 276px minmax(0, 1fr); }
.reveal .rrows.wide > .rr p, .reveal .rrows.wide .q { font-size: 24px; }
.reveal .rrows .q .tag { display: inline-block; min-width: 92px; font-family: var(--f-label); font-size: 18px; font-weight: 600;
  letter-spacing: .06em; color: var(--ink-3); }
.reveal .rrows .q { font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 600; }
.reveal .rrows .q small { display: block; font-family: var(--f-label); font-size: 18px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.reveal .chip.big { font-size: 20px; padding: 5px 14px 6px; font-weight: 700; }
.reveal .chip.ink { color: var(--ink-2); background: var(--paper-2); }

/* the road map on the part dividers (inserted by build.py) */
.reveal .divider .roadmap { position: absolute; right: 96px; bottom: 120px; width: 560px; list-style: none; margin: 0;
  padding: 0; display: grid; gap: 12px; border-left: 1px solid rgba(243,238,223,.22); padding-left: 26px; }
.reveal .divider .roadmap li { font-family: var(--f-label); font-size: 18px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--moon-3); display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.reveal .divider .roadmap li.on { color: var(--check-n); font-weight: 700; }
.reveal .divider .roadmap li.done { color: var(--moon-2); }
