:root {
	--bg: #0f0d0c;
	--bg2: #1a1614;
	--ink: #f4efe6;
	--muted: #b3a999;
	--line: rgba(244, 239, 230, 0.14);
	--orange: #ff7a2e;
	--gold: #ffc53d;
	--green: #4bd38a;
	--blue: #5aa2ff;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	height: 100%;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.5 Inter, system-ui, sans-serif;
	overflow: hidden;
}
a {
	color: inherit;
}
h1,
h2,
h3 {
	font-family: Fraunces, Georgia, serif;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.01em;
}
h1 {
	font-size: clamp(64px, 11vw, 168px);
	line-height: 0.9;
}
h2 {
	font-size: clamp(28px, 4.2vw, 56px);
	line-height: 1.08;
	max-width: 22ch;
}
.kicker {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	font-weight: 700;
	color: var(--orange);
	margin: 0 0 14px;
}
.lede {
	font: 500 clamp(22px, 2.6vw, 34px) / 1.2 Fraunces, Georgia, serif;
	margin: 14px 0 10px;
}
.sub {
	color: var(--muted);
	max-width: 56ch;
	margin: 0 0 22px;
}
.note {
	color: var(--muted);
	font-size: 12px;
	margin-top: 18px;
}
.pill {
	display: inline-block;
	margin-left: 10px;
	padding: 1px 8px;
	border-radius: 99px;
	border: 1px solid var(--line);
	color: var(--muted);
	letter-spacing: 0.06em;
	font-size: 10px;
}

/* ---------- slides: a horizontal strip, one per screen */
#deck {
	display: flex;
	height: 100%;
	transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
	will-change: transform;
}
.slide {
	flex: 0 0 100vw;
	height: 100%;
	padding: clamp(28px, 6vw, 96px) clamp(20px, 7vw, 120px) 120px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: radial-gradient(1200px 700px at 80% 0%, #2a1f17 0%, transparent 60%), var(--bg);
}
.slide > * {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s ease,
		transform 0.7s ease;
}
.slide.on > * {
	opacity: 1;
	transform: none;
}
.slide.on > *:nth-child(2) {
	transition-delay: 0.12s;
}
.slide.on > *:nth-child(3) {
	transition-delay: 0.24s;
}
.slide.on > *:nth-child(4) {
	transition-delay: 0.36s;
}
.slide.on > *:nth-child(5) {
	transition-delay: 0.48s;
}

.btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 99px;
	background: var(--orange);
	color: #1a0f08;
	font-weight: 700;
	text-decoration: none;
	border: 0;
	font: 700 14px Inter, system-ui, sans-serif;
	cursor: pointer;
	align-self: flex-start;
	transition: transform 0.15s;
}
.btn:hover {
	transform: translateY(-2px);
}
.btn.ghost {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line);
}
.cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---------- 1 hero with the live model behind */
.hero {
	padding-left: clamp(20px, 6vw, 110px);
}
#liveBg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
	opacity: 1 !important;
	transform: none !important;
}
.heroShade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 13, 12, 0.92) 0%, rgba(15, 13, 12, 0.6) 42%, rgba(15, 13, 12, 0) 75%);
	opacity: 1 !important;
	transform: none !important;
}
.heroText {
	position: relative;
	max-width: 640px;
}

/* ---------- 2 sky chart */
.sky {
	padding: 0;
	background: #07090f;
}
#skyChart {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 1 !important;
	transform: none !important;
}
.skyText {
	position: absolute;
	left: clamp(20px, 6vw, 100px);
	top: clamp(28px, 7vh, 80px);
	max-width: 520px;
	text-shadow: 0 2px 20px #000;
}
.skyLegend {
	position: absolute;
	right: clamp(16px, 4vw, 60px);
	bottom: 110px;
	list-style: none;
	margin: 0;
	padding: 14px 16px;
	background: rgba(10, 12, 20, 0.7);
	backdrop-filter: blur(6px);
	border: 1px solid var(--line);
	border-radius: 14px;
	font-size: 13px;
	min-width: 260px;
}
.skyLegend li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 3px 0;
}
.skyLegend li i {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	flex: none;
}
.skyLegend li span {
	flex: 1;
}
.skyLegend li b {
	font-variant-numeric: tabular-nums;
}
.sky .note {
	position: absolute;
	left: clamp(20px, 6vw, 100px);
	bottom: 96px;
	max-width: 60ch;
}

