/* Student talks section on the home page. Colors come from style.css. */
.talks-section {
	--talk-gradient: linear-gradient(90deg, var(--accent-500) 0%, var(--coral-400) 55%, var(--teal-500) 100%);
	--talk-gradient-v: linear-gradient(180deg, var(--accent-500) 0%, var(--coral-400) 55%, var(--teal-500) 100%);
	position: relative;
	scroll-margin-top: calc(var(--nav-height) - 2.5rem);
}

/* ------------------------------------------------------------ talk picker */
/* Four cards, one ribbon: each card's band is a slice of the same gradient, so together they read as one strip. */
/* The deck: the selected talk sits in the middle and larger, its neighbours either side,
   the remaining talk peeks from behind. A soft band underneath groups the four. */
.talk-deck {
	--card-w: 340px;
	--step: 345px;
	position: relative;
	margin-top: 0.6rem;
	padding: 2.6rem 0 1.6rem;
}

.talk-deck::before {
	content: "";
	position: absolute;
	inset: 0 -2rem;
	z-index: 0;
	border-radius: 28px;
	background:
		radial-gradient(ellipse 50% 70% at 50% 45%, rgba(240, 112, 120, 0.1), transparent 70%),
		linear-gradient(180deg, rgba(244, 233, 220, 0.6), rgba(244, 233, 220, 0.15));
	pointer-events: none;
}

.talk-picks {
	--talk-ribbon: linear-gradient(90deg, #a34900 0%, #e07b24 28%, #f07078 52%, #9a6b86 74%, #37677d 100%);
	position: relative;
	z-index: 1;
	min-height: 360px;
}

.talk-pick {
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--card-w);
	z-index: 1;
	transform: translateX(-50%) scale(0.72);
	transform-origin: 50% 50%;
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	font: inherit;
	color: inherit;
	text-align: left;
	background: var(--white);
	border: 1px solid rgba(70, 40, 20, 0.06);
	border-radius: 8px;
	box-shadow: 0 18px 36px -18px rgba(50, 50, 93, 0.22), 0 10px 20px -14px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.45s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.talk-pick[data-pos="center"] {
	z-index: 4;
	transform: translateX(-50%) scale(1);
}

.talk-pick[data-pos="left"] {
	z-index: 3;
	transform: translateX(calc(-50% - var(--step))) scale(0.86);
}

.talk-pick[data-pos="right"] {
	z-index: 3;
	transform: translateX(calc(-50% + var(--step))) scale(0.86);
}

.talk-pick[data-pos="far"] {
	z-index: 2;
	opacity: 0.55;
	transform: translateX(calc(-50% + var(--step) * 1.42)) scale(0.72);
}

.talk-pick:not([data-pos="center"]) {
	filter: saturate(0.85);
}

.talk-pick:not([data-pos="center"]):hover {
	opacity: 1;
	filter: none;
	box-shadow: 0 30px 60px -18px rgba(50, 50, 93, 0.28), 0 18px 36px -18px rgba(0, 0, 0, 0.25);
}

.talk-pick:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.35), 0 18px 36px -18px rgba(50, 50, 93, 0.22);
}

.talk-pick-band {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.3rem;
	min-height: 92px;
	padding: 0.85rem 1.1rem 0.9rem;
	overflow: hidden;
	color: var(--white);
	background: var(--talk-ribbon);
	background-size: 400% 100%;
	background-position: calc(var(--i, 0) * 33.333%) 0;
}

/* a soft light in the corner, like light on paper */
.talk-pick-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.3), transparent 55%);
	pointer-events: none;
}

.talk-pick-kicker {
	position: relative;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.88;
}

.talk-pick-name {
	position: relative;
	font-family: "Sora", sans-serif;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* sits on the video still of the selected talk */
.talk-pick-now {
	position: absolute;
	z-index: 1;
	top: 0.6rem;
	left: 0.6rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(33, 21, 14, 0.62);
	color: var(--white);
	backdrop-filter: blur(6px);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.talk-pick-now::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f07078;
}

/* the talk itself: a still from the video, black margin trimmed like the player */
.talk-pick-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f4efe8;
}

.talk-pick-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 0.5s ease;
}

.talk-pick:hover .talk-pick-thumb img {
	transform: scale(1.1);
}

.talk-pick-play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.86);
	color: var(--accent-700);
	font-size: 0.85rem;
	box-shadow: 0 8px 22px rgba(33, 21, 14, 0.25);
	backdrop-filter: blur(6px);
	transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.talk-pick-play i {
	margin-left: 0.15rem;
}

.talk-pick:hover .talk-pick-play,
.talk-pick[aria-selected="true"] .talk-pick-play {
	transform: scale(1.08);
	background: linear-gradient(135deg, #e07b24, #f07078);
	color: var(--white);
}

.talk-pick-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 1.1rem 1rem;
}

.talk-pick-speaker {
	font-family: "Sora", sans-serif;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink-950);
}

.talk-pick-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--ink-700);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.talk-pick[aria-selected="true"] {
	box-shadow: 0 0 0 2px rgba(240, 112, 120, 0.45), 0 34px 70px -22px rgba(50, 50, 93, 0.38);
}

