/* ── From Assistant to Agent — deck styles ─────────────────────────── */
:root {
  --bg: #0b1628;
  --bg2: #101f38;
  --panel: #16273f;
  --ink: #eef4fb;
  --muted: #93a5bd;
  --teal: #00bfb3;
  --blue: #36a2ef;
  --pink: #f04e98;
  --yellow: #fec514;
  --danger: #ff6b6b;
  --radius: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); }

/* ── deck chrome ── */
#deck { position: fixed; inset: 0; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5vh 7vw;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.slide.active { opacity: 1; visibility: visible; transform: none; }

#progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 50;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--pink));
  transition: width .3s ease;
}

#hud {
  position: fixed; bottom: 14px; right: 18px; z-index: 50;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  display: flex; gap: 14px; align-items: center; user-select: none;
}
#timer { padding: 3px 10px; border: 1px solid #2a3f5f; border-radius: 999px; cursor: pointer; }
#timer.warn { color: var(--yellow); border-color: var(--yellow); }
#timer.over { color: var(--danger); border-color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

#help {
  position: fixed; bottom: 14px; left: 18px; z-index: 50;
  font-family: var(--mono); font-size: 11px; color: #4d617f; user-select: none;
}

/* speaker notes */
#notes {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(6, 12, 24, .96); border-top: 2px solid var(--teal);
  padding: 16px 28px 20px; max-height: 34vh; overflow: auto;
  font-size: 15px; line-height: 1.55; color: #cfe0f2;
  transform: translateY(100%); transition: transform .25s ease;
}
#notes.open { transform: none; }
#notes strong { color: var(--teal); }

/* overview mode */
#deck.overview .slide {
  opacity: 1; visibility: visible; position: relative; inset: auto;
  transform: scale(1); width: 100%; height: 100%;
  border: 1px solid #24395a; border-radius: 10px; overflow: hidden;
  padding: 3vh 3vw; cursor: pointer; zoom: 0.24;
}
#deck.overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 20px; overflow: auto; }
#deck.overview .slide.active { outline: 4px solid var(--teal); }

