@property --on {
	syntax: "<number>";
	inherits: true;
	initial-value: 0;
}

@property --sweep {
	syntax: "<number>";
	inherits: true;
	initial-value: 0;
}

.cp-lead {
	position: relative;
	min-height: min(74svh, 44rem);
}
.cp-lead::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(46% 44% at 72% 48%, rgb(var(--channel-cta) / 0.1), transparent 70%);
}

.cp-lead__wrap {
	position: relative;
	display: grid;
	align-content: center;
	min-height: inherit;
}

.cp-lead__title { margin-top: clamp(1.3rem, 3vw, 2.1rem); }

.cp-lead__copy > *,
.cp-lead__actions { animation: cp-lead-rise 0.75s var(--ease-emphasis) backwards; }
.cp-lead__copy > :nth-child(2) { animation-delay: 0.08s; }
.cp-lead__copy > :nth-child(3) { animation-delay: 0.17s; }
.cp-lead__actions { animation-delay: 0.26s; }

@keyframes cp-lead-rise {
	from { opacity: 0; transform: translateY(18px); }
}

.cp-lead__stage {
	--open: 1;
	--t0: 14;
	--t1: 56;
	--r0: -6;
	--r1: -30;
	--f0: 1;
	--f1: 0.72;
	--gap: clamp(3.6rem, 4.6vw, 6.4rem);
	--fan: clamp(0.35rem, 0.7vw, 0.7rem);
	position: relative;
	align-self: center;
	aspect-ratio: 300 / 190;
	perspective: 1500px;
	pointer-events: none;
}
.js .cp-lead__stage { --open: 0; }

.cp-lead__deck {
	--dx: 0deg;
	--dy: 0deg;
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform:
		scale(calc(var(--f0) + (var(--f1) - var(--f0)) * var(--open)))
		translateY(calc(2 * var(--gap) * var(--open) * sin(calc((var(--t0) + (var(--t1) - var(--t0)) * var(--open)) * 1deg))))
		rotateX(calc((var(--t0) + (var(--t1) - var(--t0)) * var(--open)) * 1deg + var(--dy)))
		rotateZ(calc((var(--r0) + (var(--r1) - var(--r0)) * var(--open)) * 1deg + var(--dx)));
}
.cp-lead__plate {
	--p: clamp(0, calc((var(--open) - var(--d)) * var(--k)), 1);
	position: absolute;
	inset: 0;
	border: 1px solid rgb(var(--channel-cta) / calc(0.14 + var(--o) * 0.2));
	border-radius: 0.7rem;
	background: linear-gradient(148deg, rgb(var(--channel-cta) / 0.08), rgb(var(--channel-cta) / 0.015) 62%);
	color: rgb(var(--channel-cta) / 0.85);
	opacity: var(--o);
	transform: translate3d(calc(var(--z) * var(--fan) * var(--p)), 0, calc(var(--z) * var(--gap) * var(--p)));
}
.cp-lead__plate:nth-child(1) { --z: 4; --o: 1;    --d: 0;    --k: 1; }
.cp-lead__plate:nth-child(2) { --z: 3; --o: 0.92; --d: 0.07; --k: 1.075; }
.cp-lead__plate:nth-child(3) { --z: 2; --o: 0.84; --d: 0.14; --k: 1.163; }
.cp-lead__plate:nth-child(4) { --z: 1; --o: 0.76; --d: 0.21; --k: 1.266; }
.cp-lead__plate:nth-child(5) { --z: 0; --o: 0.68; --d: 0.28; --k: 1.389; }
.cp-lead__plate svg { width: 100%; height: 100%; opacity: clamp(0, calc(var(--p) * 2.6 - 0.15), 1); }
.cp-lead__plate svg * { vector-effect: non-scaling-stroke; }
.cp-lead__plate:nth-child(1) svg { opacity: 1; }