.talk-pick[aria-selected="true"] .talk-pick-now {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------ « dots » under the deck */
.talk-deck-controls {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.8rem;
}

.talk-dots {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0 0.2rem;
}

.talk-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(70, 40, 20, 0.2);
	cursor: pointer;
	transition: width 0.35s ease, background 0.35s ease;
}

.talk-dot:hover {
	background: rgba(191, 87, 0, 0.45);
}

.talk-dot[aria-current="true"] {
	width: 30px;
	background: linear-gradient(90deg, var(--accent-500), var(--coral-400));
}

.talk-dot:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.3);
}

.talk-deck-label {
	flex-basis: 100%;
	margin-top: -0.1rem;
	text-align: center;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-700);
}

.talk-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(70, 40, 20, 0.14);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink-900);
	font-size: 0.85rem;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.talk-nav-btn:hover {
	border-color: transparent;
	background: linear-gradient(135deg, #e07b24, #f07078);
	color: var(--white);
	transform: translateY(-1px);
}

.talk-nav-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.3);
}

.talk-meta {
	margin: 0 0 0.6rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.76rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--teal-500);
}

.talk-name {
	background: linear-gradient(90deg, var(--accent-500), var(--coral-400));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ------------------------------------------------------------ talk heading */
.talk-view {
	margin-top: 4rem;
}

/* centred over the video, so it lines up with the selected card in the deck above */
.talk-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.talk-heading.slide-next {
	animation: talk-slide-next 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.talk-heading.slide-prev {
	animation: talk-slide-prev 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.talk-frame.slide-next,
.talk-frame.slide-prev {
	animation: talk-fade-in 0.55s ease;
}

@keyframes talk-slide-next {
	from {
		opacity: 0;
		transform: translateX(48px);
	}
}

@keyframes talk-slide-prev {
	from {
		opacity: 0;
		transform: translateX(-48px);
	}
}

@keyframes talk-fade-in {
	from {
		opacity: 0.35;
	}
}

.talk-heading-copy {
	position: relative;
}

.talk-title {
	margin: 0 auto;
	max-width: 52ch;
	font-family: "Sora", sans-serif;
	font-size: clamp(1.6rem, 2.8vw, 2.1rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink-950);
}

.talk-subtitle {
	display: block;
	margin-top: 0.45rem;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 0.52em;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ink-800);
	text-wrap: balance;
	-webkit-text-fill-color: currentColor;
}

.talk-by {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin: 0.65rem 0 0;
	font-size: 0.92rem;
	color: var(--ink-700);
}

.talk-by::after,
.talk-by::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent-500), var(--coral-400));
}

.talk-speaker {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	color: var(--ink-950);
}

.talk-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	padding-bottom: 1.25rem;
}

.talk-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(70, 40, 20, 0.12);
	background: rgba(255, 255, 255, 0.9);
	color: var(--ink-900);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.talk-link:hover {
	color: var(--accent-700);
	border-color: rgba(191, 87, 0, 0.4);
	transform: translateY(-1px);
}

.talk-link i {
	font-size: 0.82rem;
}

/* ------------------------------------------------------------ stage */
/* The video keeps the full content width; the river uses the empty margin on the right. */
.talk-stage {
	--river-w: 290px;
	--river-out: clamp(0px, calc((100vw - var(--shell-width)) / 2 - 2rem), 330px);
	/* with the river hidden, the video grows by this much on each side, around the same centre */
	--grow: min(calc(var(--river-w) + 1.6rem), var(--river-out));
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--river-w);
	gap: 1.6rem;
	align-items: stretch;
	margin-right: calc(-1 * var(--river-out));
}

.talk-left,
.talk-main {
	min-width: 0;
}

/* video, controls and caption share one card */
.talk-main {
	border: 1px solid rgba(70, 40, 20, 0.06);
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.2), 0 18px 36px -18px rgba(0, 0, 0, 0.22), 0 -12px 36px -8px rgba(0, 0, 0, 0.02);
}

.talk-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 7px 7px 0 0;
	background: #f4efe8;
}

/* The recordings place each slide on a thin black margin (about 4% of the frame).
   Zooming just past it (and the projector's edge) keeps the picture clean, with no black frame. */
.talk-yt,
.talk-poster {
	transform: scale(1.075);
}

/* The invited talks are composed edge to edge, with no margin to hide. */
.keynote-section .talk-yt,
.keynote-section .talk-poster {
	transform: none;
}