/* ---------- 3 proof count-ups */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 28px;
}
.card {
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 20px;
}
.card .num {
	font: 700 clamp(34px, 4.4vw, 58px) / 1 Fraunces, Georgia, serif;
	color: var(--gold);
	font-variant-numeric: tabular-nums;
}
.card .what {
	margin-top: 8px;
	font-weight: 600;
}
.card .asof {
	margin-top: 6px;
	color: var(--muted);
	font-size: 12px;
}

/* ---------- 4 problem */
.trio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 30px;
}
.trio > div {
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 20px;
}
.trio .ico {
	font-size: 34px;
	display: block;
	margin-bottom: 8px;
}
.trio p {
	color: var(--muted);
	font-size: 14px;
}
.tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 99px;
}
.tag.live {
	background: rgba(75, 211, 138, 0.15);
	color: var(--green);
}
.tag.dark {
	background: rgba(255, 122, 46, 0.15);
	color: var(--orange);
}
.mode.off {
	border-color: rgba(255, 122, 46, 0.5);
	box-shadow: 0 0 40px rgba(255, 122, 46, 0.12);
}
.trio.small {
	margin-top: 10px;
}
.trio.small p {
	margin: 6px 0 0;
}

/* ---------- 5 product */
.grid6 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 26px 0 24px;
}
.grid6 > div {
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px 18px;
	transition:
		transform 0.2s,
		border-color 0.2s;
}
.grid6 > div:hover {
	transform: translateY(-4px);
	border-color: var(--orange);
}
.grid6 span {
	font-size: 26px;
}
.grid6 b {
	display: block;
	margin-top: 6px;
}
.grid6 p {
	color: var(--muted);
	font-size: 14px;
	margin: 4px 0 0;
}

/* ---------- 6 network diagram */
#netSvg {
	width: 100%;
	max-height: 38vh;
	margin-top: 10px;
	overflow: visible;
}
#netTrack {
	fill: none;
	stroke: #6d5b4a;
	stroke-width: 10;
	stroke-linecap: round;
}
.net-rail {
	fill: none;
	stroke: #c9bba6;
	stroke-width: 2;
	stroke-dasharray: 2 7;
}
.rx circle.dish {
	fill: var(--blue);
}
.rx .wave {
	fill: none;
	stroke: var(--blue);
	stroke-width: 2;
	opacity: 0;
}
.rx.hot .wave {
	animation: wave 1.2s ease-out infinite;
}
.rx.hot circle.dish {
	fill: var(--green);
}
@keyframes wave {
	0% {
		r: 6;
		opacity: 0.9;
	}
	100% {
		r: 46;
		opacity: 0;
	}
}
.net-train {
	fill: var(--orange);
}
.net-label {
	fill: var(--muted);
	font: 600 13px Inter, system-ui, sans-serif;
}
.net-cloud {
	fill: rgba(255, 122, 46, 0.12);
	stroke: var(--orange);
}

/* ---------- 7 tiers */
.tiers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 26px;
}
.tier {
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 20px;
}
.tier.pop {
	border-color: var(--orange);
	box-shadow: 0 10px 50px rgba(255, 122, 46, 0.18);
	transform: translateY(-8px);
}
.tier .price {
	font: 700 34px Fraunces, Georgia, serif;
	margin: 8px 0 10px;
	color: var(--gold);
}
.tier .price small {
	font: 500 14px Inter, system-ui, sans-serif;
	color: var(--muted);
}
.tier ul {
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
	font-size: 14px;
}
.tier li {
	margin: 4px 0;
}

