@font-face { font-family: "Serif"; src: url(../vendor/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; }
@font-face { font-family: "Serif"; src: url(../vendor/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Serif"; src: url(../vendor/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Sans"; src: url(../vendor/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Sans"; src: url(../vendor/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; }
@font-face { font-family: "Mono"; src: url(../vendor/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Mono"; src: url(../vendor/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; }

:root {
  --paper: #ffffff;
  --ink: #1b1b1b;
  --ink-2: #555555;
  --ink-3: #8c8c8c;
  --rule: #e3e3e3;
  --red: #ba0c2f;
  --red-wash: rgba(186, 12, 47, 0.07);
  --dark: #111213;
  --m: 96px;
}

html, body { background: var(--paper); }
.reveal { font-family: "Sans", sans-serif; color: var(--ink); font-size: 34px; }
.reveal .slides { text-align: left; }
.reveal .slides > section { width: 1920px; height: 1080px; padding: 0; top: 0 !important; }
.reveal .slides > section > * { position: absolute; }
.reveal p, .reveal li { margin: 0; line-height: 1.35; }
.reveal-viewport.nonum .slide-number { display: none !important; }
.reveal .slide-number a { text-decoration: none; color: inherit; }
/* sized in viewport units so it scales with the deck on any screen */
.reveal .slide-number { background: none; color: #8a8a8a; font: 400 min(1.25vw, 2.22vh) "Sans"; right: min(2.1vw, 3.7vh); bottom: min(1.46vw, 2.6vh); }

/* section strip: the outline, reused as a "you are here" marker */
.nav { top: 48px; left: var(--m); display: flex; gap: 32px; font: 400 24px "Sans"; color: #8a8a8a; }
.nav span.on { color: var(--ink); font-weight: 600; }

.title { top: 104px; left: var(--m); font: 600 68px/1.05 "Serif"; letter-spacing: -0.5px; color: var(--ink); max-width: 1728px; white-space: nowrap; }
.sub { font: 400 34px/1.3 "Sans"; color: var(--ink-2); }
.caption { font: 400 24px/1.3 "Sans"; color: var(--ink-2); }
.caption.label { font: 600 30px/1.3 "Sans"; color: var(--ink); }
.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.study > div { display: flex; gap: 16px; margin-bottom: 16px; }
.study img { height: 100%; width: auto; margin: 0; max-width: none; max-height: none; display: block; }
.mono { font-family: "Mono", monospace; }

/* photos */
.photo { overflow: hidden; background: #ddd; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; max-height: none; }
.photo .cap { position: absolute; left: 24px; bottom: 20px; font: 600 20px "Sans"; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* hand-drawn marks */
svg.mark { position: absolute; overflow: visible; pointer-events: none; }
svg.mark path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.reveal .fragment.draw { opacity: 1; visibility: visible; }
.fragment.draw path { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); transition: stroke-dashoffset 0.7s ease-out; }
.fragment.draw.visible path { stroke-dashoffset: 0; }
.reveal .fragment.draw.solo.visible:not(.current-fragment) { opacity: 0; transition: opacity 0.3s; }
.sep { display: inline-block; margin: 0 30px; color: #9a9a9a; }
.note-red { font: 600 26px/1.2 "Sans"; color: var(--red); }

/* readout */
.readout { border-collapse: collapse; font: 400 30px "Mono", monospace; }
.readout th { font: 600 24px "Sans"; color: var(--ink-2); text-align: right; padding: 0 0 14px 44px; border-bottom: 2px solid var(--ink); }
.readout th:first-child, .readout td:first-child { text-align: left; padding-left: 0; }
.readout td { text-align: right; padding: 13px 0 13px 44px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.readout td:first-child { font: 600 26px "Sans"; color: var(--ink-2); }
.readout tr.dead td { transition: background 0.4s, color 0.4s; }
.lit .readout tr.dead td { background: var(--red-wash); color: var(--red); }

.status-label { font: 600 24px "Sans"; color: var(--ink-2); }
.status-value { font: 500 92px/1 "Mono", monospace; color: var(--ink); }

/* screenshot figure */
.shot { border: 1px solid #cfcfcf; overflow: hidden; background: #fff; }
.shot img { display: block; width: 100%; margin: 0; max-width: none; max-height: none; }
.shot .zoom { position: absolute; left: 0; top: 0; width: 1920px; transform-origin: 0 0; transition: transform 0.7s cubic-bezier(.3,.7,.2,1); }
.shot .zoom img { width: 1920px; }
.shot .zoom svg.mark { position: absolute; }
.shot .zoom svg.mark path { vector-effect: none; stroke-width: var(--sw, 4); }
.shot { transition: height 0.7s cubic-bezier(.3,.7,.2,1); }

.outline { display: flex; gap: 24px; }
.outline figure { margin: 0; width: 326px; }
.outline .photo { position: relative; height: 440px; }
.outline figcaption { font: 600 30px "Sans"; margin-top: 18px; }
.goal { font: 400 48px/1.2 "Sans"; margin-bottom: 56px !important; }
.gn, .k3 .gn { display: inline-block; font: 500 48px "Mono"; color: #9a9a9a; width: 80px; }
.k3 { font: 600 32px "Sans"; margin-top: 22px !important; }
.k3 .gn { font-size: 32px; width: 48px; }

.payoff { border-collapse: collapse; font: 400 32px/1.3 "Sans"; }
.payoff td { padding: 14px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.payoff td:nth-child(1) { font-weight: 600; padding-right: 40px; }
.payoff td:nth-child(2) { color: #8a8a8a; padding-right: 24px; }
.payoff td:nth-child(3) { color: #8a8a8a; padding-right: 24px; }

/* footage placeholder: visible in practice, must be gone before the talk */
.ph { border: 3px dashed #b5b5b5; background: #f6f6f6; display: flex; align-items: center; justify-content: center; text-align: center; font: 400 26px/1.35 "Sans"; color: #6a6a6a; padding: 40px; box-sizing: border-box; }
.ph b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.viz { overflow: hidden; }
.big { font: 500 120px/1 "Mono", monospace; color: var(--ink); }
.big small { font-size: 44px; color: var(--ink-2); }
.lead { font: 400 40px/1.3 "Sans"; color: var(--ink); }
.portrait { border-radius: 50%; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; max-height: none; }
.flow { display: flex; gap: 0; align-items: flex-start; }
.flow > div { width: 286px; }
.flow.wide > div:not(.arrow) { width: 360px; }
.flow .k { font: 600 40px "Serif"; color: var(--ink); }
.flow .d { font: 400 28px/1.3 "Sans"; color: var(--ink-2); margin-top: 10px; }
.flow .arrow { width: 70px; font: 400 44px "Sans"; color: #9a9a9a; padding-top: 2px; }

/* numbered steps: black text, only the active number turns red */
.step { font: 400 34px/1.2 "Sans"; color: var(--ink); margin-bottom: 40px !important; }
.step .n { display: inline-block; width: 44px; height: 44px; border: 2px solid #9a9a9a; border-radius: 50%; text-align: center; font: 600 24px/40px "Sans"; color: #777; margin-right: 18px; vertical-align: 3px; transition: all .3s; }
.step.current-fragment .n { border-color: var(--red); color: var(--red); }

/* text over full-screen video: a solid panel on one side, white type */
.overlay-panel { background: rgba(17, 18, 19, 0.86); color: #fff; padding: 84px 50px 0 96px; box-sizing: border-box; }
.overlay-panel h2 { font: 600 54px/1.1 "Serif"; margin: 0 0 54px; color: #fff; }
.overlay-panel .k { font: 600 24px "Sans"; color: #b9b9b9; }
.overlay-panel .task { font: italic 400 33px/1.25 "Serif"; margin-top: 8px !important; white-space: nowrap; }
.overlay-panel .cmd { margin-top: 34px; }
.overlay-panel .cmd .c { font: 400 24px "Mono"; white-space: nowrap; }
.overlay-panel .cmd .n { font: 400 24px/1.3 "Sans"; color: #cfcfcf; margin-top: 6px !important; }
.overlay-panel b { font-weight: 600; color: #fff; }
.overlay-panel b.ai { color: #ff6b84; }
.overlay-panel .total { font: 400 30px/1.35 "Sans"; margin-top: 50px !important; }
.overlay-panel .cap { position: absolute; left: 96px; bottom: 44px; font: 400 24px/1.3 "Sans"; color: #b9b9b9; }

/* rows that follow the video clock: hidden, then dim once passed, bright while current */
[data-t] { opacity: 0; transition: opacity .45s; }
[data-t].on { opacity: .4; }
[data-t].on.now { opacity: 1; }