.talk-yt,
.talk-yt > div,
.talk-yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.talk-poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.talk-play-big {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 50%;
	width: 88px;
	height: 88px;
	margin: -44px 0 0 -44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #e07b24 0%, #ea7350 50%, #f07078 100%);
	color: var(--white);
	font-size: 1.65rem;
	box-shadow: 0 18px 40px rgba(163, 73, 0, 0.32), 0 0 0 10px rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: transform 0.25s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.talk-play-big i {
	margin-left: 0.3rem;
}

.talk-play-big:hover {
	transform: scale(1.06);
}

.talk-play-big:focus-visible {
	outline: none;
	box-shadow: 0 18px 40px rgba(163, 73, 0, 0.32), 0 0 0 10px rgba(255, 255, 255, 0.75);
}

.talk-frame.is-loading .talk-play-big {
	animation: talk-pulse 1.1s ease-in-out infinite;
}

.talk-frame.is-live .talk-poster,
.talk-frame.is-live .talk-play-big {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@keyframes talk-pulse {
	50% {
		transform: scale(0.92);
		opacity: 0.75;
	}
}

/* ------------------------------------------------------------ controls */
.talk-controls {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.1rem 0.4rem;
}

.talk-btn {
	flex: none;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(70, 40, 20, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--ink-900);
	font-size: 0.9rem;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.talk-btn:hover {
	color: var(--accent-700);
	border-color: rgba(191, 87, 0, 0.4);
}

.talk-btn:focus-visible,
.talk-bar:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.25);
}

.talk-toggle {
	width: 44px;
	height: 44px;
	border-color: transparent;
	background: var(--ink-950);
	color: var(--white);
}

.talk-toggle:hover {
	color: var(--white);
	background: var(--accent-700);
	border-color: transparent;
}

.talk-cc {
	width: auto;
	padding: 0 0.75rem;
	border-radius: 999px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.talk-cc[aria-pressed="true"] {
	border-color: transparent;
	background: var(--ink-950);
	color: var(--white);
}

.talk-time {
	flex: none;
	min-width: 6.6rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	color: var(--ink-700);
}

.talk-bar {
	--p: 0%;
	position: relative;
	flex: 1;
	height: 30px;
	border-radius: 999px;
	cursor: pointer;
	touch-action: none;
}

.talk-bar-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 8px;
	margin-top: -4px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(70, 40, 20, 0.1);
	transition: height 0.2s ease, margin 0.2s ease;
}

.talk-bar:hover .talk-bar-track {
	height: 12px;
	margin-top: -6px;
}

.talk-bar-fill {
	position: absolute;
	inset: 0;
	background: var(--talk-gradient);
	clip-path: inset(0 calc(100% - var(--p)) 0 0);
}

.talk-bar-ticks {
	position: absolute;
	inset: 0;
}

.talk-bar-tick {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 3px;
	margin-left: -1.5px;
	background: #fdfaf5;
}

.talk-bar-knob {
	position: absolute;
	top: 50%;
	left: var(--p);
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 0 0 3px var(--coral-400), 0 4px 12px rgba(70, 35, 10, 0.25);
	transition: transform 0.2s ease;
}

.talk-bar:hover .talk-bar-knob {
	transform: scale(1.15);
}

.talk-bar-tip {
	position: absolute;
	bottom: calc(100% + 4px);
	z-index: 4;
	transform: translateX(-50%);
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	background: var(--ink-950);
	color: var(--white);
	font-size: 0.78rem;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 8px 22px rgba(33, 21, 14, 0.25);
}

.talk-bar-tip time {
	margin-right: 0.45rem;
	font-family: "IBM Plex Mono", monospace;
	color: #f7b98a;
}

/* ------------------------------------------------------------ captions */
/* One whole sentence at a time: words already spoken are dark, the rest of the sentence waits in a lighter tone. */
.talk-caption {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(3 * 1.5em + 1.8rem);
	margin: 0;
	padding: 0.6rem 2rem 1.3rem;
	font-size: clamp(1.1rem, 1.5vw, 1.32rem);
	line-height: 1.5;
	text-align: center;
	text-wrap: pretty;
}

.talk-caption.is-new {
	animation: cap-in 0.35s ease;
}

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

.cap-line {
	display: block;
	max-width: 62ch;
}

.cap-said {
	color: var(--ink-950);
}

.cap-next {
	color: rgba(46, 33, 24, 0.34);
}

.talk-caption.is-idle {
	color: var(--ink-700);
	font-size: 1.05rem;
}

.talk-caption.is-off {
	visibility: hidden;
}

.talk-status {
	margin: 0;
	padding: 0 1.1rem 1rem;
	font-size: 0.9rem;
	color: var(--ink-700);
}

.talk-status:empty {
	display: none;
}

/* ------------------------------------------------------------ river */
/* Moments and papers drift up past the "now" line as the talk plays. */
.talk-river {
	position: relative;
	min-width: 0;
	min-height: 420px;
}

.talk-river-label {
	margin: 0;
	padding-left: 1.75rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--teal-500);
}

.river-view {
	--anchor: 28%;
	cursor: grab;
	touch-action: none;
	user-select: none;
	position: absolute;
	top: 1.9rem;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 76%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 76%, transparent 100%);
}

.river-bed::before,
.river-bed::after {
	content: "";
	position: absolute;
	left: 6px;
	width: 2px;
	border-radius: 2px;
}

/* the stretch the talk has already flowed through */
.river-bed::before {
	top: 0;
	height: var(--anchor);
	background: linear-gradient(180deg, var(--teal-500), var(--coral-400) 55%, var(--accent-500));
}

