:root {
  --paper: oklch(96% 0.025 78);
  --paper-2: oklch(91% 0.035 82);
  --ink: oklch(18% 0.035 255);
  --muted: oklch(43% 0.045 250);
  --red: oklch(58% 0.23 24);
  --red-dark: oklch(37% 0.18 24);
  --blue: oklch(47% 0.13 245);
  --green: oklch(67% 0.16 148);
  --yellow: oklch(82% 0.17 86);
  --line: oklch(24% 0.035 255);
  --surface: oklch(99% 0.018 83);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --font-display: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-kerning: normal;
  background:
    linear-gradient(90deg, oklch(92% 0.035 78) 1px, transparent 1px),
    linear-gradient(0deg, oklch(92% 0.035 78) 1px, transparent 1px),
    var(--paper-2);
  background-size: 42px 42px;
}

button {
  font: inherit;
}

.keep,
.line {
  white-space: nowrap;
}

.line {
  display: block;
}

.viewport {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.deck {
  position: relative;
  width: min(100%, calc((100vh - 36px) * 16 / 9));
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid oklch(76% 0.045 78);
  box-shadow: 0 28px 70px oklch(18% 0.035 255 / 0.22);
  container-type: inline-size;
}

.deck::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 6.2%, oklch(35% 0.04 255 / 0.13) 6.2% calc(6.2% + 1px), transparent calc(6.2% + 1px)),
    radial-gradient(circle at 12% 18%, oklch(18% 0.035 255 / 0.12) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 13px 13px;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 5.2cqw 6.4cqw;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(2.2%, 0, 0) scale(0.985);
  transition:
    opacity 360ms var(--ease-out),
    transform 520ms var(--ease-out);
}

.slide.active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.slide::after {
  content: attr(data-slide);
  position: absolute;
  right: 2.7cqw;
  top: 2.1cqw;
  color: oklch(31% 0.04 255 / 0.32);
  font-family: Georgia, serif;
  font-size: 1.35cqw;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  margin: 0 0 1.2cqw;
  color: var(--red-dark);
  font-size: clamp(0.75rem, 1.12cqw, 1.15rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
}

h1 {
  max-width: 52cqw;
  font-size: clamp(2.9rem, 7.8cqw, 8rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 5.5cqw, 6.1rem);
}

h3,
p {
  margin: 0;
}

h3,
p,
li,
span,
b,
strong,
small,
div {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
}

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

.print-mark {
  position: absolute;
  top: 3.2cqw;
  left: 3.2cqw;
  width: 5.5cqw;
  height: 5.5cqw;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
}

.cover {
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 54%, var(--red) 54% 66%, transparent 66%),
    linear-gradient(90deg, oklch(97% 0.02 84), oklch(94% 0.035 76));
}

.cover-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.76fr;
  grid-template-rows: auto 1fr auto;
  gap: 1.4cqw 3cqw;
  align-items: end;
}

.cover .eyebrow {
  grid-column: 1 / -1;
  align-self: start;
}

.cover h1 {
  grid-column: 1;
  align-self: center;
}

.cover-meta {
  display: flex;
  grid-column: 1;
  gap: 1.4cqw;
  align-items: center;
  color: var(--muted);
  font-size: clamp(1rem, 1.55cqw, 1.55rem);
  font-weight: 700;
}

.cover-number {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  justify-self: end;
  width: 27cqw;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.cover-number span {
  font-family: Georgia, serif;
  font-size: 13cqw;
  font-weight: 800;
  line-height: 0.78;
  font-variant-numeric: tabular-nums;
}

.cover-number small {
  margin-top: -4cqw;
  color: var(--yellow);
  font-size: 1.35cqw;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-band {
  position: absolute;
  right: -8cqw;
  bottom: -9cqw;
  width: 46cqw;
  height: 16cqw;
  background:
    repeating-linear-gradient(90deg, var(--yellow) 0 1.1cqw, var(--green) 1.1cqw 2.2cqw, var(--blue) 2.2cqw 3.3cqw, var(--red) 3.3cqw 4.4cqw);
  transform: rotate(-12deg);
}

.agenda {
  align-content: start;
}

.agenda h2 {
  font-size: clamp(3rem, 7.8cqw, 8rem);
  margin-bottom: 2.5cqw;
}

.agenda-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  min-height: 32cqw;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.agenda-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2.2cqw;
  padding: 1.5cqw 1.05cqw;
  border-left: 1px solid oklch(24% 0.035 255 / 0.3);
  animation: rise 680ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 65ms);
}

.agenda-item:nth-child(even) {
  background: oklch(91% 0.04 82);
}