/* ---------- 8 community */
.ladder {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-top: 26px;
}
.ladder > div {
	background: var(--bg2);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px 20px;
}
.ladder span {
	font-size: 26px;
}
.ladder b {
	display: block;
	margin-top: 4px;
	font-size: 18px;
}
.ladder p {
	color: var(--muted);
	margin: 6px 0 0;
}
.ladder strong {
	color: var(--ink);
}

/* ---------- 9 growth */
.growthCols {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	margin-top: 24px;
	align-items: start;
}
.plays {
	margin: 0;
	padding-left: 22px;
}
.plays li {
	margin: 0 0 14px;
	color: var(--muted);
}
.plays b {
	color: var(--ink);
}
.roadmap {
	position: relative;
	padding-left: 26px;
}
.roadmap::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: repeating-linear-gradient(#6d5b4a 0 6px, transparent 6px 10px);
}
.roadmap div {
	position: relative;
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
}
.roadmap i {
	position: absolute;
	left: -24px;
	top: 4px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--bg2);
	border: 3px solid #6d5b4a;
}
.roadmap [data-s="live"] i {
	background: var(--green);
	border-color: var(--green);
	box-shadow: 0 0 16px var(--green);
}
.roadmap span {
	color: var(--muted);
	font-size: 13px;
}

/* ---------- 10 sources */
#sourceList {
	margin: 20px 0;
	padding-left: 20px;
	color: var(--muted);
	font-size: 13px;
	max-height: 52vh;
	overflow: auto;
	columns: 2;
	column-gap: 40px;
}
#sourceList li {
	break-inside: avoid;
	margin: 0 0 8px;
}

/* ---------- the rail: progress as a track with a little train */
#rail {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 74px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	z-index: 5;
}
#rail .home {
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
}
.track {
	position: relative;
	flex: 1;
	height: 26px;
}
.ties {
	position: absolute;
	left: 0;
	right: 0;
	top: 15px;
	height: 8px;
	background: repeating-linear-gradient(90deg, #5a4a3c 0 3px, transparent 3px 11px);
}
.track::before,
.track::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #b7aa98;
}
.track::before {
	top: 16px;
}
.track::after {
	top: 21px;
}
#railStops button {
	position: absolute;
	top: 0;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	border: 2px solid #b7aa98;
	background: var(--bg);
	cursor: pointer;
	padding: 0;
	z-index: 1;
}
#railStops button.done {
	background: var(--orange);
	border-color: var(--orange);
}
#railStops button span {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 11px;
	color: var(--muted);
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
#railStops button:hover span {
	opacity: 1;
}
#loco {
	position: absolute;
	top: -2px;
	width: 64px;
	margin-left: -60px;
	transition: left 0.9s cubic-bezier(0.7, 0, 0.2, 1);
	pointer-events: none;
	z-index: 2;
}
#loco .body {
	fill: var(--orange);
}
#loco .cab {
	fill: #e25d14;
}
#loco .win {
	fill: #1b2733;
}
#loco circle {
	fill: #222;
}
#loco .lamp {
	fill: #fff6c8;
	filter: drop-shadow(0 0 4px #fff3a0);
}
#rail .count {
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	min-width: 44px;
	text-align: right;
}
#rail button#prev,
#rail button#next {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
	color: var(--ink);
	font-size: 20px;
	cursor: pointer;
}

@media (max-width: 900px) {
	html,
	body {
		overflow: hidden;
	}
	.slide {
		justify-content: flex-start;
		overflow-y: auto;
		padding-top: 36px;
	}
	.trio,
	.grid6,
	.tiers,
	.ladder,
	.growthCols {
		grid-template-columns: 1fr;
	}
	#sourceList {
		columns: 1;
	}
	.skyLegend {
		left: 16px;
		right: 16px;
		min-width: 0;
		bottom: 90px;
	}
	#rail .home {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	#deck,
	#loco,
	.slide > * {
		transition: none;
	}
}
.card.quote {
	margin: 0;
	grid-column: 1 / -1;
	font: 500 clamp(18px, 2vw, 24px) / 1.35 Fraunces, Georgia, serif;
	border-left: 4px solid var(--orange);
}
.card.quote cite {
	display: block;
	margin-top: 10px;
	font: 500 12px Inter, system-ui, sans-serif;
	color: var(--muted);
	font-style: normal;
}

