/* Vlooh — the marketing site.
 *
 * Kaviyan's clean white page, with the films' pieces on it: the buyers, the
 * solver's core, the brand's four-stop gradient, Rubik for words, Anton for
 * the logo and the big numbers on the brief cards, and JetBrains Mono for
 * their small print. The solver and the end are in the films' night, on dark
 * cards. */

@font-face {
	font-family: 'Anton';
	src: url(../fonts/anton-latin-400-normal.woff2) format('woff2');
	font-display: swap;
}
@font-face {
	font-family: 'Rubik';
	src: url(../fonts/rubik-latin-wght-normal.woff2) format('woff2');
	font-weight: 300 900;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');
	font-weight: 100 800;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--bg: #fafafa;
	--ink: #0e0e0e;
	--night: #020617;
	--indigo: #1e1b4b;
	--violet9: #4c1d95;
	--slate900: #0f172a;
	--slate700: #334155;
	--slate600: #475569;
	--slate500: #64748b;
	--slate400: #94a3b8;
	--slate300: #cbd5e1;
	--paper: #f2f0eb;
	--blue: #2563eb;
	--violet: #8b5cf6;
	--pink: #ec4899;
	--amber: #fbbf24;
	--violet3: #c4b5fd;
	--emerald: #10b981;
	--brand: linear-gradient(90deg, var(--blue), var(--violet), var(--pink), var(--amber));

	--font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
	--font-head: 'Rubik', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--font-display: 'Anton', 'Inter', sans-serif;

	--gutter: clamp(16px, 3vw, 40px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	color: var(--ink);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	font-family: var(--font-ui);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--violet);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---- The logo ------------------------------------------------------------------ */
.lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.26em;
	line-height: 1;
	color: inherit;
	text-decoration: none;
}

.lockup .mark {
	height: 0.49em;
	width: auto;
	flex-shrink: 0;
}

/* web/src/lib/components/brand/VloohWordmark.svelte, unchanged in proportion:
 * "vlooh" in Anton, where the o's are eyes. The pupil is the background, so
 * whatever the logo sits on sets --pupil. */
.wordmark {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	display: inline-flex;
	align-items: baseline;
}

.wordmark .o {
	display: inline-flex;
	width: 0.62em;
	height: 0.62em;
	border-radius: 50%;
	background: currentColor;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	margin: 0 0.02em 0.04em;
}

.wordmark .pupil {
	width: 0.26em;
	height: 0.26em;
	border-radius: 50%;
	background: var(--pupil, var(--bg));
	/* the logo's rightward glance, until the pointer takes the eyes */
	transform: translateX(0.05em);
	transition:
		transform 90ms ease-out,
		background-color 0.25s;
}

/* ---- The nav --------------------------------------------------------------------- */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 16px var(--gutter);
	color: var(--ink);
	--pupil: var(--bg);
	transition: color 0.25s;
	animation: drop-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* over the dark end card */
.nav.on-dark {
	color: var(--paper);
	--pupil: var(--night);
}

.nav .lockup {
	justify-self: start;
	font-size: 30px;
}

/* The sections, side by side in a glass bar. The dark mark slides along to
 * the one you're reading (intro.js). */
