/* Slide deck. One slide on screen at a time; presentation.js moves between them. */

html, body.deck { height: 100%; overflow: hidden; }
.slides { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px 0 96px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateX(60px); transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s; }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.slide.past { transform: translateX(-60px); }
.sl { width: min(1240px, 100% - 40px); margin: auto; }
.slide .notes { display: none; }

/* Bigger type on a projector. */
.deck .s-h1 { font-size: clamp(44px, 6.2vw, 112px); }
.deck .s-h2 { font-size: clamp(34px, 4.6vw, 76px); max-width: 20ch; }
.deck .s-lede { font-size: clamp(18px, 1.7vw, 28px); }
.deck .s-kicker { font-size: clamp(12px, 1vw, 16px); }
.deck .s-card { padding: clamp(20px, 2vw, 32px); }
.deck .s-card p { font-size: clamp(15px, 1.25vw, 20px); }
.deck .s-h3 { font-size: clamp(19px, 1.7vw, 28px); }
.deck .s-grid { margin-top: clamp(24px, 3.5vh, 44px); }

.split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.art { aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.art canvas { width: 100%; height: 100%; display: block; }
.byline { margin-top: 28px; color: var(--muted); font-size: clamp(15px, 1.2vw, 20px); }
.byline b { color: var(--text); }
.foot-note { margin-top: 26px; color: var(--muted); font-size: clamp(15px, 1.25vw, 21px); max-width: 70ch; }
.foot-note.big { font-size: clamp(19px, 1.8vw, 30px); color: var(--text); font-weight: 600; }
.foot-note b { color: var(--green); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .art { max-width: 260px; } }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 6px; background: var(--tint-amber); box-shadow: inset 0 0 0 2px var(--amber); }
.ticks.big li { font-size: clamp(17px, 1.6vw, 26px); color: var(--text); font-weight: 600; }
.then { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 2.4vw, 36px); box-shadow: 0 18px 50px var(--shadow); }
.then .s-kicker { color: var(--amber); }
.then .s-kicker::before { background: var(--amber); }

/* Setup kit list */
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.kit div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.kit b { display: block; font-size: clamp(18px, 1.6vw, 26px); font-weight: 800; }
.kit span { display: block; color: var(--muted); margin-top: 6px; font-size: clamp(14px, 1.15vw, 19px); }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr 1fr; } }

/* Voice-note flow */
.flow { display: flex; align-items: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.flow div { flex: 1 1 160px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; text-align: center; }
.flow b { display: block; font-size: clamp(18px, 1.7vw, 28px); font-weight: 800; }
.flow span { color: var(--muted); font-size: clamp(14px, 1.1vw, 18px); }
.flow i { width: 26px; height: 3px; background: var(--green); border-radius: 3px; position: relative; flex: none; }
.flow i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6.5px solid transparent; border-left-color: var(--green); }

.pull { margin: 34px 0 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--green); font-size: clamp(22px, 2.4vw, 40px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.pull cite { display: block; font-style: normal; font-size: clamp(14px, 1.1vw, 18px); color: var(--muted); font-weight: 600; margin-top: 10px; }
.pull.sm { font-size: clamp(20px, 2vw, 32px); }
.quotes { display: flex; flex-wrap: wrap; gap: 0 48px; }

/* Process */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.steps-row div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps-row div:last-child { border-color: var(--green); background: var(--tint-green); }
.steps-row b { font-size: clamp(32px, 3vw, 52px); font-weight: 900; color: var(--green); line-height: 1; }
.steps-row span { display: block; margin-top: 10px; font-weight: 600; font-size: clamp(15px, 1.3vw, 22px); }
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr 1fr; } }

/* Pivots */
.pivots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 34px; }
.pivots div { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.pivots s { color: var(--dim); font-size: clamp(14px, 1.1vw, 18px); text-decoration-thickness: 2px; }
.pivots b { font-size: clamp(17px, 1.5vw, 25px); font-weight: 800; }
.pivots b::before { content: "\2192\00a0"; color: var(--green); }
@media (max-width: 860px) { .pivots { grid-template-columns: 1fr; } }

/* Build timeline */
.timeline-x { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; position: relative; }
.timeline-x div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: relative; }
.timeline-x b { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--tint-green); color: var(--green); font-weight: 800; font-size: 0.95rem; }
.timeline-x h3 { font-size: clamp(18px, 1.6vw, 26px); font-weight: 800; margin-top: 12px; }
.timeline-x p { color: var(--muted); margin-top: 8px; font-size: clamp(14px, 1.1vw, 18px); }
@media (max-width: 860px) { .timeline-x { grid-template-columns: 1fr 1fr; } }