/* what is still to come */
.river-bed::after {
	top: var(--anchor);
	bottom: 0;
	background: rgba(70, 40, 20, 0.12);
}

.river-now {
	position: absolute;
	z-index: 2;
	left: 1px;
	top: calc(var(--anchor) - 6px);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent-500);
	box-shadow: 0 0 0 5px rgba(240, 112, 120, 0.2);
	animation: river-pulse 2.4s ease-in-out infinite;
}

@keyframes river-pulse {
	50% {
		box-shadow: 0 0 0 9px rgba(240, 112, 120, 0.08);
	}
}

.river-view.is-scrubbing {
	cursor: grabbing;
}

/* the time under the "now" line, shown while the river is dragged */
.river-clock {
	position: absolute;
	z-index: 3;
	right: 0;
	top: calc(var(--anchor) - 0.8rem);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--ink-950);
	color: var(--white);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.74rem;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.river-view.is-scrubbing .river-clock {
	opacity: 1;
	transform: none;
}

.river-reel {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	will-change: transform;
}

.river-reel.is-jumping {
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.river-item {
	position: absolute;
	right: 0;
	left: 0;
	padding-left: 1.75rem;
}

.river-dot {
	position: absolute;
	z-index: 1;
	left: 2px;
	top: 5px;
	width: 10px;
	height: 10px;
	border: 2px solid rgba(70, 40, 20, 0.25);
	border-radius: 50%;
	background: #fdfaf5;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.river-item.is-past .river-dot {
	border-color: transparent;
	background: var(--coral-400);
}

.river-paper .river-dot {
	border-radius: 2px;
	transform: rotate(45deg) scale(0.9);
}

.river-paper.is-past .river-dot {
	background: var(--teal-500);
}

/* moments */
.river-moment-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink-600);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: color 0.3s ease;
}

.river-moment-btn time {
	display: block;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	line-height: 1.6;
	letter-spacing: 0.06em;
	color: var(--teal-500);
}

.river-moment-title {
	display: block;
	font-size: 0.98rem;
	line-height: 1.32;
	transition: color 0.3s ease;
}

.river-moment-btn:hover,
.river-moment.is-past .river-moment-btn {
	color: var(--ink-800);
}

.river-moment.is-current .river-moment-title {
	color: var(--ink-950);
	font-weight: 600;
}

.river-moment-btn:focus-visible {
	outline: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* papers: a gradient venue band, like a publication timeline */
.river-venue {
	display: inline-block;
	padding: 0.16rem 0.55rem;
	border-radius: 6px;
	background: var(--talk-gradient);
	color: var(--white);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.62rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: box-shadow 0.3s ease;
}

.river-paper.is-live .river-venue {
	box-shadow: 0 0 0 4px rgba(240, 112, 120, 0.2);
}

.river-card-title {
	display: block;
	margin-top: 0.4rem;
	font-family: "Sora", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink-950);
	text-decoration: none;
}

a.river-card-title:hover,
a.river-card-title:focus-visible {
	color: var(--accent-700);
	outline: none;
}

.river-card-text {
	margin: 0.2rem 0 0;
	font-size: 0.84rem;
	line-height: 1.38;
	color: var(--ink-700);
}

.river-card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.45rem;
}

.river-card-links a {
	padding: 0.18rem 0.6rem;
	border: 1px solid rgba(55, 103, 125, 0.25);
	border-radius: 999px;
	color: var(--teal-500);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.river-card-links a:hover,
.river-card-links a:focus-visible {
	border-color: rgba(191, 87, 0, 0.45);
	color: var(--accent-700);
	outline: none;
}

/* ------------------------------------------------------------ river toggle */
.talk-river-toggle[aria-pressed="true"] {
	border-color: transparent;
	background: var(--ink-950);
	color: var(--white);
}

/* with the river hidden, the video takes the extra width equally on both sides,
   so its centre (and the centred heading above it) stays where it was */
.talk-stage.is-river-off {
	grid-template-columns: minmax(0, 1fr);
	margin-left: calc(-1 * var(--grow));
	margin-right: calc(var(--river-w) + 1.6rem - var(--river-out) - var(--grow));
}

.talk-stage.is-river-off .talk-river {
	display: none;
}

/* ------------------------------------------------------------ full screen */
/* The whole player goes full screen on a dark stage: video, controls, captions and the river. */
.talk-stage.is-fullscreen {
	--fs-pad: 2.5vh;
	--fs-below: 15.5rem;   /* room kept under the video for the controls and three caption lines */
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: var(--fs-pad) 2vw;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) 320px;
	overflow: hidden;
	background: #0d1321;
}

.talk-stage.is-fullscreen.is-river-off {
	grid-template-columns: minmax(0, 1fr);
}

.talk-stage.is-fullscreen .talk-heading {
	display: none;
}

.talk-stage.is-fullscreen .talk-left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
}