.links {
	position: relative;
	justify-self: center;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border: 1px solid rgba(14, 14, 14, 0.07);
	border-radius: 14px;
	background: rgba(250, 250, 250, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
	transition:
		background-color 0.25s,
		border-color 0.25s;
}

.links a {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 10px;
	font: 500 14px/1 var(--font-ui);
	color: var(--slate600);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s;
}

.links a:hover {
	color: var(--ink);
}

.links a.on {
	color: var(--paper);
}

.links-mark {
	position: absolute;
	left: 0;
	top: 4px;
	width: var(--w, 0);
	height: 34px;
	border-radius: 10px;
	background: var(--ink);
	translate: var(--x, 0) 0;
	opacity: 0;
	transition:
		opacity 0.25s,
		background-color 0.25s;
}

.links-mark.on {
	opacity: 1;
}

/* only once it's in place, so it doesn't slide in from the left on load */
.links-mark.moves {
	transition:
		translate 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
		width 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
		opacity 0.25s,
		background-color 0.25s;
}

/* the menu's own "Book a demo", for the phone's panel */
.links .links-cta {
	display: none;
}

.nav.on-dark .links {
	border-color: rgba(242, 240, 235, 0.1);
	background: rgba(2, 6, 23, 0.55);
}

.nav.on-dark .links a {
	color: var(--slate300);
}

.nav.on-dark .links a:hover {
	color: var(--paper);
}

.nav.on-dark .links a.on {
	color: var(--ink);
}

.nav.on-dark .links-mark {
	background: var(--paper);
}

.nav-end {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* the phone's menu button: three lines that cross into an X */
.burger {
	display: none;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 11px;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	transition:
		background-color 0.25s,
		color 0.25s;
}

.burger span {
	grid-area: 1 / 1;
	width: 16px;
	height: 1.5px;
	border-radius: 1px;
	background: currentColor;
	transition:
		translate 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
		rotate 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
		opacity 0.2s;
}

.burger span:nth-child(1) {
	translate: 0 -5px;
}

.burger span:nth-child(3) {
	translate: 0 5px;
}

.nav.open .burger span:nth-child(1) {
	translate: 0;
	rotate: 45deg;
}

.nav.open .burger span:nth-child(2) {
	opacity: 0;
}

.nav.open .burger span:nth-child(3) {
	translate: 0;
	rotate: -45deg;
}

.nav.on-dark .burger {
	background: var(--paper);
	color: var(--ink);
}

.cta {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border-radius: 11px;
	background: var(--ink);
	color: var(--paper);
	font: 600 14px/1 var(--font-ui);
	text-decoration: none;
	transition:
		transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
		background 0.25s,
		color 0.25s;
}

.cta:hover {
	background: #26262a;
	transform: translateY(-1px);
}

.nav.on-dark .cta {
	background: var(--paper);
	color: var(--ink);
}

.nav.on-dark .cta:hover {
	background: #fff;
}

/* Phones and small tablets: the sections fold away behind the burger, into a
 * dark panel that drops from the bar. */
@media (max-width: 900px) {
	.nav {
		grid-template-columns: 1fr auto;
	}

	.burger {
		display: grid;
	}

	.links,
	.nav.on-dark .links {
		position: absolute;
		top: calc(100% - 4px);
		left: var(--gutter);
		right: var(--gutter);
		justify-self: stretch;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px;
		border-color: rgba(242, 240, 235, 0.1);
		border-radius: 20px;
		background: var(--ink);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
		transform-origin: 100% 0;
		visibility: hidden;
		opacity: 0;
		translate: 0 -8px;
		scale: 0.98;
		transition:
			opacity 0.2s,
			translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
			scale 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
			visibility 0s 0.3s;
	}

	.nav.open .links {
		visibility: visible;
		opacity: 1;
		translate: 0;
		scale: 1;
		transition-delay: 0s;
	}

	.links a,
	.nav.on-dark .links a {
		height: auto;
		padding: 16px 14px;
		border-radius: 12px;
		font: 600 22px/1.1 var(--font-head);
		letter-spacing: -0.02em;
		color: var(--slate400);
	}

	.links a:hover,
	.links a.on,
	.nav.on-dark .links a:hover,
	.nav.on-dark .links a.on {
		color: var(--paper);
	}

	/* the section you're reading, with the impressions buyer's dot */
	.links a.on::after {
		content: '';
		width: 8px;
		height: 8px;
		margin-left: auto;
		border-radius: 50%;
		background: var(--pink);
	}

	.nav.open .links a {
		animation: blur-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
		animation-delay: calc(0.04s + var(--i, 0) * 0.045s);
	}

	.links-mark {
		display: none;
	}

	.nav .links .links-cta {
		display: flex;
		justify-content: center;
		margin-top: 8px;
		padding: 18px 14px;
		background: var(--paper);
		color: var(--ink);
		font: 600 16px/1 var(--font-ui);
		letter-spacing: 0;
	}

	.nav .links .links-cta:hover {
		background: #fff;
	}
}

/* ---- The intro: hero, then the sentence ---------------------------------------- */
.intro {
	position: relative;
	height: 340vh;
}

.stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100lvh;
	overflow: hidden;
}

.hero-copy {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	/* the space above the buyers; intro.js sets --dock-top to where they stand */
	height: var(--dock-top, 64%);
	padding: 72px var(--gutter) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	/* its own layer, so blurring it away as you scroll is the GPU's job */
	will-change: transform, opacity, filter;
}

.headline {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(40px, 5.9vw, 104px);
	line-height: 1.04;
	letter-spacing: -0.035em;
	color: var(--ink);
	text-wrap: balance;
}

.headline .line {
	display: block;
}

/* What Vlooh is, under the headline. */
.sub {
	/* two lines on a laptop or bigger */
	max-width: 40em;
	margin: clamp(18px, 2.4vh, 30px) 0 0;
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.55;
	color: var(--slate600);
	text-wrap: balance;
}

/* The hero arrives the way kline() titles do: each word out of a blur. */
.js .headline .w {
	animation: blur-in 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(0.2s + var(--i) * 0.075s);
}

.js .sub {
	animation: blur-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.85s both;
}

/* "About Vlooh", "How it works" and "Watch the Solver": each plays a film in a popup (film.js).
 * The play button is the solver core in small: the logomark's rounded frame,
 * its 96×64, in the brand's four stops, turning. */
.watch {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	height: 46px;
	margin-top: clamp(22px, 3.4vh, 36px);
	padding: 0 20px 0 11px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font: 600 15px/1 var(--font-ui);
	cursor: pointer;
	pointer-events: auto;
	transition:
		translate 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
		background 0.25s;
}

.watch:hover {
	background: #26262a;
	translate: 0 -1px;
}

.watch:focus-visible {
	outline: 2px solid var(--violet);
	outline-offset: 3px;
}

.watch-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 24px;
	border-radius: 5px;
	background: #1c1c21;
}

/* the frame: the gradient turns, the frame stays put */
.watch-icon::before,
.feat-icon::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	/* still, where the browser can't turn it, rather than gone */
	--turn: 0deg;
	background: conic-gradient(from var(--turn), var(--blue), var(--violet), var(--pink), var(--amber), var(--blue));
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) content-box exclude,
		linear-gradient(#000 0 0);
	animation: turn 4.5s linear infinite;
}

.watch-icon svg {
	position: relative;
	width: 11px;
	height: 11px;
	margin-left: 2px;
	fill: currentColor;
}

@property --turn {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}

@keyframes turn {
	to {
		--turn: 1turn;
	}
}

/* the hero's comes in after the line above it */
.js .hero-copy .watch {
	animation: blur-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both;
}

/* the sentence's comes in as you scroll, once the sentence is all there (intro.js) */
.watch-ways {
	margin-top: clamp(36px, 6vh, 60px);
}

.js .watch-ways {
	opacity: 0;
	visibility: hidden;
}

/* The five ways under the sentence, each in its buyer's colour, with the
 * films' badges. They come in after the sentence, then "How it works" (intro.js). */
.ways {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 64rem;
	margin: clamp(24px, 4vh, 44px) auto 0;
	padding: 0;
	list-style: none;
}

.ways li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px 0 7px;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.3);
	font: 600 15px/1 var(--font-ui);
	color: var(--slate900);
}

.ways svg {
	width: 32px;
	height: 32px;
}

.js .ways li {
	opacity: 0;
}

