/* FloatAI talk deck. Slides are laid out on a fixed 1600 × 1000 canvas and scaled to fit. */

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bg: #000;
  --panel: #0f0f11;
  --panel-2: #161618;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: #262628;
  --accent: #4d8dff;
  --accent-2: #24467f;
  --accent-soft: rgba(77, 141, 255, .16);
  --glow: linear-gradient(100deg, #9cc2ff 0%, #4d8dff 55%, #2f62ff 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss03"; }
a { color: inherit; }
b, strong { font-weight: 600; color: var(--ink); }

/* reveal.js supplies scaling, navigation, fragments and auto-animate; each section holds one 1600 × 1000 .slide */
.reveal-viewport { background: #000; }
.reveal { font-family: var(--sans); color: var(--ink); }
.reveal .slides { text-align: left; }
.reveal .slides > section { padding: 0; width: 1600px; height: 1000px; }
section > .slide {
  position: relative; width: 1600px; height: 1000px; overflow: hidden;
  padding: 100px 136px 116px; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
}
:where(section > .slide) > * { position: relative; }

.slide__foot {
  position: absolute; left: 136px; right: 136px; bottom: 48px;
  display: flex; align-items: center; gap: 14px; font: 500 13px var(--sans); color: var(--ink-3);
}
.slide__foot b { font-weight: 600; color: var(--ink-2); }
.slide__foot .n { margin-left: auto; font: 400 12.5px var(--mono); }

/* Type */
.kicker { margin: 0; font: 600 17px var(--sans); letter-spacing: -0.005em; color: var(--accent); }
.kicker span { display: inline-block; color: var(--ink-3); font-weight: 500; }
.kicker .kicker__n { color: var(--accent); font: 500 16px var(--mono); margin-right: 8px; }
.title { margin: 18px 0 0; font: 700 64px/1.06 var(--sans); letter-spacing: -0.035em; text-wrap: balance; max-width: 26ch; }
.lede { margin: 24px 0 0; font: 400 27px/1.45 var(--sans); letter-spacing: -0.012em; color: var(--ink-2); max-width: 50ch; }
.src { margin-top: auto; font: 400 15px/1.5 var(--sans); color: var(--ink-3); }
.mono { font-family: var(--mono); }
.glow { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Statement slides, centred */
.slide--center { align-items: center; justify-content: center; text-align: center; padding-bottom: 100px; }
.statement { margin: 0; font: 700 96px/1.04 var(--sans); letter-spacing: -0.045em; text-wrap: balance; max-width: 15ch; }
.statement + .lede { margin: 32px auto 0; text-align: center; max-width: 40ch; }
.slide--center .kicker { margin-bottom: 26px; }

/* Cover and closing */
.slide--cover { align-items: center; justify-content: center; text-align: center; }
.cover__mark { width: 84px; height: 84px; margin-bottom: 40px; }
.cover__title { margin: 0; font: 700 168px/1 var(--sans); letter-spacing: -0.055em; }
.cover__sub { margin: 30px auto 0; font: 400 32px/1.4 var(--sans); letter-spacing: -0.015em; color: var(--ink-2); max-width: 34ch; }
.cover__meta { position: absolute; left: 0; right: 0; bottom: 64px; margin: 0; font: 500 16px var(--sans); color: var(--ink-3); }
.slide--cover .statement { max-width: none; font-size: 104px; }
.slide--cover .links { margin-top: 64px; }

/* Tiles: Apple-style feature panels */
.tiles { display: grid; gap: 20px; flex: 1; min-height: 0; margin-top: 56px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--6 { grid-template-columns: repeat(3, 1fr); }
.tile { display: flex; flex-direction: column; padding: 40px 40px 38px; border-radius: 28px; background: var(--panel); }
.tile .lbl { margin: 0; font: 500 14px var(--mono); color: var(--accent); }
.tile h3 { margin: 16px 0 0; font: 700 34px/1.15 var(--sans); letter-spacing: -0.028em; text-wrap: balance; }
.tile p { margin: 16px 0 0; font-size: 20px; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink-2); }
.tile .meta { margin-top: auto; padding-top: 20px; font: 400 14.5px var(--mono); color: var(--ink-3); }
.tiles--3 { flex: none; margin-block: auto; }
.tiles--3 .tile { padding: 44px 44px 48px; }
.tile__icon { width: 40px; height: 40px; margin-bottom: 64px; color: var(--accent); }
.tiles--3 .tile h3 { margin-top: 0; font-size: 36px; }

/* Columns: unboxed, separated by a hairline */
.slide--mid { justify-content: center; padding-bottom: 150px; }
.slide--mid .cols { margin-top: 100px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: auto; }
.col { padding-top: 30px; border-top: 1px solid var(--line); }
.col h3 { margin: 0; font: 700 32px/1.15 var(--sans); letter-spacing: -0.028em; }
.col p { margin: 14px 0 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 26ch; }
.tiles--6 .tile { padding: 34px 36px 32px; }
.tiles--6 .tile h3 { font-size: 30px; }
.tile--row { display: grid; grid-template-columns: 72px 1fr; align-content: center; align-items: baseline; }
.tile--row .lbl { font-size: 20px; }
.tile--row h3 { margin-top: 0; }

/* Big numbers */
.stats { display: grid; gap: 48px; margin-block: auto; }
.stats--4 { grid-template-columns: repeat(4, auto); justify-content: space-between; }
.stat .v { margin: 0; padding-bottom: 6px; font: 700 120px/1 var(--sans); letter-spacing: -0.05em; white-space: nowrap; }
.stat .v.glow { color: transparent; }
.stat p { margin: 20px 0 0; font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 15ch; }

/* Contents */
.toc { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 96px 1fr 300px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.toc li:last-child { border-bottom: 1px solid var(--line); }
.toc li::before { content: counter(t, decimal-leading-zero); font: 500 16px var(--mono); color: var(--accent); }
.toc b { font: 700 38px/1.15 var(--sans); letter-spacing: -0.03em; justify-self: start; }
.toc span { font-size: 17px; color: var(--ink-3); text-align: right; }

/* Paper slides: the claim as the title, the main figure, three takeaways */
.paper { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; flex: 1; min-height: 0; margin-top: 48px; align-items: stretch; }
.paper--stack { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 36px; margin-top: 36px; }
.figure { margin: 0; padding: 36px 40px 30px; border-radius: 28px; background: var(--panel); display: flex; flex-direction: column; justify-content: center; }
.figure figcaption { margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.takeaways { list-style: none; margin: 0; padding: 0; counter-reset: k; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.paper--stack .takeaways { flex-direction: row; gap: 56px; }
.paper--stack .takeaways li { flex: 1; }
.takeaways li { counter-increment: k; }
.takeaways li::before { content: counter(k, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 14px var(--mono); color: var(--accent); }
.takeaways b { display: block; font: 700 30px/1.2 var(--sans); letter-spacing: -0.025em; text-wrap: balance; }
.takeaways span { display: block; margin-top: 10px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }

/* Three panels, each with its takeaway underneath */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: auto; }
.trio__col { margin: 0; display: flex; flex-direction: column; }
.trio .figure { padding: 22px 18px 14px; border-radius: 24px; }
.trio figcaption { margin-top: 26px; }
.trio figcaption b { display: block; font: 700 26px/1.2 var(--sans); letter-spacing: -0.025em; text-wrap: balance; }
.trio figcaption span { display: block; margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.trio + .src { margin-top: 28px; font-size: 14px; }
.trio .chart .tick { font-size: 13px; }
.trio .chart .lbl { font-size: 14px; }
.chart .ref { stroke: #6e6e73; stroke-width: 1; stroke-dasharray: 4 4; }
.chart .zone-lo { fill: var(--accent-soft); }
.chart .pt { fill: var(--accent); stroke: var(--panel); stroke-width: 1.2; }
.chart .pt--mute { fill: #5a5a60; }

/* Charts on dark panels */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { stroke: #4a4a4e; stroke-width: 1; fill: none; }
.chart .grid { stroke: #1f1f22; stroke-width: 1; fill: none; }
.chart .tick { font: 10.5px var(--mono); fill: var(--ink-3); }
.chart .lbl { font: 11.5px var(--sans); fill: var(--ink-3); }
.chart .lbl.hi { fill: var(--accent); font-weight: 600; }
.chart .c-line { fill: none; stroke: #4a4a4e; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; opacity: 1 !important; }
.chart .c-line--hi { stroke: var(--accent); stroke-width: 2.4; }
.chart .c-dot { fill: #6e6e73; opacity: 1 !important; }
.chart .c-dot--hi { fill: var(--accent); }
.chart .s-accent { stroke: var(--accent); }
.chart .s-ink { stroke: var(--ink); }
.chart .f-accent { fill: var(--accent); }
.chart .f-ink { fill: var(--ink); }
.chart .c-zone { fill: var(--accent-soft); }
.chart .t-mono { font: 12px var(--mono); fill: var(--ink-2); }
.chart .t-mono.t-accent { fill: var(--accent); }

/* Bars */
.bars { display: grid; gap: 20px; }
.bar { display: grid; grid-template-columns: 170px 1fr 104px; align-items: center; gap: 20px; font-size: 17px; color: var(--ink-2); }
.bar__track { position: relative; height: 20px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; transform-origin: left; }
.bar__fill--at { background: var(--accent-2); }
.bar__fill--all { background: var(--accent); }
.bar__nums { font: 400 14.5px var(--mono); color: var(--ink-3); text-align: right; }
.bar__nums b { color: var(--ink); font-weight: 500; }
.legend { display: flex; gap: 26px; margin-bottom: 22px; font-size: 14.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 2px; vertical-align: -1px; }

/* Heatmap */
.heat, .heat__scale { --heat-lo: #17171a; --heat-hi: #5b97ff; }
.heat { display: grid; grid-template-columns: 100px repeat(23, 1fr); gap: 3px; font: 400 11px var(--mono); color: var(--ink-3); }
.heat > span { display: grid; place-items: center; height: 22px; }
.heat > .heat__pl { place-items: center start; font: 500 13px var(--sans); color: var(--ink-2); }
.heat > .heat__nl { height: 18px; }
.heat__c { border-radius: 3px; background: color-mix(in oklab, var(--heat-hi) calc(var(--v) * 100%), var(--heat-lo)); }
.heat__scale { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 400 12.5px var(--mono); color: var(--ink-3); }
.heat__scale i { width: 130px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--heat-lo), var(--heat-hi)); }

/* Publications */
.pubs { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.pubs li { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pubs a { font: 500 18px/1.35 var(--sans); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.pubs a:hover { color: var(--accent); }
.pubs .v { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

/* Links */
.links { display: flex; justify-content: center; gap: 16px; margin-top: 56px; }
.links a {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font: 500 20px var(--sans); letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s;
}
.links a:hover { background: var(--panel-2); border-color: #3a3a3e; }
.links svg, .links img { width: 26px; height: 26px; flex: none; }
.links img[src*="floatai-icon"] { border-radius: 6px; }

/* Fragments: revealed one at a time with the next key */
.reveal .slides section .fragment.fade-up { transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.reveal .slides section .fragment.fade-up.visible { transform: none; }

/* Progress bar */
.reveal .progress { height: 2px; background: transparent; color: #4d8dff; z-index: 4; }

/* Entrance */
.reveal section.present .rise { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.reveal section.present .bar__fill { animation: bar .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 250ms); }
@keyframes bar { from { transform: scaleX(0); } }

/* Chrome */
.chrome { position: fixed; z-index: 5; font: 500 13px var(--sans); color: #86868b; transition: opacity .4s; }
body.is-idle .chrome.fades { opacity: 0; }
.back { top: 16px; left: 20px; text-decoration: none; }
.back:hover { color: #fff; }
.controls {
  right: 18px; bottom: 16px; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(28, 28, 30, .8); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.controls button {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: #c7c7cc; font: 500 14px var(--sans); cursor: pointer;
}
.controls button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.controls button[aria-pressed="true"] { background: #f5f5f7; color: #000; }
.controls svg { width: 15px; height: 15px; }
.controls__count { min-width: 70px; text-align: center; font: 400 12.5px var(--mono); color: #c7c7cc; }
.controls__sep { width: 1px; height: 16px; margin: 0 4px; background: rgba(255, 255, 255, .14); }
.laser { position: fixed; z-index: 6; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  background: #ff453a; box-shadow: 0 0 0 6px rgba(255, 69, 58, .25), 0 0 24px rgba(255, 69, 58, .6); display: none; }
body.is-laser .laser { display: block; }
body.is-laser .reveal { cursor: none; }

/* Auto-animate moves matched elements itself; skip the entrance there */
.reveal section[data-auto-animate="running"] .rise { animation: none; }

/* Overview: reveal lays thumbnails out; keep them static */
.reveal.overview .rise, .reveal.overview .bar__fill { animation: none !important; }
.reveal.overview .chart text { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .reveal section.present .rise, .reveal section.present .bar__fill { animation: none; }
}