/* bigger, always-visible stop names; play button */
#rail {
	height: 96px;
	padding-bottom: 8px;
}
.track {
	height: 52px;
}
.ties {
	top: 31px;
}
.track::before {
	top: 32px;
}
.track::after {
	top: 37px;
}
#railStops button {
	top: 16px;
	width: 16px;
	height: 16px;
	margin-left: -8px;
}
#railStops button span {
	opacity: 1;
	bottom: auto;
	top: 26px;
	font: 600 12px Inter, system-ui, sans-serif;
	color: var(--muted);
}
#railStops button.here span {
	color: var(--ink);
}
#railStops button.here {
	box-shadow: 0 0 0 4px rgba(255, 122, 46, 0.3);
}
#railStops button:first-child span {
	left: 0;
	transform: none;
}
#railStops button:last-child span {
	left: auto;
	right: 0;
	transform: none;
}
#loco {
	top: 14px;
	width: 70px;
}
#rail .play {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--orange);
	color: #1a0f08;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
#rail .play:not(.on) {
	background: var(--ink);
}
.slide {
	padding-bottom: 140px;
}
@media (max-width: 900px) {
	#railStops button span {
		display: none;
	}
	#railStops button.here span {
		display: block;
	}
}
#rail .vo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
	font-size: 16px;
	cursor: pointer;
}
#rail .vo.on {
	border-color: var(--orange);
	box-shadow: 0 0 0 3px rgba(255, 122, 46, 0.25);
}

/* ---------- live model behind every slide */
#liveBg {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
	z-index: 0;
	filter: saturate(0.9);
}
#bgShade {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: radial-gradient(120% 90% at 50% 40%, rgba(15, 13, 12, 0.86), rgba(15, 13, 12, 1));
	opacity: 0;
	transition: opacity 1s ease;
	pointer-events: none;
}
#deck {
	position: relative;
	z-index: 1;
}
.slide {
	background: none;
}
.sky {
	background: #07090f;
}
/* cards sit on the moving backdrop: a little glass so text stays crisp */
.card,
.trio > div,
.grid6 > div,
.tier,
.ladder > div {
	background: rgba(26, 22, 20, 0.82);
	backdrop-filter: blur(10px);
	min-width: 0;
	overflow-wrap: anywhere;
}

/* ---------- card audit: nothing may run off its card */
.cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card .num {
	font: 400 clamp(44px, 5vw, 76px) / 0.95 "League Gothic", "Arial Narrow", sans-serif;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.tier .price {
	font: 400 44px/1 "League Gothic", "Arial Narrow", sans-serif;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.tiers,
.grid6,
.trio,
.ladder {
	min-width: 0;
}
.tier h3,
.grid6 b,
.ladder b {
	overflow-wrap: anywhere;
}
@media (max-width: 900px) {
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-height: 760px) {
	.slide {
		justify-content: flex-start;
		overflow-y: auto;
	}
	/* proof slide: fit six cards and the quote above the progress rail */
	.cards {
		gap: 10px;
		margin-top: 14px;
	}
	.card {
		padding: 12px 16px;
	}
	.card .num {
		font-size: clamp(28px, 3.4vw, 44px);
	}
	.card .what {
		margin-top: 4px;
		font-size: 14px;
	}
}
#exitDeck {
	position: fixed;
	top: 16px;
	right: 18px;
	z-index: 6;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 8px 14px;
	border-radius: 99px;
	background: rgba(15, 13, 12, 0.7);
	backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	color: var(--ink);
	font: 600 13px Inter, system-ui, sans-serif;
	text-decoration: none;
}
#exitDeck:hover {
	border-color: var(--orange);
	color: var(--orange);
}