.w {
	display: inline-block;
}

@keyframes blur-in {
	from {
		opacity: 0;
		filter: blur(14px);
		transform: translateY(0.25em);
	}
}

@keyframes drop-in {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
}

/* The sentence the buyers fly into. */
.statement-wrap {
	position: absolute;
	inset: 0;
	padding: 64px var(--gutter) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
}

.eyebrow {
	margin: 0 0 clamp(18px, 3vh, 32px);
	font: 700 clamp(11px, 0.9vw, 13px) / 1 var(--font-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--slate500);
}

.js .eyebrow {
	opacity: 0;
}

.statement {
	max-width: 19.5em;
	margin: 0;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: clamp(26px, 3.5vw, 60px);
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--ink);
	/* even lines, so the last never ends on a word or two */
	text-wrap: balance;
}

/* intro.js brings each word in as you scroll; without it they're just there. */
.js .statement .w {
	opacity: 0;
}

/* A buyer and its words, and the phrases between them, kept on one line. */
.pair,
.keep {
	white-space: nowrap;
}

/* Where a buyer lands: its body from just under the baseline to the top of
 * the capitals, and its hat above them. */
.slot {
	display: inline-block;
	width: 0.56em;
	height: 1.17em;
	margin: 0 0.07em 0 0.01em;
	vertical-align: -0.2em;
}

