/* ============================================================================
 * /pitch — three.ws investor deck
 * A focused, full-viewport slide deck. Layers a small brand-accent theme on top
 * of the canonical design tokens (public/tokens.css) — it does NOT fork the
 * palette. Keyboard-navigable, deep-linkable (#slide), print-to-PDF ready.
 * ========================================================================== */

:root {
	/* Brand-accent layer for the deck only (allowed per the token-layering rule:
	   a surface may express a distinct accent on top of the canonical tokens). */
	--deck-a1: #7c8bff; /* indigo  */
	--deck-a2: #38e0c8; /* teal    */
	--deck-a3: #ff7ac6; /* magenta */
	--deck-grad: linear-gradient(115deg, var(--deck-a1), var(--deck-a2));
	--deck-grad-3: linear-gradient(115deg, var(--deck-a1) 0%, var(--deck-a3) 52%, var(--deck-a2) 100%);
	--deck-glow: radial-gradient(60% 60% at 70% 20%, rgba(124, 139, 255, 0.16), transparent 70%);
	--deck-pad: clamp(1.25rem, 4.5vw, 4.5rem);
	--deck-maxw: 1120px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	height: 100%;
	background: var(--bg-0);
	color: var(--ink);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow: hidden; /* the deck owns the viewport; slides scroll internally if needed */
}

a { color: inherit; }

/* ── Deck shell ──────────────────────────────────────────────────────────── */
.deck {
	position: fixed;
	inset: 0;
	overflow: hidden;
}