.talk-stage.is-fullscreen .talk-main {
	width: min(100%, calc((100vh - 2 * var(--fs-pad) - var(--fs-below)) * 16 / 9));
	margin: 0 auto;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* keep the video exactly 16:9, so YouTube never adds side bars */
.talk-stage.is-fullscreen .talk-frame {
	flex: none;
	border-radius: 6px;
}

.talk-stage.is-fullscreen .talk-controls {
	padding: 1rem 0 0.4rem;
}

.talk-stage.is-fullscreen .talk-time {
	color: rgba(255, 255, 255, 0.7);
}

.talk-stage.is-fullscreen .talk-btn {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.07);
	color: var(--white);
}

.talk-stage.is-fullscreen .talk-btn:hover {
	border-color: rgba(240, 112, 120, 0.6);
	color: #ffd2c2;
}

.talk-stage.is-fullscreen .talk-toggle,
.talk-stage.is-fullscreen .talk-cc[aria-pressed="true"],
.talk-stage.is-fullscreen .talk-river-toggle[aria-pressed="true"] {
	border-color: transparent;
	background: var(--white);
	color: var(--ink-950);
}

.talk-stage.is-fullscreen .talk-bar-track {
	background: rgba(255, 255, 255, 0.16);
}

.talk-stage.is-fullscreen .talk-bar-tick {
	background: #0d1321;
}

.talk-stage.is-fullscreen .talk-caption {
	min-height: calc(3 * 1.5em + 1rem);
	padding: 0.5rem 1rem 0.5rem;
	color: var(--white);
	font-size: clamp(1.2rem, 1.6vw, 1.6rem);
}

.talk-stage.is-fullscreen .cap-said {
	color: var(--white);
}

.talk-stage.is-fullscreen .cap-next {
	color: rgba(255, 255, 255, 0.38);
}

.talk-stage.is-fullscreen .talk-caption.is-idle {
	color: rgba(255, 255, 255, 0.7);
}

/* the river on the dark stage */
.talk-stage.is-fullscreen .talk-river {
	min-height: 0;
}

.talk-stage.is-fullscreen .talk-river-label {
	color: #8fbfd2;
}

.talk-stage.is-fullscreen .river-bed::after {
	background: rgba(255, 255, 255, 0.14);
}

.talk-stage.is-fullscreen .river-dot {
	border-color: rgba(255, 255, 255, 0.35);
	background: #0d1321;
}

.talk-stage.is-fullscreen .river-item.is-past .river-dot {
	border-color: transparent;
	background: var(--coral-400);
}

.talk-stage.is-fullscreen .river-paper.is-past .river-dot {
	background: #8fbfd2;
}

.talk-stage.is-fullscreen .river-moment-btn {
	color: rgba(255, 255, 255, 0.55);
}

.talk-stage.is-fullscreen .river-moment-btn time {
	color: #8fbfd2;
}

.talk-stage.is-fullscreen .river-moment-btn:hover,
.talk-stage.is-fullscreen .river-moment.is-past .river-moment-btn {
	color: rgba(255, 255, 255, 0.8);
}

.talk-stage.is-fullscreen .river-moment.is-current .river-moment-title,
.talk-stage.is-fullscreen .river-card-title {
	color: var(--white);
}

.talk-stage.is-fullscreen a.river-card-title:hover {
	color: #ffc9b5;
}

.talk-stage.is-fullscreen .river-card-text {
	color: rgba(255, 255, 255, 0.62);
}

.talk-stage.is-fullscreen .river-card-links a {
	border-color: rgba(143, 191, 210, 0.35);
	color: #a9d3e3;
}

.talk-stage.is-fullscreen .river-clock {
	background: var(--white);
	color: var(--ink-950);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1099.98px) {
	.talk-stage.is-river-off {
		margin-left: 0;
		margin-right: 0;
	}

	.talk-deck {
		--card-w: 300px;
		--step: 300px;
	}

	.talk-pick[data-pos="far"] {
		opacity: 0;
		pointer-events: none;
	}

	.talk-stage {
		grid-template-columns: minmax(0, 1fr);
		margin-right: 0;
	}

	.talk-river {
		min-height: 0;
		height: 340px;
	}

	/* on phones, let a vertical swipe scroll the page */
	.river-view {
		touch-action: pan-y;
	}
}