/* fragments */
.frag { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.frag.on { opacity: 1; transform: none; }

/* ── typography ── */
.kicker {
  font-family: var(--mono); font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.4vh;
}
h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -0.015em; font-weight: 800; margin-bottom: 2.6vh; }
h3 { font-size: clamp(17px, 1.6vw, 24px); font-weight: 700; }
p.lead { font-size: clamp(17px, 1.7vw, 26px); color: var(--muted); max-width: 62ch; line-height: 1.45; }
.accent { background: linear-gradient(90deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-pink { background: linear-gradient(90deg, var(--pink), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── layout helpers ── */
.cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4vw; align-items: center; }
.cols-rev { grid-template-columns: 1fr 1.05fr; }
.stack > * + * { margin-top: 2vh; }

.card {
  background: var(--panel); border: 1px solid #24395a; border-radius: var(--radius);
  padding: 2.2vh 1.6vw;
}
.card h3 { margin-bottom: .8vh; }
.card p { color: var(--muted); font-size: clamp(13px, 1.15vw, 17px); line-height: 1.5; }

.pill {
  display: inline-block; font-family: var(--mono); font-size: clamp(11px, .95vw, 14px);
  padding: 4px 12px; border-radius: 999px; border: 1px solid #2a3f5f; color: var(--muted); margin: 0 6px 6px 0;
}
.pill.hot { border-color: var(--teal); color: var(--teal); }

/* screenshot frames (browser chrome) */
.shot { background: #0a1220; border: 1px solid #26405f; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.shot .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #14243c; border-bottom: 1px solid #26405f; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.shot .bar i:nth-child(1) { background: #ff5f57; } .shot .bar i:nth-child(2) { background: #febc2e; } .shot .bar i:nth-child(3) { background: #28c840; }
.shot .bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: #5f7595; }
.shot img { display: block; width: 100%; height: auto; }
.shot .ph { display: flex; align-items: center; justify-content: center; min-height: 30vh; color: #44597b; font-family: var(--mono); font-size: 13px; text-align: center; padding: 20px; border: 2px dashed #2a3f5f; margin: 10px; border-radius: 8px; }
.caption { font-family: var(--mono); font-size: 12px; color: #5f7595; margin-top: 1vh; }

/* stat blocks */
.stats { display: flex; gap: 3vw; margin-top: 3vh; }
.stat .num { font-size: clamp(34px, 4.4vw, 64px); font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: clamp(12px, 1.05vw, 15px); color: var(--muted); margin-top: .4vh; max-width: 22ch; }

/* ── slide 1: title ── */
#s-title { text-align: left; overflow: hidden; }
#orbs { position: absolute; inset: 0; z-index: -1; }
#orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, -5vh) scale(1.15); } }
.badge-row { display: flex; gap: 10px; margin-bottom: 3vh; }
.badge {
  font-family: var(--mono); font-size: clamp(11px, 1vw, 14px); letter-spacing: .12em;
  padding: 6px 14px; border-radius: 6px; border: 1px solid var(--pink); color: var(--pink); text-transform: uppercase;
}
.badge.teal { border-color: var(--teal); color: var(--teal); }
.title-flip { display: inline-block; min-width: 6.2ch; }
.title-flip b { display: inline-block; animation: flipin .5s ease; }
@keyframes flipin { from { opacity: 0; transform: translateY(60%) rotateX(60deg); } }

/* ── poll ── */
.poll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4vw; margin-top: 3vh; }
.poll button {
  background: var(--panel); border: 1px solid #2a3f5f; border-radius: var(--radius);
  color: var(--ink); font: inherit; padding: 2.6vh 1.2vw; cursor: pointer; text-align: left;
  transition: border-color .2s, transform .15s;
}
.poll button:hover { border-color: var(--teal); transform: translateY(-3px); }
.poll .q { font-weight: 700; font-size: clamp(14px, 1.3vw, 19px); margin-bottom: 1.6vh; min-height: 3.2em; }
.poll .barwrap { height: 12px; background: #0a1424; border-radius: 999px; overflow: hidden; }
.poll .bar-fill { height: 100%; width: 0%; border-radius: 999px; transition: width .35s ease; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.poll .count { font-family: var(--mono); font-size: 22px; color: var(--teal); margin-top: 1vh; }
.hint { font-family: var(--mono); font-size: 12px; color: #4d617f; margin-top: 2vh; }

/* ── timeline ── */
#tl-wrap { margin-top: 1vh; }
#tl-track { position: relative; height: 6px; background: #1c3050; border-radius: 3px; margin: 7vh 2vw 0; }
#tl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--blue), var(--pink)); width: 0; transition: width .5s ease; }
.tl-node { position: absolute; top: 50%; transform: translate(-50%, -50%); cursor: pointer; }
.tl-node i {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 3px solid #33507a; transition: all .25s;
}
.tl-node .yr {
  position: absolute; top: -4.6vh; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: clamp(10px, .95vw, 14px); color: var(--muted); white-space: nowrap;
}
.tl-node .nm {
  position: absolute; top: 2.6vh; left: 50%; transform: translateX(-50%);
  font-size: clamp(10px, 1vw, 15px); font-weight: 600; color: #6b81a1; white-space: nowrap; transition: color .25s;
}
.tl-node:hover i, .tl-node.sel i { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 18px rgba(0,191,179,.7); }
.tl-node.sel .nm { color: var(--ink); }
#tl-detail {
  margin: 9vh 2vw 0; background: var(--panel); border: 1px solid #24395a; border-radius: var(--radius);
  padding: 3vh 2vw; display: grid; grid-template-columns: 1.25fr .9fr; gap: 2.5vw; align-items: center; min-height: 34vh;
}
#tl-detail .tag { font-family: var(--mono); font-size: 12px; color: var(--pink); letter-spacing: .14em; text-transform: uppercase; }
#tl-detail h3 { font-size: clamp(22px, 2.4vw, 36px); margin: .8vh 0 1.2vh; }
#tl-detail p { color: var(--muted); line-height: 1.55; font-size: clamp(14px, 1.25vw, 18px); }
#tl-detail img { width: 100%; border-radius: 8px; border: 1px solid #26405f; max-height: 30vh; object-fit: contain; background: #fff; }

/* ── model chart ── */
#chart { display: flex; align-items: flex-end; gap: 2.2vw; height: 42vh; margin-top: 4vh; padding: 0 1vw; }
.cbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.cbar .col { width: 100%; border-radius: 8px 8px 0 0; height: 0; transition: height 1s cubic-bezier(.2,.7,.3,1); position: relative;
  background: linear-gradient(180deg, var(--blue), rgba(54,162,239,.15)); }
.cbar.hot .col { background: linear-gradient(180deg, var(--teal), rgba(0,191,179,.12)); }
.cbar .val { position: absolute; top: -3.4vh; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-weight: 700; font-size: clamp(12px, 1.25vw, 18px); color: var(--ink); white-space: nowrap; }
.cbar .mdl { margin-top: 1.4vh; font-size: clamp(11px, 1vw, 15px); font-weight: 600; text-align: center; }
.cbar .yrl { font-family: var(--mono); font-size: clamp(10px, .85vw, 12px); color: var(--muted); }

/* ── quote slides ── */
.bigquote { font-size: clamp(26px, 3.4vw, 52px); font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; max-width: 26ch; }
.bigquote em { color: var(--teal); font-style: normal; }
.attrib { margin-top: 3vh; font-family: var(--mono); font-size: clamp(12px, 1.1vw, 16px); color: var(--muted); }

/* shift quote pair */
.shift { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.5vw; align-items: center; margin-top: 4vh; }
.shift .q { background: var(--panel); border: 1px solid #24395a; border-radius: var(--radius); padding: 3vh 1.8vw; font-size: clamp(16px, 1.6vw, 24px); font-weight: 600; line-height: 1.4; }
.shift .q small { display: block; margin-top: 1.6vh; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.shift .q.then { color: var(--muted); }
.shift .q.now { border-color: var(--teal); box-shadow: 0 0 40px rgba(0,191,179,.12); }
.shift .arrow { font-size: clamp(28px, 3vw, 48px); color: var(--teal); }

/* grids of feature cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4vw; margin-top: 1vh; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; }
.icon { font-size: clamp(22px, 2vw, 30px); margin-bottom: 1vh; display: block; }

/* takeaway list */
.take { counter-reset: t; margin-top: 1vh; }
.take .item { display: flex; gap: 1.6vw; align-items: flex-start; padding: 2vh 0; border-bottom: 1px solid #1d3252; }
.take .item:last-child { border-bottom: 0; }
.take .n { font-family: var(--mono); font-size: clamp(20px, 2.2vw, 34px); font-weight: 700; color: var(--pink); min-width: 2.2ch; }
.take h3 { font-size: clamp(18px, 1.9vw, 28px); margin-bottom: .4vh; }
.take p { color: var(--muted); font-size: clamp(13px, 1.2vw, 18px); line-height: 1.45; max-width: 66ch; }

/* keyboard cue */
kbd { font-family: var(--mono); font-size: .85em; background: #1a2c49; border: 1px solid #2e4568; border-bottom-width: 3px; border-radius: 5px; padding: 1px 7px; }