@media (min-width: 992px) {
	.cp-lead__wrap {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
		gap: clamp(1.75rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 4rem);
		padding-bottom: clamp(3rem, 8vw, 5rem);
	}
	.cp-lead__title { max-width: 19ch; }
	.cp-lead__sub { max-width: 40ch; }
	.cp-lead__copy { grid-area: 1 / 1; align-self: end; }
	.cp-lead__actions { grid-area: 2 / 1; align-self: start; }
	.cp-lead__stage { grid-area: 1 / 2 / 3 / 3; }
}
@media (max-width: 991px) {
	.cp-lead { min-height: min(86svh, 44rem); }
	.cp-lead::before { background: radial-gradient(64% 34% at 50% 62%, rgb(var(--channel-cta) / 0.1), transparent 70%); }
	.cp-lead__wrap { grid-template-rows: auto auto 1fr; margin-bottom: 1.5rem; }
	.cp-lead__sub { max-width: none; }
	.cp-lead__actions { margin-top: clamp(1.75rem, 4vw, 2.6rem); }
	.cp-lead__stage {
		--t0: 18;
		--t1: 60;
		--r0: -2;
		--r1: -6;
		--f1: 0.78;
		--gap: clamp(2.2rem, 6vw, 3.7rem);
		--fan: 0rem;
		order: 1;
		justify-self: center;
		width: min(17rem, 68vw);
		margin-top: clamp(4rem, 10vw, 7rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp-lead__copy > *,
	.cp-lead__actions { animation: none; }
	.js .cp-lead__stage { --open: 1; }
}

.cp-route {
	position: relative;
	background: var(--color-bg);
	padding-block: clamp(4rem, 10vw, 7rem);
}

.cp-route__title { margin-top: 1.3rem; max-width: 16ch; }
.cp-route__list { list-style: none; margin-top: clamp(2.5rem, 6vw, 4rem); padding: 0; }

.cp-route__row {
	--scr: 0;
	--on: var(--scr);
	position: relative;
	isolation: isolate;
	padding-block: clamp(1.6rem, 3.4vw, 2.4rem);
	border-top: 1px solid var(--color-border);
	transition: --on 0.25s linear;
}
.js .cp-route__row { cursor: pointer; }
.cp-route__row:last-child { border-bottom: 1px solid var(--color-border); }

@media (hover: hover) and (pointer: fine) {
	.cp-route__list:hover .cp-route__row { --on: 0; }
	.cp-route__list:hover .cp-route__row:hover { --on: 1; }

	.cp-route__row::before {
		content: "";
		position: absolute;
		left: calc(var(--cp-gutter) * -0.5);
		top: 0.9rem;
		bottom: 0.9rem;
		width: 2px;
		border-radius: 2px;
		background: var(--color-cta);
		box-shadow: 0 0 14px rgb(var(--channel-cta) / 0.55);
		transform: scaleY(var(--on));
		opacity: var(--on);
	}
}

.cp-route__body {
	max-width: 44ch;
	transform: translateX(calc(var(--on) * 0.45rem));
}

.cp-route__name {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: var(--weight-regular);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.cp-route__name a { color: var(--color-cta); }

.cp-route__case {
	margin-top: 0.7rem;
	font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem);
	line-height: 1.22;
	letter-spacing: -0.025em;
	color: color-mix(in srgb, var(--color-text-soft), var(--color-text) calc(var(--on) * 100%));
}

.cp-route__do {
	margin-top: 0.55rem;
	font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
	line-height: 1.6;
	color: var(--color-text-soft);
	opacity: calc(0.55 + var(--on) * 0.45);
}

.cp-route__layer {
	position: absolute;
	z-index: -1;
	right: clamp(0.5rem, 1.4vw, 1.5rem);
	top: 50%;
	width: clamp(9rem, 26vw, 17rem);
	color: var(--color-cta);
	opacity: calc(0.1 + var(--on) * 0.55);
	transform: translateY(-50%) rotate(-8deg) scale(calc(0.96 + var(--on) * 0.06));
	pointer-events: none;
}
.cp-route__layer * { vector-effect: non-scaling-stroke; }

.cp-route__cursor {
	position: absolute;
	right: 0;
	bottom: clamp(1.6rem, 3.4vw, 2.4rem);
	width: 1.2rem;
	color: var(--color-cta);
	opacity: calc(0.18 + var(--on) * 0.82);
	transform: translateY(calc(var(--on) * -0.22rem)) scale(calc(0.93 + var(--on) * 0.11));
	pointer-events: none;
}

@media (hover: none) {
	.cp-route__cursor {
		opacity: calc(var(--on) * var(--on));
		transform: translateY(calc(var(--on) * -0.42rem)) scale(calc(0.78 + var(--on) * 0.26));
	}
}

@media (max-width: 767px) {
	.cp-route__title { max-width: none; }
	.cp-route__body { max-width: 26ch; transform: none; }
	.cp-route__layer { right: 0; width: clamp(5.5rem, 30vw, 9rem); }
}

@media (prefers-reduced-motion: reduce) {
	.cp-route__body,
	.cp-route__cursor { transform: none; }
	.cp-route__layer { transform: translateY(-50%) rotate(-8deg); }
}

.cp-start { padding-block: clamp(4rem, 10vw, 7rem); }

.cp-start__title { margin-top: 1.3rem; }

.cp-start__list {
	list-style: none;
	display: grid;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding: 0;
}

.cp-start__item {
	--scr: 0;
	--on: var(--scr);
	--sweep: var(--on);
	transition: --on 0.18s var(--ease-out);
}

.cp-start__fig {
	width: clamp(8.5rem, 13vw, 10.5rem);
	color: var(--color-cta);
}

.cp-start__name {
	margin-top: clamp(1.4rem, 3vw, 2rem);
	font-size: clamp(1.15rem, 1rem + 0.45vw, 1.42rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.cp-start__text {
	margin-top: 0.75rem;
	max-width: 38ch;
	font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
	color: var(--color-text-soft);
}

.cp-fig__dot { fill: currentColor; stroke: none; transform: translateY(calc(var(--on) * -2.5px)); }
.cp-fig__arc {
	transform-box: fill-box;
	transform-origin: 50% 0;
	transform: scaleY(calc(0.6 + var(--on) * 0.75));
}

.cp-fig__cell { --k: 2.4; --p: clamp(0, calc((var(--on) - var(--d)) * var(--k)), 1); }
.cp-fig__cell:nth-child(1) { --p: 1; }
.cp-fig__cell:nth-child(2) { --d: 0; }
.cp-fig__cell:nth-child(3) { --d: 0.145; }
.cp-fig__cell:nth-child(4) { --d: 0.29; }
.cp-fig__cell:nth-child(5) { --d: 0.435; }
.cp-fig__cell:nth-child(6) { --d: 0.58; }

.cp-fig__box { opacity: calc(0.3 + var(--p) * 0.35); }
.cp-fig__fill {
	fill: currentColor;
	stroke: none;
	opacity: 0.5;
	transform-box: fill-box;
	transform-origin: 50% 100%;
	transform: scaleY(var(--p));
}

.cp-fig__ticks path { opacity: 0.5; }
.cp-fig__mark { fill: currentColor; stroke: none; transform: translateX(calc(var(--sweep) * 94px)); }

.cp-fig__tag {
	font-family: var(--font-mono);
	font-size: 7px;
	letter-spacing: 0.05em;
	fill: var(--color-text-soft);
	stroke: none;
}

.js .cp-fig__arc { stroke-dasharray: 82; stroke-dashoffset: 82; }
.js .cp-fig__rule { stroke-dasharray: 108; stroke-dashoffset: 108; }
.js .cp-fig__ticks path { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }

.cp-start__list.is-in .cp-fig__arc { animation: cp-fig-trace 1.05s var(--ease-out) 0.2s forwards; }
.cp-start__list.is-in .cp-fig__rule { animation: cp-fig-trace 0.85s var(--ease-out) 0.2s forwards; }
.cp-start__list.is-in .cp-fig__ticks path { animation: cp-fig-rise 0.5s var(--ease-emphasis) 0.6s forwards; }

@keyframes cp-fig-trace { to { stroke-dashoffset: 0; } }
@keyframes cp-fig-rise { to { transform: scaleY(1); } }

@media (hover: hover) and (pointer: fine) {
	.cp-start__item {
		transition-duration: 0.5s;
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2v16l4.2-4 2.8 5.5 2.8-1.3-2.7-5.3h5.4z' fill='%238b5cff' stroke='%230a0a0d' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto;
	}
	.cp-start__item:hover { --on: 1; transition-duration: 0.8s; }

	.cp-start__item:nth-child(3) { animation: cp-start-sweep 3.2s ease-in-out infinite paused; }
	.cp-start__item:nth-child(3):hover { animation-play-state: running; }
}

@keyframes cp-start-sweep {
	0%, 100% { --sweep: 0; }
	50%      { --sweep: 1; }
}

@media (min-width: 992px) {
	.cp-start__title { max-width: 18ch; }
	.cp-start__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: clamp(2rem, 4.5vw, 4.5rem);
	}
}

@media (max-width: 991px) {
	.cp-start__list { row-gap: clamp(2.6rem, 8vw, 3.6rem); justify-items: center; }
	.cp-start__item { text-align: center; }
	.cp-start__fig { width: clamp(7rem, 32vw, 9rem); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.js .cp-fig__arc,
	.js .cp-fig__rule { stroke-dashoffset: 0; }
	.js .cp-fig__ticks path { transform: none; }
}

.cp-talk { padding-block: clamp(4rem, 10vw, 7rem); }

.cp-talk__grid { display: grid; }

.cp-talk__title { margin-top: 1.3rem; max-width: 18ch; }

.cp-talk__lead { margin-top: 1.5rem; max-width: 52ch; }

.cp-talk__form {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(0.5rem, 2vw, 1.25rem);
	margin-top: clamp(2.2rem, 5vw, 3.2rem);
	max-width: 46rem;
	border-bottom: 1px solid var(--color-border);
}

.cp-talk__form::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--color-cta);
	box-shadow: 0 0 18px rgb(var(--channel-cta) / 0.45);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.5s var(--ease-emphasis);
}
.cp-talk__form:focus-within::after { transform: scaleX(1); }

.cp-talk__field {
	width: 100%;
	padding: 0.85rem 0;
	border: 0;
	background: none;
	font-size: clamp(1.02rem, 0.9rem + 0.6vw, 1.35rem);
	letter-spacing: -0.015em;
}
.cp-talk__field::placeholder { color: rgb(var(--channel-text) / 0.3); opacity: 1; }
.cp-talk__field:focus { outline: none; }

.cp-talk__send {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.2rem;
	border: 0;
	background: none;
	color: var(--color-cta);
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0.3;
	transition: opacity 0.35s var(--ease-out);
}
.cp-talk__send svg { width: 1.1rem; transition: transform 0.35s var(--ease-emphasis); }
.cp-talk__field:not(:placeholder-shown) ~ .cp-talk__send,
.cp-talk__send:focus-visible { opacity: 1; }
.cp-talk__send:hover svg { transform: translateX(4px); }
.cp-talk__send:focus-visible { border-radius: 2px; }

.cp-talk__alt {
	margin-top: 1.1rem;
	font-size: 0.92rem;
	color: var(--color-text-soft);
}
.cp-talk__alt a {
	display: inline-block;
	padding-block: 0.2rem;
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
	color: var(--color-text);
	transition: color 0.25s var(--ease-out);
}
.cp-talk__alt a:hover { color: var(--color-cta); }

.cp-talk__next { margin-top: clamp(2.75rem, 7vw, 4rem); }

.cp-talk__next-label {
	font-family: var(--font-mono);
	text-align: center;
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-cta);
}

.cp-talk__steps {
	list-style: none;
	margin-top: clamp(1.4rem, 3vw, 2rem);
	padding: 0;
	display: grid;
	gap: clamp(1.25rem, 2.6vw, 1.75rem);
}

.cp-talk__step {
	font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
	line-height: 1.6;
	color: var(--color-text-soft);
}
.cp-talk__step:first-child { color: var(--color-text); }

.cp-talk__when {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-cta);
}