/* Ambient backdrop — subtle, animated, GPU-friendly. */
.deck-bg {
	position: absolute;
	inset: -20%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(38% 44% at 14% 12%, rgba(124, 139, 255, 0.18), transparent 70%),
		radial-gradient(34% 40% at 86% 86%, rgba(56, 224, 200, 0.14), transparent 70%),
		radial-gradient(30% 36% at 80% 8%, rgba(255, 122, 198, 0.10), transparent 70%);
	filter: saturate(1.05);
	animation: deck-drift 26s ease-in-out infinite alternate;
}
.deck-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 78%);
	        mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 78%);
}
[data-theme='light'] .deck-grid {
	background-image:
		linear-gradient(rgba(15, 18, 28, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 18, 28, 0.05) 1px, transparent 1px);
}
@keyframes deck-drift {
	from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
	to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

/* ── Top chrome ──────────────────────────────────────────────────────────── */
.deck-top {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: clamp(0.85rem, 2vw, 1.4rem) var(--deck-pad);
}
.deck-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	font-size: var(--text-ui);
	color: var(--ink);
	opacity: 0.92;
	transition: opacity 0.18s ease;
}
.deck-wordmark:hover { opacity: 1; }
.deck-mark {
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: var(--deck-grad);
	display: inline-grid;
	place-items: center;
	color: #06070c;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 4px 14px rgba(124, 139, 255, 0.35);
}
.deck-top-tag {
	font-size: var(--text-2xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
}

.deck-tools {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.deck-tool {
	appearance: none;
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	color: var(--ink);
	font: inherit;
	font-size: var(--text-sm);
	line-height: 1;
	padding: 0.5rem 0.7rem;
	border-radius: var(--radius-pill);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
	white-space: nowrap;
}
.deck-tool:hover { background: var(--surface-3); border-color: var(--stroke-strong); }
.deck-tool:active { transform: translateY(1px); }
.deck-tool:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 2px; }
.deck-tool svg { width: 14px; height: 14px; }
.deck-tool-label { display: inline; }
@media (max-width: 640px) {
	.deck-tool-label { display: none; }
	.deck-tool { padding: 0.5rem; }
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.deck-progress {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--deck-grad);
	box-shadow: 0 0 12px rgba(124, 139, 255, 0.5);
	transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Stage / slides ──────────────────────────────────────────────────────── */
.deck-stage {
	position: absolute;
	inset: 0;
	z-index: 2;
}
.slide {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: clamp(4.5rem, 9vh, 6.5rem) var(--deck-pad) clamp(4rem, 8vh, 5.5rem);
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px) scale(0.992);
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
/* Direction-aware exit: when going back, previous slides exit downward. */
.slide.is-prev { transform: translateY(-18px) scale(0.992); }

.slide-inner {
	width: 100%;
	max-width: var(--deck-maxw);
	margin: auto;
}

/* Staggered entrance for direct children of an active slide's content. */
.slide.is-active [data-rise] {
	animation: deck-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.slide.is-active [data-rise='1'] { animation-delay: 0.05s; }
.slide.is-active [data-rise='2'] { animation-delay: 0.13s; }
.slide.is-active [data-rise='3'] { animation-delay: 0.21s; }
.slide.is-active [data-rise='4'] { animation-delay: 0.29s; }
.slide.is-active [data-rise='5'] { animation-delay: 0.37s; }
@keyframes deck-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

/* ── Typography & shared bits ────────────────────────────────────────────── */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--text-2xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin: 0 0 1.1rem;
}
.eyebrow::before {
	content: '';
	width: 18px;
	height: 1px;
	background: var(--deck-a2);
}
.eyebrow.is-num {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-pill);
	padding: 0.32rem 0.7rem;
}
.eyebrow.is-num::before { display: none; }
.eyebrow .ey-n { color: var(--deck-a2); font-variant-numeric: tabular-nums; }

.slide h1 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.0;
	font-size: clamp(2.6rem, 8vw, 5.6rem);
	margin: 0 0 1.2rem;
}
.slide h2 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.04;
	font-size: clamp(1.9rem, 5vw, 3.4rem);
	margin: 0 0 0.7rem;
}
.slide h3 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	font-size: var(--text-lg);
	margin: 0 0 0.35rem;
}
.lede {
	font-size: clamp(1.05rem, 2vw, 1.4rem);
	line-height: 1.5;
	color: var(--ink);
	max-width: 60ch;
	margin: 0 0 1.4rem;
}
.lede.dim { color: var(--ink-dim); }
.muted { color: var(--ink-dim); }
.grad-text {
	background: var(--deck-grad-3);
	-webkit-background-clip: text;
	        background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ── Title slide ─────────────────────────────────────────────────────────── */
.title-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.title-stage {
	position: relative;
	aspect-ratio: 1 / 1.08;
	border-radius: var(--radius-lg);
	border: 1px solid var(--stroke);
	background:
		var(--deck-glow),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
	overflow: hidden;
	box-shadow: var(--shadow-3);
}
.title-stage model-viewer,
.demo-stage model-viewer {
	width: 100%;
	height: 100%;
	background: transparent;
	--poster-color: transparent;
}
.stage-label {
	position: absolute;
	left: 12px;
	bottom: 12px;
	font-size: var(--text-2xs);
	letter-spacing: 0.04em;
	color: var(--ink-dim);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-pill);
	padding: 0.3rem 0.65rem;
	backdrop-filter: blur(6px);
}
[data-theme='light'] .stage-label { background: rgba(255, 255, 255, 0.6); }
.live-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--deck-a2);
	margin-right: 0.4rem;
	box-shadow: 0 0 0 0 rgba(56, 224, 200, 0.6);
	animation: live-pulse 2s infinite;
	vertical-align: middle;
}
@keyframes live-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(56, 224, 200, 0.5); }
	70%  { box-shadow: 0 0 0 8px rgba(56, 224, 200, 0); }
	100% { box-shadow: 0 0 0 0 rgba(56, 224, 200, 0); }
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.6rem;
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font: inherit;
	font-size: var(--text-ui);
	font-weight: 500;
	text-decoration: none;
	padding: 0.7rem 1.15rem;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
	background: var(--deck-grad);
	color: #06070c;
	font-weight: 600;
	box-shadow: 0 8px 26px rgba(124, 139, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(124, 139, 255, 0.42); }
