/* Schriften liegen beim Hub (OFL, Lizenzen in fonts/); keine Anfrage an Dritte. */
@font-face {
	font-family: "Chakra Petch";
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/chakra-petch-500.woff2") format("woff2");
}
@font-face {
	font-family: "Chakra Petch";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/chakra-petch-600.woff2") format("woff2");
}
@font-face {
	font-family: "Chakra Petch";
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/chakra-petch-700.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 400 500;
	font-display: swap;
	src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* Layout: hero with the animated hub mark, then four showcase rows (text beside a live demo panel), alternating sides. Colours from the hub logo and theme.css. All motion is transform/opacity only. */
:root {
	color-scheme: dark;
	--bg: #050816;
	--bg-2: #0d1030;
	--surface: #10131f;
	--surface-2: #161a2a;
	--line: #22263a;
	--fg: #e6e9ef;
	--muted: #9aa1c0;
	--accent: #8f96ff;
	--accent-fg: #050816;
	--hot: #fb923c;
	--hot-2: #f472b6;
	--sun: #fde047;
	--teal: #5eead4;
	--blue: #3b82f6;
	--violet: #5b21b6;
	--display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
	--body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background:
		radial-gradient(1100px 560px at 80% -10%, var(--bg-2), transparent 70%),
		var(--bg);
	color: var(--fg);
	font: 400 1rem / 1.6 var(--body);
	overflow-x: hidden;
}
.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- Neon TDC mark ----------
   T, D and C drawn as one circuit of three sectors. A neon comet laps it; its colour follows the
   timing screen: yellow, green, then purple for the fastest lap. The glow is stacked strokes, not a
   blur filter, so nothing re-rasterises per frame beyond the moving dash. */
.mark {
	--lap: 3.6s;
	display: block;
	flex: none;
	overflow: visible;
}
.mark .tube path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mark .t1 {
	stroke: #1a1f4d;
	stroke-opacity: 0.35;
	stroke-width: 17;
}
.mark .t2 {
	stroke: url(#tdcg);
	stroke-opacity: 0.3;
	stroke-width: 16;
}
.mark .t3 {
	stroke: url(#tdcg);
	stroke-width: 7;
}
.mark .neon path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 11 89;
	animation:
		neonlap var(--lap) linear infinite,
		sector var(--lap) linear infinite;
}
.mark .n1 {
	stroke-width: 30;
	stroke-opacity: 0.12;
}
.mark .n2 {
	stroke-width: 17;
	stroke-opacity: 0.3;
}
.mark .n3 {
	stroke-width: 10;
	stroke-opacity: 0.95;
}
.mark .n4 {
	stroke-width: 3.6;
	animation-name: neonlap !important;
	stroke: #fff;
}
@keyframes neonlap {
	from {
		stroke-dashoffset: 100;
	}
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes sector {
	0%,
	28% {
		stroke: #fde047;
	}
	31%,
	61% {
		stroke: #22c55e;
	}
	64%,
	95% {
		stroke: #c04bff;
	}
	98%,
	100% {
		stroke: #fde047;
	}
}
.mark.big .tube {
	animation: neonon 1.4s steps(1) 0.2s both;
}
.mark.big .neon {
	animation: neonon2 0.1s linear 1.6s both;
}
@keyframes neonon {
	0% {
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	18% {
		opacity: 0.2;
	}
	26% {
		opacity: 1;
	}
	34% {
		opacity: 0.35;
	}
	42%,
	100% {
		opacity: 1;
	}
}
@keyframes neonon2 {
	from {
		opacity: 0;
	}
}
.mark.small .n1 {
	display: none;
}
.mark.small .t1 {
	stroke-width: 20;
}
.mark.small .t3 {
	stroke-width: 10;
}
.mark.small .n3 {
	stroke-width: 15;
}
.mark.small .n4 {
	stroke-width: 5;
}
@media (prefers-reduced-motion: reduce) {
	.mark .neon {
		display: none;
	}
}

/* ---------- Intro, header and hero ---------- */
.intro {
	position: relative;
	isolation: isolate;
	min-height: 100svh;
	display: grid;
	place-items: center;
	text-align: center;
	padding-block: 72px 96px;
	overflow: hidden;
}
.intro-inner {
	display: grid;
	justify-items: center;
	gap: 8px;
}
.intro .mark {
	width: min(78vw, 560px);
	height: auto;
	margin-bottom: 2vmin;
}
.title {
	margin: 0;
	font: 700 clamp(2.6rem, 9vw, 7.2rem) / 0.9 var(--display);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	display: grid;
	justify-items: center;
}
.title .l1 {
	display: block;
}
.title .l2 {
	display: block;
	font-size: 0.56em;
	letter-spacing: 0.34em;
	margin-right: -0.34em;
}
.title .ch {
	opacity: 0;
}
.title .ch.on {
	opacity: 1;
}
.caret {
	display: inline-block;
	width: 0.09em;
	height: 0.82em;
	margin-left: 0.04em;
	margin-right: -0.13em;
	vertical-align: -0.04em;
	background: var(--teal);
	box-shadow: 0 0 0.3em var(--teal);
	animation: caret 1s steps(1) infinite;
}
.title .l2 .caret {
	margin-right: calc(-0.13em - 0.34em);
}
.caret.gone {
	animation: none;
	opacity: 0;
	transition: opacity 0.6s ease;
}
@keyframes caret {
	50% {
		opacity: 0;
	}
}
.tagline {
	margin: 18px 0 0;
	max-width: 52ch;
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	color: var(--muted);
	animation: fadeup 0.9s var(--ease-out) 2.3s both;
}
@keyframes fadeup {
	from {
		transform: translateY(10px);
		opacity: 0;
	}
}
.cue {
	position: absolute;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	display: grid;
	justify-items: center;
	gap: 6px;
	font: 500 0.7rem / 1 var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	animation: fadeup 0.9s var(--ease-out) 2.8s both;
}
.cue i {
	width: 22px;
	height: 34px;
	border-radius: 12px;
	border: 1.5px solid var(--line);
	position: relative;
}
.cue i::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 7px;
	width: 3px;
	height: 7px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--teal);
	animation: wheel 1.8s var(--ease-out) infinite;
}
@keyframes wheel {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	70%,
	100% {
		transform: translateY(12px);
		opacity: 0;
	}
}
/* Aurora: large soft colour fields drifting behind the logo (transform only) plus grain against banding */
.aurora {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background:
		radial-gradient(120% 80% at 50% 110%, #1e1b4b 0%, transparent 60%),
		var(--bg);
}
.aurora i {
	position: absolute;
	width: 70vmax;
	height: 70vmax;
	left: 50%;
	top: 50%;
	margin: -35vmax 0 0 -35vmax;
	border-radius: 50%;
	opacity: var(--o, 0.55);
	will-change: transform;
}
.aurora i:nth-child(1) {
	background: radial-gradient(closest-side, #6d28d9, transparent);
	animation: drift1 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
	background: radial-gradient(closest-side, #0e7490, transparent);
	animation: drift2 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
	background: radial-gradient(closest-side, #db2777, transparent);
	--o: 0.38;
	animation: drift3 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(4) {
	background: radial-gradient(closest-side, #ea580c, transparent);
	--o: 0.28;
	animation: drift4 20s ease-in-out infinite alternate;
}
.aurora::before {
	content: "";
	position: absolute;
	inset: -50%;
	background: conic-gradient(
		from 0deg,
		transparent,
		rgb(143 150 255 / 0.12),
		transparent 30%,
		rgb(94 234 212 / 0.1),
		transparent 60%,
		rgb(244 114 182 / 0.1),
		transparent
	);
	animation: spin 60s linear infinite;
}
.aurora::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.14;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.intro::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 30vh;
	z-index: -1;
	background: linear-gradient(transparent, var(--bg));
	pointer-events: none;
}
@keyframes drift1 {
	from {
		transform: translate(-28%, -22%) scale(0.9);
	}
	to {
		transform: translate(18%, -6%) scale(1.15);
	}
}
@keyframes drift2 {
	from {
		transform: translate(26%, 18%) scale(1.1);
	}
	to {
		transform: translate(-16%, 4%) scale(0.85);
	}
}
@keyframes drift3 {
	from {
		transform: translate(10%, -30%) scale(0.8);
	}
	to {
		transform: translate(-24%, 20%) scale(1.05);
	}
}
@keyframes drift4 {
	from {
		transform: translate(-20%, 30%) scale(0.9);
	}
	to {
		transform: translate(24%, 12%) scale(1.1);
	}
}
/* Asphalt under the logo: grain, skid marks, a painted line and a slow light sweep */
.intro .asphalt {
	background-color: #0b0d16;
}
.intro .asphalt .grain {
	position: absolute;
	inset: 0;
	opacity: 0.5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .58 0 0 0 0 .75 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.intro .asphalt svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.intro .asphalt .skid {
	fill: none;
	stroke: #000;
	stroke-opacity: 0.55;
	stroke-width: 14;
	stroke-linecap: round;
}
.intro .asphalt .paint {
	fill: none;
	stroke: #e6e9ef;
	stroke-opacity: 0.2;
	stroke-width: 6;
	stroke-dasharray: 40 30;
}
.intro .asphalt .sweep {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		transparent 40%,
		rgb(143 150 255 / 0.1) 50%,
		transparent 60%
	);
	animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep {
	from {
		transform: translateX(-60%);
	}
	to {
		transform: translateX(60%);
	}
}

.intro .asphalt .skid.fresh {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	animation: skid 9s linear infinite;
}
.intro .asphalt .skid.old {
	stroke-opacity: 0.3;
}
@keyframes skid {
	0% {
		stroke-dashoffset: 100;
		opacity: 1;
	}
	15.6% {
		stroke-dashoffset: 0;
		opacity: 1;
	}
	72% {
		stroke-dashoffset: 0;
		opacity: 1;
	}
	95%,
	100% {
		stroke-dashoffset: 0;
		opacity: 0;
	}
}
.intro .asphalt .puff {
	fill: url(#smk);
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
	animation: puff 9s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
@keyframes puff {
	0% {
		transform: scale(0.3) translate(0, 0);
		opacity: 0;
	}
	1.5% {
		opacity: 0.9;
	}
	40% {
		transform: scale(2.6) translate(14px, -18px);
		opacity: 0;
	}
	100% {
		transform: scale(2.6) translate(14px, -18px);
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.intro .asphalt .skid.fresh {
		stroke-dashoffset: 0;
	}
	.intro .asphalt .tails,
	.intro .asphalt .smoke {
		display: none;
	}
}
.intro .asphalt {
	position: absolute;
	inset: 0;
	z-index: -2;
	-webkit-mask: radial-gradient(80% 85% at 50% 45%, #000 30%, transparent 95%);
	mask: radial-gradient(80% 85% at 50% 45%, #000 30%, transparent 95%);
}
/* Sim pulses: rings that leave the globe like timing waves */
.pulses {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
	z-index: -1;
}
.pulses i {
	position: absolute;
	width: min(90vmin, 900px);
	aspect-ratio: 1;
	max-width: 100%;
	border-radius: 50%;
	border: 1px solid var(--accent);
	opacity: 0;
	transform: scale(0.25);
	animation: pulse-out 6s linear infinite;
}
.pulses i:nth-child(2) {
	animation-delay: -2s;
}
.pulses i:nth-child(3) {
	animation-delay: -4s;
}
@keyframes pulse-out {
	0% {
		transform: scale(0.25);
		opacity: 0;
	}
	15% {
		opacity: 0.35;
	}
	100% {
		transform: scale(1.2);
		opacity: 0;
	}
}
/* Scroll-linked: the intro sinks back as the page scrolls (compositor-driven where supported) */
@supports (animation-timeline: scroll()) {
	.intro-inner {
		animation: sink linear both;
		animation-timeline: scroll(root);
		animation-range: 0 90vh;
	}
	@keyframes sink {
		to {
			transform: translateY(18vh) scale(0.82);
			opacity: 0;
		}
	}
}

header.top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
header.top::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transition: opacity 0.3s var(--ease-out);
	z-index: -1;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font: 700 0.95rem / 1 var(--display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg);
	text-decoration: none;
	opacity: 0;
	transform: translateY(-6px);
	transition:
		opacity 0.3s var(--ease-out),
		transform 0.3s var(--ease-out);
}
.brand .mark {
	width: 54px;
	height: auto;
}
header.top.solid::before,
header.top.solid .brand {
	opacity: 1;
}
header.top.solid .brand {
	transform: none;
}
.signin {
	font: 500 0.875rem / 1 var(--body);
	color: var(--muted);
	text-decoration: none;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	white-space: nowrap;
	flex: none;
	transition:
		color 0.2s ease,
		border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
	.signin:hover {
		color: var(--fg);
		border-color: var(--accent);
	}
}

.hero {
	position: relative;
	padding-block: 72px 56px;
	display: grid;
	justify-items: center;
	text-align: center;
}
.eyebrow {
	font: 500 0.75rem / 1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal);
	margin: 0 0 20px;
}
h1,
.h1 {
	font: 700 clamp(2.3rem, 5.6vw, 4.2rem) / 1 var(--display);
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
	max-width: 18ch;
}
h1 em,
.h1 em {
	font-style: normal;
	background: linear-gradient(90deg, var(--hot), var(--hot-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lede {
	max-width: 58ch;
	color: var(--muted);
	font-size: 1.125rem;
	margin: 24px 0 32px;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
}
.btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--accent);
	color: var(--accent-fg);
	font: 600 1rem / 1 var(--display);
	letter-spacing: 0.03em;
	padding: 16px 22px;
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.16s var(--ease-out);
}
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		transparent 30%,
		rgb(255 255 255 / 0.45) 50%,
		transparent 70%
	);
	transform: translateX(-120%);
	animation: sheen 4.5s ease-in-out 1.2s infinite;
}
.btn:active {
	transform: scale(0.97);
}
.btn .arr {
	display: inline-block;
	transition: transform 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.btn:hover {
		transform: translateY(-2px);
	}
	.btn:hover .arr {
		transform: translateX(4px);
	}
}
.btn:focus-visible,
.signin:focus-visible,
.brand:focus-visible,
.cue:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}
.note {
	font-size: 0.875rem;
	color: var(--muted);
}
@keyframes sheen {
	0%,
	60% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(120%);
	}
}

/* ---------- BAM band: every car × every tuning × every track ---------- */
.bam {
	padding-block: 40px 72px;
	text-align: center;
}
.bam-words {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0.1em 0.35em;
	font: 700 clamp(2.4rem, 8.4vw, 6.6rem) / 0.95 var(--display);
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
.bam-words .w {
	display: inline-grid;
	justify-items: center;
}
.bam-words .w > b {
	font-weight: 700;
}
.bam-words .w small {
	font: 500 clamp(0.7rem, 1.4vw, 0.9rem) / 1 var(--mono);
	letter-spacing: 0.16em;
	color: var(--muted);
	margin-top: 0.7em;
}
.bam-words .x {
	color: var(--hot);
	font-size: 0.6em;
}
.bam-words .w1 > b {
	color: var(--fg);
}
.bam-words .w2 > b {
	color: var(--sun);
}
.bam-words .w3 > b {
	background: linear-gradient(90deg, var(--hot), var(--hot-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.bam {
	position: relative;
}
.bam-final {
	position: relative;
	margin-top: clamp(28px, 5vw, 56px);
	display: grid;
	justify-items: center;
	gap: 4px;
}
.bam-final .eq {
	font: 700 clamp(2rem, 6vw, 4.4rem) / 1 var(--display);
	color: var(--teal);
}
.bam-final .fin {
	display: grid;
	justify-items: center;
	text-transform: uppercase;
}
.bam-final .bh {
	font: 700 clamp(3.4rem, 13vw, 10.5rem) / 0.86 var(--display);
	letter-spacing: -0.02em;
	background: linear-gradient(
		95deg,
		#fde047,
		#fb923c 30%,
		#f472b6 62%,
		#8f96ff
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 0.25em rgb(244 114 182 / 0.35));
}
.bam-final .ar {
	font: 700 clamp(1.6rem, 5.4vw, 4.2rem) / 1 var(--display);
	letter-spacing: 0.14em;
	margin-right: -0.14em;
	color: var(--fg);
}
.bam-final .wave {
	position: absolute;
	left: 50%;
	top: 55%;
	width: 60vmin;
	height: 60vmin;
	margin: -30vmin 0 0 -30vmin;
	border-radius: 50%;
	border: 2px solid var(--hot);
	opacity: 0;
	pointer-events: none;
}
.bam::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		closest-side,
		rgb(255 255 255 / 0.22),
		transparent
	);
	opacity: 0;
	pointer-events: none;
}
.bam.arm:not(.go) :is(.w, .x, .eq, .bh, .ar) {
	opacity: 0;
}
.bam.go .w,
.bam.go .x {
	animation: slam 0.55s var(--ease-out) both;
}
.bam.go .w1 {
	animation-delay: 0s;
}
.bam.go .xa {
	animation-delay: 0.32s;
}
.bam.go .w2 {
	animation-delay: 0.42s;
}
.bam.go .xb {
	animation-delay: 0.74s;
}
.bam.go .w3 {
	animation-delay: 0.84s;
}
.bam.go .eq {
	animation: slam 0.5s var(--ease-out) 1.25s both;
}
.bam.go .bh {
	animation: bigslam 0.7s var(--ease-out) 1.5s both;
}
.bam.go .ar {
	animation: fadeup 0.6s var(--ease-out) 1.85s both;
}
.bam.go .wave {
	animation: wave 1s var(--ease-out) 1.6s both;
}
.bam.go::after {
	animation: flash 0.6s ease-out 1.55s both;
}
@keyframes bigslam {
	0% {
		transform: scale(2.6);
		opacity: 0;
	}
	50% {
		transform: scale(0.94);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
@keyframes wave {
	from {
		transform: scale(0.2);
		opacity: 0.8;
	}
	to {
		transform: scale(1.6);
		opacity: 0;
	}
}
@keyframes flash {
	0% {
		opacity: 0;
	}
	15% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes slam {
	0% {
		transform: scale(1.9);
		opacity: 0;
	}
	55% {
		transform: scale(0.96);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
@keyframes shake {
	0%,
	100% {
		transform: none;
	}
	30% {
		transform: translate(2px, -2px);
	}
	60% {
		transform: translate(-2px, 1px);
	}
}

/* ---------- Showcase rows ---------- */
.show {
	display: grid;
	gap: 96px;
	padding-block: 24px 96px;
}
.row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 56px;
	align-items: center;
}
.row.flip .copy {
	order: 2;
}
.tag {
	display: inline-block;
	font: 500 0.72rem / 1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hot);
	margin-bottom: 16px;
}
.copy h2 {
	font: 700 clamp(1.75rem, 3.6vw, 2.6rem) / 1.05 var(--display);
	margin: 0 0 16px;
	text-wrap: balance;
}
.copy h2 em {
	font-style: normal;
	color: var(--sun);
}
.copy p {
	margin: 0 0 14px;
	color: var(--muted);
	max-width: 46ch;
}
.copy ul {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.copy li {
	display: flex;
	gap: 10px;
	align-items: baseline;
}
.copy li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--teal);
	transform: translateY(-1px) rotate(45deg);
}

.panel {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 22px;
	overflow: hidden;
	min-width: 0;
}
.panel .cap {
	font: 500 0.7rem / 1 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--teal);
}
.live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--teal);
	animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
	50% {
		opacity: 0.25;
		transform: scale(0.7);
	}
}

/* Best hand fan (idea 02): five class-coloured cards open around the bottom pivot, the S card rises */
.bam-final .hand {
	width: clamp(200px, 28vw, 300px);
	height: auto;
	margin: 4px 0 -6px;
	overflow: visible;
}
.hand .hc {
	transform-box: view-box;
	transform-origin: 100px 176px;
	animation-duration: 4.2s;
	animation-timing-function: var(--ease-out);
	animation-iteration-count: infinite;
}
.hand .hc1 {
	animation-name: fan1;
}
@keyframes fan1 {
	0%,
	6% {
		transform: rotate(0deg);
	}
	30%,
	80% {
		transform: rotate(-30deg);
	}
	96%,
	100% {
		transform: rotate(0deg);
	}
}
.hand .hc2 {
	animation-name: fan2;
}
@keyframes fan2 {
	0%,
	6% {
		transform: rotate(0deg);
	}
	30%,
	80% {
		transform: rotate(-15deg);
	}
	96%,
	100% {
		transform: rotate(0deg);
	}
}
.hand .hc3 {
	animation-name: fan3;
}
@keyframes fan3 {
	0%,
	6% {
		transform: rotate(0deg);
	}
	30%,
	80% {
		transform: rotate(0deg);
	}
	96%,
	100% {
		transform: rotate(0deg);
	}
}
.hand .hc4 {
	animation-name: fan4;
}
@keyframes fan4 {
	0%,
	6% {
		transform: rotate(0deg);
	}
	30%,
	80% {
		transform: rotate(15deg);
	}
	96%,
	100% {
		transform: rotate(0deg);
	}
}
.hand .hc5 {
	animation-name: fan5;
}
@keyframes fan5 {
	0%,
	6% {
		transform: rotate(0deg);
	}
	30%,
	80% {
		transform: rotate(30deg);
	}
	96%,
	100% {
		transform: rotate(0deg);
	}
}
.hand .win {
	animation: fanwin 4.2s var(--ease-out) infinite;
}
@keyframes fanwin {
	0%,
	34% {
		transform: translateY(0);
	}
	46%,
	76% {
		transform: translateY(-16px);
	}
	96%,
	100% {
		transform: translateY(0);
	}
}
.hand .glow {
	animation: glow 4.2s ease-out infinite;
}
@keyframes glow {
	0%,
	38% {
		opacity: 0;
	}
	48%,
	74% {
		opacity: 1;
	}
	86%,
	100% {
		opacity: 0;
	}
}

/* Track card (idea 01): closing call to action */
.finish {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding-block: 24px 88px;
}
.finish svg {
	width: clamp(180px, 24vw, 260px);
	height: auto;
	overflow: visible;
}
.finish h2 {
	font: 700 clamp(2rem, 4.6vw, 3.4rem) / 1 var(--display);
	margin: 0 0 14px;
	text-wrap: balance;
}
.finish h2 em {
	font-style: normal;
	color: var(--sun);
}
.finish p {
	margin: 0 0 24px;
	color: var(--muted);
	max-width: 46ch;
}
.tc-comet {
	stroke-dasharray: 14 86;
	animation: tclap 2.8s linear infinite;
}
@keyframes tclap {
	from {
		stroke-dashoffset: 100;
	}
	to {
		stroke-dashoffset: 0;
	}
}
.tc-flash {
	animation: tcflash 2.8s linear infinite;
}
@keyframes tcflash {
	0%,
	88% {
		opacity: 0;
	}
	92% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
@media (max-width: 760px) {
	.finish {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}
	.finish .actions {
		justify-content: center;
	}
}

/* Simulation demo: three races in turn, real cars */
.sim {
	position: relative;
	min-height: 236px;
}
.race {
	position: absolute;
	inset: 0;
	display: grid;
	gap: 14px;
	align-content: start;
	font: 400 0.85rem / 1.3 var(--mono);
	font-variant-numeric: tabular-nums;
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.45s var(--ease-out),
		transform 0.45s var(--ease-out);
	pointer-events: none;
}
.race.on {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.race .trk {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--muted);
}
.race .trk b {
	color: var(--fg);
	font-weight: 500;
}
.mode {
	display: inline-block;
	font: 500 0.68rem / 1 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 8px;
	border-radius: 6px;
	background: rgb(143 150 255 / 0.14);
	color: var(--accent);
}
.lane {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) 5.4em;
	gap: 12px;
	align-items: center;
}
.lane img {
	width: 92px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	background: var(--surface-2);
}
.lane .nm {
	display: flex;
	align-items: center;
	gap: 6px;
	font: 500 0.82rem / 1.2 var(--body);
	margin-bottom: 6px;
	min-width: 0;
}
.lane .nm span:last-child {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lane .t {
	text-align: right;
}
.bar {
	height: 8px;
	border-radius: 4px;
	background: var(--surface-2);
	overflow: hidden;
}
.bar i {
	display: block;
	height: 100%;
	border-radius: 4px;
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.race.on .bar i {
	animation: fill 1.6s var(--ease-out) 0.15s both;
}
.lane.you .bar i {
	background: linear-gradient(90deg, var(--hot), var(--sun));
}
.lane.opp .bar i {
	background: var(--accent);
	opacity: 0.7;
}
.race .foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	padding-top: 4px;
	border-top: 1px solid var(--line);
}
.res {
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.78rem;
}
.res.win {
	color: var(--teal);
	background: rgb(94 234 212 / 0.12);
}
.res.loss {
	color: var(--hot-2);
	background: rgb(244 114 182 / 0.12);
}
@keyframes fill {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(var(--w));
	}
}
.dots {
	display: flex;
	gap: 6px;
}
.dots i {
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: var(--line);
	transition: background 0.3s ease;
}
.dots i.on {
	background: var(--hot);
}

/* Modes demo */
.modes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.md {
	position: relative;
	padding: 14px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	min-width: 0;
	container-type: inline-size;
}
.md::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 12px;
	border: 1.5px solid var(--hot);
	opacity: 0;
	transition: opacity 0.35s ease;
}
.md.on::after {
	opacity: 1;
}
.md b {
	display: block;
	/* Wächst mit der Kachel: "Championships" passt auch in die engste. */
	font: 600 min(1.05rem, 12.5cqi) / 1.2 var(--display);
	white-space: nowrap;
	margin-bottom: 4px;
}
.md span {
	font-size: 0.78rem;
	color: var(--muted);
	display: block;
}
.md .st {
	margin-top: 10px;
	font: 500 0.68rem / 1 var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.md.on .st {
	color: var(--teal);
}

/* Credits demo */
.vault {
	display: grid;
	gap: 18px;
}
.balance {
	font: 700 clamp(2.2rem, 5vw, 3.4rem) / 1 var(--display);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}
.balance small {
	font: 500 0.9rem / 1 var(--mono);
	color: var(--muted);
	margin-left: 8px;
	letter-spacing: 0.08em;
}
.spark {
	height: 64px;
	position: relative;
}
.spark svg {
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
}
.spark .line {
	fill: none;
	stroke: var(--sun);
	stroke-width: 2.5;
	stroke-linecap: round;
}
.spark .area {
	fill: var(--sun);
	opacity: 0.12;
}
.payouts {
	position: relative;
	height: 112px;
	overflow: hidden;
	-webkit-mask: linear-gradient(transparent, #000 30%);
	mask: linear-gradient(transparent, #000 30%);
}
.payout {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font: 400 0.85rem / 1 var(--mono);
	padding: 9px 12px;
	border-radius: 10px;
	background: var(--surface-2);
	transition:
		transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
		opacity 0.5s;
}
.payout b {
	color: var(--sun);
	font-weight: 500;
}
.booster {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
}
.booster span {
	font: 500 0.9rem / 1.2 var(--body);
}
.booster small {
	display: block;
	color: var(--muted);
	font-size: 0.78rem;
}
.switch {
	position: relative;
	width: 44px;
	height: 26px;
	flex: none;
	border-radius: 999px;
	background: var(--teal);
}
.switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bg);
	transform: translateX(18px);
}
.x2 {
	font: 700 0.8rem / 1 var(--display);
	color: var(--accent-fg);
	background: var(--hot);
	padding: 5px 8px;
	border-radius: 6px;
	animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.12);
	}
}

/* Garage demo: two marquees */
.marquee {
	overflow: hidden;
	-webkit-mask: linear-gradient(
		90deg,
		transparent,
		#000 10%,
		#000 90%,
		transparent
	);
	mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee {
	margin-top: 12px;
}
.track {
	display: flex;
	gap: 10px;
	width: max-content;
	animation: slide 28s linear infinite;
}
.marquee.rev .track {
	animation-direction: reverse;
	animation-duration: 34s;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	font: 400 0.85rem / 1 var(--mono);
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}
.chip i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c, var(--teal));
}
@keyframes slide {
	to {
		transform: translateX(-50%);
	}
}
.garage-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}
.garage-stats div {
	padding: 12px;
	border-radius: 12px;
	background: var(--surface-2);
}
.garage-stats b {
	display: block;
	font: 700 1.4rem / 1 var(--display);
	font-variant-numeric: tabular-nums;
}
.garage-stats span {
	font-size: 0.78rem;
	color: var(--muted);
}

/* Live demo: the hub's feed cards */
.feed {
	position: relative;
	height: 340px;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	-webkit-mask: linear-gradient(transparent, #000 18%);
	mask: linear-gradient(transparent, #000 18%);
}
.stack {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	display: grid;
	gap: 8px;
	will-change: transform;
}
.fc {
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 12px;
	padding: 10px 12px;
	box-shadow: 0 1px 2px rgb(5 8 22 / 0.25);
	font-size: 0.84rem;
}
.fc.new {
	animation: cardin 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cardin {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
}
.fh {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}
.fh .ti {
	font-weight: 600;
}
.fh time {
	margin-left: auto;
	font: 400 0.75rem / 1 var(--mono);
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.mu {
	color: var(--muted);
}
.mu b {
	color: var(--fg);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.ic {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 8px;
	background: rgb(143 150 255 / 0.16);
	color: var(--accent);
}
.ic svg {
	width: 16px;
	height: 16px;
}
.ic.gold {
	background: linear-gradient(
		135deg,
		rgb(227 179 65 / 0.28),
		rgb(143 150 255 / 0.2)
	);
	color: #e3b341;
	box-shadow: inset 0 0 0 1px rgb(227 179 65 / 0.3);
	width: 34px;
	height: 34px;
}
.bd {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font: 500 0.75rem / 1 var(--body);
	padding: 4px 8px;
	border-radius: 999px;
	background: rgb(143 150 255 / 0.14);
	color: var(--accent);
	white-space: nowrap;
}
.bd.ok {
	background: rgb(74 222 128 / 0.14);
	color: #4ade80;
	font-family: var(--mono);
}
.bd.cr {
	background: rgb(253 224 71 / 0.14);
	color: var(--sun);
	font-variant-numeric: tabular-nums;
}
.bd.gd {
	background: rgb(227 179 65 / 0.14);
	color: #e3b341;
}
.bd svg {
	width: 12px;
	height: 12px;
}
.spin {
	animation: spin 1s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.hand {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.fcar img {
	width: 40px;
	height: 19px;
	object-fit: cover;
	border-radius: 3px;
}
.prize {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	font-size: 0.85rem;
}
.prize img {
	width: 120px;
	height: 58px;
	object-fit: cover;
	border-radius: 8px;
}
.fcar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px 3px 4px;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	font-size: 0.75rem;
	white-space: nowrap;
}
.cl {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 5px;
	font: 700 11px / 1 var(--mono);
	color: #000;
}
.rw {
	margin: -10px -12px 0;
	padding: 10px 12px;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(
		90deg,
		rgb(227 179 65 / 0.12),
		rgb(143 150 255 / 0.1) 55%,
		transparent
	);
	display: flex;
	gap: 10px;
	align-items: center;
}
.rw .sub {
	font-size: 0.75rem;
	color: var(--muted);
}
.rows {
	display: grid;
	gap: 3px;
	margin-top: 8px;
	font: 400 0.78rem / 1.4 var(--mono);
}
.rows div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.pings {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.ping {
	font: 400 0.8rem / 1 var(--body);
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.paused,
.paused * {
	animation-play-state: paused !important;
}

footer {
	border-top: 1px solid var(--line);
	padding-block: 24px 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.8125rem;
	color: var(--muted);
}

@media (max-width: 860px) {
	.modes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.row,
	.row.flip {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.row.flip .copy {
		order: 0;
	}
	.show {
		gap: 72px;
	}
}
@media (max-width: 480px) {
	.lane {
		grid-template-columns: 64px minmax(0, 1fr) 4.8em;
	}
	.lane img {
		width: 64px;
		height: 32px;
	}
	.garage-stats {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.garage-stats b {
		font-size: 1.1rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