@media (max-width: 767.98px) {
	.talk-deck {
		--card-w: 74vw;
		--step: 64vw;
		padding: 1.8rem 0 1.2rem;
	}

	.talk-deck::before {
		inset: 0 -1rem;
		border-radius: 20px;
	}

	.talk-pick[data-pos="far"] {
		opacity: 0;
		pointer-events: none;
	}

	.talk-deck-label {
		display: none;
	}

	.talk-pick-band {
		min-height: 92px;
		padding: 0.8rem 0.85rem 0.85rem;
	}

	.talk-pick-name {
		font-size: 1rem;
		letter-spacing: 0.06em;
	}

	.talk-pick-now {
		display: none;
	}

	.talk-pick-play {
		width: 34px;
		height: 34px;
		margin: -17px 0 0 -17px;
		font-size: 0.72rem;
	}

	.talk-pick-body {
		padding: 0.7rem 0.85rem 0.85rem;
	}

	.talk-pick-kicker {
		font-size: 0.58rem;
		letter-spacing: 0.1em;
		white-space: nowrap;
	}

	.talk-controls {
		gap: 0.45rem;
	}

	.talk-mute {
		display: none;
	}

	.talk-time {
		min-width: 0;
		font-size: 0.72rem;
	}

	.talk-caption {
		font-size: 1rem;
		padding: 0.75rem 0.9rem;
	}

	.talk-play-big {
		width: 64px;
		height: 64px;
		margin: -32px 0 0 -32px;
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.talk-pick,
	.talk-pick-now,
	.talk-heading,
	.talk-frame,
	.river-reel,
	.river-now,
	.talk-caption,
	.talk-play-big,
	.talk-poster {
		transition: none;
		animation: none;
	}
}

/* ------------------------------------------------------------ invited talks */
/* One large player per invited speaker, stacked in the order of the program cards.
   Before the talk plays, the frame shows a cover about the speaker; it fades once the video runs. */
.keynote-list {
	display: grid;
	gap: 1.6rem;
	margin-top: 1.6rem;
}

.keynote {
	min-width: 0;
	scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.keynote.is-open:not(:last-child) {
	margin-bottom: 1.4rem;
}

.keynote-section .talk-view {
	margin-top: 0;
}

.keynote .talk-play-big {
	display: none;
}

.keynote .talk-frame {
	container-type: inline-size;
}

/* The cover looks like a video: the speaker on a slice of the workshop ribbon (the same gradient as the
   student cards) on the left, and a still from the talk with a play button on the right. */
.keynote-section {
	--talk-ribbon: linear-gradient(90deg, #a34900 0%, #e07b24 28%, #f07078 52%, #9a6b86 74%, #37677d 100%);
}

.keynote:nth-child(1) { --i: 0; }
.keynote:nth-child(2) { --i: 1; }
.keynote:nth-child(3) { --i: 2; }
.keynote:nth-child(4) { --i: 3; }

.talk-cover {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	overflow: hidden;
	cursor: pointer;
	background: var(--ink-950);
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.talk-frame.is-live .talk-cover {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* left: who is speaking */
.talk-cover-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-width: 0;
	padding: 1.6rem clamp(1.4rem, 3.4cqw, 2.8rem);
	overflow: hidden;
	color: var(--white);
	background: var(--talk-ribbon);
	background-size: 400% 100%;
	background-position: calc(var(--i, 0) * 33.333%) 0;
}

.talk-cover-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 55%),
		linear-gradient(180deg, rgba(33, 21, 14, 0) 40%, rgba(33, 21, 14, 0.22));
	pointer-events: none;
}

.talk-cover-panel > * {
	position: relative;
}

.talk-cover-face {
	width: clamp(84px, 13.5cqw, 164px);
	height: auto;
	aspect-ratio: 1;
	margin-bottom: clamp(0.9rem, 1.9cqw, 1.4rem);
	object-fit: cover;
	object-position: center top;
	background: var(--sand-100);
	border: 4px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.16), 0 16px 34px rgba(33, 21, 14, 0.32);
}

.talk-cover-name {
	margin: 0;
	font-family: "Sora", sans-serif;
	font-size: max(20px, 3.15cqw);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--white);
	text-shadow: 0 2px 14px rgba(33, 21, 14, 0.25);
}

.talk-cover-affiliation {
	margin: 0.6cqw 0 0;
	font-size: max(12px, 1.25cqw);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

.talk-cover-title {
	margin: 1.8cqw 0 0;
	font-family: "Sora", sans-serif;
	font-size: max(14px, 1.65cqw);
	font-weight: 500;
	line-height: 1.3;
	color: var(--white);
	text-wrap: balance;
}

.talk-cover-name a,
.talk-cover-affiliation a {
	color: inherit;
}

.talk-cover-name a {
	text-decoration: none;
}

.talk-cover-affiliation a {
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.45);
	text-underline-offset: 0.2em;
}

.talk-cover-name a:hover,
.talk-cover-name a:focus-visible,
.talk-cover-affiliation a:hover,
.talk-cover-affiliation a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--white);
	text-underline-offset: 0.2em;
}

/* right: a still from the talk, ready to play */
/* exactly 16:9 at the cover's height, so the whole frame shows; the panel takes the rest of the width */
.talk-cover-thumb {
	position: relative;
	height: 100%;
	aspect-ratio: 16 / 9;
	max-width: 66cqw;
	min-width: 0;
	overflow: hidden;
	background: var(--ink-950);
}

.talk-cover-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease, filter 0.4s ease;
}

.talk-cover-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 50%, rgba(33, 21, 14, 0.18), transparent 60%),
		linear-gradient(180deg, transparent 60%, rgba(33, 21, 14, 0.45));
	pointer-events: none;
}

.talk-cover:hover .talk-cover-thumb img {
	transform: scale(1.04);
}

