:root {
  color-scheme: light dark;
  --stage: #030305;
  --surface: #f5f5f7;
  --surface-2: #ffffff;
  --ink: #111114;
  --ink-soft: #5a5a61;
  --line: rgba(17, 17, 20, 0.12);
  --accent: #0a84ff;
  --accent-2: #64d2ff;
  --success: #30d158;
  --warning: #ff9f0a;
  --danger: #ff453a;
  --radius: clamp(18px, 2.1vw, 36px);
  --safe-x: clamp(34px, 5.7vw, 106px);
  --safe-y: clamp(28px, 5.2vh, 76px);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--stage);
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(10, 132, 255, 0.16), transparent 34%),
    var(--stage);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 3px;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100dvh;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 28px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(2.2vw, 0, 0) scale(0.985);
  transition:
    opacity 540ms var(--ease),
    transform 640ms var(--ease);
}

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

.slide__frame {
  position: relative;
  width: min(calc(100vw - clamp(16px, 4vw, 56px)), calc((100dvh - clamp(16px, 4vw, 56px)) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 12%, rgba(10, 132, 255, 0.1), transparent 30%),
    var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--safe-y) var(--safe-x);
  isolation: isolate;
}

.slide__content::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 55%);
}

.theme-dark .slide__frame,
.slide__frame.theme-dark {
  --surface: #08080b;
  --surface-2: #121216;
  --ink: #f5f5f7;
  --ink-soft: #a1a1a8;
  --line: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 36%),
    #08080b;
}

.theme-accent .slide__frame,
.slide__frame.theme-accent {
  --surface: var(--accent);
  --surface-2: rgba(255, 255, 255, 0.12);
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.25), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 76%, #000), var(--accent));
}

.eyebrow {
  margin: 0 0 clamp(12px, 1.8vh, 24px);
  color: var(--accent);
  font-size: clamp(14px, 1.25vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.theme-accent .eyebrow,
.slide__frame.theme-accent .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.display {
  max-width: 13ch;
  margin-bottom: clamp(18px, 2.6vh, 34px);
  font-size: clamp(46px, 6.6vw, 112px);
  font-weight: 720;
  line-height: 0.98;
}

.claim {
  max-width: 17ch;
  margin-bottom: clamp(18px, 2.6vh, 34px);
  font-size: clamp(40px, 5.4vw, 88px);
  font-weight: 700;
  line-height: 1.04;
}

.headline {
  max-width: 20ch;
  margin-bottom: clamp(16px, 2vh, 26px);
  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 700;
  line-height: 1.08;
}

.lede {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(20px, 2.1vw, 34px);
  line-height: 1.38;
  text-wrap: pretty;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--ink-soft);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: clamp(26px, 5vh, 58px);
  color: var(--ink-soft);
  font-size: clamp(14px, 1.1vw, 19px);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 72px);
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(190px, 32vh, 390px);
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.78);
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.panel--accent {
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, var(--surface-2));
}

.panel__label {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.15vw, 20px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel__value {
  margin: auto 0 0;
  font-size: clamp(30px, 3.6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(28px, 4.8vh, 56px);
}

.metric {
  padding-top: clamp(18px, 2.2vh, 28px);
  border-top: 1px solid var(--line);
}

.metric__value {
  display: block;
  color: var(--accent);
  font-size: clamp(42px, 5vw, 82px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric__label {
  display: block;
  max-width: 18ch;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 23px);
  line-height: 1.35;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(40px, 8vh, 92px);
}

.timeline::before {
  position: absolute;
  top: 11px;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--line);
}

.timeline__step {
  position: relative;
  padding-top: 38px;
}

.timeline__step::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  aspect-ratio: 1;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line);
  content: "";
}

.timeline__step strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(18px, 1.55vw, 26px);
}

.timeline__step span {
  color: var(--ink-soft);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.4;
}

.quote {
  max-width: 22ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.7vw, 76px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.quote::before {
  color: var(--accent);
  content: "“";
}

.quote::after {
  color: var(--accent);
  content: "”";
}

.attribution {
  margin-top: clamp(24px, 4vh, 44px);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 22px);
}

.media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.72);
  background: var(--surface-2);
}

.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-notes {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 460ms var(--ease),
    transform 560ms var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.talk-progress {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1);
}

.talk-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 420ms var(--ease);
}

.talk-controls {
  position: fixed;
  z-index: 24;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.66);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease;
}

.talk-controls button {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f5f5f7;
  cursor: pointer;
}

.talk-controls button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.talk-counter {
  position: fixed;
  z-index: 20;
  bottom: clamp(20px, 2.3vw, 32px);
  left: clamp(18px, 2.4vw, 34px);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  overflow: auto;
  padding: clamp(22px, 4vw, 62px);
  background: rgba(3, 3, 5, 0.95);
  color: #f5f5f7;
  backdrop-filter: blur(28px);
}