.btn-ghost {
	background: var(--surface-1);
	border-color: var(--stroke-strong);
	color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-3); }

.byline {
	margin-top: 1.8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.4rem;
	font-size: var(--text-sm);
	color: var(--ink-dim);
}
.byline b { color: var(--ink); font-weight: 600; }

/* ── Generic content layouts ─────────────────────────────────────────────── */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3.2rem);
	align-items: center;
}
.split.lead-narrow { grid-template-columns: 0.9fr 1.1fr; }

.stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1rem, 3vw, 2.6rem);
	margin-top: 1.6rem;
}
.stat .n {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	line-height: 1;
	letter-spacing: -0.02em;
}
.stat .l { display: block; margin-top: 0.4rem; color: var(--ink-dim); font-size: var(--text-sm); max-width: 22ch; }

/* Wall / problem list */
.wall {
	list-style: none;
	margin: 1.2rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
.wall li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-md);
	font-size: var(--text-ui);
}
.wall li .x {
	color: var(--deck-a3);
	font-weight: 700;
	flex: none;
	line-height: 1.5;
}

/* Numbered "why now" curves */
.curves { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.curve {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.05rem 1.2rem;
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	background: var(--surface-1);
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.curve:hover { border-color: var(--stroke-strong); transform: translateX(3px); background: var(--surface-2); }
.curve .k {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 600;
	line-height: 1;
	background: var(--deck-grad);
	-webkit-background-clip: text;
	        background-clip: text;
	-webkit-text-fill-color: transparent;
	min-width: 1.4ch;
}
.curve p { margin: 0.2rem 0 0; color: var(--ink-dim); font-size: var(--text-md); }

/* Pipeline / step cards */
.pipeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.9rem;
	margin-top: 0.6rem;
}
.step {
	position: relative;
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-lg);
	padding: 1.25rem 1.15rem;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	min-height: 100%;
}
.step:hover { border-color: var(--stroke-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.step .ico {
	width: 38px; height: 38px;
	border-radius: 11px;
	display: grid; place-items: center;
	background: var(--accent-soft);
	border: 1px solid var(--stroke);
	font-size: 19px;
	margin-bottom: 0.85rem;
}
.step .kt { font-size: var(--text-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--deck-a2); }
.step p { margin: 0.3rem 0 0; color: var(--ink-dim); font-size: var(--text-md); line-height: 1.45; }
.step .arrow {
	position: absolute;
	right: -0.7rem; top: 50%;
	transform: translateY(-50%);
	color: var(--ink-faint);
	font-size: 16px;
	z-index: 1;
}
.step:last-child .arrow { display: none; }

/* Feature / product grid */
.grid-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
	margin-top: 0.4rem;
}
.card {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-lg);
	padding: 1.1rem 1.15rem;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--stroke-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card .ico {
	font-size: 20px;
	margin-bottom: 0.6rem;
	display: inline-grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 10px;
	background: var(--accent-soft);
	border: 1px solid var(--stroke);
}
.card h3 { margin: 0 0 0.25rem; font-size: var(--text-base); }
.card p { margin: 0; color: var(--ink-dim); font-size: var(--text-md); line-height: 1.45; }
.card .tag {
	display: inline-block;
	margin-top: 0.6rem;
	font-size: var(--text-2xs);
	letter-spacing: 0.04em;
	color: var(--deck-a2);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-pill);
	padding: 0.15rem 0.55rem;
}

/* Audience cards (who it's for) */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: 0.5rem; }
.who {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-lg);
	padding: 1.15rem 1.1rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.who:hover { border-color: var(--stroke-strong); transform: translateY(-3px); }
.who .for { font-size: var(--text-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--deck-a2); }
.who h3 { margin: 0.4rem 0 0.4rem; font-size: var(--text-base); }
.who p { margin: 0; color: var(--ink-dim); font-size: var(--text-sm); line-height: 1.45; }