/* Lessons */
.lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 32px; }
.lessons div { padding: 16px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.lessons em { display: block; font-style: normal; color: var(--muted); font-size: clamp(14px, 1.1vw, 18px); }
.lessons b { display: block; margin-top: 6px; font-size: clamp(15px, 1.3vw, 21px); }
.lessons b::before { content: "\2192\00a0"; color: var(--green); }
@media (max-width: 860px) { .lessons { grid-template-columns: 1fr; } }

/* Two AI layers */
.layers { margin-top: 30px; display: grid; gap: 10px; max-width: 900px; }
.layer { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; }
.layer.inner { border-color: var(--cyan); background: var(--tint-cyan); }
.layer .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.layer.inner .tag { color: var(--cyan); }
.layer h3 { font-size: clamp(20px, 1.9vw, 32px); font-weight: 800; margin-top: 6px; }
.layer p { color: var(--muted); margin-top: 6px; font-size: clamp(15px, 1.2vw, 20px); }
.arrow-down { width: 3px; height: 26px; background: var(--line); margin-left: 40px; position: relative; }
.arrow-down::after { content: ""; position: absolute; bottom: -8px; left: -6px; border: 7.5px solid transparent; border-top-color: var(--line); }

/* Demo */
.demo-steps { margin: 26px 0 0; padding-left: 1.3em; display: grid; gap: 12px; font-size: clamp(18px, 1.7vw, 28px); font-weight: 600; }
.demo-steps li::marker { color: var(--green); font-weight: 900; }
.qr-box { justify-self: center; text-align: center; }
.qr { width: clamp(180px, 22vw, 300px); aspect-ratio: 1; padding: 14px; background: #fff; border-radius: 20px; box-shadow: 0 18px 50px var(--shadow); margin: 0 auto; display: grid; place-items: center; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-box p { margin-top: 14px; color: var(--muted); font-size: clamp(14px, 1.1vw, 18px); }
.qr-box b { display: block; color: var(--text); font-size: clamp(17px, 1.4vw, 24px); }

/* Feature menu */
.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.menu div { position: relative; padding: 16px 18px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.menu b { display: block; font-size: clamp(16px, 1.4vw, 23px); font-weight: 800; padding-right: 70px; }
.menu span { display: block; color: var(--muted); font-size: clamp(13px, 1vw, 17px); margin-top: 4px; }
.menu i { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--tint-green); color: var(--green); }
.menu .stretch i { background: var(--tint-amber); color: var(--amber); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .menu { grid-template-columns: 1fr; } }

/* Takeaways */
.takeaways { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 14px; max-width: 1000px; }
.takeaways li { counter-increment: t; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; font-size: clamp(17px, 1.6vw, 27px); color: var(--muted); }
.takeaways li::before { content: counter(t); font-size: clamp(28px, 2.6vw, 44px); font-weight: 900; color: var(--green); }
.takeaways b { color: var(--text); }

/* Controls */
.deck-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 40px var(--shadow); opacity: 0.35; transition: opacity 0.3s; }
.deck-bar:hover, .deck-bar:focus-within, body.show-ui .deck-bar { opacity: 1; }
.deck-bar .s-icon { width: 40px; height: 40px; border: none; background: transparent; color: var(--text); }
.deck-bar .s-icon:hover { background: var(--tint-green); }
.deck-bar .count { min-width: 64px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.progress-x { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 20; background: transparent; }
.progress-x div { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width 0.4s ease; }
.notes-panel { position: fixed; left: 16px; right: 16px; bottom: 76px; z-index: 19; max-width: 760px; margin: 0 auto; padding: 16px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--green); box-shadow: 0 12px 40px var(--shadow); font-size: 17px; line-height: 1.5; }
.notes-panel::before { content: "Speaker notes"; display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { .slide, .slide.on { transition: none; transform: none; } }
