/* The presentation: the deck engine from deck.unknown.cc in Fractional × Known's
   tokens (main.css): canvas page, jacaranda ink, lavender as the one signal,
   Instrument Serif for statements, Inter for text, Roboto Mono for labels. */
.deck-page {
  --paper: var(--page);
  --ink-soft: var(--ink-2);
  --muted: var(--ink-3);
  --line: #D8D0C0;
  --coral: #6B5AE0;
  --focus: var(--ink);
}
.deck-page .wordmark { font: 600 0.82cqw var(--sans); letter-spacing: -0.01em; text-transform: none; }
.deck-page .slide-top .lockup { display: inline-flex; align-items: center; gap: 0.6cqw; }
.deck-page .frac-mark { transform: scale(1); }
/* Unknown pitch deck. The unknown.cc design language: warm paper, ink, one
   coral signal used only as a point or a line, Helvetica and IBM Plex Mono,
   flat, 1px rules, no shadows. Each slide is a 16:9 sheet; sizes inside it are
   in container units (1cqw = 1% of the sheet's width), so it scales as one. */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex: none; }
.wordmark { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.3em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; border: 1px solid var(--ink); }
.boot { min-height: 100svh; }

/* ---------- the deck ---------- */

.deck { height: 100svh; display: grid; place-items: center; }
.slide { display: none; grid-area: 1 / 1; outline: none; }
.slide.is-current { display: block; animation: arrive 180ms linear; }
@keyframes arrive { from { opacity: 0; } }
.slide-inner {
  container-type: inline-size;
  width: min(100vw, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  padding: 3.4cqw 4.2cqw 2.6cqw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}
.slide-top { display: flex; align-items: baseline; gap: 2.4cqw; }
.slide-top .wordmark { font-size: 0.82cqw; }
.slide-label { font-family: var(--mono); font-size: 0.78cqw; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: inline-flex; align-items: center; gap: 0.7cqw; }
.slide-label::before { content: ""; width: 0.38cqw; height: 0.38cqw; border-radius: 50%; background: var(--coral); }
.slide-foot { position: relative; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7cqw; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; border-top: 1px solid var(--line); padding-top: 1cqw; }

/* One grid for every slide: the claim on the left, the evidence on the right,
   centred vertically as a pair. The two columns share a top edge, and the right
   column's first line sits on the statement's cap height. */
.slide-body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  column-gap: 5cqw;
  row-gap: 2.6cqw;
  align-content: center;
  align-items: start;
  padding: 2.6cqw 0;
  min-height: 0;
}
.lede { grid-column: 1; display: grid; gap: 2.2cqw; align-content: start; }
.statement { font-size: 3.5cqw; font-weight: 500; line-height: 1.06; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
.live-area { grid-column: 2; }
.statement, .copy > :first-child, .live-area > :first-child > :first-child { text-box: trim-both cap alphabetic; }
.copy p { font-size: 1.36cqw; line-height: 1.5; color: var(--ink-soft); margin: 0 0 1.1cqw; text-wrap: pretty; }
.copy > :last-child { margin-bottom: 0; }
.copy strong { color: var(--ink); font-weight: 500; }
.copy a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 0.2em; }
.copy code { font-family: var(--mono); font-size: 0.9em; }
.rows { list-style: none; margin: 0 0 1.1cqw; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); padding: 0.85cqw 0; font-size: 1.28cqw; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.copy > .rows:first-child { margin-top: 0; }
.copy > .rows:first-child li:first-child { border-top: 0; padding-top: 0; }
blockquote { margin: 0 0 1.4cqw; padding-left: 1.6cqw; border-left: 1px solid var(--coral); }
blockquote p { font-family: var(--mono); font-size: 1.08cqw; line-height: 1.55; color: var(--ink); margin: 0 0 0.3cqw; }
pre { font-family: var(--mono); font-size: 1cqw; border: 1px solid var(--line); padding: 1cqw; margin: 0; }

/* text only: the argument is the right column, level with the statement */
.slide-text .slide-body > .copy { grid-column: 2; }

/* a live part with no argument beside it takes the full width under the statement */
.slide-with-live:not(.has-figure) .slide-body:not(:has(.copy)) .lede { grid-column: 1 / -1; }
.slide-with-live:not(.has-figure) .slide-body:not(:has(.copy)) .live-area { grid-column: 1 / -1; }

