@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

:root {
  color-scheme: light;
  font-family: "Russo One", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #102542;
  background:
    radial-gradient(circle at top, rgba(240, 199, 135, 0.34), transparent 28%),
    linear-gradient(180deg, #f7f3e9 0%, #f2ebe0 48%, #e8eef2 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #102542;
  --muted: #4f647d;
  --accent: #de6b48;
  --accent-soft: #f2cc8f;
  --outline: rgba(16, 37, 66, 0.12);
  --shadow: 0 24px 80px rgba(36, 40, 74, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  gap: 1.25rem;
  min-height: 100vh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.app-shell--player-only {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.app-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.app-panel--player-only {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  min-height: 100vh;
}

.app-panel--fallback {
  margin: 1rem;
  border-radius: 0;
}

.app-panel--player {
  display: grid;
  gap: 1.25rem;
}

.app-header {
  display: grid;
  gap: 1rem;
}

.app-header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.04;
}

.app-header p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.app-stats div {
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  background: var(--surface-strong);
}

.app-stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.app-stats dd {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.lecture-player {
  display: grid;
  place-items: center;
  container-type: size;
  gap: 0;
  --stage-width-ratio: 16;
  --stage-height-ratio: 9;
  --player-font-size: clamp(10px, 1.45cqi, 18px);
  --square-header-size: 300%;
  --header-gap: 1rem;
  --stage-gap: 0rem;
  --video-size: 30.5%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #6c6c6c;
  box-shadow: none;
  overflow: hidden;
}

.lecture-player__stage {
  position: relative;
  container-type: inline-size;
  width: min(
    calc(100cqw - 16px),
    calc((100cqh - 16px) * var(--stage-width-ratio) / var(--stage-height-ratio))
  );
  aspect-ratio: var(--stage-width-ratio) / var(--stage-height-ratio);
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.lecture-player__stage-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #000;
  font-size: var(--player-font-size);
}

.lecture-player__slide-shell {
  position: absolute;
  top: var(--stage-gap);
  right: var(--stage-gap);
  bottom: var(--stage-gap);
  left: calc(var(--video-size) + (var(--stage-gap) * 2));
  min-height: 0;
  overflow: hidden;
  margin:1%;
}

.lecture-player__fullscreen-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.lecture-player__square-header {
  position: absolute;
  z-index: 4;
  left: var(--stage-gap);
  top: var(--header-gap);
  width: var(--video-size);
  padding: 0 0.3rem;
  color: rgb(255, 189, 22);
  font-family: "Russo One", "Avenir Next", "Segoe UI", sans-serif;
  font-size: var(--square-header-size);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.52);
}

.lecture-player__gesture-layer {
  position: relative;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.lecture-player__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 0;
  border: 0;
  background: rgb(255, 189, 22);
  text-align: center;
  color: #111;
  overflow: hidden;
}

.lecture-player__empty p {
  margin: 0;
  max-width: 24ch;
  font-size: 96%;
  line-height: 1.08;
}

.lecture-player__empty .eyebrow {
  color: rgba(17, 17, 17, 0.68);
}

.video-stage {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.75rem;
  left: var(--stage-gap);
  top: 73%;
  transform: translateY(-50%);
  width: var(--video-size);
}

.video-stage__window {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 18px 42px rgba(16, 37, 66, 0.38);
}

.video-stage__video,
.video-stage__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-stage__placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: #fdfdfd;
}

.video-stage__meta {
  position: absolute;
  inset: auto 0.8rem 0.8rem 0.8rem;
  display: flex;
  justify-content: space-between;
  color: #102542;
  z-index: 3;
}

.video-stage__meta span,
.video-stage__next {
  padding: 0.38rem 0.65rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(16, 37, 66, 0.08);
  font-size: 72%;
  letter-spacing: 0.03em;
}

.video-stage__next {
  justify-self: center;
}

.slide-host {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  container-type: inline-size;
  min-height: 100%;
  height: 100%;
  font-size: clamp(8px, 2cqi, 20px);
  overflow: hidden;
  transition: transform 180ms ease, opacity 180ms ease;
  --slide-padding: clamp(0.6em, 3.6cqi, 1.4em);
  --slide-gap: clamp(0.35em, 1.8cqi, 0.9em);
  --slide-kicker-size: 0.78em;
  --slide-meta-size: 0.86em;
  --slide-body-size: 1em;
  --slide-title-size: 1.7em;
  --slide-title-compact-size: 1.45em;
  --slide-quote-size: 2.4em;
  --slide-equation-size: 2.8em;
}

.slide-host--square {
  min-height: 0;
  padding: 0.25rem;
  font-size: clamp(8px, 2.55cqi, 22px);
  --slide-body-size: 0.98em;
  --slide-title-size: 1.58em;
  --slide-title-compact-size: 1.34em;
  --slide-quote-size: 2.1em;
  --slide-equation-size: 2.45em;
}

.slide-host--fullscreen {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0.5rem;
  font-size: clamp(9px, 1.75cqi, 22px);
}

.slide-host--inspect {
  transform: scale(0.985);
}

.slide-host__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-host__track {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.slide-host__track--settling {
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.slide-host__track--horizontal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
}

.slide-host__track--vertical {
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: 100%;
}

.slide-host__item {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.glitch-slide-renderer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.glitch-slide-thumbnail {
  display: grid;
  container-type: inline-size;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  font-size: clamp(7px, 2.1cqi, 16px);
  color: #111;
}

.glitch-slide-thumbnail__header {
  margin: 0;
  color: rgb(255, 189, 22);
  font-size: 0.92em;
  line-height: 0.9;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

.glitch-slide-thumbnail__surface {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.glitch-slide-thumbnail--square .glitch-slide-thumbnail__surface {
  aspect-ratio: 1 / 1;
}

.glitch-slide-thumbnail--fullscreen .glitch-slide-thumbnail__surface {
  aspect-ratio: 16 / 9;
}

.glitch-slide-thumbnail__surface > .glitch-slide-renderer {
  position: absolute;
  inset: 0;
}

.slide-card,
.split-slide,
.fallback-slide,
.basic-slide,
.fullscreen-split {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background: rgb(255, 189, 22);
  color: #111;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.square-slide {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: var(--slide-padding);
  overflow: hidden;
}

.square-slide--yellow {
  background: rgb(255, 189, 22);
}

.square-slide--paused {
  filter: saturate(0.92);
}

.square-slide__image-frame {
  width: min(100%, 100cqh);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.square-slide__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.square-video {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: var(--slide-padding);
  background: rgb(255, 189, 22);
}

.square-video--paused {
  filter: saturate(0.92);
}

.square-video__frame {
  width: min(100%, 100cqh);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.square-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.equation-focus,
.quote-image,
.chart-single,
.process-flow,
.definition-card,
.glitch-component-frame {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgb(255, 189, 22);
  color: #111;
  overflow: hidden;
}

.equation-focus__content,
.chart-single__content,
.process-flow__content,
.definition-card__content,
.glitch-component-frame__content {
  display: grid;
  height: 100%;
  padding: var(--slide-padding);
}

.equation-focus__eyebrow,
.quote-image__eyebrow,
.chart-single__eyebrow,
.process-flow__eyebrow,
.definition-card__eyebrow,
.glitch-component-frame__eyebrow {
  margin: 0;
  font-size: var(--slide-kicker-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.64);
}

.equation-focus__title,
.chart-single__title,
.process-flow__title,
.definition-card__term,
.glitch-component-frame__title {
  margin: 0;
  font-size: var(--slide-title-size);
  line-height: 1.1;
  text-transform: uppercase;
}

.chart-single__title {
  font-size: calc(var(--slide-title-size) * 1.05);
}

.equation-focus__content {
  align-content: center;
  gap: var(--slide-gap);
}

.equation-focus--square .equation-focus__content {
  align-content: stretch;
  justify-items: center;
  text-align: center;
  padding: var(--slide-padding);
  gap: var(--slide-gap);
}

.equation-focus--square .equation-focus__eyebrow {
  font-size: calc(var(--slide-kicker-size) * 0.92);
}

.equation-focus--square .equation-focus__title {
  max-width: 10ch;
  font-size: var(--slide-title-compact-size);
}

.equation-focus__equation-frame {
  padding: calc(var(--slide-padding) * 0.9);
  border: 1px solid rgba(17, 17, 17, 0.24);
  background: rgba(255, 255, 255, 0.18);
}

.equation-focus--square .equation-focus__equation-frame {
  width: 100%;
  padding: calc(var(--slide-padding) * 0.7);
}

.equation-focus__equation {
  display: block;
  overflow-wrap: anywhere;
  font-family: "Times New Roman", serif;
  font-size: var(--slide-equation-size);
  font-style: italic;
  line-height: 1.02;
  text-align: center;
}

.equation-focus__equation--mathjax {
  min-height: clamp(5rem, 12vw, 8.5rem);
  display: grid;
  place-items: center;
  padding: 0.4rem;
  font-style: normal;
  overflow: hidden;
}

.equation-focus--square .equation-focus__equation {
  font-size: calc(var(--slide-equation-size) * 0.82);
}

.equation-focus--square .equation-focus__equation--mathjax {
  min-height: clamp(3.8rem, 9vw, 5.8rem);
}

.equation-focus__equation--mathjax mjx-container {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.equation-focus__equation--loading,
.equation-focus__equation--error {
  font-size: calc(var(--slide-body-size) * 1.08);
  line-height: 1.08;
  color: rgba(17, 17, 17, 0.86);
}

.equation-focus__equation--loading::before {
  content: "Loading equation…";
}

.equation-focus__annotation,
.chart-single__body,
.definition-card__definition,
.definition-card__example {
  margin: 0;
  max-width: 30ch;
  font-size: var(--slide-body-size);
  line-height: 1.08;
}

.equation-focus--square .equation-focus__annotation {
  max-width: 22ch;
  font-size: calc(var(--slide-body-size) * 0.94);
}

.chart-single__body {
  font-size: calc(var(--slide-body-size) * 1.08);
}

.quote-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-image--image-right .quote-image__panel--image {
  order: 2;
}

.quote-image--image-right .quote-image__panel--quote {
  order: 1;
}

.quote-image__panel {
  min-width: 0;
  min-height: 0;
}

.quote-image__panel--image {
  background: rgba(255, 255, 255, 0.14);
}

.quote-image__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.quote-image__panel--quote {
  display: grid;
  place-items: center;
  padding: var(--slide-padding);
}

.quote-image__content {
  display: grid;
  gap: var(--slide-gap);
  width: 100%;
}

.quote-image__quote {
  margin: 0;
  max-width: 14ch;
  font-size: var(--slide-quote-size);
  line-height: 0.94;
}

.quote-image__attribution {
  margin: 0;
  font-size: calc(var(--slide-body-size) * 1.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-single__content {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--slide-gap);
  align-items: center;
}

.chart-single__copy {
  display: grid;
  gap: 1.1rem;
  align-content: center;
}

.chart-single__plot {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.chart-single__row {
  display: grid;
  grid-template-columns: minmax(0, 5.8rem) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.chart-single__label,
.chart-single__value {
  font-size: var(--slide-body-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-single__bar-track {
  height: 1.2rem;
  background: rgba(17, 17, 17, 0.14);
  overflow: hidden;
}

.chart-single__bar-fill {
  height: 100%;
}

.process-flow__content {
  align-content: center;
  gap: var(--slide-gap);
}

.process-flow__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem;
}

.process-flow__step {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 8.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.process-flow__index {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: #111;
  color: rgb(255, 189, 22);
  font-size: var(--slide-meta-size);
}

.process-flow__label {
  margin: 0;
  font-size: var(--slide-body-size);
  line-height: 1.04;
}

.definition-card__content {
  align-content: center;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.definition-card__term {
  max-width: 10ch;
}

.definition-card__definition {
  max-width: 22ch;
}

.definition-card__example {
  max-width: 24ch;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(17, 17, 17, 0.24);
  color: rgba(17, 17, 17, 0.8);
}

.glitch-component-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  padding: clamp(0.85rem, 2vw, 1.4rem);
}

.glitch-component-frame--fullscreen {
  position: relative;
  display: block;
  padding: 0;
}

.glitch-component-frame__chrome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem;
}

.glitch-component-frame--fullscreen .glitch-component-frame__chrome {
  position: absolute;
  top: clamp(0.6rem, 1.5vw, 1rem);
  left: clamp(0.6rem, 1.5vw, 1rem);
  right: clamp(0.6rem, 1.5vw, 1rem);
  z-index: 2;
  pointer-events: none;
}

.glitch-component-frame--fullscreen .glitch-component-frame__eyebrow,
.glitch-component-frame--fullscreen .glitch-component-frame__id {
  padding: 0.28rem 0.5rem;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.glitch-component-frame__id {
  margin: 0;
  font-size: var(--slide-kicker-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.74);
}

.glitch-component-frame__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.24);
  background: rgba(255, 255, 255, 0.16);
}

.glitch-component-frame--fullscreen .glitch-component-frame__viewport {
  position: absolute;
  inset: 0;
  border: 0;
  background: #000;
}

.glitch-component-frame__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #000;
}

.glitch-component-frame__caption {
  margin: 0;
  max-width: 28ch;
  font-size: var(--slide-body-size);
  line-height: 1.08;
  color: rgba(17, 17, 17, 0.84);
}

.glitch-component-frame--fullscreen .glitch-component-frame__caption {
  position: absolute;
  left: clamp(0.6rem, 1.5vw, 1rem);
  right: auto;
  bottom: clamp(0.6rem, 1.5vw, 1rem);
  z-index: 2;
  max-width: 32ch;
  padding: 0.36rem 0.56rem;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.equation-focus--paused,
.quote-image--paused,
.chart-single--paused,
.process-flow--paused,
.definition-card--paused,
.glitch-component-frame--paused {
  filter: saturate(0.92);
}

.fullscreen-video {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

.fullscreen-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.fullscreen-video__chrome {
  position: absolute;
  top: clamp(0.6rem, 1.5vw, 1rem);
  left: clamp(0.6rem, 1.5vw, 1rem);
  right: clamp(0.6rem, 1.5vw, 1rem);
  z-index: 2;
  pointer-events: none;
}

.fullscreen-video__header {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.5rem;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--slide-kicker-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.fullscreen-video__caption {
  position: absolute;
  left: clamp(0.6rem, 1.5vw, 1rem);
  right: auto;
  bottom: clamp(0.6rem, 1.5vw, 1rem);
  z-index: 2;
  margin: 0;
  max-width: 32ch;
  padding: 0.36rem 0.56rem;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--slide-body-size);
  line-height: 1.08;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.fullscreen-video--paused {
  filter: saturate(0.92);
}

.fullscreen-video-title {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

.fullscreen-video-title__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.fullscreen-video-title__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--slide-padding);
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.08) 35%,
      rgba(0, 0, 0, 0.3)
    );
  pointer-events: none;
}

.fullscreen-video-title__title {
  margin: 0;
  max-width: 10ch;
  color: rgb(255, 189, 22);
  font-size: 5em;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0.08em 0.24em rgba(0, 0, 0, 0.65),
    0 0 0.5em rgba(0, 0, 0, 0.2);
}

.fullscreen-video-title--paused {
  filter: saturate(0.92);
}

.fullscreen-video-center-caption {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

.fullscreen-video-center-caption__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.fullscreen-video-center-caption__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--slide-padding);
  pointer-events: none;
}

.fullscreen-video-center-caption__caption {
  margin: 0;
  max-width: 12ch;
  color: rgb(255, 189, 22);
  font-size: 5em;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 0.08em 0.26em rgba(0, 0, 0, 0.7),
    0 0 0.5em rgba(0, 0, 0, 0.24);
}

.fullscreen-video-center-caption--paused {
  filter: saturate(0.92);
}

.fullscreen-split {
  display: grid;
  place-items: center;
  padding: var(--slide-padding);
}

.fullscreen-split__panel {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.fullscreen-split__panel--image {
  background: rgba(255, 255, 255, 0.12);
}

.fullscreen-split__panel--text {
  display: grid;
  place-items: center;
  padding: var(--slide-padding);
  background: rgb(245, 176, 8);
}

.fullscreen-split__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fullscreen-split__text {
  display: grid;
  align-content: center;
  gap: var(--slide-gap);
  width: 100%;
  height: 100%;
}

.fullscreen-split__eyebrow {
  margin: 0;
  font-size: calc(var(--slide-kicker-size) * 1.18);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.68);
}

.fullscreen-split__title {
  margin: 0;
  max-width: 11ch;
  font-size: var(--slide-title-size);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.fullscreen-split__body {
  margin: 0;
  max-width: 24ch;
  font-size: calc(var(--slide-body-size) * 1.15);
  line-height: 1.08;
}

.slide-card,
.fallback-slide,
.basic-slide {
  display: grid;
  align-content: center;
  gap: var(--slide-gap);
  padding: var(--slide-padding);
}

.slide-card h2,
.fallback-slide h3,
.basic-slide__title {
  margin: 0;
  font-size: var(--slide-title-size);
  line-height: 1.1;
  text-transform: uppercase;
}

.slide-card p,
.fallback-slide p,
.basic-slide__body,
.basic-slide__eyebrow,
.basic-slide__kicker {
  margin: 0;
  max-width: 28ch;
  font-size: var(--slide-body-size);
}

.slide-card--paused,
.split-slide--paused,
.basic-slide--paused {
  filter: saturate(0.92);
}

.slide-card--kinetic {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 243, 196, 0.86), transparent 24%),
    radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgb(255, 189, 22) 0%, rgb(245, 176, 8) 100%);
  color: #111;
  transform-style: preserve-3d;
}

.slide-card__orbs {
  position: absolute;
  inset: auto -3rem -2rem auto;
  display: grid;
  gap: 1rem;
}

.slide-card__orbs span {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(8px);
}

.slide-card .eyebrow,
.fallback-slide .eyebrow {
  color: rgba(17, 17, 17, 0.68);
}

.split-slide {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  overflow: hidden;
}

.split-slide__panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--slide-gap);
  padding: var(--slide-padding);
}

.split-slide__panel span {
  font-size: var(--slide-kicker-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.68);
}

.split-slide__panel strong {
  font-size: var(--slide-title-size);
  text-align: center;
  line-height: 1.02;
  text-transform: uppercase;
}

.split-slide__panel--left {
  background: linear-gradient(180deg, rgb(255, 199, 44) 0%, rgb(255, 189, 22) 100%);
}

.split-slide__panel--right {
  background: linear-gradient(180deg, rgb(247, 182, 31) 0%, rgb(234, 163, 0) 100%);
}

.split-slide__divider {
  width: 1px;
  background: rgba(17, 17, 17, 0.32);
}

.fallback-slide {
  background: linear-gradient(180deg, rgb(255, 199, 44) 0%, rgb(255, 189, 22) 100%);
}

.fallback-slide code {
  overflow-wrap: anywhere;
  color: rgba(17, 17, 17, 0.68);
}

.basic-slide {
  padding: var(--slide-padding);
}

.basic-slide__content {
  display: grid;
  align-content: center;
  gap: var(--slide-gap);
  height: 100%;
}

.basic-slide__eyebrow,
.basic-slide__kicker {
  font-size: var(--slide-kicker-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.68);
}

.basic-slide__title {
  max-width: 10ch;
}

.basic-slide__body {
  max-width: 26ch;
  line-height: 1.12;
}

.basic-slide__accent-bar {
  width: min(18rem, 54%);
  height: 0.7rem;
  background: #111;
}

.carousel-hud {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 6;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.carousel-hud--inspect {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-hud__header,
.carousel-hud__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  font-size: 82%;
}

.carousel-hud__cue,
.carousel-hud__detail {
  display: grid;
  gap: 0.25rem;
  width: 100%;
}

.carousel-hud__author {
  margin: 0;
  width: 100%;
  font-size: 78%;
  line-height: 1.1;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
}

.carousel-hud__cue {
  justify-items: center;
  font-size: 76%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-hud__swipe {
  color: rgb(255, 189, 22);
  font-size: 84%;
}

.carousel-hud__swipe--vertical {
  line-height: 1;
}

.carousel-hud__track {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.carousel-hud__dot {
  display: inline-grid;
  place-items: center;
  width: 0.55rem;
  height: 0.55rem;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0;
}

.carousel-hud__dot--active {
  background: rgb(255, 189, 22);
  color: transparent;
}

.resume-control {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.resume-control__button {
  display: grid;
  place-items: center;
  width: clamp(3.6rem, 11vw, 5.4rem);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.resume-control__button:hover {
  background: rgba(0, 0, 0, 0.76);
}

.resume-control__button:focus-visible {
  outline: 3px solid rgb(255, 189, 22);
  outline-offset: 4px;
}

.resume-control__icon {
  display: block;
}

.resume-control__icon--play {
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-top: 0.85rem solid transparent;
  border-bottom: 0.85rem solid transparent;
  border-left: 1.4rem solid #fff;
}

.resume-control__icon--pause {
  width: 1.35rem;
  height: 1.7rem;
  background:
    linear-gradient(
      90deg,
      #fff 0 36%,
      transparent 36% 64%,
      #fff 64% 100%
    );
}

kbd {
  padding: 0.1rem 0.4rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.lecture-player__alert {
  padding: 0.9rem 1rem;
  border-radius: 0;
  background: rgba(255, 240, 240, 0.92);
  border: 1px solid rgba(194, 45, 58, 0.16);
}

.lecture-player__alert--overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 8;
}

.lecture-player__overlay-control {
  position: absolute;
  z-index: 7;
  left: var(--stage-gap);
  top: calc(67% - (var(--video-size) / 2));
  width: var(--video-size);
  height: var(--video-size);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lecture-player__overlay-control .resume-control__button {
  pointer-events: auto;
}

.lecture-player__scrubber {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.35rem;
  z-index: 9;
  display: grid;
  gap: 0.28rem;
  padding: 0.28rem 0.5rem 0.34rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}



.lecture-player__scrubber-input {
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  touch-action: none;
  position: relative;
  z-index: 1;
}

.lecture-player__scrubber-input:focus-visible {
  outline: none;
}

.lecture-player__scrubber-input::-webkit-slider-runnable-track {
  height: 0.28rem;
  background:
    linear-gradient(
      90deg,
      rgb(255, 189, 22) 0 var(--scrub-progress),
      rgba(255, 255, 255, 0.24) var(--scrub-progress) 100%
    );
}

.lecture-player__scrubber-input::-webkit-slider-thumb {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: -0.39rem;
  border: 1px solid #111;
  border-radius: 999px;
  background: rgb(255, 189, 22);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
}

.lecture-player__scrubber-input::-moz-range-track {
  height: 0.28rem;
  background: rgba(255, 255, 255, 0.24);
}

.lecture-player__scrubber-input::-moz-range-progress {
  height: 0.28rem;
  background: rgb(255, 189, 22);
}

.lecture-player__scrubber-input::-moz-range-thumb {
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid #111;
  border-radius: 999px;
  background: rgb(255, 189, 22);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
}

.lecture-player__scrubber-markers {
  position: relative;
  height: 1.1rem;
  z-index: 2;
}

.lecture-player__scrubber-marker {
  position: absolute;
  left: var(--marker-progress);
  top: 0;
  transform: translateX(-50%);
  display: grid;
  gap: 0.12rem;
  justify-items: center;
  min-width: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.lecture-player__scrubber-marker::before {
  content: "";
  width: 0.12rem;
  height: 0.4rem;
  background: rgba(255, 189, 22, 0.78);
}

.lecture-player__scrubber-marker-label {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  padding: 0.08rem 0.28rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 58%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lecture-player__scrubber-marker:hover .lecture-player__scrubber-marker-label,
.lecture-player__scrubber-marker:focus-visible .lecture-player__scrubber-marker-label {
  background: rgba(255, 189, 22, 0.38);
  color: #fff;
}

.lecture-player__scrubber-marker--active .lecture-player__scrubber-marker-label {
  background: rgb(255, 189, 22);
  color: #111;
}

.lecture-player__scrubber-marker:focus-visible {
  outline: 2px solid rgba(255, 189, 22, 0.82);
  outline-offset: 2px;
}

.lecture-player__scrubber-marker--active::before {
  background: rgb(255, 189, 22);
}

.lecture-player__empty--muted {
  opacity: 0;
  pointer-events: none;
}

.lecture-player__vote-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.6vw, 2rem);
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

.lecture-player__vote-overlay--square {
  inset: 0;
}

.lecture-player__vote-overlay--fullscreen {
  inset: 0;
}

.lecture-player__vote-panel {
  display: grid;
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  justify-items: center;
  width: min(100%, 28rem);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.lecture-player__vote-label {
  margin: 0;
  color: rgb(255, 189, 22);
  font-size: 102%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.lecture-player__vote-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
}

.lecture-player__vote-button {
  min-width: clamp(8.25rem, 20vw, 10.5rem);
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 86%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.lecture-player__vote-button:hover:not(:disabled) {
  background: rgba(255, 189, 22, 0.18);
  border-color: rgba(255, 189, 22, 0.58);
}

.lecture-player__vote-button:focus-visible {
  outline: 2px solid rgb(255, 189, 22);
  outline-offset: 2px;
}

.lecture-player__vote-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.lecture-player__vote-button--active {
  background: rgb(255, 189, 22);
  border-color: rgb(255, 189, 22);
  color: #111;
}

.lecture-player--mobile-landscape {
  --stage-gap: 0.75rem;
  --square-header-size: 300%;
}

.lecture-player--mobile-landscape .video-stage {
  top: auto;
  bottom: var(--stage-gap);
  left: var(--stage-gap);
  transform: none;
  width: var(--video-size);
}

.lecture-player--mobile-landscape .lecture-player__slide-shell {
  top: var(--stage-gap);
  right: var(--stage-gap);
  bottom: var(--stage-gap);
  left: auto;
  width: calc((100% - (var(--stage-gap) * 2)) * 0.67);
  height: auto;
  transform: none;
}

.lecture-player--mobile-landscape .lecture-player__overlay-control {
  left: var(--stage-gap);
  top: auto;
  bottom: var(--stage-gap);
  width: var(--video-size);
  height: var(--video-size);
}

.lecture-player--mobile-landscape .lecture-player__scrubber {
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.3rem;
}

.lecture-player--mobile-landscape .lecture-player__square-header {
  top: var(--stage-gap);
  left: var(--stage-gap);
  width: var(--video-size);
  padding: 0 0.25rem;
  line-height: 0.9;
  letter-spacing: 0.05em;
}

.lecture-player--mobile-landscape .slide-host,
.lecture-player--mobile-landscape .slide-host--square,
.lecture-player--mobile-landscape .lecture-player__gesture-layer {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lecture-player--mobile-landscape .slide-host--square {
  padding: 0;
}

.lecture-player--desktop .fullscreen-split,
.lecture-player--mobile-landscape .fullscreen-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-content: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.lecture-player--desktop .fullscreen-split--image-right .fullscreen-split__panel--image,
.lecture-player--mobile-landscape .fullscreen-split--image-right .fullscreen-split__panel--image {
  order: 2;
}

.lecture-player--desktop .fullscreen-split--image-right .fullscreen-split__panel--text,
.lecture-player--mobile-landscape .fullscreen-split--image-right .fullscreen-split__panel--text {
  order: 1;
}

.lecture-player--desktop .quote-image,
.lecture-player--mobile-landscape .quote-image {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lecture-player--mobile-portrait {
  --stage-width-ratio: 1;
  --stage-height-ratio: 2;
  --stage-gap: 0;
  --player-font-size: clamp(9px, 2.5cqi, 16px);
  --square-header-size: 300%;
  --video-size: 100%;
}

.lecture-player--mobile-portrait .video-stage {
  top: auto;
  bottom: 0;
  left: 50%;
  transform: none;
  width: var(--video-size);
  height: 50%;
  gap: 0;
  margin-left: -50%;
}

.lecture-player--mobile-portrait .video-stage__window {
  width: 100%;
  height: 100%;
}

.lecture-player--mobile-portrait .video-stage__next {
  display: none;
}

.lecture-player--mobile-portrait .lecture-player__slide-shell {
  top: 0;
  left: 0;
  right: 0;
  bottom: 50%;
}

.lecture-player--mobile-portrait .lecture-player__gesture-layer,
.lecture-player--mobile-portrait .slide-host,
.lecture-player--mobile-portrait .slide-host--square {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.lecture-player--mobile-portrait .slide-host--fullscreen {
  inset: 0;
  padding: 0;
}

.lecture-player--mobile-portrait .lecture-player__fullscreen-layer {
  inset: 0;
}

.lecture-player--mobile-portrait .lecture-player__square-header {
  top: auto;
  left: 0.9rem;
  right: 0.9rem;
  width: auto;
  top: calc(52% - 0.1rem);
  line-height: 0.88;
  letter-spacing: 0.045em;
}

.lecture-player--mobile-portrait .lecture-player__overlay-control {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 50%;
}

.lecture-player--mobile-portrait .lecture-player__scrubber {
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.18rem;
  padding-bottom: calc(0.28rem + env(safe-area-inset-bottom));
}

.lecture-player--mobile-portrait .lecture-player__scrubber-marker-label {
  min-width: 1.4rem;
  font-size: 54%;
}

.lecture-player--mobile-portrait .slide-card,
.lecture-player--mobile-portrait .split-slide,
.lecture-player--mobile-portrait .fallback-slide,
.lecture-player--mobile-portrait .fullscreen-split,
.lecture-player--mobile-portrait .equation-focus,
.lecture-player--mobile-portrait .quote-image,
.lecture-player--mobile-portrait .chart-single,
.lecture-player--mobile-portrait .process-flow,
.lecture-player--mobile-portrait .definition-card,
.lecture-player--mobile-portrait .glitch-component-frame,
.lecture-player--mobile-portrait .lecture-player__empty {
  border-radius: 0;
  box-shadow: none;
}

.lecture-player--mobile-portrait .quote-image,
.lecture-player--mobile-portrait .chart-single__content {
  grid-template-columns: 1fr;
}

.lecture-player--mobile-portrait .quote-image__panel--quote,
.lecture-player--mobile-portrait .equation-focus__content,
.lecture-player--mobile-portrait .chart-single__content,
.lecture-player--mobile-portrait .process-flow__content,
.lecture-player--mobile-portrait .definition-card__content,
.lecture-player--mobile-portrait .glitch-component-frame__content {
  padding: 0.9rem;
}

.lecture-player--mobile-portrait .quote-image__quote {
  max-width: 12ch;
  font-size: var(--slide-quote-size);
}

.lecture-player--mobile-portrait .equation-focus__equation--mathjax {
  min-height: 4.6rem;
  padding: 0.2rem;
}

.lecture-player--mobile-portrait .equation-focus__title,
.lecture-player--mobile-portrait .chart-single__title,
.lecture-player--mobile-portrait .process-flow__title,
.lecture-player--mobile-portrait .definition-card__term,
.lecture-player--mobile-portrait .glitch-component-frame__title {
  font-size: var(--slide-title-size);
}

.lecture-player--mobile-portrait .equation-focus__annotation,
.lecture-player--mobile-portrait .chart-single__body,
.lecture-player--mobile-portrait .definition-card__definition,
.lecture-player--mobile-portrait .definition-card__example,
.lecture-player--mobile-portrait .process-flow__label,
.lecture-player--mobile-portrait .glitch-component-frame__caption {
  font-size: var(--slide-body-size);
}

.lecture-player--mobile-portrait .chart-single__row {
  grid-template-columns: minmax(0, 4.8rem) minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.lecture-player--mobile-portrait .process-flow__steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lecture-player--mobile-portrait .slide-card,
.lecture-player--mobile-portrait .fallback-slide {
  align-content: center;
}

.lecture-player--mobile-portrait .split-slide__panel {
  min-height: 0;
}

.lecture-player--mobile-portrait .fullscreen-split {
  align-content: center;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1.5fr);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