.agenda-item time {
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.45cqw;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.agenda-item span {
  font-size: 1.38cqw;
  font-weight: 850;
  line-height: 1.24;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31cqw;
  gap: 5cqw;
  align-items: center;
}

.split.wide {
  grid-template-columns: minmax(0, 1fr) 40cqw;
}

.copy {
  min-width: 0;
}

.identity-stack,
.principle-list,
.source-grid {
  display: grid;
  gap: 1.1cqw;
  margin-top: 2.8cqw;
}

.identity-stack p,
.principle-list p,
.source-grid p {
  display: grid;
  grid-template-columns: 6.6cqw 1fr;
  gap: 1.2cqw;
  align-items: start;
  padding: 1cqw 0;
  border-top: 1px solid oklch(31% 0.04 255 / 0.22);
}

.identity-stack strong,
.principle-list b,
.source-grid b {
  color: var(--red-dark);
  font-size: 1.15cqw;
  font-weight: 900;
}

.identity-stack span,
.principle-list span,
.source-grid span {
  font-size: 1.62cqw;
  font-weight: 760;
  line-height: 1.22;
}

.portrait-frame {
  position: relative;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: rotate(2.4deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -1.2cqw 1.2cqw 1.2cqw -1.2cqw;
  z-index: -1;
  background: var(--red);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  object-position: 50% 5%;
  filter: saturate(0.92) contrast(1.06);
}

.results {
  align-content: start;
}

.results h2 {
  max-width: 15ch;
  margin-bottom: 1.8cqw;
  font-size: clamp(2.35rem, 4.8cqw, 5.4rem);
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 43cqw;
  gap: 3.4cqw;
  align-items: center;
}

.stat-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8cqw;
}

.metric {
  min-height: 9cqw;
  padding: 1.1cqw;
  color: var(--ink);
  background: oklch(99% 0.015 84);
  border: 2px solid var(--ink);
  border-radius: 6px;
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 75ms);
}

.metric.big {
  grid-column: span 2;
  min-height: 10.5cqw;
}

.metric.red {
  color: var(--paper);
  background: var(--red);
}

.metric.blue {
  color: var(--paper);
  background: var(--blue);
}

.metric.green {
  background: var(--green);
}

.metric b {
  display: block;
  font-family: Georgia, serif;
  font-size: 4.4cqw;
  line-height: 0.95;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 0.45cqw;
  font-size: 1.2cqw;
  font-weight: 850;
}

.phone-stack {
  position: relative;
  height: 33cqw;
}

.phone {
  position: absolute;
  top: 0;
  width: 17.8cqw;
  height: 33cqw;
  object-fit: cover;
  object-position: top center;
  border: 0.42cqw solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 1.2cqw 2.5cqw oklch(18% 0.035 255 / 0.24);
  animation: phoneIn 760ms var(--ease-out) both;
}

.phone.one {
  left: 0;
  transform: rotate(-7deg);
}

.phone.two {
  left: 12cqw;
  z-index: 2;
  animation-delay: 90ms;
}

.phone.three {
  left: 24cqw;
  transform: rotate(6deg);
  animation-delay: 180ms;
}

.thesis {
  align-content: center;
  background:
    linear-gradient(90deg, transparent 0 50%, oklch(93% 0.045 78) 50%),
    var(--paper);
}

.thesis h2 {
  max-width: 14ch;
}

.attention-map {
  margin-top: 3cqw;
}

.thesis-line.primary {
  font-family: var(--font-display);
  font-size: 10.4cqw;
  font-weight: 900;
  line-height: 0.9;
  color: var(--red);
}

.chain {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin-top: 1.9cqw;
}

.chain span {
  padding: 0.85cqw 1.1cqw;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  font-size: 1.55cqw;
  font-weight: 880;
}

.chain i {
  width: 4.2cqw;
  height: 2px;
  background: var(--red);
  transform-origin: left center;
  animation: draw 720ms var(--ease-out) both;
}

.attention-map p {
  max-width: 45ch;
  margin-top: 2.4cqw;
  color: var(--muted);
  font-size: 2cqw;
  font-weight: 720;
  line-height: 1.32;
}

.side-note {
  position: absolute;
  right: 5.5cqw;
  bottom: 5.4cqw;
  width: 24cqw;
  padding-top: 1.1cqw;
  border-top: 4px solid var(--red);
  font-size: 2.05cqw;
  font-weight: 900;
  line-height: 1.15;
}

.media-board,
.tutorial-card {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 1.3cqw 1.3cqw 0 var(--yellow);
}

.media-board img,
.tutorial-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  object-position: top center;
}

.principles h2 {
  max-width: 14ch;
  font-size: clamp(2.15rem, 4.45cqw, 5rem);
}

.tricks {
  align-content: start;
  background:
    repeating-linear-gradient(90deg, oklch(95% 0.03 80) 0 3.2cqw, oklch(90% 0.05 80) 3.2cqw 3.45cqw),
    var(--paper);
}

.tricks h2 {
  margin-bottom: 3cqw;
}