/* progress along the footer rule: a coral line */
.progress { position: absolute; left: 0; right: 0; top: -1px; height: 1px; }
.progress i { display: block; height: 1px; background: var(--coral); transition: width 260ms ease-out; }

/* one large number */
.big { margin: 0; border-top: 1px solid var(--line); padding-top: 1.6cqw; }
.big-value { font-size: 13cqw; font-weight: 500; letter-spacing: -0.045em; line-height: 0.9; margin: 0 0 1.8cqw; font-variant-numeric: tabular-nums; text-box: trim-both cap alphabetic; }
.big figcaption { font-size: 1.1cqw; line-height: 1.45; color: var(--muted); max-width: 40cqw; }

/* cover */
.slide-cover .slide-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: 1fr auto auto 1fr; align-content: stretch; }
.cover-u { grid-column: 2; grid-row: 1 / -1; align-self: stretch; justify-self: end; height: 100%; width: auto; max-width: 100%; min-height: 0; object-fit: contain; object-position: right top; }
.slide-cover .statement { grid-column: 1; grid-row: 2; font-size: 5.4cqw; line-height: 1.02; }
.slide-cover .copy { grid-column: 1; grid-row: 3; max-width: 40cqw; }
.slide-cover .copy p { font-size: 1.6cqw; }
.slide-cover .live-area { grid-column: 1; grid-row: 4; align-self: end; padding-bottom: 0.2cqw; }
.cover-meta { display: grid; gap: 0.5cqw; font-family: var(--mono); font-size: 0.82cqw; color: var(--muted); margin: 0; }
.cover-meta strong { font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 0.8cqw; }
.cover-meta .dot { width: 0.42cqw; height: 0.42cqw; }
.cover-meta > span { padding-left: 1.22cqw; }

/* closing */
.slide-closing .slide-body { grid-template-rows: auto auto; }
.slide-closing .lede { grid-column: 1 / -1; }
.slide-closing .statement { font-size: 4.6cqw; max-width: 70cqw; }
.slide-closing .copy p { font-family: var(--mono); font-size: 1.05cqw; color: var(--ink); }

/* live parts */
.live { display: grid; gap: 1.2cqw; }
.live-source { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4cqw 0.7cqw; font-family: var(--mono); font-size: 0.72cqw; color: var(--muted); margin: 0; }
.live-source .dot { width: 0.38cqw; height: 0.38cqw; }
.live-source code { font-family: inherit; color: var(--ink-soft); overflow-wrap: anywhere; }
.live-note { font-size: 1.05cqw; color: var(--muted); margin: 0; }
.live-error { border-top: 1px solid var(--coral); padding-top: 1cqw; }
.live-error p { margin: 0 0 0.4cqw; font-size: 1.2cqw; }
.live-error .why { font-family: var(--mono); font-size: 0.85cqw; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4cqw; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-4 .stat-value { font-size: 5cqw; }
.stat { border-top: 1px solid var(--line); padding: 1.1cqw 0 1.4cqw; }
.stat-value { font-size: 3.9cqw; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 0 0 0.6cqw; font-variant-numeric: tabular-nums; }
.stat-key { font-family: var(--mono); font-size: 0.78cqw; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.3cqw; }
.stat-detail { font-size: 1.02cqw; color: var(--muted); margin: 0; line-height: 1.4; }

.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) 10cqw; gap: 2cqw; align-items: baseline; border-top: 1px solid var(--line); padding: 1.1cqw 0; }
.ledger-title { font-size: 1.7cqw; font-weight: 500; margin: 0 0 0.2cqw; letter-spacing: -0.01em; }
.ledger-kind { font-family: var(--mono); font-size: 0.72cqw; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.ledger-line { font-size: 1.1cqw; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.ledger-status { margin: 0; justify-self: end; }
.status { font-family: var(--mono); font-size: 0.72cqw; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--ink); padding: 0.25cqw 0.6cqw; border-radius: 2px; white-space: nowrap; }

.tiers, .milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2cqw; }
.tier, .milestone { border-top: 1px solid var(--line); padding-top: 1.1cqw; }
.tier-name, .milestone-when { font-family: var(--mono); font-size: 0.78cqw; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.8cqw; }
.tier-price { font-size: 2.6cqw; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 0.6cqw; font-variant-numeric: tabular-nums; }
.tier-price span { font-size: 0.5em; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tier-detail { font-size: 1cqw; line-height: 1.45; color: var(--muted); margin: 0; }
.milestone dl { margin: 0 0 0.8cqw; }
.milestone dl div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 0.55cqw 0; }
.milestone dt { font-size: 1cqw; color: var(--muted); }
.milestone dd { margin: 0; font-size: 1.7cqw; font-weight: 500; font-variant-numeric: tabular-nums; }
.milestone-proof { font-size: 0.98cqw; line-height: 1.45; color: var(--ink-soft); margin: 0; }

