/* flyfun-talks deck engine — 1600×900 stage scaled to the window. */

:root {
  --navy: #1E2761;
  --navy-2: #2A3478;
  --blue: #2D6CB5;
  --lavender: #AAB2E0;
  --lavender-2: #D6D9F0;
  --panel: #EEF2F9;
  --ink: #3A3A3A;
  --ink-2: #6B6B6B;
  --muted: #8A8A99;
  --green: #1F8A5B;
  --amber: #C98A0C;
  --red: #B01E2E;
  --serif: Cambria, "Iowan Old Style", Georgia, serif;
  --sans: Calibri, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c1030; overflow: hidden; }
body { font-family: var(--sans); color: var(--ink); touch-action: manipulation; } /* no double-tap zoom delay */

#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage {
  position: relative; width: 1600px; height: 900px; flex: none;
  transform-origin: center center; background: #fff; overflow: hidden;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .45);
}

/* --- slides --- */
.slide {
  position: absolute; inset: 0; padding: 0; background: #fff;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.slide.current { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.slide.navy { background: var(--navy); color: #fff; }

.slide h1.title {
  position: absolute; left: 64px; top: 30px; right: 64px; margin: 0;
  font: 700 42px/1.15 var(--serif); color: var(--navy);
}
.slide .subtitle-line {
  position: absolute; left: 64px; top: 90px; right: 64px;
  font: 400 24px/1.3 var(--sans); color: var(--ink-2);
}
.slide .section-no {
  position: absolute; left: 64px; bottom: 26px; font: 700 18px var(--sans); color: var(--muted);
  letter-spacing: .08em;
}
.slide.navy .section-no { color: var(--lavender); }

/* title + section dividers */
.slide .kicker { position: absolute; left: 64px; top: 340px; font: 700 22px var(--sans); letter-spacing: .2em; color: var(--lavender); }
.slide .big-title { position: absolute; left: 64px; right: 100px; top: 380px; margin: 0; font: 700 64px/1.1 var(--serif); color: #fff; }
.slide.title-slide .big-title { top: 320px; font-size: 76px; }
.slide.title-slide .kicker { top: 270px; }
.slide .big-subtitle { position: absolute; left: 64px; right: 300px; top: 560px; font: 400 30px/1.35 var(--sans); color: var(--lavender-2); }
.slide.title-slide .big-subtitle { top: 500px; }
.slide .byline { position: absolute; left: 64px; right: 300px; top: 640px; font: 400 34px/1.3 var(--sans); color: var(--lavender-2); }

/* centred statements */
.statement { position: absolute; left: 160px; right: 160px; top: 200px; bottom: 120px; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.statement .line { font: 400 46px/1.25 var(--sans); color: var(--navy); }
.statement .line.strong { font: 700 52px/1.2 var(--serif); }
.statement .line.small { font-size: 32px; color: var(--ink-2); }

/* builds */
.build { transition: opacity .4s ease, transform .4s ease; }
.build.hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* collage of screenshots */
.collage img {
  position: absolute; border-radius: 10px; object-fit: cover;
  box-shadow: 0 8px 30px rgba(20, 30, 70, .28); border: 1px solid #d8dce8; background: #fff;
  transform: rotate(var(--tilt, 0deg));
}
.collage .build.hidden { transform: rotate(var(--tilt, 0deg)) translateY(12px); }
.collage.postcards img { border: 14px solid #fff; border-bottom-width: 40px; border-radius: 3px; box-shadow: 0 14px 34px rgba(20, 30, 70, .32); }
.slide > .tag {
  position: absolute; left: 64px; top: 96px; font: 400 26px var(--sans); color: var(--ink-2);
}

/* framed app view (live iframe or snapshot) */
.frame {
  position: absolute; left: 64px; right: 64px; top: 110px; bottom: 64px;
  border-radius: 12px; overflow: hidden; background: var(--panel);
  box-shadow: 0 6px 30px rgba(20, 30, 70, .22); border: 1px solid #d8dce8;
}
.frame.split-left { right: calc(50% + 10px); }
.frame.split-right { left: calc(50% + 10px); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; background: #fff; }
.frame > iframe {
  position: absolute; left: 0; top: 0; border: 0; background: #fff;
  opacity: 0; transition: opacity .5s ease; transform-origin: 0 0;
}
.frame.live-ready > iframe { opacity: 1; }
.frame .frame-label {
  position: absolute; left: 12px; top: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px;
  background: rgba(30, 39, 97, .85); color: #fff; font: 600 14px var(--sans);
}
.frame .live-dot {
  position: absolute; right: 12px; top: 10px; z-index: 3; padding: 3px 10px; border-radius: 999px;
  font: 700 12px var(--sans); letter-spacing: .08em; color: #fff; background: rgba(0, 0, 0, .45);
}
.frame.live-ready .live-dot { background: var(--red); }
/* not signed in to the app: a visible way to fix it, at the foot of every app view */
.frame .signin-link {
  display: none; position: absolute; left: 50%; bottom: 14px; z-index: 4; transform: translateX(-50%); white-space: nowrap;
  padding: 10px 22px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none;
  font: 400 19px var(--sans); box-shadow: 0 8px 26px rgba(20, 30, 70, .45);
}
.frame .signin-link b { color: #f1c27d; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; margin-right: 4px; }
.frame .signin-link:hover { background: var(--blue); }
.needs-signin .frame .signin-link { display: block; }
.snap .frame .signin-link { display: none; }
#hud .hud-signin { color: inherit; text-decoration: underline; }

.caption {
  position: absolute; left: 64px; right: 64px; bottom: 18px; min-height: 36px;
  font: 400 24px/1.3 var(--sans); color: var(--ink);
}
.caption b { color: var(--navy); }
.has-caption .frame { bottom: 76px; }

/* layer builds: caption in the caption line, progress dots at its right */
.step-caption { right: 220px; }
.step-caption b { color: var(--navy); }
.step-dots { position: absolute; right: 64px; bottom: 30px; display: flex; gap: 8px; }
.step-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(30, 39, 97, .2); }
.step-dots span.on { background: var(--navy); }

/* image slide (chat screenshots) */
.shot { position: absolute; top: 112px; height: 740px; width: auto; max-width: 1472px; object-fit: contain; left: 50%; transform: translateX(-50%);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(20, 30, 70, .25); border: 1px solid #d8dce8; }
.shot-pair { position: absolute; top: 120px; bottom: 60px; left: 64px; right: 64px; display: flex; gap: 28px; align-items: flex-start; justify-content: center; }
.shot-pair img { height: 100%; width: auto; object-fit: contain; max-width: 50%; border-radius: 12px; box-shadow: 0 8px 30px rgba(20, 30, 70, .25); border: 1px solid #d8dce8; }

.shot.wide { height: auto; top: 40%; transform: translate(-50%, -50%); }
.has-points .shot.wide { transform: translateY(-50%); }
/* marks: labelled arrows onto a picture */
.marks { position: absolute; z-index: 3; pointer-events: none; transition: opacity .35s ease .2s; }
.marks.off { opacity: 0; transition-delay: 0s; }
.marks svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark-label {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 6px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font: 600 20px var(--sans); box-shadow: 0 6px 18px rgba(20, 30, 70, .35);
}

/* devices slide: one screen on iPhone / browser / Android, drawn frames */
.devices { position: absolute; left: 64px; right: 64px; top: 112px; bottom: 70px; display: flex; gap: 48px; align-items: center; justify-content: center; }
.device-wrap { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 40px; }
.device-label { position: absolute; bottom: 0; font: 700 22px var(--sans); letter-spacing: .12em; color: var(--blue); text-transform: uppercase; }
.device-screen > img.missing { visibility: hidden; }
.device { position: relative; box-shadow: 0 14px 40px rgba(20, 30, 70, .28); }
.device-screen { position: relative; overflow: hidden; background: #f6f7f9; }
.device-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .35s ease; }
.device-screen > img.off { opacity: 0; }
.device-spot {
  position: absolute; z-index: 2; border: 4px solid var(--amber); border-radius: 12px;
  box-shadow: 0 0 0 4000px rgba(20, 30, 70, .45); transition: opacity .35s ease;
}
.device-spot.off { opacity: 0; }
/* phone height drives everything; the screen ratio is the capture's */
.device.iphone { padding: 12px; border-radius: 56px; background: #1d1d21; outline: 3px solid #8e8e96; outline-offset: -3px; }
.device.iphone .device-screen { height: 652px; aspect-ratio: 1320 / 2868; border-radius: 44px; }
.device.iphone::after { /* dynamic island */
  content: ""; position: absolute; z-index: 3; left: 50%; top: 24px; width: 92px; height: 27px;
  transform: translateX(-50%); border-radius: 14px; background: #000;
}
.device.iphone::before { /* side button */
  content: ""; position: absolute; right: -5px; top: 190px; width: 4px; height: 90px; border-radius: 0 3px 3px 0; background: #8e8e96;
}
.device.android { padding: 10px; border-radius: 40px; background: #2b2d31; outline: 2px solid #5f6368; outline-offset: -2px; }
.device.android .device-screen { height: 656px; aspect-ratio: var(--android-ratio, 1080 / 2424); border-radius: 30px; }
.device.android::after { /* punch-hole camera */
  content: ""; position: absolute; z-index: 3; left: 50%; top: 24px; width: 16px; height: 16px;
  transform: translateX(-50%); border-radius: 50%; background: #000;
}
.device.android::before {
  content: ""; position: absolute; right: -4px; top: 150px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #5f6368;
}
.device.browser { width: 720px; border-radius: 12px; overflow: hidden; background: #e7e9ef; border: 1px solid #c9cdd8; }
.device.browser .device-screen { aspect-ratio: 1440 / 900; }
/* section shots are page-wide: fit the width, a tall one loses its bottom, a short one shows whole */
.device.browser .device-screen > img { height: auto; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #e7e9ef; border-bottom: 1px solid #d3d6df; }
.browser-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { flex: 1; margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: #fff; font: 400 15px var(--sans); color: var(--ink-2); }
.devices + .step-caption { text-align: center; left: 64px; right: 64px; }
.has-points .devices { right: 530px; } /* a journey or points panel beside the devices */
/* focus: the named surfaces grow, the others step back */
.device-wrap { transition: transform .5s ease, opacity .5s ease; transform: scale(var(--focus-scale, 1)); }
.devices.has-focus .device-wrap:not(.focus) { opacity: .18; transform: scale(.9); }
.devices.has-focus .device-wrap.focus { z-index: 2; }
.device-todo {
  position: absolute; inset: 8%; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; border: 3px dashed #b9c0d4; border-radius: 16px; font: 400 20px/1.35 var(--sans); color: var(--muted); transition: opacity .35s;
}
.device-todo.off { opacity: 0; }
.device-todo::before { content: "to capture"; position: absolute; top: 14px; font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.device-layer { position: absolute; z-index: 4; pointer-events: none; }
.device-callout { position: absolute; transition: opacity .35s ease .25s; }
.device-callout i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #d97757; box-shadow: 0 0 0 5px rgba(217, 119, 87, .3); animation: callout-ping 1.6s ease-out infinite; }
@keyframes callout-ping { 0% { box-shadow: 0 0 0 0 rgba(217, 119, 87, .55); } 100% { box-shadow: 0 0 0 16px rgba(217, 119, 87, 0); } }
.device-callout span {
  position: absolute; top: -20px; white-space: nowrap; padding: 6px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font: 600 19px var(--sans); box-shadow: 0 6px 18px rgba(20, 30, 70, .3);
}
.device-callout.right span { left: 22px; }
.device-callout.left span { right: 22px; }
.device-callout.off { opacity: 0; transition-delay: 0s; }
.device-callout.out b { position: absolute; top: -1px; height: 3px; width: var(--reach); background: var(--navy); border-radius: 2px; }
.device-callout.out.right b { left: 0; }
.device-callout.out.left b { right: 0; }
.device-callout.out.right span { left: var(--reach); }
.device-callout.out.left span { right: var(--reach); }
.device-banner {
  position: absolute; z-index: 3; left: 4%; right: 4%; top: 7%; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 18px; background: rgba(250, 250, 252, .94); box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  font: 400 15px/1.3 -apple-system, system-ui, sans-serif; color: #1c1c1e; transition: transform .5s cubic-bezier(.2, .9, .3, 1.15) .35s, opacity .3s .35s;
}
.device-banner i { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 15px; }
.device-banner b { display: block; font-size: 14px; color: #555; }
.device-banner.off { transform: translateY(-160%); opacity: 0; transition-delay: 0s; }
.device-pill {
  position: absolute; z-index: 3; left: 50%; top: 84%; transform: translateX(-50%); white-space: nowrap; display: flex; gap: 8px; align-items: center;
  padding: 8px 16px; border-radius: 22px; background: var(--navy); color: #fff; font: 600 16px var(--sans);
  box-shadow: 0 8px 22px rgba(20, 30, 70, .35); transition: opacity .35s ease .35s, transform .35s ease .35s;
}
.device-pill i { font-style: normal; }
.device-pill.live i { width: 10px; height: 10px; border-radius: 50%; background: #3ad16b; animation: callout-ping 1.6s ease-out infinite; }
.device-pill.off { opacity: 0; transform: translate(-50%, 12px); transition-delay: 0s; }

/* two-column tables */
table.grid { position: absolute; left: 64px; right: 64px; top: 170px; border-collapse: separate; border-spacing: 0 10px; font-size: 24px; }
table.grid th { text-align: left; font: 700 17px var(--sans); letter-spacing: .14em; color: var(--blue); padding: 0 22px 4px; }
table.grid td { background: var(--panel); padding: 18px 22px; vertical-align: top; line-height: 1.35; }
table.grid td:first-child { border-radius: 10px 0 0 10px; width: 46%; }
table.grid td:last-child { border-radius: 0 10px 10px 0; }
table.grid td b { color: var(--navy); }
table.grid td .tag { display: inline-block; margin-left: 6px; font: italic 600 18px var(--sans); color: var(--green); }
table.grid.rows-label td:first-child { width: 18%; font: 700 28px var(--serif); color: var(--navy); }
table.grid.rows-label td:nth-child(3) { width: 14%; text-align: right; }
table.grid .build.hidden { transform: none; }
/* matrix: a feature per row, a tick per column */
table.grid.matrix { top: 130px; left: 220px; right: auto; width: 1160px; border-spacing: 0 6px; font-size: 26px; }
table.grid.matrix th { text-align: center; font-size: 20px; }
table.grid.matrix td { padding: 9px 22px; text-align: center; color: var(--navy); font-weight: 700; }
table.grid.matrix td:first-child { width: 52%; text-align: left; font: 400 26px var(--sans); color: var(--ink); }

/* bullets */
.columns { position: absolute; left: 64px; right: 64px; top: 170px; bottom: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.columns h2 { margin: 0 0 18px; font: 700 32px var(--serif); color: var(--navy); }
.columns ul { margin: 0; padding-left: 28px; font: 400 27px/1.45 var(--sans); }
.columns li { margin-bottom: 12px; }
.columns img { max-width: 100%; margin-top: 10px; }
.footer-line { position: absolute; left: 64px; right: 64px; bottom: 90px; font: 700 34px var(--serif); color: var(--navy); text-align: center; }

/* closing */
.closing { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 140px; gap: 80px; }
.closing .url { font: 700 44px var(--serif); color: #fff; margin: 18px 0; }
.closing .url small { display: block; font: 400 22px var(--sans); color: var(--lavender); margin-bottom: 4px; }
.closing img.qr { width: 340px; height: 340px; background: #fff; padding: 14px; border-radius: 14px; }
.closing img.badge { height: 64px; margin-top: 26px; }

/* clock (30 minutes) */
.clock-wrap { position: absolute; left: 0; right: 0; top: 160px; display: flex; justify-content: center; gap: 120px; align-items: center; }
.clock { width: 340px; height: 340px; }
.clock-label { margin-top: 18px; text-align: center; font: 700 30px var(--serif); color: var(--navy); }
.clock-label small { display: block; font: 400 22px var(--sans); color: var(--ink-2); }

/* --- chrome --- */
#hud {
  position: fixed; right: 14px; bottom: 12px; z-index: 50; display: flex; gap: 8px; align-items: center;
  font: 600 12px var(--sans); color: rgba(255, 255, 255, .75); opacity: 0; transition: opacity .3s ease;
}
body:hover #hud, #hud.show { opacity: 1; }
#hud span { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
#hud .mode-live { background: var(--red); color: #fff; }
#hud .env-local { background: var(--green); color: #fff; }

#overview {
  position: fixed; inset: 0; z-index: 60; display: none; overflow: auto; padding: 40px;
  background: rgba(12, 16, 48, .96); color: #fff;
}
#overview.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-content: start; }
#overview button {
  text-align: left; padding: 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06); color: #fff; font: 400 15px var(--sans); cursor: pointer;
}
#overview button b { display: block; font: 700 13px var(--sans); color: var(--lavender); margin-bottom: 4px; }
#overview button.current { border-color: var(--lavender); background: rgba(170, 178, 224, .18); }

#help {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; display: none;
  padding: 26px 34px; border-radius: 14px; background: #fff; color: var(--ink); font: 400 16px/1.7 var(--sans);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
#help.open { display: block; }
#help { min-width: 340px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; }
#help h3 { margin: 12px 0 2px; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#help h3:first-child { margin-top: 0; }
#help kbd { display: inline-block; min-width: 26px; padding: 0 6px; margin-right: 8px; border-radius: 4px; border: 1px solid #ccd; background: var(--panel); text-align: center; font: 600 13px var(--sans); }

/* presenter view */
body.presenter { background: #111; color: #eee; overflow: auto; }
body.presenter #viewport { display: none; }
#presenter { display: none; padding: 30px; font: 400 22px/1.5 var(--sans); }
body.presenter #presenter { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
#presenter .p-title { font: 700 30px var(--serif); color: #fff; }
#presenter .p-notes { white-space: pre-wrap; margin-top: 16px; color: #ddd; }
#presenter .p-next { color: #999; }
#presenter .p-timer { font: 700 64px var(--sans); color: #fff; }
.has-caption .section-no { display: none; }

/* journey: one flight's briefings day by day, beside the view */
.journey { position: absolute; right: 64px; top: 112px; bottom: 56px; width: 430px; display: flex; flex-direction: column; }
.journey h2 { margin: 0 0 14px; font: 700 26px/1.2 var(--serif); color: var(--navy); }
.journey ol { margin: 0; padding: 0 0 0 4px; list-style: none; position: relative; }
.journey ol::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: #d5d9e6; }
.journey li { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 5px 0 5px 36px; font: 400 20px/1.25 var(--sans); color: var(--ink-2); }
.journey li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #c4c9d8; box-sizing: border-box;
}
.journey li b { flex: none; min-width: 112px; font-weight: 700; color: var(--navy); }
.journey li.later { opacity: .45; }
.journey li.here { margin: 4px -12px; padding: 9px 12px 9px 48px; border-radius: 10px; background: var(--panel); font-size: 22px; color: var(--ink); }
.journey li.here::before { left: 14px; top: 11px; width: 24px; height: 24px; }
.journey li.grade-green::before { background: var(--green); border-color: var(--green); }
.journey li.grade-amber::before { background: var(--amber); border-color: var(--amber); }
.journey li.grade-red::before { background: var(--red); border-color: var(--red); }
.journey li.grade-outlook::before { background: var(--lavender); border-color: var(--blue); }
.journey li.grade-photo::before { background: #fff; border-color: var(--navy); }
/* flight categories and live position, for a flight followed in the air */
.journey li.grade-vfr::before { background: var(--green); border-color: var(--green); }
.journey li.grade-mvfr::before { background: var(--blue); border-color: var(--blue); }
.journey li.grade-ifr::before { background: var(--red); border-color: var(--red); }
.journey li.grade-lifr::before { background: #b03cc8; border-color: #b03cc8; }
.journey li.grade-live::before { background: #fff; border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); }
.journey blockquote {
  margin: auto 0 0; padding: 14px 18px; border-left: 5px solid var(--blue); background: #f7f8fc;
  font: italic 400 21px/1.4 var(--serif); color: var(--ink);
}

/* key text beside a view (`points`) */
.points {
  position: absolute; right: 64px; top: 110px; bottom: 64px; width: 430px;
  display: flex; flex-direction: column; justify-content: center;
}
.points h2 { margin: 0 0 22px; font: 700 34px/1.2 var(--serif); color: var(--navy); }
.points ul { margin: 0; padding: 0; list-style: none; }
.points li {
  position: relative; margin: 0 0 22px; padding-left: 26px;
  font: 400 26px/1.35 var(--sans); color: var(--ink);
}
.points li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue);
}
.points li b { color: var(--navy); }
.points .try-btn {
  align-self: flex-start; margin-top: 10px; padding: 12px 26px; border-radius: 999px; background: var(--blue); color: #fff;
  font: 700 22px var(--sans); text-decoration: none; box-shadow: 0 8px 22px rgba(45, 108, 181, .35);
}
.points .try-btn:hover { background: var(--navy); }
.snap .points .try-btn { display: none; }
.points .g::before, .points li.g::before { background: var(--green); }
.points li.a::before { background: var(--amber); }
.points li.r::before { background: var(--red); }
.has-points .frame { right: 530px; }
.has-points .shot { left: 64px; transform: none; max-width: 1006px; }
.has-points .shot-pair { right: 530px; }
.has-points .caption { right: 530px; }

/* voice-over version: no on-slide text */
.no-text .points, .no-text .caption, .no-text .step-dots { display: none; }
.no-text .has-points .frame { right: 64px; }
.no-text .has-caption .frame { bottom: 64px; }
.no-text .has-points .shot { left: 50%; transform: translateX(-50%); max-width: 1472px; }
.no-text .has-points .shot-pair { right: 64px; }

/* the onion: concentric layers, outside = at a glance, core = raw data */
.onion { position: absolute; left: 64px; right: 64px; top: 120px; bottom: 40px; display: grid; grid-template-columns: 720px 1fr; gap: 40px; align-items: center; }
.onion svg { width: 720px; height: 720px; }
.onion .ring { fill: var(--lavender-2); stroke: #fff; stroke-width: 6; transition: fill .4s ease, opacity .4s ease; }
.onion .ring:nth-child(even) { fill: #C5CAEA; }
.onion .ring.on { fill: var(--navy); }
.onion .ring.peeled { opacity: .35; }
.onion-list { margin: 0; padding: 0; list-style: none; counter-reset: layer; }
.onion-list li { counter-increment: layer; margin: 0 0 18px; padding-left: 64px; position: relative; transition: opacity .4s ease; }
.onion-list li::before {
  content: counter(layer); position: absolute; left: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--lavender-2); color: var(--navy); font: 700 22px/42px var(--sans); text-align: center;
}
.onion-list b { display: block; font: 700 30px/1.2 var(--serif); color: var(--navy); }
.onion-list small { display: block; font: 400 21px/1.3 var(--sans); color: var(--ink-2); }
.onion-list li.on::before { background: var(--navy); color: #fff; }
.onion-list li.peeled { opacity: .45; }

/* narration subtitles (?subs=1) */
.subs {
  position: absolute; left: 160px; right: 160px; bottom: 26px; z-index: 20; text-align: center;
  font: 500 28px/1.35 var(--sans); color: #fff; pointer-events: none;
}
.subs:not(:empty) { padding: 10px 18px; border-radius: 10px; background: rgba(12, 16, 48, .82); }

/* ---- theme: pplir — the PPL/IR Europe video look (pale blue, Calibri, orange) ---- */
.slide .logo { position: absolute; right: 36px; top: 16px; width: 176px; z-index: 5; pointer-events: none; }
.theme-pplir {
  --pp-bg: #DAE3F3;        /* PowerPoint Blue, Accent 1, Lighter 80% */
  --pp-orange: #C55A11;    /* Orange, Accent 2, Darker 25% */
  --pp-blue: #203A8C;      /* the logo's arch */
  --navy: var(--pp-blue);
}
.theme-pplir #stage, .theme-pplir .slide, .theme-pplir .slide.navy { background: var(--pp-bg); color: var(--ink); }
.theme-pplir .slide h1.title {
  left: 240px; right: 240px; top: 26px; text-align: center;
  font: 400 50px/1.15 var(--sans); color: var(--pp-orange);
}
.theme-pplir .slide .subtitle-line { text-align: center; left: 240px; right: 240px; }
/* title, section, closing: centred orange on the same pale blue */
.theme-pplir .slide .kicker { left: 0; right: 0; text-align: center; color: var(--pp-blue); }
.theme-pplir .slide .big-title { left: 120px; right: 120px; text-align: center; font: 400 78px/1.1 var(--sans); color: var(--pp-orange); }
.theme-pplir .slide.title-slide .big-title { font-size: 96px; }
.theme-pplir .slide .big-subtitle { left: 120px; right: 120px; text-align: center; color: var(--pp-orange); }
.theme-pplir .closing .url { color: var(--pp-orange); }
.theme-pplir .closing .url small { color: var(--pp-blue); }
.theme-pplir .slide.navy .section-no { color: var(--muted); }
/* screenshots: thin black border, grey shadow down-right */
.theme-pplir .frame, .theme-pplir .shot, .theme-pplir .collage img, .theme-pplir .shot-pair img,
.theme-pplir .columns img {
  border: 1px solid #000; border-radius: 0; box-shadow: 10px 12px 10px rgba(60, 70, 90, .45);
}
.theme-pplir .slide > .tag { left: 0; right: 0; top: 92px; text-align: center; color: var(--pp-blue); }
.theme-pplir .statement .line { color: var(--pp-blue); }
.theme-pplir .statement .line.strong { font: 400 56px/1.2 var(--sans); color: var(--pp-orange); }
.theme-pplir .points li::before { background: var(--pp-orange); }
.theme-pplir .points li.g::before { background: var(--green); }
.theme-pplir .points li.a::before { background: var(--amber); }
.theme-pplir .points li.r::before { background: var(--red); }
.theme-pplir .points li b, .theme-pplir .caption b { color: var(--pp-blue); }
.theme-pplir .onion .ring { fill: #F4F7FC; stroke: var(--pp-bg); }
.theme-pplir .onion .ring:nth-child(even) { fill: #C3D0EA; }
.theme-pplir .onion .ring.on { fill: var(--pp-orange); }
.theme-pplir .onion-list b { font-family: var(--sans); font-weight: 400; color: var(--pp-orange); }
.theme-pplir .onion-list li::before { background: #F4F7FC; color: var(--pp-blue); }
.theme-pplir .onion-list li.on::before { background: var(--pp-orange); color: #fff; }
.theme-pplir .step-dots span { background: rgba(32, 58, 140, .2); }
.theme-pplir .step-dots span.on { background: var(--pp-orange); }
.theme-pplir .closing .url { font: 400 46px/1.15 var(--sans); }
.theme-pplir .statement { text-align: center; }
.theme-pplir .slide .byline { left: 120px; right: 120px; text-align: center; font-size: 52px; color: var(--pp-orange); }

/* recorded narration: the speaker in a corner; click / A plays, V hides, C captions */
.speaker {
  position: absolute; right: 28px; bottom: 24px; width: 352px; aspect-ratio: 16 / 9; z-index: 30;
  border-radius: 14px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 8px 28px rgba(10, 16, 48, .45);
}
.speaker video { display: block; width: 100%; height: 100%; object-fit: cover; }
.speaker-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--navy);
  font: 30px/72px var(--sans); text-align: center; text-indent: 6px; pointer-events: none;
}
.playing .speaker-play { display: none; }
.speaker.hidden { display: none; }
.narrated .points { bottom: 250px; }
.narrated .subs { left: 64px; right: 410px; }
.theme-pplir .speaker { border: 1px solid #000; border-radius: 0; box-shadow: 10px 12px 10px rgba(60, 70, 90, .45); }
.captions.playing .caption, .captions.playing .step-dots { visibility: hidden; } /* the subtitles take that line */
.shot.seq { transition: opacity .45s ease; }
.shot.seq.off { opacity: 0; }

/* chrome: sections (☰ top left, S) and help (? bottom left) */
.chrome-btn {
  position: fixed; z-index: 55; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(12, 16, 48, .55); color: #fff; font: 700 18px/38px var(--sans); cursor: pointer;
  opacity: .5; transition: opacity .2s ease;
}
.chrome-btn:hover, .chrome-btn:focus-visible { opacity: 1; }
.menu-btn { left: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { width: 16px; height: 2px; border-radius: 1px; background: #fff; }
.help-btn { left: 12px; bottom: 12px; }
.home-btn { left: 12px; top: 58px; font-size: 20px; }
/* ‹ Prev / Next ›, bottom right; the HUD moves left of them */
.nav-bar { position: fixed; z-index: 55; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.nav-btn {
  height: 38px; padding: 0 16px; border: 0; border-radius: 19px; background: rgba(12, 16, 48, .55); color: #fff;
  font: 600 15px var(--sans); cursor: pointer; opacity: .75; transition: opacity .2s ease, background .2s ease;
}
.nav-btn:hover, .nav-btn:focus-visible { opacity: 1; }
.nav-btn:disabled { opacity: .25; cursor: default; }
.nav-next { background: var(--navy); }
.nav-next.nudge { opacity: 1; animation: nav-nudge 1.8s ease-in-out infinite; }
@keyframes nav-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(45, 108, 181, .6); } 50% { box-shadow: 0 0 0 10px rgba(45, 108, 181, 0); } }
#hud { right: 200px; }
.snap .nav-bar, .presenter .nav-bar { display: none; }
.narr-bar { position: fixed; z-index: 55; left: 60px; bottom: 12px; display: flex; gap: 8px; }
.narrate-btn {
  height: 38px; padding: 0 16px 0 12px; border: 0; border-radius: 19px;
  display: flex; gap: 8px; align-items: center; background: rgba(12, 16, 48, .55); color: #fff; font: 600 15px var(--sans);
  cursor: pointer; opacity: .7; transition: opacity .2s ease;
}
.narrate-btn:hover, .narrate-btn:focus-visible, .playing .narrate-btn { opacity: 1; }
.narrate-btn i { font-style: normal; font-size: 12px; }
.playing .narrate-btn { background: var(--navy); }
.narrated .narrate-btn, .snap .narrate-btn, .presenter .narrate-btn { display: none; }
.cc-btn {
  height: 38px; padding: 0 12px; border: 2px solid transparent;
  border-radius: 8px; background: rgba(12, 16, 48, .55); color: #fff; font: 800 14px var(--sans); letter-spacing: .06em;
  cursor: pointer; opacity: .7;
}
.cc-btn:hover { opacity: 1; }
.cc-btn.on { opacity: 1; background: var(--navy); border-color: #fff; }
.narrated .cc-btn, .snap .cc-btn, .presenter .cc-btn { display: none; }

/* topics: the landing grid, a card per section */
.topics { position: absolute; left: 64px; right: 64px; top: 128px; bottom: 56px; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.topics.n4 { grid-template-columns: repeat(2, 1fr); }
.topics.n5 { grid-template-columns: repeat(6, 1fr); } /* 3 + 2, the second row centred */
.topics.n5 .topic { grid-column: span 2; }
.topics.n5 .topic:nth-child(4) { grid-column: 2 / span 2; }
.topic {
  display: flex; flex-direction: column; min-height: 0; padding: 0 0 16px; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid #d8dce8; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(20, 30, 70, .1);
  transition: transform .2s ease, box-shadow .2s ease; font-family: var(--sans);
}
.topic:hover, .topic:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(20, 30, 70, .2); outline: none; }
.topic-img { flex: 1; min-height: 0; background: var(--panel); border-bottom: 1px solid #e3e6ef; }
.topic-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.topic b { margin: 14px 20px 2px; font: 700 28px/1.15 var(--serif); color: var(--navy); }
.topic small { margin: 0 20px; font-size: 19px; line-height: 1.3; color: var(--ink-2); }
/* not ready yet: a diagonal ribbon across the card's corner, picture greyed */
.topic { position: relative; }
.topic.soon .topic-img { filter: grayscale(.7) opacity(.6); }
a.topic { text-decoration: none; color: inherit; }
/* a part's "more in this series" grid: the link to the whole talk, level with the title */
.topics-link {
  position: absolute; right: 64px; top: 40px; padding: 12px 26px; border-radius: 999px; background: var(--navy);
  color: #fff; font: 700 22px var(--sans); text-decoration: none; box-shadow: 0 6px 20px rgba(20, 30, 70, .2);
}
.topics-link:hover { transform: translateY(-2px); }
.topic-ribbon {
  position: absolute; z-index: 1; top: 30px; right: -54px; width: 230px; padding: 7px 0; transform: rotate(35deg);
  background: linear-gradient(90deg, #d97757, #e8a14f); color: #fff; text-align: center; font: normal 800 15px var(--sans);
  letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(20, 30, 70, .3);
}
/* section slide tag, above the kicker */
.badge-tag {
  position: absolute; left: 64px; top: 270px; padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(90deg, #d97757, #e8a14f); color: #fff; font: 800 20px var(--sans);
  letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
  animation: badge-glow 2.4s ease-in-out infinite;
}
@keyframes badge-glow { 50% { box-shadow: 0 6px 30px rgba(232, 161, 79, .65); } }
.menu {
  position: fixed; left: 12px; top: 58px; z-index: 56; display: none; width: 330px; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 76px); overflow: auto; padding: 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .97); box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
}
.menu.open { display: block; }
.menu button {
  display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.menu button:hover { background: var(--panel); }
.menu .ch { padding: 9px 10px; font: 600 16px var(--sans); }
.menu .ch small { font: 400 13px var(--sans); color: var(--muted); }
.menu .sl { padding: 6px 10px 6px 26px; font: 400 14px var(--sans); color: var(--ink-2); }
.menu .ch.here { background: var(--panel); color: var(--navy); }
.menu .sl.here { color: var(--navy); font-weight: 700; }
.menu .all-talks {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; border-top: 1px solid #e3e6ef;
  border-radius: 0 0 8px 8px; color: var(--blue); text-decoration: none;
}
.menu .all-talks:hover { background: var(--panel); }
.theme-pplir .menu .ch.here, .theme-pplir .menu .sl.here { color: var(--pp-orange); }
.snap .chrome-btn, .presenter .chrome-btn, .snap .menu, .presenter .menu { display: none; }
.narrated #hud { right: auto; left: 60px; } /* clear of the speaker */

/* help options: clickable toggles */
#help button.opt {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 3px 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
#help button.opt span:first-of-type { flex: 1; }
#help .sw { min-width: 42px; padding: 1px 8px; border-radius: 999px; background: #E3E5EE; color: var(--muted); font: 700 11px/18px var(--sans); text-align: center; letter-spacing: .06em; }
#help .sw.on { background: var(--green); color: #fff; }
/* closing links: clickable, one line */
.closing { grid-template-columns: 1.5fr 1fr; }
.closing .url { font-size: 38px; white-space: nowrap; }
.closing .url a { color: inherit; text-decoration: none; }
.closing .url a:hover { text-decoration: underline; }
.theme-pplir .closing .url { font-size: 38px; }
.snap #hud { display: none; } /* captured frames: no chrome */

/* --- chat: a replayed Claude conversation (dark desktop-app look, own fonts) --- */
.chat-win {
  --c-bg: #1f1e1d; --c-bar: #2a2927; --c-text: #ebe8e3; --c-muted: #9b978f; --c-bubble: #30302e; --c-accent: #d97757;
  position: absolute; left: 64px; top: 112px; width: 1010px; height: 750px; border-radius: 16px; overflow: hidden;
  background: var(--c-bg); color: var(--c-text); font: 400 23px/1.5 -apple-system, "Helvetica Neue", system-ui, sans-serif;
  box-shadow: 0 14px 44px rgba(10, 15, 40, .35);
}
.chat-bar { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 18px; background: var(--c-bar); }
.chat-bar i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
.chat-bar i:nth-child(2) { background: #febc2e; }
.chat-bar i:nth-child(3) { background: #28c840; }
.chat-bar span { margin-left: auto; font-size: 16px; color: var(--c-muted); }
.chat-composer { display: none; position: absolute; inset: 44px 0 0; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.chat-win.composing .chat-composer { display: flex; }
.chat-win.composing .chat-body { display: none; }
.chat-greet { font: 400 44px var(--serif); color: var(--c-text); }
.chat-input { width: 80%; min-height: 120px; padding: 22px 26px; border-radius: 20px; background: var(--c-bubble); border: 1px solid #3c3b38; }
.chat-input .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--c-text); animation: chat-caret 1s steps(1) infinite; }
@keyframes chat-caret { 50% { opacity: 0; } }
.chat-body { position: absolute; inset: 44px 0 0; overflow: hidden; padding: 28px 48px 60px; }
.chat-user { margin: 0 0 26px 22%; padding: 16px 22px; border-radius: 18px; background: var(--c-bubble); }
.chat-work { margin-bottom: 14px; }
.chat-pre { margin: 0 0 10px; color: var(--c-muted); font-size: 21px; }
.chat-tool { display: inline-block; margin: 4px 0 8px; padding: 6px 14px; border: 1px solid #45443f; border-radius: 10px; color: var(--c-muted); font-size: 20px; }
.chat-tool span { font-size: 15px; }
.chat-tool ul { margin: 8px 0 2px; padding-left: 22px; }
.chat-tool code, .chat-block code { font: 18px ui-monospace, Menlo, monospace; color: var(--c-accent); }
.chat-block.off { display: none; }
.chat-block.wipe { animation: chat-wipe 1.1s linear; }
@keyframes chat-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.chat-block p { margin: 0 0 16px; }
.chat-block ul, .chat-block ol { margin: 0 0 16px; padding-left: 34px; }
.chat-block li { margin-bottom: 6px; }
.chat-block li ul { margin: 6px 0 0; }
.chat-block b { font-weight: 600; color: #fff; }
.chat-win mark { background: none; color: inherit; border-radius: 5px; transition: background .3s, color .3s; }
.chat-win.dim .chat-body, .chat-win.dim .chat-body b { color: #5f5c57; }
.chat-win.dim mark.on, .chat-win.dim mark.on b { background: rgba(217, 119, 87, .28); color: #fff; box-shadow: 0 0 0 4px rgba(217, 119, 87, .28); }
.chat-note {
  position: absolute; left: 1110px; right: 56px; top: 300px; padding: 0 0 0 24px; border-left: 6px solid #d97757;
  font: 400 30px/1.35 var(--sans); color: var(--navy); transition: opacity .3s;
}
.chat-note.off { opacity: 0; }