/* ---- The buyers ------------------------------------------------------------------ */
.cast {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.bean {
	position: absolute;
	left: 0;
	top: 0;
	will-change: transform;
}

.bean svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* ---- Coming in as they scroll into view, out of a blur ------------------------------ */
.js [data-reveal] {
	opacity: 0;
	filter: blur(12px);
	transform: translateY(28px);
	transition:
		opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
		filter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
	opacity: 1;
	filter: none;
	transform: none;
}

/* ---- The solver, in the films' night --------------------------------------------- */
.solver {
	position: relative;
	overflow: clip;
	margin: 0 var(--gutter) var(--gutter);
	padding: clamp(96px, 15vh, 168px) clamp(20px, 5vw, 72px) clamp(72px, 12vh, 136px);
	border-radius: clamp(24px, 3vw, 40px);
	background: radial-gradient(120% 75% at 50% 0%, var(--indigo) 0%, var(--night) 62%);
	color: var(--paper);
	--pupil: var(--night);
}

/* The eyes in a dark section's sky: a window-sized canvas that sticks while
 * the section scrolls past. Its sections clip rather than hide their
 * overflow, which would stop it sticking. */
.sky {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.eye-sky {
	position: sticky;
	top: 0;
	display: block;
	width: 100%;
	height: 100vh;
}

.solver > :not(.sky),
.sting > :not(.sky) {
	position: relative;
}

.solver-head {
	max-width: 50rem;
	margin: 0 auto;
	text-align: center;
}

.kicker {
	margin: 0 0 clamp(16px, 2.4vh, 24px);
	font: 700 13px/1 var(--font-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--violet3);
}

.solver h2,
.platform h2,
.book h2,
.story h2,
.payoff h2,
.moving h2 {
	margin: 0;
	font: 600 clamp(36px, 5vw, 84px) / 1.02 var(--font-head);
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.lead {
	max-width: 34em;
	margin: clamp(18px, 3vh, 28px) auto 0;
	font-size: clamp(16px, 1.3vw, 20px);
	line-height: 1.6;
	color: var(--slate300);
	text-wrap: pretty;
}

/* The core juggling the briefs: the film's frame, cropped to the juggling.
 * The glow fades out at the bottom rather than stopping at the canvas's edge. */
.juggle {
	position: relative;
	width: min(100%, 760px);
	aspect-ratio: 960 / 780;
	margin: clamp(8px, 2vh, 24px) auto 0;
}

.juggle-hands {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* the glow fades out at the foot, below the core, so the mark's frame stays whole */
	-webkit-mask-image: linear-gradient(#000 87%, transparent);
	mask-image: linear-gradient(#000 87%, transparent);
}

/* the films' card(), 300×116 at full size, scaled down by solver.js */
.jcard {
	--col: var(--blue);
	position: absolute;
	left: 0;
	top: 0;
	width: 300px;
	height: 116px;
	padding: 0 18px 0 26px;
	display: grid;
	grid-template-columns: 70px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-content: center;
	border-radius: 22px;
	background: #fff;
	color: var(--slate900);
	box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
	transform-origin: 150px 58px;
	opacity: 0;
	overflow: hidden;
	will-change: transform;
}

.jcard::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 12px;
	background: var(--col);
}

.jcard-icon {
	grid-row: span 2;
	width: 70px;
	height: 70px;
}

.jcard-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.jcard-big {
	font: 400 44px/1 var(--font-display);
	letter-spacing: 0.01em;
	white-space: nowrap;
	align-self: end;
}

.jcard-small {
	margin-top: 6px;
	font: 700 14px/1 var(--font-mono);
	color: var(--slate500);
	white-space: nowrap;
	align-self: start;
}

/* the hoops it jumps through */
.hoops {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 60rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.hoops li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 15px 9px 10px;
	border: 1px solid rgba(242, 240, 235, 0.1);
	border-radius: 999px;
	background: #10162b;
	font: 500 14px/1.2 var(--font-ui);
	color: var(--slate300);
}

.hoops li::before,
.checks li::before,
.uiq-points li::before,
.receipts li::after {
	content: '';
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--emerald)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23020617' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 12px no-repeat;
}

/* Parked: the solver's three cards, down to .sc.in .checks li::before (see
 * the README). The page doesn't have them for now. */
.solver-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 1200px;
	margin: clamp(56px, 9vh, 104px) auto 0;
}

.sc {
	padding: 18px 18px 26px;
	border: 1px solid rgba(242, 240, 235, 0.08);
	border-radius: 26px;
	/* solid, so the sky's eyes stay behind it */
	background: #0b1124;
}

.sc h3 {
	margin: 24px 6px 10px;
	font: 600 clamp(20px, 1.7vw, 25px) / 1.15 var(--font-head);
	letter-spacing: -0.02em;
}

.sc p {
	margin: 0 6px;
	font: 400 15.5px/1.6 var(--font-ui);
	color: var(--slate300);
}

/* each card's picture sits in a panel of the same height */
.ladder,
.bytes,
.checks {
	min-height: 236px;
	margin: 0;
	padding: 16px;
	border-radius: 18px;
	background: #060a1a;
}

/* Five questions: the campaign types film's ladder. */
.ladder {
	display: grid;
	align-content: center;
	gap: 5px;
	list-style: none;
}

.ladder li {
	--col: var(--slate500);
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 6px 10px 6px 7px;
	border-radius: 12px;
	font: 500 14px/1.2 var(--font-ui);
	color: var(--slate400);
	transition:
		background-color 0.15s,
		color 0.15s,
		box-shadow 0.15s;
}

.ladder li svg {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	opacity: 0.5;
	transition: opacity 0.15s;
}

.ladder li.lit {
	background: rgba(242, 240, 235, 0.08);
	color: var(--paper);
}

.ladder li.win {
	background: color-mix(in srgb, var(--col) 20%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--col) 70%, transparent);
	color: var(--paper);
}

.ladder li.lit svg,
.ladder li.win svg {
	opacity: 1;
}

.ladder li.win::after {
	content: 'Plays';
	margin-left: auto;
	padding: 5px 7px;
	border-radius: 6px;
	background: var(--col);
	color: var(--night);
	font: 800 10px/1 var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Byte for byte: a decision's bytes on the screen and behind the avails. */
.bytes {
	position: relative;
	display: grid;
	align-content: center;
	gap: 8px;
	overflow: hidden;
}

.bytes-label {
	font: 700 10px/1 var(--font-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate500);
}

.bytes-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 5px;
	margin-bottom: 10px;
	font: 500 14px/1.6 var(--font-mono);
	color: var(--violet3);
}

.byte {
	padding: 0 2px;
	border-radius: 3px;
	transition:
		background-color 0.12s,
		color 0.12s;
}

.byte.on {
	background: var(--amber);
	color: var(--night);
}

.bytes-stamp {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 5px 10px 3px;
	border: 3px solid var(--pink);
	border-radius: 8px;
	color: var(--pink);
	font: 400 22px/1 var(--font-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transform: rotate(-8deg);
	opacity: 0;
}

.sc.in .bytes-stamp {
	animation: stamp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
}

@keyframes stamp {
	from {
		opacity: 0;
		transform: rotate(-8deg) scale(1.8);
	}
	to {
		opacity: 1;
		transform: rotate(-8deg) scale(1);
	}
}

/* Proven every night: the soak's checks, ticking green one after another. */
.checks {
	display: grid;
	align-content: center;
	gap: 12px;
	padding: 18px 20px;
	list-style: none;
}

.checks li {
	display: flex;
	align-items: center;
	gap: 11px;
	font: 500 14.5px/1.2 var(--font-ui);
	color: var(--slate300);
}

.checks li::before {
	width: 20px;
	height: 20px;
	transform: scale(0);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
	transition-delay: calc(0.7s + var(--i, 0) * 0.22s);
}

.sc.in .checks li::before {
	transform: scale(1);
}

/* The solver film's play button, in paper on the night */
.solver-watch {
	margin: clamp(36px, 6vh, 64px) 0 0;
	text-align: center;
}

.solver-watch .watch {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
}

.solver-watch .watch:hover {
	background: #fff;
}

.solver-watch .watch-icon {
	color: var(--paper);
}

.solver-close {
	margin: clamp(64px, 11vh, 120px) 0 0;
	text-align: center;
	font: 700 clamp(28px, 3.6vw, 60px) / 1.1 var(--font-head);
	letter-spacing: -0.025em;
}

.solver-close em {
	font-style: normal;
	background: var(--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---- Hand-offs: the line at the end of a beat that leads into the next ------------- */
.handoff {
	margin: clamp(24px, 3.6vh, 36px) 0 0;
	font: 600 clamp(18px, 1.55vw, 24px) / 1.35 var(--font-head);
	letter-spacing: -0.015em;
	color: var(--ink);
	text-wrap: balance;
}

.handoff::before {
	content: '';
	display: block;
	width: 44px;
	height: 4px;
	margin-bottom: 16px;
	border-radius: 2px;
	background: var(--brand);
}

/* ---- The loop, then the turn: one campaign, played by the clock, then the people --- */
/* Parked for now, with its markup in parked/loop-and-turn.html; these styles
 * (and .story's and .pace's further down) are kept for when it comes back.
 * On a laptop, the two beats scroll past on the left and the card stays put on
 * the right; it flips from one way to the other as the turn comes in. */
.story {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	grid-template-areas:
		'loop pin'
		'turn pin';
	column-gap: clamp(36px, 5vw, 96px);
	max-width: 1360px;
	margin: 0 auto;
	padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(48px, 10vh, 120px);
}

.beat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 92vh;
}

.beat-loop {
	grid-area: loop;
}

.beat-turn {
	grid-area: turn;
}

.story h2 {
	font-size: clamp(34px, 3.7vw, 64px);
}

.story .kicker {
	color: var(--slate500);
}

/* the impressions buyer's pink, deep enough to read on white */
.beat-turn .kicker,
.payoff .kicker {
	color: #be185d;
}

.story .lead,
.platform .lead,
.book .lead,
.payoff .lead,
.moving .lead {
	color: var(--slate600);
}

.beat .lead {
	margin-left: 0;
	margin-right: 0;
}

.pace-pin {
	grid-area: pin;
}

/* pinned, it has to fit the window with the nav and the buyer above it */
.pace-pin .pace-chart {
	height: clamp(180px, 27vh, 280px);
}

/* and on a laptop with a short window, it squeezes up a little more */
@media (min-width: 981px) and (max-height: 820px) {
	.pace-pin .pace {
		padding: 20px 24px;
	}

	.pace-pin .pace-buyer {
		--bh: 84px;
	}

	.pace-pin .pace-chart {
		height: clamp(150px, 22vh, 280px);
		margin-top: 18px;
	}
}

/* One campaign's day, paced both ways. The impressions buyer stands on top. */
.pace {
	position: sticky;
	/* centred in the window, under the nav and the buyer (audience.js) */
	top: var(--pace-top, 160px);
	margin: clamp(96px, 14vh, 140px) 0 0;
	padding: clamp(18px, 2.4vw, 32px);
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: clamp(24px, 2.6vw, 34px);
	background: #fff;
	box-shadow:
		0 30px 70px -24px rgba(15, 23, 42, 0.16),
		0 2px 6px rgba(15, 23, 42, 0.04);
}

.pace-buyer {
	--bh: clamp(84px, 9vw, 116px);
	position: absolute;
	right: clamp(28px, 7%, 84px);
	/* feet on the card's edge: the box runs a little below them */
	bottom: calc(100% - var(--bh) * 0.023);
	width: calc(var(--bh) * 0.481);
	height: var(--bh);
}

.pace-buyer svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.pace-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
}

.pace-modes {
	display: inline-flex;
	gap: 2px;
	padding: 4px;
	border-radius: 14px;
	background: #f1f5f9;
}

.pace-modes button {
	height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: none;
	font: 600 14px/1 var(--font-ui);
	color: var(--slate600);
	cursor: pointer;
	transition:
		background-color 0.25s,
		color 0.25s,
		box-shadow 0.25s;
}

.pace-modes button:hover {
	color: var(--ink);
}

.pace-modes button[aria-pressed='true'] {
	background: #fff;
	color: var(--ink);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.1),
		0 4px 12px rgba(15, 23, 42, 0.06);
}

.pace-modes button[data-mode='crowd'][aria-pressed='true'] {
	color: #be185d;
}

.pace-goal {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font: 700 12px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate700);
}

