/* =============================================================
   SPEAKER — Dr Torty Sivill booking page
   Scoped to .spk. Uses brand tokens only.
   ============================================================= */

.spk :is(h1, h2, h3, h4) {
	text-transform: none;
}

.spk-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	align-items: center;
	column-gap: clamp(1.5rem, 4vw, 4rem);
	min-height: calc(100svh - var(--header-height));
	padding-block: var(--space-xl);
	padding-inline: max(var(--container-pad), calc((100% - var(--container-max)) / 2 + var(--container-pad)));
	overflow: clip;
	background: #10201c;
}

.spk-hero__stage {
	display: contents;
}

.spk-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 48%;
	transform: translateX(-6%) scale(1.04);
}

.spk-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(8, 16, 18, 0.9) 0%,
		rgba(8, 16, 18, 0.78) 30%,
		rgba(8, 16, 18, 0.28) 44%,
		rgba(8, 16, 18, 0) 54%
	);
	pointer-events: none;
}

.spk-hero__copy {
	grid-column: 1;
	position: relative;
	z-index: 2;
	max-width: 38rem;
	color: #fff;
}

.spk-hero .eyebrow {
	color: var(--color-orange-200);
}

.spk-hero h1 {
	color: #fff;
	font-size: clamp(2.4rem, 1.2rem + 2.8vw, 4.2rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.98;
	max-width: 14ch;
	margin-bottom: var(--space-md);
}

.spk-hero__lede {
	font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem);
	line-height: 1.5;
	max-width: 38rem;
	color: rgba(255, 255, 255, 0.94);
}

.spk-hero__bio {
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.78);
}

.spk-hero__stats {
	margin: 0 0 var(--space-sm);
	color: #fff;
	font-weight: 600;
}

.spk-hero__offer {
	margin: 0 0 var(--space-lg);
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.98rem;
	line-height: 1.45;
}

.spk-hero__stats strong {
	font-family: var(--font-heading);
	font-weight: 800;
}

.spk-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: 0;
}

.spk-hero__form {
	grid-column: 2;
	position: relative;
	z-index: 2;
	align-self: center;
	scroll-margin-top: calc(var(--header-height) + 16px);
}

.spk-hero .contact-form {
	margin: 0;
	padding: var(--space-lg);
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.spk-hero .contact-form__heading {
	font-size: 1.35rem;
}

.spk-hero .contact-form__textarea {
	min-height: 4.25rem;
}

.spk-venues {
	background: var(--color-bg);
	border-block: 1px solid var(--color-hairline);
	padding-block: var(--space-md);
}

.spk-venues__inner {
	display: flex;
	align-items: center;
	gap: var(--space-xl);
}

.spk-venues__label {
	margin: 0;
	flex: 0 0 auto;
	font-family: var(--font-label);
	font-size: var(--text-label);
	font-weight: var(--weight-label);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-teal-700);
}

.spk-venues__scroller {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.spk-venues__track {
	display: flex;
	width: max-content;
	animation: spk-marquee 42s linear infinite;
}

.spk-venues__scroller:hover .spk-venues__track,
.spk-venues__scroller:focus-within .spk-venues__track {
	animation-play-state: paused;
}

@keyframes spk-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.spk-venues__list {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 3.25rem;
	padding-right: 3.25rem;
	list-style: none;
	margin: 0;
}

.spk-venues__list a {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	color: var(--color-text-muted);
	text-decoration: none;
}

.spk-venues__list a:hover {
	color: var(--color-teal-700);
	text-decoration: none;
}

.spk-venues__list img {
	width: auto;
	object-fit: contain;
}

.spk-venues__list .is-tfm { height: 52px; }
.spk-venues__list .is-dsf { height: 58px; width: auto; border-radius: 6px; }
.spk-venues__list .is-jgi,
.spk-venues__list .is-ciig { height: 58px; width: auto; }
.spk-venues__list .is-oxbridge { height: 26px; width: auto; }
.spk-venues__list .is-aiuk { height: 54px; width: auto; }
.spk-venues__list .is-lv { height: 34px; width: auto; }

.spk-venues__word {
	display: block;
	max-width: 11rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--color-foreground);
	text-align: left;
}

.spk-talks {
	padding-top: var(--space-2xl);
	scroll-margin-top: calc(var(--header-height) + 12px);
}

.spk-talks__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xl);
}

.spk-talk {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	gap: var(--space-2xl);
	align-items: center;
	scroll-margin-top: calc(var(--header-height) + 16px);
}

.spk-talk:nth-child(even) .spk-talk__media {
	order: 2;
}

.spk-talk__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 22px;
	overflow: hidden;
	background: var(--color-teal-800);
	box-shadow: var(--shadow-lg);
}

.spk-talk__media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.spk-talk__session {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: var(--space-lg);
	height: 100%;
	padding: var(--space-xl);
	color: #fff;
	text-decoration: none;
	background:
		radial-gradient(420px 180px at 90% 0%, color-mix(in srgb, var(--color-orange-400) 55%, transparent), transparent 70%),
		var(--color-teal-700);
}

.spk-talk__session:hover {
	text-decoration: none;
	color: #fff;
}

.spk-talk__session-logo {
	width: auto;
	height: 88px;
	border-radius: 8px;
}

