:root {
  --bg: #f4f2ec;
  --ink: #161513;
  --muted: #6d6a62;
  --faint: #9a968c;
  --line: rgba(22, 21, 19, 0.12);
  --line-strong: rgba(22, 21, 19, 0.22);
  --blue: #1f4bdb;
  --slide-w: 1920px;
  --slide-h: 1080px;
  --s: 1px;
  --pad-x: max(20px, calc(88 * var(--s)));
  --pad-y: max(16px, calc(52 * var(--s)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.stage {
  width: 100%;
  height: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.deck {
  width: 100%;
  height: 100%;
  position: relative;
  container-type: size;
  container-name: deck;
  --s: min(calc(1cqi / 19.2), calc(1cqh / 10.8));
  --pad-x: max(20px, calc(88 * var(--s)));
  --pad-y: max(16px, calc(52 * var(--s)));
  background: var(--bg);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--pad-y) var(--pad-x) max(16px, calc(48 * var(--s)));
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.kicker,
.index,
.col-label,
.open-meta,
.hint,
.notes-meta,
figcaption,
.system-why,
.close-measure {
  font-size: max(13px, calc(15 * var(--s)));
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.index {
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: max(36px, calc(64 * var(--s)));
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin-top: 22px;
  font-size: max(18px, calc(22 * var(--s)));
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.takeaway {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  font-family: "Instrument Serif", serif;
  font-size: max(24px, calc(36 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.takeaway-lg {
  font-size: max(26px, calc(44 * var(--s)));
  max-width: 28ch;
}

.slide-body {
  flex: 1;
  min-height: 0;
}

/* --- Opening --- */

.slide-open {
  padding: 0;
}

.slide-open .slide-top {
  position: absolute;
  top: var(--pad-y);
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 2;
  margin-bottom: 0;
}

.s-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.s-open-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: max(72px, calc(124 * var(--s))) max(24px, calc(56 * var(--s)))
    max(24px, calc(40 * var(--s))) var(--pad-x);
}

.s-open h1 {
  font-size: max(36px, calc(76 * var(--s)));
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.s-open .lede {
  margin-top: 14px;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: max(18px, calc(24 * var(--s)));
  letter-spacing: -0.02em;
}

.open-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.open-copy {
  margin-top: 32px;
  max-width: 38ch;
}

.open-copy p {
  font-size: max(16px, calc(16 * var(--s)));
  line-height: 1.45;
  letter-spacing: -0.011em;
  color: var(--muted);
}

.open-copy p + p {
  margin-top: 12px;
}

.open-signature {
  display: block;
  width: max(140px, calc(200 * var(--s)));
  height: auto;
  margin-top: 18px;
}

.s-open .takeaway {
  margin-top: auto;
  padding-top: 22px;
  font-size: max(24px, calc(30 * var(--s)));
  line-height: 1.18;
  max-width: none;
}

.open-belief-lead {
  display: block;
  margin-bottom: 10px;
  font-family: "Inter Tight", sans-serif;
  font-size: max(13px, calc(15 * var(--s)));
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.open-portrait {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #d8d4cb;
}

.open-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 18%;
  filter: grayscale(1);
  transition: filter 480ms ease;
}

.open-portrait:hover img {
  filter: grayscale(0);
}

/* --- Chapter navigation --- */

.s-chapters {
  display: flex;
  flex-direction: column;
}

.s-chapters h1 {
  font-size: max(36px, calc(56 * var(--s)));
  max-width: 14ch;
  margin-bottom: 88px;
}

.chapters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.chapter-jump {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 40px;
  align-items: baseline;
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.chapter-jump:focus {
  outline: none;
}

.chapter .chapter-name {
  font-family: "Instrument Serif", serif;
  font-size: max(24px, calc(42 * var(--s)));
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--faint);
}

.chapter.is-current .chapter-name,
.chapter.is-current .col-label,
.chapter:not(.is-current) .chapter-jump:hover .chapter-name,
.chapter:not(.is-current) .chapter-jump:hover .col-label,
.chapter-jump:focus-visible .chapter-name,
.chapter-jump:focus-visible .col-label {
  color: var(--ink);
}

/* --- Shared artifact boards (all sources are 2048×1359) --- */

.board {
  aspect-ratio: 2048 / 1359;
  overflow: hidden;
  background: #e8eef5;
}

.board img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Slide 1 --- */

.s1 {
  display: flex;
  flex-direction: column;
}

.s1 h1 {
  font-size: max(36px, calc(52 * var(--s)));
  max-width: 18ch;
}

.s1-copy {
  margin-bottom: 24px;
}

.s1-artifacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  flex: 1;
  min-height: 0;
}

.artifact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.s1 .board {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  background: none;
}

figcaption {
  text-align: left;
}

/* --- Slide 2 --- */

.s2 {
  display: flex;
  flex-direction: column;
}

.s2 h1 {
  font-size: max(36px, calc(56 * var(--s)));
  margin-bottom: 40px;
}

.leak {
  display: flex;
  flex-direction: column;
}

.leak-head,
.leak-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
}

.leak-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.leak-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.leak-row:last-child {
  border-bottom: 0;
}

.leak-row p:first-child {
  font-family: "Instrument Serif", serif;
  font-size: max(24px, calc(36 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.leak-row p:last-child {
  font-size: max(18px, calc(24 * var(--s)));
  line-height: 1.3;
  color: var(--muted);
  align-self: center;
}

/* --- Slide 3 --- */

.s3 {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: stretch;
}

.s3 h1 {
  font-size: max(36px, calc(44 * var(--s)));
  max-width: 16ch;
}

.s3-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 8px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 56px;
}

.flow ol {
  list-style: none;
  margin-top: 16px;
}

.flow li {
  font-family: "Instrument Serif", serif;
  font-size: max(20px, calc(28 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.015em;
  padding: 6px 0;
}

.flow li + li::before {
  content: "↓";
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: max(12px, calc(13 * var(--s)));
  letter-spacing: 0;
  color: var(--faint);
  margin: 2px 0 4px;
}

.s3-hero {
  align-self: center;
  width: 100%;
  aspect-ratio: 2048 / 1359;
  background: #e8eef5;
  overflow: hidden;
}

.s3-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Slide 4 --- */

.s4 {
  display: flex;
  flex-direction: column;
}

.s4 h1 {
  font-size: max(36px, calc(56 * var(--s)));
  margin-bottom: 36px;
}

.s4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  flex: 1;
  min-height: 0;
  align-content: start;
}

.s4-grid figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.s4-grid .board {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

/* --- Slide 5 --- */

.s5 {
  display: flex;
  flex-direction: column;
}

.s5 h1 {
  font-size: max(36px, calc(52 * var(--s)));
  margin-bottom: 36px;
}

.causal {
  display: flex;
  flex-direction: column;
}

.causal-row {
  display: grid;
  grid-template-columns: 1fr auto 1.05fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.causal-row:first-child {
  border-top: 1px solid var(--line-strong);
}

.causal-row p {
  font-family: "Instrument Serif", serif;
  font-size: max(20px, calc(32 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.causal-row span {
  color: var(--faint);
  font-size: max(16px, calc(20 * var(--s)));
}

/* --- Slide 6 --- */

.s6 {
  display: flex;
  flex-direction: column;
}

.s6 h1 {
  font-size: max(36px, calc(56 * var(--s)));
  margin-bottom: 48px;
}

.lead {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  flex: 1;
  align-content: start;
}

.lead ul {
  list-style: none;
  margin-top: 22px;
}

.lead li {
  font-family: "Instrument Serif", serif;
  font-size: max(20px, calc(32 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.015em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.lead li:last-child {
  border-bottom: 0;
}

/* --- Slide 7 --- */

.s7 {
  display: flex;
  flex-direction: column;
}

.s7 h1 {
  font-size: max(36px, calc(60 * var(--s)));
  margin-bottom: 56px;
  max-width: 18ch;
}

.own-chain {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  flex: 1;
  align-content: start;
}

.own-chain li {
  position: relative;
}

.own-chain li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 2px;
  right: -32px;
  font-size: max(13px, calc(18 * var(--s)));
  color: var(--faint);
}

.own-chain li p:last-child {
  margin-top: 16px;
  font-family: "Instrument Serif", serif;
  font-size: max(22px, calc(30 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.close {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.close-own {
  font-size: max(16px, calc(20 * var(--s)));
  line-height: 1.4;
  color: var(--ink);
}

.close-measure {
  margin-top: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: max(13px, calc(17 * var(--s)));
  font-weight: 400;
}

/* --- Slide 8 --- */

.s8 {
  display: flex;
  flex-direction: column;
}

.s8-main {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 88px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.s8-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 8px;
}

.s8 h1 {
  font-size: max(36px, calc(64 * var(--s)));
  max-width: 10ch;
  line-height: 1.04;
}

.s8 .lede {
  margin-top: 28px;
  max-width: 22ch;
}

.model {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 0;
  padding: 12px 0;
}

.model::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 36px;
  width: 1px;
  background: var(--line-strong);
}

.model li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
}

.model .col-label {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 10px 0 8px;
}

.model li > div p:first-child {
  font-family: "Instrument Serif", serif;
  font-size: max(22px, calc(40 * var(--s)));
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.model li > div p:last-child {
  margin-top: 8px;
  font-size: max(16px, calc(20 * var(--s)));
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* --- Shared full-bleed artifact --- */

.hero-fill {
  flex: 1;
  min-height: 0;
}

.hero-fill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Slide 10 (case 2 tension) --- */

.lead-2 {
  grid-template-columns: 1fr 1fr;
}

/* --- Slide 12 --- */

.flow-1 {
  grid-template-columns: 1fr;
}

.s12-hero {
  width: 100%;
  min-height: 0;
}

.s12-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Slide 13 --- */

.s13 {
  display: flex;
  flex-direction: column;
}

.s13 h1 {
  font-size: max(36px, calc(52 * var(--s)));
  margin-bottom: 48px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.metric-value {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: max(48px, calc(104 * var(--s)));
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.impact-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid var(--line-strong);
}

.impact-path li {
  position: relative;
  font-family: "Instrument Serif", serif;
  font-size: max(20px, calc(28 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.impact-path li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 4px;
  right: -24px;
  font-size: max(16px, calc(16 * var(--s)));
  color: var(--faint);
}

/* --- My role --- */

.s-role {
  display: flex;
  flex-direction: column;
}

.s-role h1 {
  font-size: max(36px, calc(56 * var(--s)));
  margin-bottom: 36px;
}

.role-chain {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  justify-content: center;
  padding-bottom: 12px;
}

.role-chain li {
  font-family: "Instrument Serif", serif;
  font-size: max(30px, calc(48 * var(--s)));
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.role-chain li + li::before {
  content: "↓";
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: max(13px, calc(15 * var(--s)));
  letter-spacing: 0;
  color: var(--faint);
  margin: 8px 0;
}

/* --- Connect design to business --- */

.s-connect {
  display: flex;
  flex-direction: column;
}

.s-connect h1 {
  font-size: max(36px, calc(48 * var(--s)));
  max-width: 22ch;
  margin-bottom: 36px;
}

.connect {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  flex: 1;
  min-height: 0;
  align-content: start;
}

.connect-lang ol {
  list-style: none;
  margin-top: 16px;
}

.connect-lang li {
  font-family: "Instrument Serif", serif;
  font-size: max(20px, calc(32 * var(--s)));
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.connect-lang li:last-child {
  border-bottom: 0;
}

.connect-chain {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.connect-chain li p:last-child {
  margin-top: 8px;
  font-family: "Instrument Serif", serif;
  font-size: max(20px, calc(32 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.connect-chain li + li {
  margin-top: 8px;
}

.connect-chain li + li::before {
  content: "↓";
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: max(12px, calc(13 * var(--s)));
  letter-spacing: 0;
  color: var(--faint);
  margin: 10px 0 12px;
}

/* --- Design's job changed --- */

.s-evolve {
  display: flex;
  flex-direction: column;
}

.s-evolve h1 {
  font-size: max(36px, calc(56 * var(--s)));
  margin-bottom: 48px;
}

.evolve {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
  flex: 1;
  align-content: start;
}

.evolve ol {
  list-style: none;
}

.evolve li {
  font-family: "Instrument Serif", serif;
  font-size: max(22px, calc(40 * var(--s)));
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.evolve li + li::before {
  content: "↓";
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: max(13px, calc(15 * var(--s)));
  letter-spacing: 0;
  color: var(--faint);
  margin: 14px 0;
}

/* --- Slide 15 (case 3 title) --- */

.s-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 72px;
}

.s-title h1 {
  font-size: max(36px, calc(80 * var(--s)));
  max-width: 14ch;
  line-height: 1.02;
}

.s-title .lede {
  margin-top: 32px;
  font-size: max(18px, calc(26 * var(--s)));
  max-width: 34ch;
}

/* --- Slide 17 (common language) --- */

.lang-hero {
  align-self: center;
  width: 100%;
}

.lang-hero ol {
  list-style: none;
  margin-top: 18px;
}

.lang-hero li {
  font-family: "Instrument Serif", serif;
  font-size: max(22px, calc(40 * var(--s)));
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.lang-hero li:last-child {
  border-bottom: 0;
}

.s3-copy .takeaway {
  margin-top: 0;
  padding-top: 24px;
}

/* --- Slide 18 (causal system) --- */

.own-chain-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.own-chain-4 li:not(:last-child)::after {
  right: -24px;
}

.own-chain-4 li p:last-child {
  font-size: max(18px, calc(26 * var(--s)));
}

/* --- Slide 20 (operating layers) --- */

.lead-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.lead-4 li {
  font-size: max(18px, calc(26 * var(--s)));
  padding: 10px 0;
}

.s20 h1 {
  font-size: max(36px, calc(52 * var(--s)));
  margin-bottom: 40px;
}

/* --- Notes & chrome --- */

.notes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #161513;
  color: #f4f2ec;
  padding: 22px 32px 28px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.25);
}

.notes[hidden] {
  display: none;
}

.notes-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #9a968c;
}

.notes-body {
  font-size: max(16px, calc(20 * var(--s)));
  line-height: 1.5;
  max-width: 78ch;
  color: #f4f2ec;
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(244, 242, 236, 0.38);
  pointer-events: none;
  transition: opacity 400ms ease;
}

.hint.is-gone {
  opacity: 0;
}

/* --- Responsive layouts --- */

@container deck (max-width: 1180px) {
  .s-open {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 32cqh) auto;
    height: auto;
    min-height: 100%;
  }

  .open-portrait {
    order: -1;
    height: 100%;
  }

  .s-open-copy {
    padding-top: max(28px, calc(48 * var(--s)));
  }

  .s-open .takeaway {
    margin-top: 28px;
  }

  .s3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .s3-copy {
    justify-content: flex-start;
    gap: 28px;
  }

  .flow {
    margin-top: 0;
  }

  .s3-hero,
  .s12-hero {
    max-height: 46cqh;
  }

  .s8-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .s8-copy {
    justify-content: flex-start;
  }

  .connect {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lead-4 {
    grid-template-columns: 1fr 1fr;
  }

  .impact-path {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .impact-path li:not(:last-child)::after {
    display: none;
  }

  .chapter-jump {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
  }
}

@container deck (max-width: 860px) {
  .s4-grid,
  .metrics,
  .lead,
  .own-chain {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .evolve {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 10px;
  }

  .evolve-col + .evolve-col {
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
  }

  .slide .slide-body h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .evolve li {
    font-size: 17px;
  }

  .evolve li + li::before {
    margin: 8px 0;
  }

  .s-evolve h1 {
    margin-bottom: 28px;
  }

  .lead-4 {
    grid-template-columns: 1fr;
  }

  .flow,
  .leak-head,
  .leak-row,
  .causal-row {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .causal-row span {
    display: none;
  }

  .s-chapters h1 {
    margin-bottom: 36px;
  }

  .chapter-jump {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
  }

  .s-title {
    padding-bottom: 24px;
  }

  .slide-open .slide-top {
    color: var(--ink);
  }

  .model::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .hint {
    display: none;
  }
}

/* --- Password gate --- */

html:has(.gate-page),
.gate-page {
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
}

.gate {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 32px;
  text-align: center;
}

.gate-signature {
  width: min(220px, 48vw);
  height: auto;
  margin-bottom: 64px;
}

.gate h1 {
  color: var(--ink);
  font-size: clamp(44px, 5.4vw, 64px);
  letter-spacing: -0.03em;
}

.gate .lede {
  margin-top: 20px;
  max-width: none;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--muted);
}

.gate-for {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--faint);
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(280px, 100%);
  margin-top: 80px;
}

.gate-form input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-align: center;
  outline: none;
}

.gate-form input::placeholder {
  color: var(--faint);
  letter-spacing: 0.06em;
}

.gate-form input:focus {
  border-bottom-color: var(--ink);
}

.gate-form button {
  margin-top: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.gate-form button:hover {
  color: var(--ink);
}

.gate-error {
  margin-top: 18px;
  font-size: 15px;
  color: #c45b4a;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.notes-open .hint {
  display: none;
}

@media print {
  @page {
    size: 1920px 1080px;
    margin: 0;
  }

  html,
  body {
    background: var(--bg);
    overflow: visible;
    height: auto;
  }

  .stage {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--bg);
  }

  .deck {
    position: relative;
    transform: none !important;
    box-shadow: none;
    width: 1920px;
    height: auto;
    container-type: normal;
    --s: 1px;
  }

  .slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    height: 1080px;
    page-break-after: always;
    break-after: page;
  }

  .notes,
  .hint {
    display: none !important;
  }
}