.trick-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1cqw;
}

.trick-board article {
  min-height: 28cqw;
  display: grid;
  align-content: space-between;
  padding: 1.5cqw;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms);
}

.trick-board article:nth-child(2) {
  color: var(--paper);
  background: var(--red);
}

.trick-board article:nth-child(3) {
  background: var(--yellow);
}

.trick-board small {
  font-family: Georgia, serif;
  font-size: 3.2cqw;
  font-weight: 900;
}

.trick-board h3 {
  font-size: 2.25cqw;
  line-height: 1.05;
}

.codex-callout {
  display: inline-grid;
  margin: 2.2cqw 0 2cqw;
  padding: 0.7cqw 1.1cqw;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 4.4cqw;
  font-weight: 900;
  line-height: 1;
}

.clean-list {
  display: grid;
  gap: 0.85cqw;
  max-width: 42ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 2.2cqw;
  color: var(--muted);
  font-size: 1.55cqw;
  font-weight: 770;
  line-height: 1.22;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.55cqw;
  left: 0;
  width: 1.1cqw;
  height: 1.1cqw;
  background: var(--green);
  border: 2px solid var(--ink);
}

.tool-constellation {
  position: relative;
  height: 40cqw;
  margin-top: 2.8cqw;
  border-top: 2px solid var(--ink);
}

.tool-constellation::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  top: 45%;
  border-top: 2px dashed oklch(24% 0.035 255 / 0.38);
}

.tool-node {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  width: 17cqw;
  aspect-ratio: 1;
  padding: 1.3cqw;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: popIn 680ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 85ms);
}

.tool-node.large {
  left: 3cqw;
  top: 7cqw;
  width: 22cqw;
  background: var(--ink);
  color: var(--paper);
}

.tool-node.red {
  left: 31cqw;
  top: 2cqw;
  background: var(--red);
  color: var(--paper);
}

.tool-node.blue {
  left: 49cqw;
  top: 15cqw;
  background: var(--blue);
  color: var(--paper);
}

.tool-node.green {
  left: 68cqw;
  top: 4cqw;
  background: var(--green);
}

.tool-node.yellow {
  left: 23cqw;
  top: 24cqw;
  background: var(--yellow);
}

.tool-node b {
  font-size: 1.75cqw;
  line-height: 1.08;
}

.tool-node span {
  margin-top: 0.5cqw;
  font-size: 1.08cqw;
  font-weight: 900;
}

.studio h2 {
  max-width: 15ch;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1cqw;
  margin-top: 4.2cqw;
  border-top: 2px solid var(--ink);
}

.flow-node {
  position: relative;
  min-height: 22cqw;
  padding: 1.2cqw;
  border-left: 2px solid var(--ink);
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms);
}

.flow-node::after {
  content: "";
  position: absolute;
  top: -0.7cqw;
  left: 1.1cqw;
  width: 1.35cqw;
  height: 1.35cqw;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.flow-node span {
  display: block;
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 2.3cqw;
  font-weight: 900;
}

.flow-node b {
  display: block;
  margin-top: 10cqw;
  font-size: 2.9cqw;
  line-height: 1;
}

.studio-rule {
  position: absolute;
  right: 6.2cqw;
  bottom: 5.4cqw;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.65cqw;
  font-weight: 800;
  line-height: 1.25;
}

.maker-line {
  display: inline-block;
  margin-top: 2cqw;
  padding: 0.8cqw 1.1cqw;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  font-size: 1.45cqw;
  font-weight: 900;
}

.script-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1cqw;
  margin-top: 3.3cqw;
}

.script-steps article {
  min-height: 29cqw;
  display: grid;
  align-content: start;
  gap: 1.1cqw;
  padding: 1.3cqw;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms);
}

.script-steps article:nth-child(2) {
  background: var(--red);
}

.script-steps article:nth-child(3) {
  color: var(--ink);
  background: var(--yellow);
}

.script-steps article:nth-child(4) {
  color: var(--ink);
  background: var(--green);
}

.script-steps span {
  font-family: Georgia, serif;
  font-size: 3.2cqw;
  font-weight: 900;
}

.script-steps h3 {
  font-size: 2.35cqw;
}

.script-steps p {
  font-size: 1.35cqw;
  font-weight: 760;
  line-height: 1.24;
}

.gear-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4cqw;
  margin-top: 4.5cqw;
}

.gear-row article {
  min-height: 26cqw;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 2cqw;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 95ms);
}

.gear-row article:nth-child(2) {
  color: var(--paper);
  background: var(--blue);
}

.gear-row article:nth-child(3) {
  background: var(--yellow);
}

.gear-icon {
  margin-bottom: 3.4cqw;
  font-size: 5.4cqw;
  line-height: 1;
}

.gear-row h3 {
  margin-bottom: 0.8cqw;
  font-size: 3cqw;
}