.pace-goal::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pink);
}

.pace-goal span {
	color: var(--slate400);
}

/* The day: the screen's audience behind, a stack of coins for each hour's
 * plays in front. Coins are sized off the chart's width (cqw). */
.pace-chart {
	position: relative;
	height: clamp(220px, 25vw, 300px);
	margin-top: clamp(22px, 3vw, 34px);
	border-bottom: 1px solid #e2e8f0;
	container-type: inline-size;
}

.pace-label {
	position: absolute;
	left: 0;
	top: 0;
	font: 700 10.5px/1 var(--font-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--slate400);
}

.pace-curve {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.pace-area {
	fill: rgba(236, 72, 153, 0.07);
}

.pace-line {
	fill: none;
	stroke: rgba(236, 72, 153, 0.45);
	stroke-width: 2;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

/* a few hours' audiences, on the curve or just over the coins (audience.js) */
.pace-tag {
	position: absolute;
	left: var(--x);
	top: var(--y);
	z-index: 1;
	padding: 5px 8px;
	border-radius: 7px;
	background: var(--ink);
	color: var(--paper);
	font: 600 11px/1 var(--font-mono);
	white-space: nowrap;
	translate: -50% calc(-100% - 9px);
}

.pace-tag::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 100%;
	border: 5px solid transparent;
	border-top-color: var(--ink);
	translate: -50% 0;
}

.pace-cols {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(24, minmax(0, 1fr));
}

.pace-col {
	/* --d is the hour's audience as a coin's diameter, 0 to 1 */
	--size: max(3px, calc(min(3.3cqw, 30px) * var(--d)));
	position: relative;
}

.pace-col i {
	position: absolute;
	left: 50%;
	bottom: calc(3px + var(--k) * (var(--size) + 2px));
	width: var(--size);
	height: var(--size);
	margin-left: calc(var(--size) / -2);
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, #fbcfe8, var(--pink) 55%, #be185d);
	box-shadow: 0 1px 2px rgba(190, 24, 93, 0.3);
	scale: 0;
	transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) var(--t, 0s);
}

.pace-col i.on {
	scale: 1;
}

.pace-axis {
	position: relative;
	height: 12px;
	margin-top: 10px;
	font: 600 11px/1 var(--font-mono);
	color: var(--slate400);
}

.pace-axis span {
	position: absolute;
	top: 0;
	translate: -50% 0;
}

.pace-axis span:nth-child(1) {
	left: 0;
	translate: 0;
}

.pace-axis span:nth-child(2) {
	left: 25%;
}

.pace-axis span:nth-child(3) {
	left: 50%;
}

.pace-axis span:nth-child(4) {
	left: 75%;
}

.pace-axis span:nth-child(5) {
	left: 100%;
	translate: -100% 0;
}

.pace-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px clamp(28px, 4vw, 56px);
	margin-top: clamp(26px, 3.4vw, 40px);
}

.pace-stat {
	display: grid;
	gap: 8px;
	margin: 0;
}

.pace-stat > .pace-num {
	font: 400 clamp(38px, 4vw, 58px) / 1 var(--font-display);
	letter-spacing: 0.01em;
	color: var(--ink);
	transition: color 0.3s;
}

.pace-what {
	font: 500 14px/1.4 var(--font-ui);
	color: var(--slate600);
}

.pace-what b {
	font-weight: 700;
	color: var(--ink);
}

.pace[data-mode='crowd'] .pace-stat > .pace-num {
	color: #be185d;
}

