/* Keynote Section 02 — image-led reframe. */
.ys-landing--speaker .ks02 {
	--ks02-clay: #b84e2a;
	--ks02-cream: #fbf6ee;
	--ks02-ink: #1f1013;
	--ks02-progress: 0;
	background: #efdfc7;
	color: var(--ks02-ink);
	isolation: isolate;
	min-height: max(46rem, 100vh);
	overflow: clip;
	padding: 0;
	position: relative;
}

.ys-landing--speaker .ks02::before {
	display: none;
}

.ks02-copy {
	box-sizing: border-box;
	display: grid;
	grid-template-rows: auto 1fr auto;
	inset: 0;
	min-height: max(46rem, 100vh);
	padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem) clamp(2.25rem, 5vw, 4.5rem);
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.ks02-topline {
	align-items: flex-start;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.ys-landing--speaker .ks02-index {
	color: var(--ks02-clay);
	flex-shrink: 0;
}

.ks02-count {
	align-items: center;
	display: flex;
	gap: clamp(0.85rem, 1.8vw, 1.5rem);
}

.ks02-tallies {
	align-items: center;
	display: flex;
	gap: clamp(0.18rem, 0.42vw, 0.38rem);
}

.ks02-tallies span {
	background: currentColor;
	display: block;
	height: clamp(1.6rem, 3.2vw, 2.8rem);
	opacity: 0.12;
	transform: scaleY(0.35);
	transform-origin: center bottom;
	transition: opacity 220ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
	width: 0.12rem;
}

.ks02-tallies span:nth-child(5n) {
	margin-right: clamp(0.32rem, 0.7vw, 0.65rem);
	transform: rotate(-14deg) scaleY(0.35);
}

.ks02-tallies span.is-active {
	opacity: 0.82;
	transform: scaleY(1);
}

.ks02-tallies span:nth-child(5n).is-active {
	transform: rotate(-14deg) scaleY(1.12);
}

.ks02-twenty-one {
	align-items: center;
	border: 0.16rem solid var(--ks02-clay);
	border-radius: 50%;
	color: var(--ks02-clay);
	display: inline-flex;
	font-size: clamp(0.8rem, 1.1vw, 1rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	height: clamp(2.7rem, 4.6vw, 4rem);
	justify-content: center;
	opacity: 0;
	transform: rotate(-8deg) scale(0.55);
	transition: opacity 320ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
	width: clamp(2.7rem, 4.6vw, 4rem);
}

.ks02-twenty-one.is-active {
	opacity: 1;
	transform: rotate(-8deg) scale(1);
}

.ks02-message {
	align-self: center;
	max-width: 76rem;
	padding-block: clamp(5rem, 12vh, 9rem) clamp(2rem, 5vh, 4rem);
}

.ys-landing--speaker .ks02-title {
	font-style: normal;
	margin: 0;
	max-width: 14ch;
}

.ys-landing--speaker .ks02-quote {
	margin-top: clamp(2rem, 4vw, 3.5rem);
	max-width: 52rem;
}

.ys-landing--speaker .ks02-quote blockquote {
	border: 0;
	color: inherit;
	font-family: "Instrument Sans", sans-serif;
	font-size: clamp(2rem, 4vw, 4.5rem);
	font-style: normal;
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.98;
	margin: 0;
	padding: 0;
}

.ys-landing--speaker .ks02-quote blockquote p {
	margin: 0;
}

.ks02-actions {
	align-items: flex-end;
	justify-content: flex-start;
	pointer-events: auto;
}

.ks02-media {
	clip-path: inset(1.5rem 1.5rem calc(100% - 7.2rem) calc(100% - 11.5rem) round 0.8rem);
	inset: 0;
	pointer-events: none;
	position: absolute;
	will-change: clip-path;
	z-index: 2;
}

.ks02-media > img {
	filter: grayscale(calc(1 - var(--ks02-progress))) brightness(calc(0.62 + (var(--ks02-progress) * 0.3)));
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center 46%;
	position: absolute;
	transform: scale(calc(1.14 - (var(--ks02-progress) * 0.14)));
	transition: filter 80ms linear;
	width: 100%;
	will-change: filter, transform;
}

.ks02-veil {
	background:
		linear-gradient(90deg, rgba(18, 7, 10, 0.78) 0%, rgba(18, 7, 10, 0.28) 58%, rgba(18, 7, 10, 0.2) 100%),
		linear-gradient(180deg, rgba(18, 7, 10, 0.3), transparent 35%, rgba(18, 7, 10, 0.56));
	inset: 0;
	position: absolute;
	z-index: 1;
}

.ks02-copy--image {
	color: var(--ks02-cream);
	z-index: 2;
}

.ks02-copy--image .ks02-index,
.ks02-copy--image .ks02-twenty-one {
	color: #f4525c;
}

.ks02-copy--image .ks02-twenty-one {
	border-color: #f4525c;
}

.ks02-copy--image .ys-landing__cta {
	color: var(--ks02-cream);
}

.ks02-copy--image .ys-landing__cta--secondary {
	border-color: currentColor;
}

@media screen and (max-width: 760px) {

	.ys-landing--speaker .ks02,
	.ks02-copy {
		min-height: max(42rem, 100vh);
	}

	.ks02-copy {
		padding-top: 1.5rem;
	}

	.ks02-topline {
		gap: 1rem;
	}

	.ks02-tallies {
		gap: 0.15rem;
	}

	.ks02-tallies span {
		height: 1.35rem;
		width: 0.08rem;
	}

	.ks02-tallies span:nth-child(5n) {
		margin-right: 0.2rem;
	}

	.ks02-message {
		padding-block: 4rem 2rem;
	}

	.ys-landing--speaker .ks02-title {
		max-width: 11ch;
	}

	.ys-landing--speaker .ks02-quote blockquote {
		font-size: clamp(1.85rem, 9vw, 3rem);
	}

	.ks02-actions .ys-landing__cta {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ks02-media {
		clip-path: inset(0);
	}

	.ks02-media > img {
		filter: brightness(0.88);
		transform: none;
	}

	.ks02-tallies span,
	.ks02-twenty-one {
		opacity: 1;
		transition: none;
	}

	.ks02-tallies span {
		transform: scaleY(1);
	}

	.ks02-tallies span:nth-child(5n) {
		transform: rotate(-14deg) scaleY(1.12);
	}

	.ks02-twenty-one {
		transform: rotate(-8deg) scale(1);
	}
}

@media (forced-colors: active) {

	.ks02-twenty-one {
		border-color: canvastext;
	}
}