.gear-row p {
  max-width: 16ch;
  color: inherit;
  font-size: 1.55cqw;
  font-weight: 800;
  line-height: 1.22;
}

.edit-system {
  display: grid;
  grid-template-columns: 22cqw 22cqw 1fr;
  gap: 1.2cqw;
  align-items: stretch;
  margin-top: 4.2cqw;
}

.broll-count {
  display: grid;
  align-content: space-between;
  min-height: 26cqw;
  padding: 1.4cqw;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.broll-count.red {
  color: var(--paper);
  background: var(--red);
}

.broll-count b {
  font-family: Georgia, serif;
  font-size: 7.4cqw;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.broll-count span {
  font-size: 2cqw;
  font-weight: 900;
}

.edit-copy {
  display: grid;
  align-content: center;
  gap: 1.2cqw;
  padding-left: 2cqw;
  border-left: 2px solid var(--ink);
}

.edit-copy p {
  font-size: 1.75cqw;
  font-weight: 830;
  line-height: 1.25;
}

.publish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1cqw;
  margin-top: 4.2cqw;
}

.upload h2 {
  max-width: 28cqw;
}

.publish-grid article {
  min-height: 27cqw;
  display: grid;
  align-content: space-between;
  padding: 1.4cqw;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms);
}

.publish-grid article:nth-child(2) {
  color: var(--paper);
  background: var(--ink);
}

.publish-grid article:nth-child(3) {
  background: var(--yellow);
}

.publish-grid article:nth-child(4) {
  color: var(--paper);
  background: var(--red);
}

.publish-grid h3 {
  font-size: 2.45cqw;
  line-height: 1.04;
}

.publish-grid p {
  font-size: 1.35cqw;
  font-weight: 780;
  line-height: 1.24;
}

.closing {
  align-content: center;
  color: var(--paper);
  background:
    linear-gradient(105deg, var(--ink) 0 58%, var(--red) 58% 76%, var(--yellow) 76%);
}

.closing::after {
  color: oklch(95% 0.02 80 / 0.48);
}

blockquote {
  max-width: 12ch;
  margin: 0 0 2.6cqw;
  font-family: Georgia, serif;
}

blockquote p {
  font-size: 5.8cqw;
  font-weight: 900;
  line-height: 0.94;
}

blockquote cite {
  display: block;
  margin-top: 1.4cqw;
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 1.3cqw;
  font-style: normal;
  font-weight: 850;
}

.translation {
  max-width: 33ch;
  color: oklch(92% 0.035 80);
  font-size: 1.7cqw;
  font-weight: 750;
  line-height: 1.34;
}

.closing h2 {
  position: absolute;
  right: 5.8cqw;
  bottom: 7.8cqw;
  color: var(--ink);
  font-size: 5.2cqw;
}

.reveal,
.slide.active .eyebrow,
.slide.active h1,
.slide.active h2,
.slide.active .cover-meta,
.slide.active .codex-callout,
.slide.active .studio-rule,
.slide.active .maker-line,
.slide.active blockquote,
.slide.active .translation {
  animation: rise 640ms var(--ease-out) both;
}

.slide.active h1,
.slide.active h2 {
  animation-delay: 80ms;
}

.slide.active .cover-meta,
.slide.active .codex-callout,
.slide.active .maker-line,
.slide.active .translation {
  animation-delay: 150ms;
}

.slide.active .cover-number {
  animation: popIn 720ms var(--ease-out) 180ms both;
}

.controls {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  background: oklch(18% 0.035 255 / 0.92);
  border: 1px solid oklch(97% 0.02 80 / 0.2);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 14px 38px oklch(18% 0.035 255 / 0.32);
}

.nav-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  outline: 0;
}

.progress {
  width: 118px;
  height: 4px;
  overflow: hidden;
  background: oklch(92% 0.02 80 / 0.24);
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: inherit;
  transform: scaleX(0.0625);
  transform-origin: left center;
  transition: transform 320ms var(--ease-quart);
}

.slide-count {
  min-width: 58px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.8cqw, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translate3d(2cqw, 3cqw, 0) rotate(0deg);
  }
  to {
    opacity: 1;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-aspect-ratio: 16 / 9) {
  .deck {
    width: calc(100vw - 36px);
  }
}

@media (max-width: 760px) {
  .viewport {
    padding: 10px;
  }

  .controls {
    right: 12px;
    bottom: 12px;
    transform: scale(0.9);
    transform-origin: right bottom;
  }
}

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

@media print {
  body {
    background: var(--paper);
  }

  .viewport {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .deck {
    width: 100vw;
    max-width: none;
    box-shadow: none;
    border: 0;
  }

  .slide {
    position: relative;
    page-break-after: always;
    opacity: 1 !important;
    transform: none !important;
  }

  .controls {
    display: none;
  }
}