.pace-stamp {
	margin-left: auto;
	padding: 8px 14px 6px;
	border: 3px solid var(--pink);
	border-radius: 10px;
	color: var(--pink);
	font: 400 clamp(20px, 2.1vw, 28px) / 1 var(--font-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transform: rotate(-8deg);
	opacity: 0;
}

.pace[data-mode='crowd'] .pace-stamp {
	animation: stamp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

.pace-note {
	max-width: 62em;
	margin: clamp(20px, 2.6vw, 28px) 0 0;
	font: 400 12.5px/1.55 var(--font-ui);
	color: var(--slate500);
}

/* ---- The platform: what's around the solver, on the page's light ground ---------- */
.platform {
	padding: clamp(96px, 15vh, 168px) var(--gutter) clamp(96px, 15vh, 160px);
}

.platform-head {
	max-width: 52rem;
	margin: 0 auto;
	text-align: center;
}

/* the share-of-voice buyer's violet, deep enough to read on white */
.platform .kicker {
	color: #6d28d9;
}

.feats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 1200px;
	margin: clamp(48px, 8vh, 88px) auto 0;
	padding: 0;
	list-style: none;
}

.feat {
	padding: 26px 26px 30px;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);
}

.feat h3 {
	margin: 22px 0 8px;
	font: 600 clamp(19px, 1.5vw, 22px) / 1.2 var(--font-head);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.feat p {
	margin: 0;
	font: 400 15.5px/1.6 var(--font-ui);
	color: var(--slate600);
	text-wrap: pretty;
}

/* each feature's icon in the logomark's 96×64 frame, still, the gradient
 * starting somewhere different on each */
.feat-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 40px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--paper);
}

.feat-icon::before {
	padding: 3px;
	animation: none;
}

.feat:nth-child(2) .feat-icon::before {
	--turn: 60deg;
}

.feat:nth-child(3) .feat-icon::before {
	--turn: 120deg;
}

.feat:nth-child(4) .feat-icon::before {
	--turn: 180deg;
}

.feat:nth-child(5) .feat-icon::before {
	--turn: 240deg;
}

.feat:nth-child(6) .feat-icon::before {
	--turn: 300deg;
}

.feat-icon svg {
	position: relative;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* the proof of play film's button, under the features */
.platform-watch {
	margin: clamp(40px, 6.5vh, 64px) 0 0;
	text-align: center;
}

.platform-watch .watch {
	margin: 0;
}

/* ---- Booking a demo, before the end ------------------------------------------------ */
.book {
	padding: 0 var(--gutter) clamp(96px, 15vh, 168px);
	text-align: center;
}

.book h2 {
	max-width: 13em;
	margin: 0 auto;
}

.book .demo {
	margin-top: clamp(28px, 4.5vh, 44px);
}

/* UrbanIQ: on the page's light ground, across its width, beside its audience
 * agent on a street at dusk, counting, and what it sends. Parked, down to
 * .uiq-foot::before and the phone's .uiq rules (see the README). */
.paired {
	padding: clamp(96px, 15vh, 168px) var(--gutter) clamp(88px, 14vh, 152px);
}

.uiq {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(32px, 5vw, 88px);
	max-width: 1440px;
	margin: 0 auto;
	color: var(--ink);
}

.uiq-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 14px 6px 6px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.3);
	color: var(--slate700);
	font: 700 12px/1 var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* UrbanIQ's mark, white on its own violet to pink */
.uiq-badge svg {
	width: 26px;
	height: 26px;
	padding: 4px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--violet), var(--pink));
	fill: #fff;
}

.uiq h2 {
	margin: 24px 0 18px;
	font: 600 clamp(30px, 3.3vw, 54px) / 1.04 var(--font-head);
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.uiq-copy > p:not(.uiq-badge) {
	max-width: 34em;
	margin: 0;
	font: 400 clamp(16px, 1.2vw, 18px) / 1.6 var(--font-ui);
	color: var(--slate600);
	text-wrap: pretty;
}

.uiq-points {
	display: grid;
	gap: 11px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.uiq-points li {
	display: flex;
	align-items: center;
	gap: 11px;
	font: 500 15px/1.3 var(--font-ui);
	color: var(--slate700);
}

/* the street at dusk, a picture of its own on the light page */
.uiq-street {
	position: relative;
	aspect-ratio: 640 / 440;
	border-radius: clamp(20px, 2.4vw, 32px);
	background: linear-gradient(#0d1430, #060a1a 70%);
	box-shadow: 0 34px 64px -32px rgba(15, 23, 42, 0.5);
	overflow: hidden;
}

.uiq-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* the agent's name, over its box on the street (audience.js places it) */
.uiq-agent {
	position: absolute;
	left: 0;
	top: 0;
	padding: 5px 8px;
	border: 1px solid rgba(242, 240, 235, 0.14);
	border-radius: 7px;
	background: rgba(2, 6, 23, 0.7);
	font: 700 9.5px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate300);
	white-space: nowrap;
	translate: 0 -100%;
}

/* what Vlooh sees: the screen's audience, live */
.uiq-panel {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 232px;
	padding: 15px 16px 14px;
	border-radius: 16px;
	background: #fff;
	color: var(--slate900);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.uiq-where {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	font: 700 10px/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--slate500);
	white-space: nowrap;
}

.uiq-live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #16a34a;
}

.uiq-live::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: live 1.6s ease-in-out infinite;
}

@keyframes live {
	50% {
		opacity: 0.25;
	}
}

.uiq-counts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 13px 0 14px;
}

.uiq-counts p {
	margin: 0;
	font: 500 12px/1.2 var(--font-ui);
	color: var(--slate500);
}

.uiq-counts b {
	display: block;
	margin-bottom: 3px;
	font: 400 30px/1 var(--font-display);
	color: var(--ink);
}

.uiq-counts .uiq-watch {
	color: #be185d;
}

