/* Datajar agency master deck. Stage 1920x1080, scaled to the window by js/deck.js.
   Tokens from datajar-site/src/styles/tokens.css. Light slides by default, dark (ink) for statements. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: block;
}

:root {
  --primary: #7D00B7;
  --primary-2: #9B29D9;
  --text: #201923;
  --muted: #4F4353;
  --soft: #807285;
  --line: #DDD8E0;
  --tint: #FAF9FB;
  --tint-2: #F5F3F7;
  --tint-3: #F0EDF3;
  --lilac: #EEDDF2;
  --g1: #9B29D9; --g2: #D206E1; --g3: #FD1F60; --g4: #F2B01E;
  --grad: linear-gradient(100deg, #9B29D9, #D206E1 40%, #FD1F60 75%, #F2B01E);
  --grad-btn: linear-gradient(100deg, #8A1FC8, #B8139F 55%, #D1144F);
  --grad-text-light: linear-gradient(95deg, #7D00B7, #C10BC9 50%, #E8174F);
  --grad-text-dark: linear-gradient(95deg, #C77DFF, #FF5DA2 55%, #FFB84D);
  --ink: #12061F; --on-ink: #F5F0FA; --on-ink-muted: #CFC4E0; --ink-line: rgb(255 255 255 / .14);
  --ink-card: rgb(255 255 255 / .06);
  --ok: #1A7F4B; --ok-bg: #E3F5EA;
  --warn: #8C5E00; --warn-bg: #FFF1D6;
  --bad: #BA1A1A; --bad-bg: #FFDAD6;
  --shadow: 0 1px 2px rgb(40 10 70 / .06), 0 18px 44px -18px rgb(40 10 70 / .28);
  --shadow-lg: 0 2px 4px rgb(40 10 70 / .06), 0 40px 80px -30px rgb(40 10 70 / .35);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step: 110ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #0B0412; overflow: hidden; font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }

.viewport { position: fixed; inset: 0; display: grid; place-items: center; }
/* Centre by position, not grid: a grid centres nothing once the 1920x1080 box is wider than the window, so scaled slides were cut off on laptops. */
.deck { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; margin: -540px 0 0 -960px; flex: none; transform-origin: center center; }

/* ---------- Slide shell ---------- */
.slide {
  position: absolute; inset: 0; overflow: hidden;
  padding: 104px 128px 132px;
  background: #fff; color: var(--text);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
  font-size: 26px; line-height: 1.45;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .45s ease; z-index: 2; }
.slide.warm { visibility: visible; opacity: .002; transition: none; z-index: 0; pointer-events: none; }
.slide.tint { background: var(--tint); }
.slide.dark { background: var(--ink); color: var(--on-ink); }
.slide.dark::before, .slide.grad::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 45% at 85% 15%, rgb(155 41 217 / .35), transparent 70%),
    radial-gradient(35% 40% at 10% 90%, rgb(253 31 96 / .18), transparent 70%),
    radial-gradient(30% 30% at 55% 60%, rgb(210 6 225 / .10), transparent 70%);
  animation: glow 18s ease-in-out infinite alternate;
}
.slide.grad { background: var(--ink); color: var(--on-ink); }
.slide.grad::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--grad); z-index: 1;
}
.slide > * { position: relative; z-index: 1; }
@keyframes glow { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }

.slide.center { justify-content: center; align-items: center; text-align: center; }
.slide.middle { justify-content: center; }