/* Market pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 0.5rem; }
.pillar {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-lg);
	padding: 1.4rem 1.2rem;
	position: relative;
	overflow: hidden;
}
.pillar::before {
	content: '';
	position: absolute; inset: 0 0 auto 0; height: 3px;
	background: var(--deck-grad);
	opacity: 0.85;
}
.pillar .big {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	letter-spacing: -0.02em;
	line-height: 1;
}
.pillar h3 { margin: 0.5rem 0 0.3rem; font-size: var(--text-base); }
.pillar p { margin: 0; color: var(--ink-dim); font-size: var(--text-sm); line-height: 1.45; }
.converge {
	margin-top: 1.2rem;
	padding: 0.95rem 1.15rem;
	border: 1px dashed var(--stroke-strong);
	border-radius: var(--radius-md);
	color: var(--ink);
	font-size: var(--text-ui);
}

/* Model / funnel rows */
.flow-rows { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.flow-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 0.95rem 1.15rem;
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	background: var(--surface-1);
}
.flow-row .step-n {
	width: 30px; height: 30px;
	border-radius: 9px;
	display: grid; place-items: center;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--text-sm);
	background: var(--accent-soft);
	border: 1px solid var(--stroke);
	color: var(--ink);
}
.flow-row .body strong { font-weight: 600; }
.flow-row .body span { display: block; color: var(--ink-dim); font-size: var(--text-md); margin-top: 0.15rem; }
.flow-row .rev {
	font-size: var(--text-2xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--deck-a2);
	white-space: nowrap;
}

/* Checklist (traction) */
.checks { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.checks li {
	display: flex; gap: 0.7rem; align-items: flex-start;
	font-size: var(--text-ui);
	padding: 0.6rem 0.2rem;
	border-bottom: 1px solid var(--stroke);
}
.checks li:last-child { border-bottom: 0; }
.checks .ck {
	flex: none;
	width: 20px; height: 20px;
	border-radius: 6px;
	display: grid; place-items: center;
	background: var(--deck-grad);
	color: #06070c;
	font-size: 12px;
	font-weight: 700;
	margin-top: 1px;
}
.checks li span.sub { color: var(--ink-dim); }

/* Roadmap columns */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 0.5rem; }
.road-col {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-lg);
	padding: 1.2rem 1.15rem;
}
.road-col .when {
	font-size: var(--text-2xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--deck-a2);
	margin-bottom: 0.7rem;
	display: flex; align-items: center; gap: 0.5rem;
}
.road-col .when::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--deck-a1); }
.road-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.road-col li { color: var(--ink-dim); font-size: var(--text-md); line-height: 1.4; padding-left: 1rem; position: relative; }
.road-col li::before { content: '—'; position: absolute; left: 0; color: var(--ink-faint); }

/* Closing slide */
.closing { text-align: center; }
.closing h1 { font-size: clamp(2.8rem, 9vw, 6rem); margin-bottom: 0.6rem; }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing .hero-actions { justify-content: center; }
.closing-meta {
	margin-top: 2rem;
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 0.5rem 1.6rem;
	color: var(--ink-dim);
	font-size: var(--text-sm);
}
.closing-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--stroke-strong); padding-bottom: 1px; }
.closing-meta a:hover { color: var(--deck-a2); }

/* ── Bottom controls / nav ───────────────────────────────────────────────── */
.deck-controls {
	position: absolute;
	z-index: 6;
	bottom: clamp(0.9rem, 2.4vh, 1.6rem);
	left: 0; right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 0 var(--deck-pad);
	pointer-events: none;
}
.deck-controls > * { pointer-events: auto; }
.nav-btn {
	appearance: none;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--stroke-strong);
	background: var(--surface-1);
	color: var(--ink);
	display: grid; place-items: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.08s ease, border-color 0.15s ease, opacity 0.15s ease;
	backdrop-filter: blur(8px);
}
.nav-btn:hover { background: var(--surface-3); border-color: var(--deck-a1); }
.nav-btn:active { transform: scale(0.94); }
.nav-btn:disabled { opacity: 0.32; cursor: default; }
.nav-btn:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 2px; }
.nav-btn svg { width: 17px; height: 17px; }