.uiq-label {
	margin: 0 0 7px;
	font: 700 9.5px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate400);
}

/* the day so far, measured; the hours to come, the forecast in outline */
.uiq-bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 46px;
}

.uiq-bars i {
	flex: 1;
	height: calc(var(--v) * 100%);
	border-radius: 2px 2px 0 0;
	background: #f9a8d4;
}

.uiq-bars i.now {
	background: #be185d;
}

.uiq-bars i.ahead {
	background: none;
	box-shadow: inset 0 0 0 1px #fbcfe8;
}

.uiq-foot {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 11px 0 0;
	font: 600 11.5px/1 var(--font-ui);
	color: var(--slate600);
}

.uiq-foot::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--violet), var(--pink));
}

/* ---- The payoff: three cards on white, sold, played, proved ------------------------ */
/* Parked, with moving over, down to .reasons svg (see the README). The page
 * doesn't have them for now. The .demo rules after them are the book
 * section's. */
.payoff {
	padding: clamp(96px, 15vh, 168px) var(--gutter) clamp(72px, 12vh, 136px);
}

.payoff-head,
.moving-head {
	max-width: 52rem;
	margin: 0 auto;
	text-align: center;
}

.platform h2 em,
.book h2 em,
.payoff h2 em {
	font-style: normal;
	background: linear-gradient(90deg, var(--violet), var(--pink), var(--amber));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.payoff-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 1200px;
	margin: clamp(48px, 8vh, 80px) auto 0;
}

.ic {
	padding: 18px 18px 26px;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 20px 50px -26px rgba(15, 23, 42, 0.2);
}

.ic h3 {
	margin: 24px 6px 10px;
	font: 600 clamp(20px, 1.7vw, 25px) / 1.15 var(--font-head);
	letter-spacing: -0.02em;
}

.ic p {
	margin: 0 6px;
	font: 400 15.5px/1.6 var(--font-ui);
	color: var(--slate600);
}

.spots,
.quote,
.receipts {
	position: relative;
	min-height: 236px;
	margin: 0;
	padding: 18px;
	border-radius: 18px;
	background: #f5f4f0;
}

/* The campaign's spots, a third of them handed back to sell again. */
.spots {
	display: grid;
	align-content: center;
	gap: 16px;
}

.spots-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 6px;
}

.spots-grid i {
	aspect-ratio: 1;
	border-radius: 6px;
	background: #e4e2dc;
}

.spots-grid i.camp {
	background: var(--pink);
}

.ic.in .spots-grid i.back {
	animation: sell 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both;
	animation-delay: calc(0.9s + var(--k) * 0.11s);
}

@keyframes sell {
	0%,
	40% {
		background: var(--pink);
		scale: 1;
	}
	48% {
		background: var(--pink);
		scale: 0.15;
	}
	52% {
		background: var(--emerald);
		scale: 0.15;
	}
	100% {
		background: var(--emerald);
		scale: 1;
	}
}

.spots-key {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	font: 600 12px/1 var(--font-ui);
	color: var(--slate600);
}

.spots-key span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.spots-key span::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--pink);
}

.spots-key span:last-child::before {
	background: var(--emerald);
}

/* A quote from the avails, in impressions. */
.quote {
	display: grid;
	align-content: center;
	justify-items: start;
}

.quote-where {
	font: 700 10.5px/1 var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--slate500);
}

.quote-big {
	margin-top: 16px;
	font: 400 54px/1 var(--font-display);
	letter-spacing: 0.01em;
	color: var(--ink);
}

.quote-small {
	margin-top: 7px;
	font: 700 12px/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #be185d;
}

.quote-plays {
	justify-self: stretch;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e2dfd8;
	font: 500 13.5px/1.4 var(--font-ui);
	color: var(--slate600);
}

.quote-fits {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px 6px 7px;
	border-radius: 999px;
	background: #d1fae5;
	color: #047857;
	font: 700 11px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	scale: 0;
}

.quote-fits::before {
	content: '';
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--emerald)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 10px no-repeat;
}

.ic.in .quote-fits {
	scale: 1;
	transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1s;
}

/* Proof of play, with the people each play was credited with. */
.receipts {
	display: grid;
	align-content: center;
	gap: 7px;
	list-style: none;
}

.receipts li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 12px;
	padding: 9px 11px;
	border-radius: 10px;
	background: #fff;
	font: 500 12.5px/1 var(--font-mono);
	color: var(--slate700);
	opacity: 0;
	translate: 0 8px;
	transition:
		opacity 0.4s,
		translate 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
	transition-delay: calc(0.6s + var(--i, 0) * 0.22s);
}

.receipts li > :nth-child(3) {
	font-weight: 700;
	color: #be185d;
}

.receipts li::after {
	width: 18px;
	height: 18px;
}

.receipts .receipts-total {
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: 4px;
	background: var(--ink);
	color: var(--paper);
}

.receipts .receipts-total::after {
	content: none;
}

.receipts .receipts-total > :nth-child(2) {
	font-weight: 700;
	color: #f9a8d4;
}

.ic.in .receipts li {
	opacity: 1;
	translate: 0;
}

/* ---- Moving over: everything you sell today, and how quick the switch is ---------- */
.moving {
	padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(96px, 15vh, 168px);
}

.moving .kicker {
	color: #6d28d9;
}

/* the four reasons it's quick */
.reasons {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	max-width: 1200px;
	margin: clamp(48px, 8vh, 80px) auto 0;
	padding: 0;
	list-style: none;
}

.reasons li {
	display: grid;
	align-content: start;
	gap: 22px;
	padding: 22px 22px 26px;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 20px 50px -26px rgba(15, 23, 42, 0.2);
	font: 600 clamp(17px, 1.35vw, 20px) / 1.3 var(--font-head);
	letter-spacing: -0.015em;
	color: var(--ink);
	text-wrap: balance;
}

