:root {
  --bg: #fafafa;
  --black: #050505;
  --ink: #111111;
  --text: #202020;
  --muted: #666666;
  --faint: #a5a5a5;
  --line: #d8d8d8;
  --soft: #efefef;
  --code: #0d1117;
  --code-top: #161b22;
  --code-line: #30363d;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reveal {
  color: var(--ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
}

.reveal .slides {
  text-align: left;
}

.reveal section {
  width: 1280px;
  height: 720px;
  padding: 42px 80px 40px;
}

.reveal :where(h1, h2, h3, p, table, pre) {
  margin: 0;
  letter-spacing: 0;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal strong {
  color: var(--black);
  font-weight: 850;
}

.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.slide-number {
  min-width: 30px;
  padding: 5px 8px;
  background: var(--faint);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.slide-title {
  margin-top: 12px;
}

.slide-title h2 {
  max-width: 860px;
  font-size: 44px;
  line-height: 1.08;
}

.subtitle {
  margin-top: 8px;
  max-width: 980px;
  color: var(--muted);
  font-size: 21px;
  font-weight: 520;
  line-height: 1.25;
}

.footer {
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 26px;
  height: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
  line-height: 26px;
}

.title-slide h1 {
  max-width: 1050px;
  margin-top: 24px;
  font-size: 56px;
  line-height: 1.12;
}

.title-slide .subtitle {
  margin-top: 36px;
  font-size: 28px;
}

.title-rule {
  margin-top: 58px;
  border-top: 2px solid var(--black);
}

.title-meta {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 40px;
  margin-top: 72px;
  align-items: start;
}

.title-author {
  justify-self: start;
  width: 250px;
  grid-column: 2;
}

.title-author strong,
.title-author span {
  display: block;
  text-align: left;
}

.title-author strong {
  font-size: 20px;
  line-height: 1.2;
}

.title-author span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 620;
}

.agenda-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 92px;
}

.agenda-item {
  border-top: 2px solid var(--black);
  padding-top: 22px;
}

.agenda-item strong {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.agenda-item span {
  display: block;
  margin-top: 34px;
  color: var(--black);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.08;
}

.agenda-item p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.24;
}

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

.stat-block {
  border-top: 2px solid var(--black);
  padding-top: 24px;
}

.stat-value {
  color: var(--black);
  font-size: 70px;
  font-weight: 900;
  line-height: 0.95;
}

.stat-block h3 {
  margin-top: 28px;
  font-size: 24px;
  line-height: 1.1;
}

.stat-block p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.22;
}

.source-note {
  margin-top: 5px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
}

.reveal .teaser-takeaway {
  margin: 96px 0 0;
  padding: 18px 24px;
  border-left: 4px solid var(--black);
  background: var(--soft);
  color: var(--text);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.25;
}

.motivation-steps {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px;
  margin-top: 48px;
  max-width: 980px;
}

.motivation-step {
  display: grid;
  grid-template-columns: 64px 260px 1fr;
  column-gap: 28px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.motivation-step strong {
  font-size: 28px;
  line-height: 1;
}

.motivation-step h3 {
  font-size: 20px;
  line-height: 1.16;
}

.motivation-step p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.28;
}

.motivation-conclusion {
  margin-top: 34px;
  padding: 16px 22px;
  border-left: 4px solid var(--black);
  background: var(--soft);
  color: var(--text);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.25;
}

.rq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 30px;
}

.rq-step {
  position: relative;
  border-top: 1px solid var(--black);
  padding-top: 18px;
}

.rq-step:not(:first-child)::before {
  content: ">";
  position: absolute;
  left: -39px;
  top: 88px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 760;
}