.spk-talk__session span {
	font-weight: 600;
	color: var(--color-orange-300);
}

.spk-talk__copy > .spk-talk__kind {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-label);
	font-size: var(--text-label);
	font-weight: var(--weight-label);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-orange-500);
}

.spk-talk h3 {
	font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: var(--space-sm);
}

.spk-talk__venue {
	margin: 0 0 var(--space-md);
	font-weight: 600;
	color: var(--color-teal-700);
}

.spk-talk__copy > p {
	color: var(--color-text-muted);
}

.spk-talk__copy > .spk-talk__venue {
	color: var(--color-teal-700);
}

.spk-talk__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md) var(--space-lg);
	margin: var(--space-lg) 0 0;
}

.spk-talk__actions a {
	font-weight: 600;
	text-decoration: none;
}

.spk-talk__actions a:hover {
	text-decoration: underline;
}

.spk-talk__book {
	color: var(--color-orange-600);
}

.spk-topics {
	max-width: 42rem;
	margin-bottom: var(--space-2xl);
}

.spk-topics h2 {
	margin-bottom: var(--space-sm);
	font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	scroll-margin-top: calc(var(--header-height) + 20px);
}

.spk-topics p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 1.05rem;
	line-height: 1.5;
}

.spk-voices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 4rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.spk-voices blockquote {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
}

.spk-voices p {
	margin: 0 0 var(--space-lg);
	font-family: var(--font-heading);
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.spk-voices footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
}

.spk-voices img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.spk-voices cite {
	display: block;
	font-style: normal;
	font-weight: 700;
	font-size: 0.95rem;
}

.spk-voices footer span span {
	display: block;
	margin-top: 2px;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: 1.35;
}

.spk-writing {
	padding-top: 0;
}

.spk-stories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}

.spk-story {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.15rem 1.2rem 0.95rem;
	color: inherit;
	text-decoration: none;
	background: var(--color-bg);
	border: 1px solid var(--color-hairline);
	border-radius: 6px;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition);
}

.spk-story:hover {
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow);
}

.spk-story__by {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
	color: var(--color-text-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.spk-story__mark {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.spk-story__title {
	font-family: var(--font-heading);
	font-size: clamp(1.15rem, 1rem + 0.4vw, 1.4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--color-heading);
}

.spk-story__dek {
	display: -webkit-box;
	margin-top: 0.65rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--color-text-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.spk-story__stats {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: auto;
	padding-top: 1.15rem;
	color: var(--color-text-muted);
	font-size: 0.82rem;
}

.spk-story__stats span {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
}

.spk-story__star {
	color: var(--color-orange-400);
}

.spk-story__save {
	margin-left: auto;
}

.spk-book {
	background:
		linear-gradient(160deg, var(--color-teal-50) 0%, var(--color-bg) 48%),
		var(--color-bg);
	scroll-margin-top: calc(var(--header-height) + 12px);
}

.spk-book__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: var(--space-3xl);
	align-items: start;
}

.spk-book h2 {
	font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	max-width: 16ch;
}

.spk-book__copy > p {
	max-width: 38rem;
	color: var(--color-text-muted);
}

.spk-book__points {
	margin: var(--space-lg) 0;
	padding: 0;
	list-style: none;
}

.spk-book__points li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-top: 1px solid var(--color-hairline);
}

.spk-book__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-orange-400);
}

.spk-book__mail {
	color: var(--color-text);
}

.spk-book .contact-form {
	margin: 0;
}

@media (max-width: 980px) {
	.spk-hero {
		display: block;
		min-height: 0;
		padding: 0;
	}

	.spk-hero__stage {
		display: block;
		position: relative;
		overflow: clip;
		padding-top: 46vw;
		background: #10201c;
	}

	.spk-hero__photo,
	.spk-hero__shade {
		top: 0;
		right: 0;
		bottom: auto;
		left: 0;
		width: 100%;
		height: 78vw;
		transform: none;
		object-position: 72% 32%;
	}

	.spk-hero__shade {
		background: linear-gradient(
			180deg,
			rgba(8, 16, 18, 0) 42%,
			rgba(8, 16, 18, 0.9) 100%
		);
	}

	.spk-hero__copy {
		display: block;
		min-height: 0;
		max-width: none;
		margin-top: 0;
		padding: 0 var(--container-pad) var(--space-lg);
		background: linear-gradient(180deg, transparent, #10201c 5.5rem), #10201c;
	}

	.spk-hero__form {
		padding: var(--space-lg) var(--container-pad) var(--space-xl);
		background: var(--color-bg);
	}

	.spk-head,
	.spk-voices,
	.spk-stories,
	.spk-book__grid,
	.spk-talk {
		grid-template-columns: 1fr;
	}

	.spk-talk:nth-child(even) .spk-talk__media {
		order: 0;
	}
}

@media (max-width: 700px) {
	.spk-voices,
	.spk-stories,
	.spk-book__grid {
		grid-template-columns: 1fr;
	}

	.spk-hero h1 {
		max-width: none;
		font-size: clamp(2rem, 1.4rem + 4vw, 2.8rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.spk-article:hover {
		transform: none;
	}

	.spk-venues__track {
		animation: none;
	}

	.spk-venues__scroller {
		overflow-x: auto;
	}
}