.talk-cover-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: clamp(58px, 8cqw, 92px);
	aspect-ratio: 1;
	padding-left: 0.3rem;
	font-size: clamp(1.2rem, 2.2cqw, 1.8rem);
	color: var(--white);
	background: linear-gradient(135deg, var(--accent-500), var(--coral-400));
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 16px 36px rgba(33, 21, 14, 0.4);
	transform: translate(-50%, -50%);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.talk-cover:hover .talk-cover-play {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.28), 0 18px 40px rgba(33, 21, 14, 0.45);
}

.talk-frame.is-loading .talk-cover-play {
	animation: talk-cover-pulse 1s ease-in-out infinite;
}

@keyframes talk-cover-pulse {
	50% {
		transform: translate(-50%, -50%) scale(0.92);
		opacity: 0.8;
	}
}

.talk-cover-chip {
	position: absolute;
	left: clamp(0.8rem, 2cqw, 1.3rem);
	bottom: clamp(0.8rem, 2cqw, 1.3rem);
	z-index: 1;
	padding: 0.45rem 0.85rem;
	font: 500 max(11px, 1.05cqw)/1 "IBM Plex Mono", monospace;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--white);
	background: rgba(20, 14, 10, 0.55);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* no recording yet */
.talk-cover.is-soon {
	cursor: default;
}

.talk-cover.is-soon .talk-cover-thumb img {
	filter: grayscale(0.4) brightness(0.85);
}

.talk-cover.is-soon:hover .talk-cover-thumb img {
	transform: none;
}

.talk-cover.is-soon .talk-cover-play,
.talk-cover.is-soon .talk-cover-duration {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.talk-cover,
	.talk-cover-thumb img,
	.talk-cover-play {
		transition: none;
	}

	.talk-frame.is-loading .talk-cover-play {
		animation: none;
	}
}

/* phones: the still on top, who is speaking below it */
@media (max-width: 640px) {
	.keynote-list .keynote:not(.is-open) .talk-frame {
		height: auto;
	}

	.keynote-list .keynote:not(.is-open) .talk-cover {
		position: relative;
		inset: auto;
		grid-template-columns: minmax(0, 1fr);
	}

	.keynote-list .keynote:not(.is-open) .talk-cover-thumb {
		order: -1;
		height: auto;
		max-width: none;
		aspect-ratio: 16 / 9;
	}

	.keynote-list .keynote:not(.is-open) .talk-cover-panel {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 0.9rem;
		align-items: center;
		padding: 0.95rem 1.1rem 1.05rem;
	}

	.keynote-list .keynote:not(.is-open) .talk-cover-face {
		grid-row: span 3;
		width: 76px;
		margin: 0;
		box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16), 0 8px 18px rgba(33, 21, 14, 0.3);
	}

	.keynote-list .keynote:not(.is-open) .talk-cover-name {
		font-size: 1.2rem;
	}

	.keynote-list .keynote:not(.is-open) .talk-cover-affiliation {
		margin-top: 0.15rem;
		font-size: 0.78rem;
	}

	.keynote-list .keynote:not(.is-open) .talk-cover-title {
		margin-top: 0.3rem;
		font-size: 0.9rem;
	}
}

/* ------------------------------------------------------------ mentions under the video */
/* With the river hidden, the lab or paper the speaker is talking about appears here while they talk about it. */
.talk-mentions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0 1rem 0.9rem;
}

.talk-stage:not(.is-river-off) .talk-mentions {
	display: none;
}