/* Footer (added by js) */
.foot {
  position: absolute !important; left: 128px; right: 128px; bottom: 44px; z-index: 3;
  display: flex; align-items: center; gap: 28px; font-size: 17px; color: var(--soft); letter-spacing: .02em;
}
.foot img { height: 30px; width: auto; }
.foot .sec { flex: 1; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; }
.foot .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.foot .num em { font-style: normal; color: var(--soft); font-weight: 400; }
.dark .foot, .grad .foot { color: rgb(245 240 250 / .55); }
.dark .foot .num, .grad .foot .num { color: var(--on-ink); }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 18px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 26px;
}
.kicker::before { content: ""; width: 36px; height: 3px; border-radius: 3px; background: var(--grad); }
.dark .kicker, .grad .kicker { color: #E6B4FF; }
.center .kicker { justify-content: center; }

h1, h2, h3, h4, p { margin: 0; }
.title { font-size: 84px; line-height: 1.04; font-weight: 680; letter-spacing: -.028em; max-width: 1500px; }
.title.xl { font-size: 116px; letter-spacing: -.035em; }
.title.md { font-size: 66px; }
.title.sm { font-size: 54px; }
.lead { font-size: 32px; line-height: 1.38; color: var(--muted); max-width: 1300px; margin-top: 30px; font-weight: 400; }
.dark .lead, .grad .lead { color: var(--on-ink-muted); }
.center .lead, .center .title { margin-left: auto; margin-right: auto; }
.gt { background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .gt, .grad .gt { background-image: var(--grad-text-dark); }
.gt.shimmer { background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
h3 { font-size: 34px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h4 { font-size: 26px; line-height: 1.25; font-weight: 650; }
.muted { color: var(--muted); }
.dark .muted, .grad .muted { color: var(--on-ink-muted); }
.small { font-size: 20px; line-height: 1.45; }
.tiny { font-size: 16px; line-height: 1.4; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; }
code, .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82em; background: var(--tint-3); padding: .08em .4em; border-radius: 6px; color: var(--primary); }
.dark code { background: rgb(255 255 255 / .08); color: #E6B4FF; }

.head { margin-bottom: 56px; }
.body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.spacer { flex: 1; }

/* Source line */
.src { position: absolute !important; left: 128px; right: 128px; bottom: 92px; font-size: 15px; color: var(--soft); z-index: 3; }
.dark .src, .grad .src { color: rgb(245 240 250 / .45); }

/* ---------- Layout helpers ---------- */
.row { display: flex; gap: 40px; align-items: stretch; }
.row.center-y { align-items: center; }
.col { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1; min-width: 0; }
.g2, .g3, .g4, .g5, .g6 { display: grid; gap: 32px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.gap-s { gap: 18px; } .gap-l { gap: 48px; }
.mt-s { margin-top: 20px; } .mt { margin-top: 40px; } .mt-l { margin-top: 72px; }
.w-50 { width: 50%; } .w-40 { width: 40%; } .w-60 { width: 60%; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px 36px 34px;
  box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card.tinted { background: var(--tint); box-shadow: none; }
.card.hl { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.dark .card, .grad .card { background: var(--ink-card); border-color: var(--ink-line); box-shadow: none; color: var(--on-ink); }
.dark .card.hl { background: linear-gradient(#1D0D2E, #1D0D2E) padding-box, var(--grad) border-box; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 22px; line-height: 1.45; }
.dark .card p { color: var(--on-ink-muted); }

.icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--lilac); color: var(--primary);
}
.icon svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.grad-bg { background: var(--grad-btn); color: #fff; }
.dark .icon { background: rgb(230 180 255 / .12); color: #E6B4FF; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px;
  background: var(--tint-3); color: var(--muted); font-size: 19px; font-weight: 550; white-space: nowrap;
}
.pill img { height: 24px; width: 24px; object-fit: contain; }
.dark .pill { background: rgb(255 255 255 / .08); color: var(--on-ink); }
.pill.primary { background: var(--grad-btn); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 20px 38px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-weight: 650; font-size: 24px; box-shadow: 0 16px 36px -14px rgb(184 19 159 / .7); }
.btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: 15px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.live { background: var(--ok-bg); color: var(--ok); }
.badge.named { background: #F3E3FF; color: #7D00B7; }
.badge.staging { background: var(--warn-bg); color: var(--warn); }
.badge.waiting { background: var(--tint-3); color: var(--muted); }
.badge.soon { background: #E8EEFF; color: #2D4BB8; }
.badge.ent { background: #1D0D2E; color: #F2C9FF; }
.badge.ent::before { background: var(--grad); }

/* Logos */
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: var(--shadow);
  font-size: 18px; font-weight: 600; color: var(--text);
}
.logo-tile img { height: 52px; width: 52px; object-fit: contain; }
.logo-chip { width: 84px; height: 84px; border-radius: 24px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.logo-chip img { width: 48px; height: 48px; object-fit: contain; }
.logo-chip.sm { width: 60px; height: 60px; border-radius: 18px; }
.logo-chip.sm img { width: 34px; height: 34px; }
.logo-chip.lg { width: 120px; height: 120px; border-radius: 32px; }
.logo-chip.lg img { width: 68px; height: 68px; }

/* Stats */
.stat .num { font-size: 120px; line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .num.md { font-size: 88px; }
.stat .num.sm { font-size: 64px; }
.stat .lbl { margin-top: 16px; font-size: 24px; color: var(--muted); line-height: 1.4; }
.dark .stat .lbl { color: var(--on-ink-muted); }
.stat .who { margin-top: 12px; font-size: 16px; color: var(--soft); }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 26px; }
.bar-row { display: grid; grid-template-columns: 520px 1fr 110px; align-items: center; gap: 28px; font-size: 25px; }
.bar { height: 44px; background: var(--tint-3); border-radius: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: 12px; background: var(--grad-btn);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.4s var(--ease); transition-delay: calc(var(--d, 0) * var(--step) + 250ms); }
.in .bar i { transform: none; }
.bar-row .val { font-weight: 700; font-size: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.bar.soft i { background: #C9B7D6; }
.dark .bar { background: rgb(255 255 255 / .08); }

/* Compare today vs Datajar */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.vs > div { padding: 44px 48px; }
.vs .before { background: var(--tint-2); }
.vs .after { background: #fff; position: relative; }
.vs .after::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad); }
.vs h4 { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 22px; }
.vs .after h4 { color: var(--primary); }
.vs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 24px; }
.vs li { display: flex; gap: 14px; align-items: flex-start; }
.vs .before li::before { content: "–"; color: var(--soft); font-weight: 700; }
.vs .after li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; background: var(--grad-btn) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.2-7.2 1.8 1.8-9 9Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.2-7.2 1.8 1.8-9 9Z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Check / cross lists */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 25px; }
.ticks li { display: flex; gap: 16px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; background: var(--grad-btn); margin-top: 2px; }
.ticks.x li::before { content: "✕"; background: #CFC4D6; }

/* ---------- Chat mock ---------- */
.chat {
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; color: var(--text);
}
.chat-head { display: flex; align-items: center; gap: 14px; padding: 20px 28px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; background: var(--tint); }
.chat-head img { width: 28px; height: 28px; }
.chat-head .conn { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ok); display: flex; align-items: center; gap: 8px; }
.chat-head .conn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(26 127 75 / .5); animation: ping 2s infinite; }
.chat-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; font-size: 21px; line-height: 1.45; }
.msg { max-width: 86%; padding: 16px 22px; border-radius: 22px; }
.msg.user { align-self: flex-end; background: var(--tint-3); border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: #fff; padding-left: 0; }
.msg.ai strong { font-weight: 650; }
.tool {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px; border-radius: 12px;
  background: #F6EEFB; color: #5E1A86; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 16px; font-weight: 500;
  border: 1px solid #E8D3F5;
}
.tool .dot { width: 18px; height: 18px; position: relative; flex: none; }
.tool .dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #D9B8EE; border-top-color: #7D00B7; animation: spin .8s linear infinite; }
.in .tool .dot::before { animation: spin .8s linear infinite, vanish 0s linear forwards; animation-delay: 0s, calc(var(--d, 0) * var(--step) + 1300ms); }
.tool .dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font); font-weight: 800; color: var(--ok); font-size: 15px; opacity: 0; }
.in .tool .dot::after { animation: appear .2s ease forwards; animation-delay: calc(var(--d, 0) * var(--step) + 1300ms); }
.static .tool .dot::before { display: none; }
.static .tool .dot::after { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes vanish { to { opacity: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(26 127 75 / .45); } 80%, 100% { box-shadow: 0 0 0 10px rgb(26 127 75 / 0); } }

.mini-table { width: 100%; border-collapse: collapse; font-size: 18px; margin-top: 10px; }
.mini-table th { text-align: left; color: var(--soft); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 8px 10px; border-bottom: 1px solid var(--tint-3); font-variant-numeric: tabular-nums; }
.mini-table td.r, .mini-table th.r { text-align: right; }
.up { color: var(--ok); font-weight: 650; } .down { color: var(--bad); font-weight: 650; }

/* App window mock */
.window { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.window .bar-top { height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 18px; background: var(--tint-2); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.window .bar-top i { width: 12px; height: 12px; border-radius: 50%; background: #DCD3E2; display: block; }
.window .bar-top span { margin-left: 14px; }

/* ---------- Matrix table ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 21px; }
.matrix th { text-align: center; font-size: 17px; font-weight: 650; color: var(--muted); padding: 14px 10px; border-bottom: 2px solid var(--line); vertical-align: bottom; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix td { padding: 14px 10px; border-bottom: 1px solid var(--tint-3); text-align: center; }
.matrix tr.us td, .matrix th.us { background: #FBF5FE; }
.matrix th.us { color: var(--primary); }
.matrix .y::before { content: "●"; color: var(--primary-2); font-size: 22px; }
.matrix .p::before { content: "◐"; color: #B79AC9; font-size: 22px; }
.matrix .n::before { content: "–"; color: #C5BBCB; font-size: 22px; font-weight: 700; }
.matrix tbody tr { transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms + 200ms); }
.legend { display: flex; gap: 30px; font-size: 17px; color: var(--muted); }
.legend span::before { margin-right: 8px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.tl-line { position: absolute; left: 0; right: 0; top: 34px; height: 4px; border-radius: 4px; background: var(--tint-3); overflow: hidden; }
.tl-line i { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left center; transition: transform 2.2s var(--ease) .3s; }
.in .tl-line i { transform: none; }
.dark .tl-line { background: rgb(255 255 255 / .1); }
.tl-item { position: relative; padding-top: 74px; }
.tl-item::before { content: ""; position: absolute; top: 22px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--primary-2); box-shadow: 0 0 0 8px rgb(155 41 217 / .15); }
.dark .tl-item::before { background: var(--ink); border-color: #E6B4FF; box-shadow: 0 0 0 8px rgb(230 180 255 / .12); }
.tl-item .when { font-size: 18px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.dark .tl-item .when { color: #E6B4FF; }
.tl-item h4 { margin: 10px 0 8px; font-size: 30px; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; }
.step-n { width: 64px; height: 64px; border-radius: 20px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 28px; margin-bottom: 26px; box-shadow: 0 14px 30px -12px rgb(184 19 159 / .6); }

/* Typewriter */
.type { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 3px solid var(--primary); width: 0; vertical-align: bottom; }
.in .type { animation: typing 1.6s steps(var(--chars, 24)) forwards, caret .8s step-end infinite; animation-delay: calc(var(--d, 0) * var(--step) + 300ms), 0s; }
.static .type { width: auto; border-right: 0; }
@keyframes typing { to { width: calc(var(--chars, 24) * 1ch); } }
@keyframes caret { 50% { border-color: transparent; } }

/* Toggle */
.toggle { width: 64px; height: 36px; border-radius: 999px; background: #D7CEDD; position: relative; flex: none; transition: background .3s ease; transition-delay: calc(var(--d, 0) * var(--step) + 500ms); }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .2); transition: transform .4s var(--spring); transition-delay: calc(var(--d, 0) * var(--step) + 500ms); }
.in .toggle { background: var(--primary-2); }
.in .toggle::after { transform: translateX(28px); }

/* Ambient motion */
.float { animation: float 6s ease-in-out infinite; }
.float.b { animation-duration: 7.5s; animation-delay: -2s; }
.float.c { animation-duration: 8.5s; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.pulse-ring { position: relative; }
.pulse-ring::before, .pulse-ring::after { content: ""; position: absolute; inset: -14px; border-radius: inherit; border: 2px solid rgb(155 41 217 / .45); animation: ring 2.8s ease-out infinite; }
.pulse-ring::after { animation-delay: 1.4s; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.spin-slow { animation: spin 60s linear infinite; }
.spin-slow-r { animation: spin 60s linear infinite reverse; }

/* SVG helpers */
svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); transition-delay: calc(var(--d, 0) * var(--step) + 200ms); }
.in svg .draw { stroke-dashoffset: 0; }
.static svg .draw { transition: none; stroke-dashoffset: 0; }

/* ---------- Placeholders for Ali ---------- */
.todo {
  position: absolute !important; right: 128px; top: 40px; z-index: 6; max-width: 620px;
  background: #FFE9A8; color: #5A3B00; border: 2px dashed #C79100; border-radius: 14px; padding: 12px 18px;
  font-size: 17px; line-height: 1.35; font-weight: 600; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .35); transform: rotate(-1deg);
}
.todo::before { content: "WAITING FOR ALI · "; font-weight: 800; letter-spacing: .06em; }
.todo.check { background: #DDF0FF; color: #0B3B66; border-color: #2E7CC4; }
.todo.check::before { content: "TO CHECK · "; }
.ph { border: 3px dashed #C9B7D6; border-radius: 24px; display: grid; place-items: center; color: var(--soft); font-size: 22px; text-align: center; padding: 30px; background: repeating-linear-gradient(-45deg, #FCFAFD, #FCFAFD 16px, #F7F2FA 16px, #F7F2FA 32px); }

.sample-badge { display: inline-flex; align-items: center; gap: 8px; background: #FFF1D6; color: #8C5E00; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Notes (hidden on slides) */
.notes { display: none !important; }

/* ---------- Entrance animations ---------- */
[data-a] {
  opacity: 0;
  transition-property: opacity, transform, clip-path, filter;
  transition-duration: .7s, .9s, 1s, .8s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--d, 0) * var(--step) + 150ms);
}
[data-a="up"] { transform: translateY(44px); }
[data-a="down"] { transform: translateY(-44px); }
[data-a="left"] { transform: translateX(-70px); }
[data-a="right"] { transform: translateX(70px); }
[data-a="zoom"] { transform: scale(.86); }
[data-a="pop"] { transform: scale(.3); transition-timing-function: ease, var(--spring), ease, ease; transition-duration: .4s, .7s, .4s, .4s; }
[data-a="wipe"] { clip-path: inset(0 100% 0 0); opacity: 1; }
[data-a="wipe-up"] { clip-path: inset(100% 0 0 0); opacity: 1; }
[data-a="blur"] { filter: blur(14px); transform: scale(1.04); }
[data-a="fade"] { }
.in [data-a] { opacity: 1; transform: none; filter: none; }
.in [data-a="wipe"], .in [data-a="wipe-up"] { clip-path: inset(0 0 0 0); }

.reset, .reset * { transition: none !important; animation: none !important; }
/* Hidden slides run no animations: only the shown slide and the one fading out use the GPU. */
.slide:not(.active):not(.leaving)::before,
.slide:not(.active):not(.leaving) *,
.slide:not(.active):not(.leaving) *::before,
.slide:not(.active):not(.leaving) *::after { animation: none !important; }
[data-count] { font-variant-numeric: tabular-nums; }
.static [data-a], .static .bar i, .static .tl-line i, .static .toggle, .static .toggle::after { transition: none !important; }
.static * { animation-play-state: paused; }
.static .in .type { animation: none; }

/* Word highlight (sentence slides) */
.hl-word { background: linear-gradient(transparent 62%, rgb(210 6 225 / .22) 62%) no-repeat; background-size: 0% 100%; transition: background-size .8s var(--ease); transition-delay: calc(var(--d, 0) * var(--step) + 300ms); }
.in .hl-word { background-size: 100% 100%; }
.dark .hl-word { background-image: linear-gradient(transparent 62%, rgb(255 93 162 / .35) 62%); }

/* ---------- Chrome around the deck ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; background: var(--grad); z-index: 20; transition: width .4s var(--ease); }
.notes-panel {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(1100px, 92vw); max-height: 34vh; overflow: auto;
  background: rgb(18 6 31 / .94); color: #F5F0FA; border: 1px solid rgb(255 255 255 / .15); border-radius: 14px; padding: 16px 22px;
  font: 15px/1.5 var(--font); z-index: 30; display: none; backdrop-filter: blur(10px);
}
.notes-panel.show { display: block; }
.notes-panel b { color: #E6B4FF; }
.jump { position: fixed; right: 18px; bottom: 18px; z-index: 31; background: #12061F; color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 18px var(--font); display: none; }
.jump.show { display: block; }

/* ---------- Print: one slide per page, final state ---------- */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { overflow: visible; height: auto; background: #fff; }
  .viewport { position: static; display: block; }
  .deck { transform: none !important; width: 1920px; height: auto; position: static; margin: 0; }
  .slide { position: relative; opacity: 1 !important; visibility: visible !important; width: 1920px; height: 1080px; page-break-after: always; break-after: page; transition: none !important; }
  .slide::before { animation: none !important; }
  [data-a] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; transition: none !important; }
  .bar i, .tl-line i { transform: none !important; transition: none !important; }
  .tl-line i { width: 100% !important; }
  .progress, .notes-panel, .jump { display: none !important; }
  * { animation-play-state: paused !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
body.printing .slide { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