.round { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3.2cqw; }
.terms { margin: 0; }
.terms-col, .funds { min-width: 0; }
.terms div { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; border-top: 1px solid var(--line); padding: 0.9cqw 0; }
.terms div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--mono); font-size: 0.78cqw; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.terms dd { margin: 0; font-size: 2cqw; font-weight: 500; letter-spacing: -0.015em; }
.terms-title, .funds-title { font-family: var(--mono); font-size: 0.78cqw; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.6cqw; }
.funds ol { list-style: none; margin: 0; padding: 0; }
.funds li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 3.4cqw; gap: 1cqw; align-items: center; border-top: 1px solid var(--line); padding: 0.85cqw 0; }
.funds-name { font-size: 1.08cqw; color: var(--ink-soft); }
.funds-bar { height: 1px; background: var(--line); position: relative; }
.funds-bar i { position: absolute; left: 0; top: -0.15cqw; height: 0.32cqw; background: var(--ink); }
.funds-share { font-size: 1.2cqw; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* figures from the Unknown Thesis: flat line drawings; coral only as a point or a line */
.fig { margin: 0; }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig text { fill: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; }
.fig .tm { fill: var(--muted); }
.fig :is(.l, .k, .m, .c) { fill: none; stroke-width: 1; }
.fig .l { stroke: var(--line); }
.fig .k { stroke: var(--ink); }
.fig .c { stroke: var(--coral); stroke-width: 1.25; }
.fig .soft { stroke-opacity: 0.42; }
.fig :is(.m, .dashed) { stroke-dasharray: 3 3; }
.fig .m { stroke: var(--muted); }
.fig .pf { fill: var(--paper); }
.fig .d { fill: var(--ink); }
.fig .dm { fill: var(--muted); }
.fig .dc { fill: var(--coral); }
.fig .sig { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 200; opacity: 0; }
.fig figcaption { display: grid; grid-template-columns: 4.2cqw minmax(0, 1fr); gap: 0.8cqw; margin-top: 1.4cqw; padding-top: 0.8cqw; border-top: 1px solid var(--line); font-size: 0.95cqw; line-height: 1.45; color: var(--muted); }
.fig .fig-n { font-family: var(--mono); font-size: 0.68cqw; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); padding-top: 0.2em; }
.i-0 { --i: 0; } .i-1 { --i: 1; } .i-2 { --i: 2; } .i-3 { --i: 3; } .i-4 { --i: 4; }