.reasons svg {
	width: 48px;
	height: 48px;
	padding: 11px;
	border-radius: 14px;
	background: #f5f3ff;
	fill: none;
	stroke: #6d28d9;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* the call to action */
.demo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: clamp(56px, 9vh, 96px) auto 0;
	text-align: center;
}

.demo-cta {
	display: inline-flex;
	align-items: center;
	height: 54px;
	padding: 0 30px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font: 600 17px/1 var(--font-ui);
	text-decoration: none;
	transition:
		translate 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
		background 0.25s;
}

.demo-cta:hover {
	background: #26262a;
	translate: 0 -1px;
}

.demo-cta:focus-visible {
	outline: 2px solid var(--violet);
	outline-offset: 3px;
}

.demo p {
	margin: 0;
	font: 500 clamp(15px, 1.15vw, 17px) / 1.5 var(--font-ui);
	color: var(--slate600);
}

/* ---- The end: the logo sting, in the films' night -------------------------------- */
.sting {
	position: relative;
	overflow: clip;
	min-height: 86vh;
	margin: 0 var(--gutter) var(--gutter);
	padding: 16vh var(--gutter) 14vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: clamp(24px, 3vw, 40px);
	background: radial-gradient(130% 100% at 50% 125%, var(--violet9) 0%, var(--indigo) 40%, var(--night) 75%);
	color: var(--paper);
	--pupil: var(--night);
}

.lockup-big {
	font-size: clamp(64px, 11vw, 168px);
	gap: 0.3em;
}

.rule {
	display: block;
	width: clamp(240px, 46vw, 720px);
	height: 6px;
	margin: clamp(22px, 3.4vh, 40px) 0 clamp(18px, 2.6vh, 30px);
	border-radius: 3px;
	background: var(--brand);
}

.tagline {
	margin: 0;
	font: 700 clamp(24px, 2.8vw, 44px) / 1.1 var(--font-head);
	letter-spacing: -0.02em;
}

.tagline em {
	font-style: normal;
	color: var(--pink);
}

/* ---- The films, in a popup (film.js) ---------------------------------------------- */
.film {
	/* as big as fits, at the films' 16:9, leaving room for the close button */
	width: min(100vw - 2 * var(--gutter), 1280px, (100dvh - 132px) * 16 / 9);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: none;
	overflow: visible;
	animation: film-in 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.film::backdrop {
	background: rgba(2, 6, 23, 0.82);
	backdrop-filter: blur(12px);
	animation: fade-in 0.3s ease-out;
}

.film.closing {
	animation: film-out 0.22s ease-in forwards;
}

.film.closing::backdrop {
	animation: fade-out 0.22s ease-in forwards;
}

.film-video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: clamp(10px, 1.4vw, 20px);
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.film-close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition:
		background 0.2s,
		rotate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.film-close:hover {
	background: rgba(255, 255, 255, 0.22);
	rotate: 90deg;
}

.film-close svg {
	width: 16px;
	height: 16px;
}

@keyframes film-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.94);
	}
}

@keyframes film-out {
	to {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

@keyframes fade-out {
	to {
		opacity: 0;
	}
}

/* ---- Phones ------------------------------------------------------------------------ */
@media (max-width: 640px) {
	.feats {
		grid-template-columns: minmax(0, 1fr);
		max-width: 30rem;
	}

	.feat {
		padding: 22px 22px 26px;
	}

	.nav {
		padding-top: 12px;
	}

	.nav .lockup {
		font-size: 24px;
	}

	.cta {
		display: none;
	}

	.sting {
		min-height: 70vh;
	}

	.hoops li {
		font-size: 13px;
	}

	.pace-buyer {
		--bh: 76px;
	}

	.pace-modes button {
		padding: 0 12px;
	}

	.pace-tag[data-hour='7'] {
		display: none;
	}

	.pace-stamp {
		margin-left: 0;
	}

	.uiq-street {
		aspect-ratio: 1 / 1.08;
	}

	.uiq-panel {
		top: 12px;
		right: 12px;
		width: 204px;
		padding: 12px 13px 11px;
	}

	.uiq-counts b {
		font-size: 26px;
	}

	.ways li {
		height: 42px;
		padding-right: 15px;
		font-size: 14px;
	}

	.ways svg {
		width: 28px;
		height: 28px;
	}

	/* each reason a row: its icon, then the words */
	.reasons {
		grid-template-columns: minmax(0, 1fr);
		max-width: 30rem;
		gap: 12px;
	}

	.reasons li {
		grid-template-columns: 48px minmax(0, 1fr);
		align-items: center;
		gap: 16px;
		padding: 16px 18px 16px 16px;
		border-radius: 22px;
		text-align: left;
	}
}

@media (max-width: 980px) {
	.solver-cards,
	.payoff-cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 34rem;
	}

	/* the beats and the card one after another, the card no longer pinned */
	.story {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			'loop'
			'pin'
			'turn';
		max-width: 44rem;
		text-align: center;
	}

	.beat {
		min-height: 0;
	}

	.beat-loop {
		padding-top: clamp(32px, 6vh, 64px);
	}

	.beat-turn {
		padding-top: clamp(56px, 9vh, 96px);
	}

	.beat .lead {
		margin-left: auto;
		margin-right: auto;
	}

	.story .handoff::before {
		margin: 0 auto 16px;
	}

	.pace {
		position: relative;
		top: auto;
		text-align: left;
	}

	.uiq {
		grid-template-columns: minmax(0, 1fr);
		max-width: 40rem;
	}
}

/* the features and the four reasons two by two on a tablet; a phone has them
 * one under another */
@media (min-width: 641px) and (max-width: 980px) {
	.feats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 44rem;
	}

	.reasons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 40rem;
	}
}
