/* Academic formal deck — ivory paper, ink, teal accent */
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/9efc475d-8c0b-455e-95d8-4385083ff207.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/a055d1c1-1c18-4c2c-9e19-19bd7db76068.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/2524679d-ddad-4ecc-bcd8-cf8e8035568b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/7f46af55-a154-472b-9cf2-968a27e11b72.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/7f97280f-6f59-47eb-b164-f56b21a135c2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/1d3ec561-7dba-4785-94fd-519140be1e7c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/9efc475d-8c0b-455e-95d8-4385083ff207.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/a055d1c1-1c18-4c2c-9e19-19bd7db76068.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/2524679d-ddad-4ecc-bcd8-cf8e8035568b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/7f46af55-a154-472b-9cf2-968a27e11b72.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/7f97280f-6f59-47eb-b164-f56b21a135c2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/1d3ec561-7dba-4785-94fd-519140be1e7c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Aptos — Microsoft's default since 2024. Fallback stack covers most systems. */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos'), local('Aptos Display'), local('Segoe UI Variable'), local('Segoe UI');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F7F4ED;
  --paper-2: #EFEAE0;
  --ink: #1A1A1A;
  --ink-2: #2C2C2C;
  --muted: #6B6356;
  --muted-2: #9A9082;
  --rule: #D6CFBF;
  --rule-strong: #B8AE99;
  --accent: oklch(0.52 0.08 200);      /* deep teal */
  --accent-soft: oklch(0.52 0.08 200 / 0.12);
  --accent-ink: oklch(0.38 0.06 200);
  --danger: oklch(0.50 0.14 30);       /* muted crimson for callouts */

  --serif: 'Aptos', 'Aptos Display', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Aptos', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Slide frame */
.slide {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Subtle paper grain */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 1200px 800px at 10% 0%, rgba(214,207,191,0.18), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 100% 100%, rgba(214,207,191,0.14), transparent 60%);
  opacity: 1;
}

/* Running header / footer on content slides */
.chrome-top {
  position: absolute;
  top: 52px;
  left: 100px;
  right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.chrome-top .part {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chrome-top .part .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.chrome-top .folio {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: none;
}

.chrome-bottom {
  position: absolute;
  bottom: 52px;
  left: 100px;
  right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.chrome-bottom .rule {
  position: absolute;
  left: 100px; right: 100px;
  top: -18px;
  height: 1px;
  background: var(--rule);
}

/* Content container */
.content {
  position: absolute;
  top: 130px;
  left: 100px;
  right: 100px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
}

/* Headings */
.slide-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.slide-title .emph {
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 500;
}
.accent-strong {
  color: var(--accent-ink);
  font-weight: 600;
}
.slide-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--muted);
  margin: 18px 0 0 0;
  line-height: 1.3;
  text-wrap: pretty;
}

/* Section label above title */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 36px; height: 2px;
  background: var(--accent);
}

/* Body text */
.body {
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
.body.sm { font-size: 24px; }
.body.lg { font-size: 32px; }

/* Pull quote / lede */
.lede {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.32;
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}

/* Columns */
.cols {
  display: grid;
  gap: 72px;
  flex: 1;
}
.cols.two { grid-template-columns: 1fr 1fr; }
.cols.three { grid-template-columns: 1fr 1fr 1fr; }
.cols.asym { grid-template-columns: 5fr 6fr; }

/* Point blocks — the workhorse text module */
.point {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.point .num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.point .h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.point .h.accent-strong {
  color: var(--accent-ink);
  font-weight: 600;
}
.point .h em { color: var(--accent-ink); font-style: italic; }
.point .p {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.point + .point { margin-top: 28px; }

/* Thin divider */
.hr {
  height: 1px;
  background: var(--rule);
  width: 100%;
  margin: 28px 0;
}
.hr.strong { background: var(--rule-strong); }

/* Labels */
.label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Key:value rows */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 36px;
  row-gap: 18px;
  align-items: baseline;
}
.kv dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kv dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 26px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* List with serif bullets */
.serif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.serif-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink-2);
}
.serif-list li::before {
  content: '§';
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 28px;
}

/* Mono data */
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Section divider layout */
.divider-slide {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
}
.divider-slide .left {
  width: 46%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 80px 90px 100px;
  position: relative;
}
.divider-slide .left::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 1px; height: 40%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
}
.divider-slide .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 120px;
}
.divider-slide .part-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 220px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
  letter-spacing: -0.04em;
}
.divider-slide .part-roman {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,244,237,0.55);
}
.divider-slide .part-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
}
.divider-slide .part-blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 520px;
}
.divider-slide .toc {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.divider-slide .toc .item {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}
.divider-slide .toc .item.active {
  color: var(--ink);
  border-top-color: var(--accent);
}
.divider-slide .toc .item.active .n { color: var(--accent); }
.divider-slide .toc .n {
  font-family: var(--mono);
  color: var(--muted-2);
}
.divider-slide .toc .t {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: inherit;
}

/* Title slide */
.title-slide {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.title-slide .marque {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 90px 120px;
}
.title-slide .topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.title-slide h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 128px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  max-width: 1600px;
}
.title-slide h1 em {
  font-style: italic;
  color: var(--accent-ink);
}
.title-slide .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--muted);
  max-width: 1400px;
  margin-top: 32px;
  line-height: 1.3;
}
.title-slide .meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 80px;
  align-items: flex-end;
}
.title-slide .meta .m {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.title-slide .meta .k {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.title-slide .meta .v {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
}

/* Diagram primitives */
.diagram {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stage-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  position: relative;
}
.stage-card .st-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.stage-card .st-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
}
.stage-card .st-p {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
}
.stage-card .gate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-ink);
  padding: 4px 8px;
  background: var(--accent-soft);
  border-radius: 3px;
  align-self: flex-start;
  letter-spacing: 0.04em;
}

/* Funnel */
.funnel-row {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 24px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.funnel-row:last-child { border-bottom: none; }
.funnel-row .fn-stage {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 170px;
}
.funnel-row .fn-bar-wrap {
  height: 22px;
  display: flex;
  align-items: center;
}
.funnel-row .fn-bar {
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
}
.funnel-row .fn-num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  min-width: 60px;
  text-align: right;
}
.funnel-row .fn-num .u {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}

/* Numbered marker */
.mk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent-ink);
}

/* Table-ish */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 22px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.tbl th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--rule-strong);
}
.tbl td.key {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--accent-ink);
  font-size: 24px;
}

/* Vertical rule between columns */
.vrule {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}

html, body { margin: 0; padding: 0; background: #000; }