/* figures draw themselves in when their slide arrives, as on unknown.cc */
@media (prefers-reduced-motion: no-preference) {
  .slide.is-current .fig :is(.w1, .w2, .w3, .w4, .f1, .f2, .f3, .f4) { animation: fig-fade 700ms linear both; }
  .slide.is-current .fig :is(.w1, .w2, .w3, .w4):not(.m, .dashed) { stroke-dasharray: 1.02; stroke-dashoffset: 1.02; animation-name: fig-draw; animation-duration: 900ms; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  .slide.is-current .fig :is(.w1, .f1) { animation-delay: 150ms; }
  .slide.is-current .fig :is(.w2, .f2) { animation-delay: 550ms; }
  .slide.is-current .fig :is(.w3, .f3) { animation-delay: 950ms; }
  .slide.is-current .fig :is(.w4, .f4) { animation-delay: 1350ms; }
  .slide.is-current .fig .sig { animation: fig-signal 5.5s cubic-bezier(0.45, 0, 0.55, 1) 2.2s infinite; }
  .slide.is-current .fig .blink { animation: fig-blink 6s ease-in-out infinite; animation-delay: calc(1.6s + var(--i, 0) * 0.9s); }
}
@keyframes fig-draw { to { stroke-dashoffset: 0; } }
@keyframes fig-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fig-signal { 0% { stroke-dashoffset: 0; opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes fig-blink { 0%, 16%, 100% { opacity: 1; } 6% { opacity: 0.2; } }

/* speaker notes: a band of their own under the slide, which shrinks to make
   room, so the notes never cover it */
:root { --notes-h: 0px; }
.show-notes { --notes-h: clamp(9rem, 24svh, 13rem); --slide-w: min(100vw, calc((100svh - var(--notes-h)) * 16 / 9)); }
:root { --slide-w: min(100vw, calc((100svh - var(--notes-h)) * 16 / 9)); }
.deck { height: calc(100svh - var(--notes-h)); }
.slide-inner { width: var(--slide-w); }
.notes-source { display: none; }
.notes-panel {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--notes-h); z-index: 2;
  display: grid; grid-template-columns: 11rem minmax(0, 44rem) 1fr; column-gap: 2.5rem; align-items: start;
  /* the band's text starts where the slide's text starts */
  padding: 1.25rem calc((100vw - var(--slide-w)) / 2 + var(--slide-w) * 0.042);
  background: var(--paper); border-top: 1px solid var(--line);
}
.notes-panel[hidden] { display: none; }
.notes-head { display: grid; gap: 6px; }
.notes-title { margin: 0; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.notes-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.notes-pos { margin: 0; padding-left: 14px; font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.notes-body { max-height: calc(var(--notes-h) - 2.5rem); overflow: auto; }
.notes-body p { margin: 0 0 0.6em; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.notes-body p:last-child { margin-bottom: 0; }
.notes-body .notes-empty { color: var(--muted); }
.notes-close {
  justify-self: end; appearance: none; background: none; border: 0; padding: 6px 8px; margin: -6px -8px 0 0; cursor: pointer; border-radius: 2px;
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); transition: color 180ms linear;
}
.notes-close:hover { color: var(--ink); }
.notes-close kbd { font: inherit; border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px; margin-left: 6px; color: var(--ink); }
.show-notes .controls { bottom: calc(var(--notes-h) + 12px); }

/* controls */
.controls {
  position: fixed; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 0 4px;
  opacity: 0; transition: opacity 180ms linear;
}
.ui-awake .controls, .controls:hover, .controls:focus-within { opacity: 1; }
.ctl { appearance: none; background: none; border: 0; padding: 8px 8px; cursor: pointer; color: var(--ink); text-decoration: none; border-radius: 2px; }
.ctl:disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.ctl[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.ctl-pos { min-width: 4.5em; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }

/* phones and narrow windows: slides reflow as a readable page instead of a tiny sheet */
@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .deck { height: auto; min-height: 100svh; display: block; }
  .slide-inner { width: 100%; aspect-ratio: auto; min-height: 100svh; padding: 22px 16px 72px; container-type: normal; }
  .slide-top .wordmark { font-size: 0.75rem; }
  .slide-label { font-size: 0.6875rem; gap: 8px; }
  .slide-label::before { width: 5px; height: 5px; }
  .slide-foot { font-size: 0.625rem; padding-top: 10px; }
  .slide-body, .slide-cover .slide-body { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 20px; padding: 28px 0; }
  .cover-meta > span { padding-left: 13px; }
  .cover-u { height: auto; width: 60%; align-self: center; }
  .statement, .slide-cover .statement, .slide-closing .statement { font-size: clamp(1.75rem, 8vw, 2.4rem); max-width: none; }
  .copy, .slide-cover .copy { max-width: none; }
  .lede { gap: 16px; }
  .copy p, .slide-cover .copy p { font-size: 1rem; margin-bottom: 10px; }
  .rows li { font-size: 0.975rem; padding: 10px 0; }
  blockquote { padding-top: 10px; margin-bottom: 14px; }
  blockquote::before { width: 28px; }
  blockquote p { font-size: 0.875rem; }
  .cover-u { order: -1; max-width: 60%; align-self: center; }
  .cover-meta, .live-source { font-size: 0.6875rem; gap: 8px; }
  .cover-meta .dot, .live-source .dot { width: 5px; height: 5px; }
  .live { gap: 12px; }
  .live-note, .live-error p { font-size: 0.875rem; }
  .live-error .why { font-size: 0.75rem; }
  .stats, .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .stats-4 .stat-value { font-size: 2rem; }
  .stat { padding: 12px 0 14px; }
  .stat-value { font-size: 2rem; margin-bottom: 6px; }
  .stat-key, .tier-name, .milestone-when, .terms dt, .terms-title, .funds-title { font-size: 0.6875rem; }
  .stat-detail, .tier-detail, .milestone-proof { font-size: 0.8125rem; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; }
  .ledger-name { grid-column: 1; }
  .ledger-status { grid-column: 2; grid-row: 1; }
  .ledger-line, .slide-with-live .slide-body:not(:has(.copy)) .ledger-line { grid-column: 1 / -1; font-size: 0.875rem; max-width: none; }
  .ledger-title { font-size: 1.125rem; }
  .ledger-kind, .status { font-size: 0.625rem; }
  .status { padding: 2px 6px; }
  .tiers, .milestones, .round { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .tier, .milestone { padding-top: 12px; }
  .tier-price { font-size: 1.5rem; }
  .milestone dt { font-size: 0.8125rem; }
  .milestone dd { font-size: 1.125rem; }
  .milestone dl div { padding: 6px 0; }
  .terms div { padding: 10px 0; }
  .terms dd { font-size: 1.25rem; }
  .funds li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 2.6rem; gap: 10px; padding: 10px 0; }
  .funds-name { font-size: 0.875rem; }
  .funds-share { font-size: 0.9375rem; }
  .funds-bar i { height: 3px; top: -1px; }
  .fig text { font-size: 14px; }
  .big-value { font-size: 4.5rem; margin-bottom: 14px; }
  .big { padding-top: 14px; }
  .big figcaption { font-size: 0.875rem; max-width: none; }
  .fig :is(.l, .k, .m) { stroke-width: 1.3; }
  .fig figcaption { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; padding-top: 10px; font-size: 0.8125rem; }
  .fig .fig-n { font-size: 0.625rem; }
  .show-notes { --notes-h: min(45svh, 18rem); }
  .deck { height: auto; }
  .slide-inner { width: 100%; }
  .notes-panel { padding: 16px; }
  .show-notes .deck { padding-bottom: var(--notes-h); }
  .notes-panel { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; row-gap: 12px; padding: 16px; }
  .notes-head { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 12px; }
  .notes-pos { padding-left: 0; }
  .notes-close { grid-column: 2; grid-row: 1; }
  .notes-close kbd { display: none; }
  .notes-body { grid-column: 1 / -1; grid-row: 2; max-height: none; height: 100%; }
  .notes-body p { font-size: 1rem; }
  .show-notes .controls { display: none; }
  .controls { left: 0; right: 0; bottom: 0; justify-content: center; flex-wrap: wrap; border: 0; border-top: 1px solid var(--line); border-radius: 0; opacity: 1; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* PDF: every slide on its own landscape page */
@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  :root { --paper: #f1ede4; --ink: #111110; --ink-soft: #45443f; --muted: #66625d; --line: #c7c0b4; --coral: #ef6a5b; color-scheme: light; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .deck { display: block; height: auto; }
  .slide { display: block !important; break-after: page; animation: none !important; }
  .slide-inner { width: 13.333in; height: 7.5in; aspect-ratio: auto; container-type: inline-size; }
  .controls, .notes-panel, .skip { display: none !important; }
  .deck { height: auto; }
}

/* ---------- Fractional × Known adjustments ---------- */
.deck-page body, body.deck-page { background: var(--page); }
.deck-page .statement { font-family: var(--serif); font-weight: 400; font-size: 4.1cqw; line-height: 1.02; letter-spacing: -0.01em; }
.deck-page .slide-cover .statement { font-size: 6.2cqw; }
.deck-page .slide-closing .statement { font-size: 5.2cqw; }
.deck-page .slide-cover .slide-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; }
.deck-page .slide-cover .statement, .deck-page .slide-cover .copy, .deck-page .slide-cover .live-area { grid-column: 1; max-width: 70cqw; }
.deck-page .mono { font-family: var(--mono); font-size: 0.9em; }
.deck-page .live-source code { color: var(--ink-2); }

/* phases of the process */
.phases { display: grid; gap: 0; border-top: 1px solid var(--line); }
.phases li { display: grid; grid-template-columns: 4.2cqw minmax(0, 1fr) auto; gap: 1.2cqw; align-items: baseline; padding: 0.62cqw 0; border-bottom: 1px solid var(--line); }
.phase-steps { font: 500 1.5cqw var(--sans); font-variant-numeric: tabular-nums; }
.phase-label { font-size: 1.15cqw; color: var(--ink); }
.phase-sys { font: 500 0.72cqw var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }

/* the three wikis */
.wikis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqw; }
.wiki-card { border: 1px solid var(--line); border-radius: 4px; padding: 1.3cqw; background: var(--surface); display: flex; flex-direction: column; }
.wiki-name { font: 500 1.05cqw var(--mono); margin: 0 0 0.5cqw; }
.wiki-what { font-size: 1cqw; line-height: 1.4; color: var(--ink-3); margin: 0 0 1.4cqw; }
/* the numbers sit on the card's bottom edge, level across all three cards */
.wiki-card dl { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 0.8cqw; }
.wiki-card dl > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-items: end; }
.wiki-card dt { font: 500 0.66cqw var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.wiki-card dd { margin: 0.2cqw 0 0; font: 500 1.9cqw var(--sans); font-variant-numeric: tabular-nums; }

/* an order's journey */
.order-head { display: flex; align-items: center; gap: 1cqw; margin: 0 0 0.5cqw; font-size: 1.2cqw; }
.pill { font: 500 0.75cqw var(--sans); padding: 0.25cqw 0.7cqw; border-radius: 999px; border: 1px solid; }
.pill-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.pill-risk { color: var(--risk); background: var(--risk-bg); border-color: var(--risk-line); }
.order-promise { font-size: 1.05cqw; color: var(--ink-3); margin: 0 0 1.4cqw; }
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; margin: 0 0 1.6cqw; }
.journey::before { content: ""; position: absolute; left: 0.45cqw; right: 0.45cqw; top: 0.45cqw; height: 1px; background: var(--line); }
.journey li { position: relative; display: grid; gap: 0.35cqw; }
.j-dot { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; border: 1px solid var(--line); background: var(--page); position: relative; }
.journey li.done .j-dot { background: var(--coral); border-color: var(--coral); }
.j-label { font-size: 0.95cqw; color: var(--ink); }
.j-date { font: 500 0.75cqw var(--mono); color: var(--ink-3); }
.events li { display: grid; grid-template-columns: 5cqw minmax(0, 1fr) auto; gap: 1cqw; padding: 0.55cqw 0; border-top: 1px solid var(--line); font-size: 1cqw; line-height: 1.4; color: var(--ink-2); }
.events .by { font: 500 0.72cqw var(--mono); color: var(--ink-3); }

/* a decision: agent vs person */
.decision { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; }
.dec-col { border: 1px solid var(--line); border-radius: 4px; padding: 1.3cqw; background: var(--surface); }
.dec-human { border-color: var(--ink); }
.dec-who { font: 500 0.72cqw var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 0.6cqw; }
.dec-what { font: 400 1.9cqw/1.15 var(--serif); margin: 0 0 0.6cqw; }
.dec-why { font-size: 1.02cqw; line-height: 1.45; color: var(--ink-2); margin: 0; }

/* the answer */
.answer-big { font: 400 2.2cqw/1.2 var(--serif); margin: 0 0 1.2cqw; }
.answer-big span { font-family: var(--sans); font-weight: 500; }
.reasons li { display: grid; grid-template-columns: 9cqw minmax(0, 1fr); gap: 1.2cqw; padding: 0.8cqw 0; border-top: 1px solid var(--line); }
.reasons li p { margin: 0; font-size: 1.08cqw; line-height: 1.45; color: var(--ink-2); }
.reasons .mono { color: var(--ink); }

/* data reloads replace content in place, never replaying the arrival */
.quiet .slide.is-current { animation: none; }

/* a numbered flow */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2cqw; counter-reset: step; }
.steps li { position: relative; border-top: 1px solid var(--ink); padding-top: 1cqw; }
.steps li::after { content: ""; position: absolute; top: -0.32cqw; left: 0; width: 0.64cqw; height: 0.64cqw; border-radius: 50%; background: var(--coral); }
.step-n { display: block; font: 500 0.72cqw var(--mono); color: var(--ink-3); margin-bottom: 0.6cqw; }
.step-title { font: 400 1.55cqw/1.15 var(--serif); margin: 0 0 0.6cqw; color: var(--ink); }
.step-detail { font-size: 0.98cqw; line-height: 1.45; color: var(--ink-2); margin: 0; }
.slide-with-live:not(.has-figure) .slide-body:has(.steps) .live-area { grid-column: 1 / -1; }

/* what you can now ask */
.asks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4cqw; border-top: 1px solid var(--line); }
.asks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1cqw; padding: 0.8cqw 0; border-bottom: 1px solid var(--line); align-content: start; }
.ask-q { grid-column: 1 / -1; font: 400 1.35cqw/1.2 var(--serif); margin: 0 0 0.35cqw; color: var(--ink); }
.ask-a { font-size: 0.95cqw; line-height: 1.4; color: var(--ink-2); margin: 0; }
.ask-src { font: 500 0.62cqw var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0; align-self: end; white-space: nowrap; }