.dots { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; max-width: 60vw; justify-content: center; }
.dot {
	width: 8px; height: 8px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--stroke-strong);
	cursor: pointer;
	transition: transform 0.18s ease, background 0.18s ease, width 0.24s ease;
}
.dot:hover { background: var(--ink-dim); transform: scale(1.3); }
.dot.is-active { background: var(--deck-grad); width: 22px; border-radius: var(--radius-pill); }
.dot:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 3px; }

.deck-counter {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	color: var(--ink-dim);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.deck-counter b { color: var(--ink); font-weight: 600; }

/* Keyboard hint */
.kbd-hint {
	position: absolute;
	z-index: 5;
	bottom: clamp(0.9rem, 2.4vh, 1.6rem);
	right: var(--deck-pad);
	font-size: var(--text-2xs);
	color: var(--ink-faint);
	display: flex; align-items: center; gap: 0.4rem;
}
.kbd {
	font-family: var(--font-mono);
	font-size: 10px;
	border: 1px solid var(--stroke-strong);
	border-bottom-width: 2px;
	border-radius: 5px;
	padding: 0.1rem 0.35rem;
	color: var(--ink-dim);
	background: var(--surface-1);
}
@media (max-width: 900px) { .kbd-hint { display: none; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
	.title-grid { grid-template-columns: 1fr; }
	.title-stage { order: -1; aspect-ratio: 4 / 3; max-height: 40vh; }
	.split, .split.lead-narrow { grid-template-columns: 1fr; }
	.pipeline { grid-template-columns: repeat(2, 1fr); }
	.step .arrow { display: none; }
	.grid-cards { grid-template-columns: repeat(2, 1fr); }
	.who-grid { grid-template-columns: repeat(2, 1fr); }
	.pillars { grid-template-columns: 1fr; }
	.road { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.grid-cards, .who-grid, .pipeline { grid-template-columns: 1fr; }
	.flow-row { grid-template-columns: auto 1fr; }
	.flow-row .rev { grid-column: 2; }
}

/* Shorter viewports: tighten the deck so content fits without scroll. */
@media (max-height: 720px) {
	.slide { padding-top: clamp(3.6rem, 8vh, 5rem); padding-bottom: clamp(3.4rem, 7vh, 4.6rem); }
	.slide h1 { font-size: clamp(2.2rem, 6.5vw, 4.2rem); }
	.slide h2 { font-size: clamp(1.6rem, 4.2vw, 2.7rem); }
}

/* ── Motion / a11y ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.deck-bg { animation: none; }
	.slide, .slide.is-active { transition: opacity 0.2s ease; transform: none; }
	.slide.is-active [data-rise] { animation: none; }
	.live-dot { animation: none; }
}

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Print → real PDF export ─────────────────────────────────────────────
   Each slide becomes one landscape page; chrome is stripped. Triggered by the
   "Export PDF" button (window.print) — the browser's "Save as PDF" yields a
   clean deck file. */
@media print {
	@page { size: 1280px 720px; margin: 0; }
	html, body { overflow: visible; height: auto; background: #0a0a0a; }
	.deck-top, .deck-controls, .kbd-hint, .deck-progress, .deck-bg, .deck-grid { display: none !important; }
	.deck, .deck-stage { position: static; }
	.slide {
		position: relative !important;
		inset: auto !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		page-break-after: always;
		break-after: page;
		width: 1280px;
		height: 720px;
		overflow: hidden;
		border-bottom: 1px solid #1c1c1c;
	}
	.slide.is-active [data-rise] { animation: none !important; }
}