@media (min-width: 992px) {
	.cp-talk__grid {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		column-gap: clamp(3rem, 7vw, 7rem);
	}
	.cp-talk__next {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: center;
		width: min(100%, 21rem);
		margin: 0 0 0 auto;
	}
}

@media (max-width: 767px) {
	.cp-talk__title { max-width: none; }
	.cp-talk__send { padding-inline: 0.5rem; }
	.cp-talk__send-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.cp-end {
	padding-bottom: clamp(4rem, 10vw, 7rem);
	text-align: center;
}

.cp-end__card {
	display: block;
	position: relative;
	max-width: 44rem;
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 2.9rem) clamp(1.5rem, 4.5vw, 2.75rem);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	color: var(--color-text);
	background:
		linear-gradient(180deg, rgb(var(--channel-text) / 0.05), transparent 30%),
		repeating-linear-gradient(90deg, rgb(var(--channel-text) / 0.015) 0 1px, transparent 1px 5px),
		radial-gradient(76% 54% at 50% 114%, rgb(var(--channel-cta) / 0.17), transparent 70%),
		var(--color-surface);
	box-shadow:
		0 7px 0 -1px var(--color-bg),
		0 7px 0 0 rgb(var(--channel-cta) / 0.2),
		0 15px 0 -2px var(--color-bg),
		0 15px 0 -1px rgb(var(--channel-cta) / 0.11),
		0 34px 64px -34px rgb(0 0 0 / 0.9);
	transition:
		box-shadow 0.45s var(--ease-emphasis),
		border-color 0.35s var(--ease-out);
}
.cp-end__card::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(152deg, rgb(var(--channel-cta) / 0.6), rgb(var(--channel-border)) 34%, rgb(var(--channel-border)) 66%, rgb(var(--channel-cta) / 0.36));
	-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, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