@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .asks, .steps { grid-template-columns: 1fr; }
  .step-title { font-size: 1.15rem; } .step-detail { font-size: 0.9rem; } .step-n { font-size: 0.7rem; }
  .ask-q { font-size: 1.1rem; } .ask-a { font-size: 0.9rem; } .ask-src { font-size: 0.65rem; }
  .wikis, .decision { grid-template-columns: 1fr; }
  .phases li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .phase-sys { grid-column: 2; }
  .phase-steps, .wiki-card dd { font-size: 1.2rem; }
  .phase-label, .order-head, .events li, .reasons li p, .dec-why, .wiki-what { font-size: 0.9rem; }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .j-label { font-size: 0.85rem; } .j-date, .events .by, .dec-who, .wiki-name, .wiki-card dt, .pill { font-size: 0.7rem; }
  .dec-what, .answer-big { font-size: 1.3rem; }
  .reasons li { grid-template-columns: 1fr; }
}

/* the closing slide's mono line applies only to a single line, like a contact */
.deck-page .slide-closing .copy p { font-family: var(--sans); font-size: 1.36cqw; color: var(--ink-2); }
.deck-page .slide-closing .copy p:only-child { font-family: var(--mono); font-size: 1.05cqw; color: var(--ink); }
.deck-page .slide-closing .copy code, .deck-page .rows code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0.05em 0.35em; }