.talk-mention {
	display: none;
	align-items: center;
	gap: 0.6rem;
	max-width: 100%;
	padding: 0.4rem 0.95rem 0.4rem 0.45rem;
	font-size: 0.88rem;
	line-height: 1.25;
	color: var(--ink-900);
	text-decoration: none;
	background: var(--white);
	border: 1px solid rgba(191, 87, 0, 0.22);
	border-radius: 999px;
	box-shadow: 0 8px 22px -12px rgba(70, 35, 10, 0.35);
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.talk-mention.is-live {
	display: inline-flex;
	animation: mention-in 0.45s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.talk-mention:hover,
.talk-mention:focus-visible {
	color: var(--accent-700);
	border-color: var(--accent-500);
	transform: translateY(-1px);
}

.talk-mention-kind {
	flex: none;
	padding: 0.25rem 0.55rem;
	font: 500 0.66rem/1 "IBM Plex Mono", monospace;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--white);
	background: linear-gradient(90deg, var(--accent-500), var(--coral-400));
	border-radius: 999px;
}

.talk-mention-title {
	min-width: 0;
	font-weight: 500;
}

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

@media (prefers-reduced-motion: reduce) {
	.talk-mention.is-live {
		animation: none;
	}
}

/* ------------------------------------------------------------ invited talks before play */
/* Until a talk is played, its card is just the cover (portrait, name, lab, title, play),
   two to a row; the controls, captions and links appear once it opens. */
.keynote:not(.is-open) .talk-controls,
.keynote:not(.is-open) .talk-caption,
.keynote:not(.is-open) .talk-mentions,
.keynote:not(.is-open) .talk-links {
	display: none;
}

.keynote:not(.is-open) .talk-frame {
	border-radius: 7px;
}

.keynote:not(.is-open) .talk-stage.is-river-off {
	margin-left: 0;
	margin-right: 0;
}

.keynote:not(.is-open) .talk-main {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.keynote:not(.is-open):hover .talk-main {
	transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.keynote:not(.is-open) .talk-main {
		transition: none;
	}

	.keynote:not(.is-open):hover .talk-main {
		transform: none;
	}
}

/* Before play the cover keeps the full width but not the full 16:9 height, so the four speakers
   take less scrolling; it opens to the 16:9 player on play. */
.keynote:not(.is-open) .talk-frame {
	aspect-ratio: auto;
	height: clamp(260px, 31.5vw, 455px);
}

.keynote:not(.is-open) .talk-poster {
	display: none;
}

/* ------------------------------------------------------------ opened invited talk */
/* Opening and closing ease the frame between the cover height and 16:9. Once open, a large see-through ×
   appears at the top right when the pointer moves over the top of the video, and closes the talk back to its cover. */
.keynote .talk-main {
	container-type: inline-size;
}

.keynote .talk-frame {
	transition: height 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.keynote.is-open .talk-stage:not(.is-fullscreen) .talk-frame {
	aspect-ratio: auto;
	height: calc(100cqw * 9 / 16);
}

.keynote .talk-stage {
	transition: margin 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.keynote.is-open .talk-controls,
.keynote.is-open .talk-mentions,
.keynote.is-open .talk-links {
	animation: keynote-reveal 0.6s ease 0.45s both;
}

@keyframes keynote-reveal {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* an invisible band along the top of the video; moving the pointer there brings the × in at the top right */
.talk-x-zone {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	display: none;
	height: max(96px, 30%);
}

.keynote.is-open .talk-x-zone {
	display: block;
}

.talk-x {
	position: absolute;
	top: clamp(0.8rem, 2.4cqw, 1.4rem);
	right: clamp(0.8rem, 2.4cqw, 1.4rem);
	display: grid;
	place-items: center;
	width: clamp(50px, 6.5cqw, 72px);
	aspect-ratio: 1;
	padding: 0;
	font-size: clamp(1.25rem, 2.3cqw, 1.8rem);
	color: var(--white);
	background: rgba(20, 14, 10, 0.5);
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-14px) scale(0.92);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.75, 0.25, 1), background 0.2s ease;
}

.talk-x-zone:hover .talk-x,
.talk-x:focus-visible {
	opacity: 1;
	transform: none;
}

.talk-x:hover,
.talk-x:focus-visible {
	background: rgba(20, 14, 10, 0.62);
	border-color: var(--white);
}

.talk-x:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 3px;
}

.talk-stage.is-fullscreen .talk-x-zone {
	display: none;
}

/* no hover on touch screens: keep the × in view, a little quieter */
@media (hover: none) {
	.keynote.is-open .talk-x {
		opacity: 0.8;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.keynote .talk-frame,
	.keynote .talk-stage,
	.talk-x {
		transition: none;
	}

	.keynote.is-open .talk-controls,
	.keynote.is-open .talk-mentions,
	.keynote.is-open .talk-links {
		animation: none;
	}
}

/* ------------------------------------------------------------ tip: the river can be hidden */
/* Shown once, the first time a talk is opened on a visit; points at the river button. */
/* above the video frame, so the tip can rise over it */
.keynote .talk-controls {
	position: relative;
	z-index: 8;
}

.talk-river-hint {
	position: absolute;
	bottom: calc(100% + 12px);
	left: var(--x, 90%);
	z-index: 7;
	width: max-content;
	max-width: min(300px, 80vw);
	padding: 0.7rem 0.95rem;
	font: 500 0.86rem/1.4 "IBM Plex Sans", sans-serif;
	text-align: left;
	color: var(--white);
	background: var(--ink-950);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(33, 21, 14, 0.3);
	cursor: pointer;
	opacity: 0;
	transform: translate(calc(-100% + 30px), 6px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.talk-river-hint.is-shown {
	opacity: 1;
	transform: translate(calc(-100% + 30px), 0);
	pointer-events: auto;
}

/* the little pointer, aimed at the button below */
.talk-river-hint::after {
	content: "";
	position: absolute;
	right: 23px;
	bottom: -6px;
	width: 14px;
	height: 14px;
	background: var(--ink-950);
	border-radius: 2px;
	transform: rotate(45deg);
}

.talk-controls:has(.talk-river-hint.is-shown) .talk-river-toggle {
	animation: river-hint-pulse 1.6s ease-in-out infinite;
}

@keyframes river-hint-pulse {
	50% {
		box-shadow: 0 0 0 7px rgba(240, 112, 120, 0.3);
	}
}

@media (prefers-reduced-motion: reduce) {
	.talk-river-hint {
		transition: none;
	}

	.talk-controls:has(.talk-river-hint.is-shown) .talk-river-toggle {
		animation: none;
	}
}

/* no link buttons for a talk: no empty row under it */
.talk-links:empty {
	display: none;
}