.cp-end__note {
	max-width: 44ch;
	margin-inline: auto;
	font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
	color: var(--color-text-soft);
}

.cp-end__go {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.55rem, 1.4vw, 0.9rem);
	margin-top: clamp(1rem, 2.4vw, 1.5rem);
	font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.032em;
}
.cp-end__ico {
	width: max(1.1rem, 0.52em);
	color: var(--color-cta);
	transition: transform 0.35s var(--ease-emphasis);
}

.cp-end__card:hover {
	border-color: rgb(var(--channel-cta) / 0.34);
	box-shadow:
		0 11px 0 -1px var(--color-bg),
		0 11px 0 0 rgb(var(--channel-cta) / 0.3),
		0 23px 0 -2px var(--color-bg),
		0 23px 0 -1px rgb(var(--channel-cta) / 0.18),
		0 42px 72px -34px rgb(0 0 0 / 0.95);
}
.cp-end__card:hover .cp-end__ico { transform: translateY(0.12em) scale(0.94); }

@media (hover: none) {
	.cp-end__card.is-live .cp-end__ico { animation: cp-end-tap 2.4s var(--ease-emphasis) infinite; }
}

@keyframes cp-end-tap {
	0%, 18%, 48%, 100% { transform: none; }
	9%, 27%            { transform: translateY(0.3em) scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
	.cp-end__card:hover .cp-end__ico { transform: none; }
}