/* a paragraph that is just a link is a button: the way into the dashboard */
.deck-page .copy p > a:only-child { display: inline-flex; align-items: center; gap: 0.6cqw; margin-top: 0.6cqw; padding: 0.8cqw 1.4cqw; border-radius: 4px; background: var(--ink); color: var(--page); text-decoration: none; font: 500 1.2cqw var(--sans); }
.deck-page .copy p > a:only-child:hover { background: #3A1735; }
@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .deck-page .slide-closing .copy p { font-size: 1rem; }
  .deck-page .copy p > a:only-child { padding: 10px 16px; font-size: 1rem; }
}

/* who talks to Empresa: four ways in around one record */
.channels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.4cqw 3.4cqw; align-items: stretch; }
.ch { position: relative; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 1.1cqw 1.2cqw; display: flex; flex-direction: column; }
.ch-people { grid-column: 1; grid-row: 1; } .ch-agents { grid-column: 1; grid-row: 2; }
.ch-cli { grid-column: 3; grid-row: 1; } .ch-sites { grid-column: 3; grid-row: 2; }
.ch-people::after, .ch-agents::after, .ch-cli::before, .ch-sites::before { content: ""; position: absolute; top: 50%; width: 3.4cqw; height: 1px; background: var(--coral); }
.ch-people::after, .ch-agents::after { left: 100%; }
.ch-cli::before, .ch-sites::before { right: 100%; }
.ch-title { font: 400 1.6cqw/1.1 var(--serif); margin: 0 0 0.35cqw; }
.ch-how { font: 500 0.72cqw/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 0.5cqw; }
.ch-detail { font-size: 0.92cqw; line-height: 1.4; color: var(--ink-2); margin: 0 0 0.6cqw; }
.ch-count { margin: auto 0 0; padding-top: 0.5cqw; border-top: 1px solid var(--line); font: 500 0.78cqw var(--mono); color: var(--ink-3); }
.ch-core { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--page); padding: 1.4cqw; }
.ch-core-name { font: 400 2.4cqw/1 var(--serif); margin: 0; }
.ch-core-sub { font: 500 0.72cqw var(--mono); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin: 0.3cqw 0 1cqw; }
.ch-core ul { margin: 0 0 1cqw; border-top: 1px solid rgba(244, 241, 234, 0.25); }
.ch-core li { display: flex; justify-content: space-between; padding: 0.45cqw 0; border-bottom: 1px solid rgba(244, 241, 234, 0.25); font-size: 0.95cqw; }
.ch-core li .mono { color: var(--lavender); }
.ch-core-rule { font-size: 0.88cqw; line-height: 1.45; opacity: 0.85; margin: 0; }