.overlay[hidden] {
  display: none;
}

.overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1380px;
  margin: 0 auto 30px;
}

.overlay__header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 46px);
}

.overlay__close {
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
  max-width: 1380px;
  margin: 0 auto;
}

.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 40%),
    #111115;
  color: #f5f5f7;
  text-align: left;
  cursor: pointer;
}

.overview-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 38%, transparent);
}

.overview-card__number {
  display: block;
  margin-bottom: 50px;
  color: #8e8e93;
  font-size: 13px;
}

.overview-card__title {
  display: block;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 680;
  letter-spacing: -0.03em;
}

.notes-panel {
  position: fixed;
  z-index: 58;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(48vh, 480px);
  overflow: auto;
  padding: 28px max(6vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 11, 0.96);
  color: #f5f5f7;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.notes-panel[hidden] {
  display: none;
}

.notes-panel h2 {
  margin: 0 0 14px;
  color: #8e8e93;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-panel__body {
  max-width: 74ch;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.6;
  white-space: pre-wrap;
}

.help-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.help-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

kbd {
  min-width: 28px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.presenter-shell {
  min-height: 100dvh;
  overflow: auto;
  padding: 20px;
  background: #050507;
  color: #f5f5f7;
}

.presenter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  grid-template-rows: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 16px;
  min-height: calc(100dvh - 40px);
}

.presenter-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #101014;
}

.presenter-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #8e8e93;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.presenter-card iframe {
  display: block;
  width: 100%;
  height: calc(100% - 45px);
  min-height: 220px;
  border: 0;
  background: #030305;
}

.presenter-notes {
  grid-column: 1;
  padding: 24px 28px;
}

.presenter-notes__body {
  margin: 0;
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1.55;
  white-space: pre-wrap;
}

.presenter-tools {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 24px;
}

.presenter-timer {
  font-size: clamp(48px, 6vw, 92px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.presenter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.presenter-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.presenter-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.preview-mode {
  background: var(--stage);
}

.preview-mode .slide {
  padding: 0;
}

.preview-mode .slide__frame {
  width: min(100vw, calc(100dvh * 16 / 9));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.preview-mode .talk-controls,
.preview-mode .talk-counter,
.preview-mode .talk-progress {
  display: none;
}

@media (max-width: 820px) {
  .slide {
    padding: 8px;
  }

  .slide__frame {
    width: calc(100vw - 16px);
  }

  .slide__content {
    padding: clamp(22px, 5vw, 44px);
  }

  .split,
  .metric-grid {
    gap: 12px;
  }

  .panel {
    min-height: 0;
    padding: 18px;
  }

  .timeline {
    margin-top: 26px;
  }

  .timeline__step span {
    display: none;
  }

  .talk-controls {
    right: 10px;
    bottom: 12px;
  }

  .presenter-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .presenter-notes {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .slide__content {
    padding: 18px 20px;
  }

  .eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .display {
    margin-bottom: 9px;
    font-size: clamp(28px, 8.5vw, 46px);
    line-height: 0.94;
  }

  .claim {
    margin-bottom: 9px;
    font-size: clamp(25px, 7.4vw, 40px);
  }

  .headline {
    margin-bottom: 8px;
    font-size: clamp(21px, 6.2vw, 34px);
  }

  .lede {
    font-size: clamp(12px, 3.5vw, 18px);
    line-height: 1.24;
  }

  .meta-line {
    gap: 6px 14px;
    margin-top: 9px;
    font-size: 9px;
  }

  .split {
    gap: 8px;
  }

  .panel {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .panel__label {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .panel__value {
    font-size: clamp(16px, 4.6vw, 24px);
  }

  .timeline {
    gap: 6px;
    margin-top: 15px;
  }

  .timeline::before {
    top: 6px;
  }

  .timeline__step {
    padding-top: 18px;
  }

  .timeline__step::before {
    top: 0;
    width: 13px;
    border-width: 3px;
  }

  .timeline__step strong {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .timeline__step span {
    display: none;
  }
}

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

@media print {
  @page {
    size: 16in 9in;
    margin: 0;
  }

  html,
  body,
  .deck {
    width: auto;
    height: auto;
    overflow: visible;
    background: white;
  }

  .slide {
    position: relative;
    display: block;
    width: 16in;
    height: 9in;
    padding: 0;
    break-after: page;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .slide__frame {
    width: 16in;
    height: 9in;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .talk-controls,
  .talk-counter,
  .talk-progress,
  .overlay,
  .notes-panel {
    display: none !important;
  }
}