.rq-kicker {
  color: var(--black);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.rq-step h3 {
  margin-top: 18px;
  font-size: 29px;
  line-height: 1;
}

.rq-stage {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.1;
}

.rq-question {
  margin-top: 10px;
  min-height: 86px;
  color: var(--text);
  font-size: 17px;
  font-weight: 540;
  line-height: 1.26;
}

.rq-metric {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  min-height: 54px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.metric-formula {
  color: var(--black);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.05;
}

.metric-formula sub {
  font-size: 9px;
  line-height: 0;
}

.metric-detail {
  display: grid;
  row-gap: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 690;
  line-height: 1.18;
}

.rq-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 14px;
  padding: 16px 22px;
  border-left: 3px solid var(--black);
  background: var(--soft);
}

.rq-summary strong,
.rq-summary span {
  display: block;
}

.rq-summary strong {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rq-summary span {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
}

.rq-legend,
.slide-legend {
  position: absolute;
  right: 80px;
  bottom: 58px;
  left: 80px;
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 620;
}

.split {
  display: grid;
  grid-template-columns: 560px 430px;
  column-gap: 90px;
  align-items: start;
  margin-top: 34px;
}

.editor-window {
  overflow: hidden;
  width: 540px;
  height: 342px;
  min-height: 374px;
  border-radius: 8px;
  background: var(--code);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.editor-titlebar {
  position: relative;
  height: 45px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-top);
}

.editor-dots {
  position: absolute;
  top: 15px;
  left: 18px;
  display: flex;
  gap: 8px;
}

.editor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.editor-dots span:nth-child(2) {
  background: #ffbd2e;
}

.editor-dots span:nth-child(3) {
  background: #27c93f;
}

.editor-filename {
  color: #8b949e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 760;
  line-height: 45px;
  text-align: center;
}

.shiki-code {
  box-sizing: border-box;
  height: calc(100% - 45px);
  min-height: 0;
  padding: 19px 22px 24px 58px;
  overflow: hidden;
  background: var(--code) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 18px;
  font-weight: 650;
  line-height: 0.9;
}

.shiki-code code {
  display: block;
  counter-reset: code-line;
  line-height: inherit;
}

.shiki-code .line {
  position: relative;
  display: block;
  line-height: inherit;
  min-height: 0.9em;
  white-space: pre;
}

.shiki-code .line::before {
  counter-increment: code-line;
  content: counter(code-line);
  position: absolute;
  left: -34px;
  color: #6e7681;
  font-weight: 500;
}

.typed-code-fragment {
  display: block;
}

.typed-code-fragment.fragment:not(.visible) {
  display: none;
}

.typed-code-fragment.fragment.visible {
  display: block;
  animation: none;
}

.code-line-text {
  display: inline-block;
  max-width: 100%;
  white-space: pre;
}

.typed-code-fragment.fragment.visible .code-line-text {
  animation: code-line-write var(--line-duration, 320ms) steps(32, end) both;
  animation-delay: var(--line-delay, 0ms);
}

@keyframes code-line-write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.grammar-explicit h3,
.extension-hint h3 {
  font-size: 20px;
  line-height: 1.15;
}

.column-list {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.column-list p {
  margin-top: 14px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.extension-hint {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--black);
  background: var(--soft);
}

.extension-hint p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.25;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.pipeline-step {
  position: relative;
  display: grid;
  grid-template-rows: 44px 34px 34px 222px;
  border-top: 2px solid var(--black);
  padding-top: 22px;
}

.pipeline-step:not(:first-child)::before {
  content: ">";
  position: absolute;
  left: -23px;
  top: 42px;
  color: var(--muted);
  font-size: 26px;
  font-weight: 850;
}

.pipeline-step h3 {
  grid-row: 1;
  font-size: 34px;
  line-height: 1;
}

.stage-name {
  grid-row: 2;
  margin-top: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.12;
}

.stage-details {
  grid-row: 4;
  display: grid;
  grid-template-rows: repeat(3, 74px);
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.stage-detail {
  display: grid;
  grid-template-rows: 16px 1fr;
  align-content: start;
  padding-top: 11px;
  border-bottom: 1px solid var(--line);
}

.stage-detail strong {
  display: block;
  margin-bottom: 0;
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.pipeline-step:not(:first-child) .stage-detail strong {
  visibility: hidden;
}

.stage-detail span {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.18;
}

.center-note {
  margin: 38px 0 0;
  padding: 17px 26px;
  border-left: 4px solid var(--black);
  background: var(--soft);
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.22;
  text-align: left;
}

.code-example-grid {
  display: grid;
  grid-template-columns: 520px 34px 520px;
  column-gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.code-panel-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.code-example-target {
  min-width: 0;
}

.code-example-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

.code-example-arrow::after {
  content: ">";
  display: block;
  margin-top: 4px;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
}

.example-editor {
  width: 100%;
  min-height: 0;
  border-radius: 7px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.example-editor .editor-titlebar {
  height: 32px;
}

.example-editor .editor-dots {
  top: 12px;
  left: 14px;
  gap: 6px;
}

.example-editor .editor-dots span {
  width: 7px;
  height: 7px;
}

.example-editor .editor-filename {
  font-size: 11px;
  line-height: 32px;
}

.example-editor .shiki-code {
  height: calc(100% - 32px);
  min-height: 0;
  padding: 12px 12px 12px 44px;
  font-size: 9px;
  line-height: 1.02;
}

.example-editor .shiki-code .line {
  min-height: 1.02em;
}

.example-editor-source {
  height: 400px;
}

.example-editor-source .shiki-code {
  font-size: 11px;
  line-height: 1.12;
}

.example-editor-source .shiki-code .line {
  min-height: 1.12em;
}

.example-editor-flow {
  height: 400px;
}

.example-editor-flow .shiki-code {
  padding: 9px 10px 9px 38px;
  font-size: 7.5px;
  line-height: 0.9;
}

.example-editor-flow .shiki-code .line {
  min-height: 0.9em;
}

.code-example-note {
  margin: 9px 0 0;
  padding: 9px 14px;
  border-left: 4px solid var(--black);
  background: var(--soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.1;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 58px;
}

.dataset {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.dataset th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.dataset th,
.dataset td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.scenario-calc,
.scenario-note {
  display: block;
}

.scenario-calc {
  color: var(--black);
  font-weight: 850;
  line-height: 1.1;
}

.scenario-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
}

.platform-scope {
  display: grid;
  grid-template-columns: 190px repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 4px solid var(--black);
  background: var(--soft);
}

.platform-scope h3 {
  font-size: 19px;
  line-height: 1.12;
}

.platform-scope p {
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.22;
}

.platform-scope strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 14px;
  line-height: 1.1;
}

.result-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 58px;
  margin-top: 56px;
  align-items: start;
}

.big-result {
  border-top: 2px solid var(--black);
  padding-top: 28px;
}

.big-result .value {
  font-size: 78px;
  font-weight: 900;
  line-height: 0.92;
}

.big-result .label {
  margin-top: 18px;
  color: var(--black);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.1;
}

.big-result .sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.small-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.15;
}

.evidence-line {
  display: grid;
  grid-template-columns: 42px 180px 74px 1fr;
  gap: 16px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-line strong {
  font-size: 16px;
  line-height: 1.15;
}

.evidence-line .value {
  text-align: right;
}

.evidence-line p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
}

.issue-list {
  display: grid;
  grid-template-columns: 270px 1fr 360px;
  column-gap: 44px;
  margin-top: 32px;
}

.issue-table-header {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 270px 1fr 360px;
  column-gap: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.issue-table-header::after,
.issue-row::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--line);
}

.issue-table-header span {
  padding-bottom: 12px;
}

.issue-row {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 270px 1fr 360px;
  column-gap: 44px;
}

.issue-row h3,
.issue-row p {
  min-height: 70px;
  padding: 16px 0;
}

.issue-row h3 {
  font-size: 19px;
  line-height: 1.14;
}

.issue-row p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.18;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  margin-top: 72px;
}

.conclusion-block {
  border-top: 2px solid var(--black);
  padding-top: 24px;
}

.conclusion-block h3 {
  font-size: 26px;
  line-height: 1.12;
}

.conclusion-block p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.28;
}

.closing-line {
  margin-top: 70px;
  padding: 20px 24px;
  border-left: 4px solid var(--black);
  background: var(--soft);
  color: var(--text);
  font-size: 22px;
  font-weight: 560;
  line-height: 1.25;
}

.contribution-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 34px;
  margin-top: 74px;
}

.contribution-item {
  border-top: 2px solid var(--black);
  padding-top: 22px;
}

.contribution-item .kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.contribution-item h3 {
  margin-top: 18px;
  font-size: 25px;
  line-height: 1.12;
}

.contribution-item p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.28;
}

.outlook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 66px;
}

.outlook-column {
  border-top: 2px solid var(--black);
  padding-top: 24px;
}

.outlook-column h3 {
  font-size: 28px;
  line-height: 1.12;
}

.outlook-column p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.25;
}

.outlook-column strong {
  font-size: 18px;
  line-height: 1.25;
}

.question-slide {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 520px;
  margin-top: 42px;
}

.question-content {
  align-self: center;
}

.question-content h2 {
  max-width: 980px;
  font-size: 72px;
  line-height: 1.02;
}

.question-content p {
  margin-top: 32px;
  color: var(--muted);
  font-size: 28px;
  line-height: 1.22;
}

.question-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
  padding-top: 26px;
  border-top: 2px solid var(--black);
}

.question-meta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.25;
}

.question-meta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.blank-slide {
  background: #fff;
}

.reveal .controls {
  color: var(--black);
}

.reveal .progress {
  height: 4px;
  color: var(--black);
}