/* Empresa's API: every record type by address */
.api { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.6cqw; }
.api-wiki { font: 500 0.78cqw var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5cqw; }
.api-wiki span { color: var(--ink-3); margin-left: 0.4cqw; }
.api ul { border-top: 1px solid var(--line); }
.api li { display: flex; justify-content: space-between; gap: 0.8cqw; padding: 0.38cqw 0; border-bottom: 1px solid var(--line); }
.api code { font: 400 0.86cqw var(--mono); color: var(--ink); }
.api-count { font: 500 0.86cqw var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* example calls under the API */
.api-calls { margin-top: 1.4cqw; border-top: 1px solid var(--ink); }
.api-calls li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4cqw; padding: 0.55cqw 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.api-calls code { font: 400 0.92cqw var(--mono); color: var(--ink); }
.api-calls span { font-size: 0.95cqw; color: var(--ink-2); }

@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .api-calls li { grid-template-columns: 1fr; } .api-calls code, .api-calls span { font-size: 0.8rem; }
  .channels { grid-template-columns: 1fr; gap: 12px; }
  .ch-people, .ch-agents, .ch-cli, .ch-sites, .ch-core { grid-column: 1; grid-row: auto; }
  .ch::before, .ch::after { display: none; }
  .ch-title { font-size: 1.2rem; } .ch-how, .ch-count, .ch-core-sub { font-size: 0.7rem; } .ch-detail, .ch-core li, .ch-core-rule { font-size: 0.9rem; } .ch-core-name { font-size: 1.6rem; }
  .api { grid-template-columns: 1fr; } .api code, .api-count { font-size: 0.8rem; } .api-wiki { font-size: 0.7rem; }
}

/* a closing slide with a live part gives it the full width */
.deck-page .slide-closing .live-area { grid-column: 1 / -1; }

/* the header: Empresa and the slide's label on one centred line */
.deck-page .slide-top { display: flex; align-items: center; gap: 2.2cqw; }
.deck-page .slide-top .lockup { display: inline-flex; align-items: center; gap: 0.7cqw; line-height: 1; }
.deck-page .slide-top .wordmark { font: 600 0.95cqw/1 var(--sans); }
.deck-page .slide-label { line-height: 1; }
.deck-page .slide-top .frac-mark { grid-template-columns: 0.42cqw 0.42cqw 0.84cqw; grid-template-rows: 0.42cqw 0.42cqw; gap: 0.14cqw; }
@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .deck-page .slide-top { flex-wrap: wrap; row-gap: 8px; }
  .deck-page .slide-top .wordmark { font-size: 0.8rem; }
  .deck-page .slide-top .frac-mark { grid-template-columns: 5px 5px 10px; grid-template-rows: 5px 5px; gap: 2px; }
  .deck-page .slide-label { order: 3; width: 100%; }
}

/* a live panel beside text centres on it vertically */
.deck-page .slide-with-live .lede + .live-area { align-self: center; }
