:root {
  --white: #fff;
  --black: #000;
  --grey: #8e8e8e;
  --hairline: rgba(0, 0, 0, 0.12);
  --sans: 'Inter Variable', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hero-min: 1.6rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

html[data-theme='dark'] {
  background: var(--black);
}

body.notes-open {
  background: var(--white);
}

#app,
.layout {
  height: 100dvh;
  width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

/* Stage: the 16:9 canvas. All slide type is sized in container units (cqw/cqh)
   so the same slide scales down cleanly when the stage shrinks in notes view. */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

.stage[data-theme='dark'] {
  background: var(--black);
  color: var(--white);
}

.slides {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10cqh 9cqw 14cqh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

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

.content {
  width: 100%;
  max-width: 88cqw;
  margin: 0;
  text-align: center;
}

.hero,
.quote,
.stat-value,
.word,
.name,
.line-text,
.cell-left,
.cell-right,
.figure-caption {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.hero-xl {
  font-size: clamp(var(--hero-min), min(9cqw, 15cqh), 14rem);
}

.hero-lg {
  font-size: clamp(var(--hero-min), min(6.4cqw, 11cqh), 10rem);
}

.hero-md {
  font-size: clamp(var(--hero-min), min(4.6cqw, 8cqh), 7rem);
  line-height: 1.15;
}

.hero-sm {
  font-size: clamp(1rem, min(2.6cqw, 4.6cqh), 3.5rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 62cqw;
  margin-inline: auto;
}

/* The two-line thesis slide (slides 15 and 21): two sentences, nothing else. */
.hero-pair {
  font-size: clamp(var(--hero-min), min(3.15cqw, 5.6cqh), 5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 94cqw;
  margin-inline: auto;
  display: grid;
  gap: 4cqh;
}

.hero-line {
  display: block;
  text-wrap: balance;
}

.content-hero .footnote {
  margin-top: 4cqh;
}

.stage.is-bare .chrome,
.stage.is-bare .progress {
  visibility: hidden;
}

.sub,
.footnote,
.attribution,
.stat-label,
.stat-unit,
.name-line,
.close-links,
.counter {
  color: var(--grey);
}

.content-title .sub {
  margin-top: 4cqh;
  font-size: clamp(0.9rem, min(1.9cqw, 3.3cqh), 1.9rem);
  letter-spacing: 0.01em;
}

/* Quote */
.content-quote {
  max-width: 82cqw;
}

.quote {
  font-size: clamp(1.25rem, min(4.2cqw, 7.2cqh), 6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 300;
}

.attribution {
  margin-top: 4cqh;
  font-size: clamp(0.85rem, min(1.8cqw, 3.1cqh), 1.8rem);
  letter-spacing: 0.01em;
}

.quote-note {
  margin: 5cqh 0 0;
  font-size: clamp(1rem, min(2.6cqw, 4.6cqh), 3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Figures: a small grey title, one drawing, one annotation sentence. All drawn
   from content/data.json; black, white and one grey. */
.content-figure {
  display: grid;
  gap: 2.4cqh;
  justify-items: center;
  max-width: 82cqw;
}

.chart {
  width: 100%;
  height: auto;
  max-height: 54cqh;
  display: block;
  overflow: visible;
}

.content-timeline .chart,
.content-lock .chart,
.content-shield .chart {
  max-height: 58cqh;
}

.chart-label,
.chart-tick,
.chart-word,
.chart-number {
  fill: currentColor;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.chart-label {
  font-size: 30px;
}

.chart-tick {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.chart-word {
  font-family: var(--sans);
  font-size: 36px;
  letter-spacing: -0.02em;
}

.chart-number {
  font-family: var(--sans);
  font-size: 60px;
  letter-spacing: -0.03em;
}

.stage[data-theme='dark'] .chart-inverse {
  fill: var(--black);
}

.stage[data-theme='light'] .chart-inverse {
  fill: var(--white);
}

.chart-title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.7rem, min(1.45cqw, 2.6cqh), 1.45rem);
  letter-spacing: 0.06em;
  color: var(--grey);
}

.chart-caption {
  margin: 0;
  font-size: clamp(1rem, min(2.5cqw, 4.4cqh), 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  max-width: 76cqw;
}

/* 2×2 grid: the two checks */
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--hairline);
}

.grid2 > span {
  padding: 3.2cqh 2cqw;
  border-bottom: 1px solid var(--hairline);
}

.grid-head,
.grid-row-label {
  font-family: var(--mono);
  font-size: clamp(0.75rem, min(1.5cqw, 2.7cqh), 1.5rem);
  letter-spacing: 0.04em;
  color: var(--grey);
  align-self: end;
}

.grid-cell {
  font-size: clamp(1.2rem, min(3.6cqw, 6.4cqh), 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.grid-cell-then {
  color: var(--grey);
}

/* Layers: five bands, bottom is compute */
.layers {
  display: grid;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--hairline);
}

.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  column-gap: 3cqw;
  align-items: center;
  padding: 2cqh 0;
  border-bottom: 1px solid var(--hairline);
}

.layer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 2cqw;
  row-gap: 0.4cqh;
}

.layer-name {
  font-size: clamp(1.1rem, min(3cqw, 5.3cqh), 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.layer-subnets,
.layer-number {
  font-family: var(--mono);
  font-size: clamp(0.72rem, min(1.45cqw, 2.6cqh), 1.5rem);
  letter-spacing: 0.02em;
  color: var(--grey);
}

.layer-number {
  color: inherit;
  text-align: right;
}

/* Network: the incentives ledger. Boxes are hairline, lines are labelled, the legend is one grey line. */
.content-network .chart {
  max-height: 58cqh;
}

.net-box {
  fill: var(--white);
  stroke: currentColor;
}

.stage[data-theme='dark'] .net-box {
  fill: var(--black);
}

.net-name {
  font-family: var(--sans);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.net-sub,
.net-edge {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.net-halo {
  stroke: var(--white);
  stroke-width: 7px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.stage[data-theme='dark'] .net-halo {
  stroke: var(--black);
}

.chart-legend {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.6rem, min(1.15cqw, 2.1cqh), 1.15rem);
  letter-spacing: 0.04em;
  color: var(--grey);
  text-align: center;
  text-wrap: balance;
}

/* Trend: the five-year log chart, taller than the other figures */
.content-trendlog .chart {
  max-height: 64cqh;
}

/* Growth charts: the two "up and to the right" slides share the trend chart's height and run a little wider for the right-edge labels */
.content-growth .chart {
  max-height: 64cqh;
}

.content-figure.content-growth {
  max-width: 88cqw;
}

/* Cards: the library row, one subnet per card; the row runs wider than the other figures */
.slide.kind-cards {
  padding-left: 5cqw;
  padding-right: 5cqw;
}

.content-figure.content-cards {
  max-width: 90cqw;
  gap: 3cqh;
}

.cards-heading {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.1rem, min(3.4cqw, 6cqh), 5rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.cards {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1cqw;
  width: 100%;
  text-align: left;
}

.card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  row-gap: 1.4cqh;
  min-height: 40cqh;
  padding: 2.2cqh 0.9cqw;
  border: 1px solid currentColor;
}

.card-netuid,
.card-number {
  font-family: var(--mono);
  font-size: clamp(0.6rem, min(1cqw, 1.9cqh), 1.1rem);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.card-netuid {
  color: var(--grey);
}

.card-name {
  font-size: clamp(0.9rem, min(1.35cqw, 2.6cqh), 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.card-function {
  font-size: clamp(0.7rem, min(1.15cqw, 2.1cqh), 1.4rem);
  line-height: 1.3;
  color: var(--grey);
}

.card-number {
  color: inherit;
  align-self: end;
  padding-top: 1cqh;
  border-top: 1px solid var(--hairline);
}

.stage[data-theme='dark'] .card-number {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.cards-caption {
  font-size: clamp(0.9rem, min(1.8cqw, 3.2cqh), 2.4rem);
  color: var(--grey);
}

/* Panels: the data layer, four subnets side by side, each on its own scale */
.content-figure.content-panels {
  max-width: 90cqw;
  gap: 3cqh;
}

.panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2cqw;
  width: 100%;
  text-align: left;
}

.panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  row-gap: 1cqh;
  padding-top: 2cqh;
  border-top: 1px solid currentColor;
}

.panel-head,
.panel-measure,
.panel-range {
  font-family: var(--mono);
  font-size: clamp(0.62rem, min(1.15cqw, 2.1cqh), 1.25rem);
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--grey);
}

.panel-number {
  font-size: clamp(1.4rem, min(4.2cqw, 7.4cqh), 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel-measure {
  color: inherit;
  /* Two lines reserved, so the four sparklines sit on one baseline. */
  min-height: 2.6em;
}

.sparkline {
  width: 100%;
  height: auto;
  max-height: 22cqh;
  display: block;
  overflow: visible;
  margin-top: 1cqh;
}

.panel-range {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
}

/* Metrics grid: twelve panels, 4×3 at 16:9. Same parts as the four-panel row, a third the height,
   so every size is set from the stage height and the sparklines are flatter. */
.content-figure.content-metrics-grid {
  max-width: 92cqw;
  gap: 1.4cqh;
}

.content-metrics-grid .chart-title {
  font-size: clamp(0.65rem, min(1.3cqw, 2.3cqh), 1.3rem);
}

.panels-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4cqh 2cqw;
}

.panels-grid .panel {
  row-gap: 0.35cqh;
  padding-top: 0.9cqh;
}

.panels-grid .panel-head,
.panels-grid .panel-measure,
.panels-grid .panel-range {
  font-size: clamp(0.55rem, min(1.05cqw, 1.7cqh), 1.15rem);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panels-grid .panel-number {
  font-size: clamp(1.2rem, min(2.8cqw, 4.4cqh), 3.8rem);
}

.panels-grid .panel-measure {
  min-height: 0;
}

.panels-grid .sparkline {
  max-height: 6.9cqh;
  margin-top: 0.4cqh;
}

.content-metrics-grid .chart-caption {
  font-size: clamp(0.95rem, min(2.2cqw, 3.8cqh), 2.6rem);
}

.chart-footnote {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.5rem, min(1cqw, 1.6cqh), 1rem);
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--grey);
  max-width: 84cqw;
  text-wrap: balance;
}

/* Grade: three layers, a filled or hollow mark */
.grade {
  display: grid;
  gap: 3.6cqh;
  width: 100%;
  text-align: left;
}

.grade-row {
  display: grid;
  grid-template-columns: auto minmax(0, 0.55fr) minmax(0, 1.45fr);
  column-gap: 3cqw;
  align-items: baseline;
}

.grade-mark {
  display: inline-block;
  width: clamp(0.8rem, min(1.8cqw, 3.2cqh), 1.9rem);
  height: clamp(0.8rem, min(1.8cqw, 3.2cqh), 1.9rem);
  border: 2px solid currentColor;
  align-self: center;
}

.grade-decentralized {
  background: currentColor;
}

.grade-layer {
  font-size: clamp(1.2rem, min(3.6cqw, 6.4cqh), 5.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.grade-line {
  font-size: clamp(0.85rem, min(1.7cqw, 3cqh), 1.8rem);
  color: var(--grey);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.notes-minute {
  font-family: var(--mono);
  color: var(--grey);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  align-self: center;
}

/* Stats */
.content-stats {
  display: flex;
  gap: 10cqw;
  justify-content: center;
  align-items: flex-start;
}

.stats-row {
  flex-direction: row;
}

.stats-row .stat {
  flex: 1 1 0;
}

.stats-column {
  flex-direction: column;
  gap: 5cqh;
  align-items: stretch;
}

.stats-column .stat {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 4cqw;
  text-align: left;
}

.stats-column .stat-value {
  text-align: right;
}

.stat-label {
  font-family: var(--mono);
  font-size: clamp(0.8rem, min(1.6cqw, 2.8cqh), 1.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 2cqh;
}

.stat-value {
  font-size: clamp(2rem, min(6.6cqw, 11.5cqh), 10rem);
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  margin-top: 1.5cqh;
  font-size: clamp(0.9rem, min(2.1cqw, 3.7cqh), 2.1rem);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.stats-column .stat-unit {
  margin-top: 0;
}

/* Lines (slides 10 and 22) */
.content-lines {
  display: grid;
  gap: 4.5cqh;
  text-align: left;
  max-width: 84cqw;
}

.line-row {
  display: grid;
  grid-template-columns: minmax(14cqw, auto) minmax(0, 1fr);
  column-gap: 4cqw;
  align-items: baseline;
}

.line-lead {
  font-family: var(--mono);
  font-size: clamp(0.8rem, min(1.7cqw, 3cqh), 1.7rem);
  letter-spacing: 0.04em;
  color: var(--grey);
  white-space: nowrap;
}

.line-text {
  font-size: clamp(1.1rem, min(3.3cqw, 5.8cqh), 5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* Table (slide 11) */
.plain-table {
  margin: 0 auto;
  border-collapse: collapse;
  font-size: clamp(1.1rem, min(3.4cqw, 6cqh), 5rem);
}

.plain-table td {
  padding: 0.55cqh 3cqw;
  line-height: 1.2;
}

.cell-left {
  text-align: right;
}

.cell-right {
  text-align: left;
  color: var(--grey);
  letter-spacing: -0.01em;
}

.row-emphasis td {
  padding-top: 3cqh;
  font-weight: 600;
}

.row-emphasis .cell-right {
  color: inherit;
}

/* Cascade (slide 9): a column of words, largest to smallest */
.cascade {
  display: grid;
  justify-items: center;
  gap: 0.6cqh;
}

.cascade-word {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(1.3rem, min(6.4cqw, 11cqh), 10rem);
}

.cascade-word:nth-child(2) {
  font-size: clamp(1.15rem, min(5.2cqw, 9cqh), 8rem);
}

.cascade-word:nth-child(3) {
  font-size: clamp(1rem, min(4.2cqw, 7.2cqh), 6.5rem);
}

.cascade-word:nth-child(4) {
  font-size: clamp(0.9rem, min(3.3cqw, 5.7cqh), 5rem);
}

.cascade-word:nth-child(5) {
  font-size: clamp(0.8rem, min(2.5cqw, 4.3cqh), 3.8rem);
}

/* Hash (slide 13) */
.hash {
  font-family: var(--mono);
  font-size: clamp(0.75rem, min(1.9cqw, 3.4cqh), 1.9rem);
  letter-spacing: 0.06em;
  word-break: break-all;
  line-height: 1.6;
  max-width: 70cqw;
  display: inline-block;
}

/* Figures (slides 9 and 14) */
.content-figure {
  display: grid;
  gap: 3cqh;
  justify-items: center;
}

.figure-svg {
  width: min(78cqw, 110cqh);
  height: auto;
  max-height: 52cqh;
  display: block;
}

.figure-caption {
  font-size: clamp(1.4rem, min(4cqw, 7cqh), 6rem);
  letter-spacing: -0.03em;
}

/* Words across (slides 17, 20, 24) */
.words {
  display: flex;
  justify-content: space-between;
  gap: 3cqw;
  flex-wrap: wrap;
}

.word {
  font-size: clamp(1.6rem, min(6.2cqw, 11cqh), 10rem);
  flex: 1 1 auto;
  text-align: center;
}

.words-4 .word {
  font-size: clamp(1.4rem, min(4.8cqw, 8.4cqh), 7.5rem);
}

.footnote {
  margin: 6cqh 0 0;
  font-family: var(--mono);
  font-size: clamp(0.75rem, min(1.55cqw, 2.8cqh), 1.55rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Names (slide 19) */
.names {
  display: grid;
  gap: 3.4cqh;
  text-align: left;
  width: fit-content;
  margin: 0 auto;
}

.name-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  column-gap: 3cqw;
  align-items: baseline;
}

.name {
  font-size: clamp(1.5rem, min(4.6cqw, 8cqh), 7rem);
}

.name-line {
  font-size: clamp(0.95rem, min(2.3cqw, 4.1cqh), 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Close (slide 26) */
.content-close {
  display: grid;
  justify-items: center;
  gap: 4cqh;
}

.close-mark svg {
  width: min(16cqw, 26cqh);
  height: auto;
  display: block;
}

.close-line {
  margin: 0;
  font-size: clamp(1rem, min(2.4cqw, 4.2cqh), 3rem);
  letter-spacing: -0.02em;
}

.close-links {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.8rem, min(1.6cqw, 2.8cqh), 1.6rem);
  letter-spacing: 0.04em;
}

.close-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  pointer-events: auto;
}

/* Chrome: logo bottom-left, counter bottom-right, progress hairline */
.chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4cqw 4.5cqh;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  pointer-events: auto;
}

.brand svg {
  height: clamp(16px, min(2cqw, 3.6cqh), 34px);
  width: auto;
  display: block;
}

.counter {
  font-family: var(--mono);
  font-size: clamp(0.65rem, min(1.1cqw, 2cqh), 1.1rem);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

/* Notes view: the stage shrinks to a 16:9 box; the notes take the rest. */
body.notes-open {
  --hero-min: 0.75rem;
}

body.notes-open .layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  gap: 0;
}

body.notes-open .stage {
  align-self: center;
  justify-self: center;
  width: calc(100% - 3rem);
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 3rem);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.notes {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--hairline);
  background: var(--white);
  color: var(--black);
}

.notes[hidden] {
  display: none;
}

.notes-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2.25rem 2.5rem 2rem;
}

.notes-body {
  max-width: 44rem;
}

.notes-header {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.notes-number {
  font-family: var(--mono);
  color: var(--grey);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.notes-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.verify-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--black);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  align-self: center;
}

.jacob-badge {
  background: var(--black);
  color: var(--white);
}

.note-tag {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0.02em;
  padding: 0.05em 0.3em;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  border: 1px solid var(--black);
}

.note-tag-jacob {
  background: var(--black);
  color: var(--white);
}

.note-tag-verify {
  border-color: var(--grey);
  color: var(--grey);
}

.notes-heading {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.notes-onscreen {
  margin: 0;
  color: var(--grey);
  font-size: 0.98rem;
  line-height: 1.5;
}

.notes-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.7rem;
  font-size: 1.08rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.notes-list li::marker {
  color: var(--grey);
}

.notes-next {
  margin: 0;
  font-size: 1rem;
}

.notes-help {
  margin: 0;
  padding: 0.9rem 2.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.notes-help kbd {
  font: inherit;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.05rem 0.3rem;
  margin-right: 0.15rem;
}

/* Phone and narrow windows */
@media (max-width: 820px) {
  body.notes-open .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.notes-open .stage {
    width: 100%;
    max-height: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
  }

  .notes {
    border-left: 0;
  }

  .notes-scroll {
    padding: 1.5rem 1.25rem;
  }

  .notes-help {
    padding: 0.75rem 1.25rem;
  }

  .notes-title {
    font-size: 1.3rem;
  }
}

/* Portrait stage: stacked layouts, wider text column */
@container (aspect-ratio < 1) {
  .slide {
    padding: 8cqh 7cqw 14cqh;
  }

  .content {
    max-width: 92cqw;
  }

  .hero-sm,
  .hero-pair {
    max-width: 88cqw;
  }

  .stats-row {
    flex-direction: column;
    gap: 6cqh;
    align-items: stretch;
  }

  .stats-column .stat {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    row-gap: 1cqh;
  }

  .stats-column .stat-value {
    text-align: center;
  }

  .words {
    flex-direction: column;
    gap: 2cqh;
  }

  .line-row,
  .name-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.8cqh;
  }

  .plain-table {
    font-size: clamp(1rem, 5cqw, 4rem);
  }

  .hash {
    max-width: 90cqw;
  }

  .content-figure {
    max-width: 94cqw;
    gap: 1.6cqh;
  }

  .chart {
    max-height: 46cqh;
  }

  .chart-caption {
    max-width: 90cqw;
    font-size: clamp(0.95rem, 4.6cqw, 2rem);
  }

  .grid2 {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .grid2 > span {
    padding: 1.6cqh 1.2cqw;
  }

  .grid-cell {
    font-size: clamp(1rem, 5.6cqw, 2.6rem);
  }

  .layer-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.4cqh;
    padding: 1.2cqh 0;
  }

  .layer-number {
    text-align: left;
  }

  .layer-name {
    font-size: clamp(1rem, 6cqw, 2.4rem);
  }

  .grade-row {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.4cqh;
  }

  .grade-line {
    grid-column: 2;
  }

  .content-trendlog .chart {
    max-height: 50cqh;
  }

  .content-growth .chart {
    max-height: 50cqh;
  }

  .content-figure.content-cards {
    max-width: 94cqw;
    gap: 2cqh;
  }

  .cards-heading {
    font-size: clamp(1.1rem, 6cqw, 2.4rem);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6cqw;
  }

  .card {
    min-height: 0;
    row-gap: 0.6cqh;
    padding: 1.4cqh 2.4cqw;
  }

  .card-netuid,
  .card-number {
    font-size: clamp(0.55rem, 2.6cqw, 0.9rem);
  }

  .card-name {
    font-size: clamp(0.9rem, 4.6cqw, 1.6rem);
  }

  .card-function {
    font-size: clamp(0.65rem, 3cqw, 1rem);
  }

  .cards-caption {
    font-size: clamp(0.85rem, 4cqw, 1.4rem);
  }

  .content-figure.content-panels {
    max-width: 94cqw;
    gap: 2cqh;
  }

  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4cqh 5cqw;
  }

  .panel {
    row-gap: 0.5cqh;
    padding-top: 1.2cqh;
  }

  .panel-head,
  .panel-measure,
  .panel-range {
    font-size: clamp(0.55rem, 2.7cqw, 0.9rem);
  }

  .panel-number {
    font-size: clamp(1.3rem, 7cqw, 2.6rem);
  }

  .sparkline {
    max-height: 12cqh;
  }

  /* The metrics grid stacks 2×6 on a phone; heights come from the stage height so six rows fit above the chrome. */
  .content-figure.content-metrics-grid {
    max-width: 94cqw;
    gap: 1cqh;
  }

  .content-metrics-grid .chart-title {
    font-size: clamp(0.55rem, 2.6cqw, 0.8rem);
  }

  .panels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6cqh 4cqw;
  }

  .panels-grid .panel {
    row-gap: 0.15cqh;
    padding-top: 0.5cqh;
  }

  .panels-grid .panel-head,
  .panels-grid .panel-measure,
  .panels-grid .panel-range {
    font-size: clamp(0.5rem, 2.3cqw, 0.75rem);
    line-height: 1.25;
  }

  .panels-grid .panel-number {
    font-size: clamp(1rem, 5cqw, 1.6rem);
  }

  /* A long start label ("$55.9M · Apr 2026") and the end date share 175px on a phone; let the end date drop a line. */
  .panels-grid .panel-range {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
  }

  .panels-grid .panel-range > span {
    white-space: nowrap;
  }

  .panels-grid .sparkline {
    max-height: 3.2cqh;
    margin-top: 0.2cqh;
  }

  .content-metrics-grid .chart-caption {
    font-size: clamp(0.85rem, 3.7cqw, 1.5rem);
  }

  .chart-footnote {
    max-width: 94cqw;
    font-size: clamp(0.45rem, 2.1cqw, 0.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .stage,
  .progress {
    transition: none;
  }
}
