/* ====================================================================
   Invited Speakers Section  (#speakers)
   Accent: Sophysics purple + orange
   --spk-purple: #6B2FAA  |  --spk-orange: #E8791A
   Background: deep indigo  #120F2E
   ==================================================================== */

/* ── CSS variables ── */
#speakers {
	--spk-bg:          #111213;
	--spk-card-bg:     rgba(255, 255, 255, 0.04);
	--spk-accent:      #e8b84b;
	--spk-accent-dim:  rgba(232, 184, 75, 0.35);
	--spk-name:        #ffffff;
	--spk-sub:         rgba(255, 255, 255, 0.52);

	background-color: var(--spk-bg);
	position: relative;
	z-index: 3;
}

/* ── Section heading: Bebas Neue, dramatically large, centered ── */
#speakers h2.major {
	font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	font-size: clamp(7rem, 15vw, 19rem);
	letter-spacing: -0.01em;
	line-height: 0.85;
	text-align: center;
	color: #ffffff;
	border-bottom: none;
	padding-bottom: 0;
}

#speakers h2.major::after {
	display: none;
}

/* ── Extra top padding compensates for the incoming diagonal slant ── */
#speakers .inner {
	padding-top: calc(3.5em + 4.5vw);
	padding-bottom: 3.5rem;
}

/* ── Carousel viewport — clips overflowing cards ── */
.speakers-carousel-wrapper {
	overflow: hidden;
	margin-top: 2.5rem;
	position: relative;
}

/* ── Sliding track ── */
.speakers-track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	/* bottom padding keeps the card hover-lift shadow visible */
	padding: 0.4rem 0 1.6rem;
	align-items: stretch;
}

/* ── Individual card (fixed width so JS can measure it reliably) ── */
.speaker-card {
	flex: 0 0 270px;
	width: 270px;
	background: var(--spk-card-bg);
	border-radius: 12px;
	padding: 2rem 1.4rem 1.6rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: default;
	transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.speaker-card:hover {
	transform: translateY(-5px);
}

/* ── Circular photo ── */
.speaker-photo {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1.25rem;
	flex-shrink: 0;
	background-color: rgba(107, 47, 170, 0.1);
}

.speaker-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Placeholder silhouette ── */
.speaker-photo.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.speaker-photo.placeholder::after {
	content: '';
	display: block;
	width: 56px;
	height: 56px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E8791A'%3E%3Cpath d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.33 0-10 1.671-10 5v1h20v-1c0-3.329-6.67-5-10-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.5;
}

/* ── Speaker info ── */
.speaker-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
}

/* ── Name: Bebas Neue, white, uppercase ── */
.speaker-name {
	font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	font-size: 1.3rem;
	letter-spacing: 0.07em;
	color: var(--spk-name);
	text-transform: uppercase;
	margin: 0;
	line-height: 1.15;
}

/* ── Affiliation: orange accent ── */
.speaker-affil {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--spk-orange);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.45;
}

/* ── Talk topic: italic, muted ── */
.speaker-topic {
	font-size: 0.78rem;
	color: var(--spk-sub);
	font-style: italic;
	margin: 0;
	line-height: 1.5;
}

/* ════ NAVIGATION BUTTONS ════ */
.speakers-nav {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.spk-nav-btn {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--spk-accent-dim);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
	user-select: none;
	transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.spk-nav-btn:hover:not([disabled]) {
	background: var(--spk-accent);
	transform: scale(1.05);
}

.spk-nav-btn[disabled],
.spk-nav-btn:disabled {
	opacity: 0.2;
	cursor: default;
	pointer-events: none;
}

/* ── Responsive card widths (JS measures actual rendered width) ── */
@media (max-width: 900px) {
	.speaker-card {
		flex: 0 0 220px;
		width: 220px;
	}
	.speaker-photo {
		width: 110px;
		height: 110px;
	}
}

@media (max-width: 580px) {
	.speaker-card {
		flex: 0 0 80vw;
		width: 80vw;
	}
	.speaker-photo {
		width: 100px;
		height: 100px;
	}
	.speaker-name {
		font-size: 1.1rem;
	}
	.spk-nav-btn {
		width: 46px;
		height: 46px;
		font-size: 1.1rem;
	}
}


/* ── CSS variables (scoped to section, overrides above) ── */
#speakers {
	--spk-bg:        #111213;
	--spk-card-bg:   rgba(255, 255, 255, 0.04);
	--spk-accent:    #e8b84b;
	--spk-accent-dim: rgba(232, 184, 75, 0.35);
	--spk-name:      #ffffff;
	--spk-sub:       rgba(255, 255, 255, 0.55);

	background-color: var(--spk-bg);
}

/* ── Section title: Bebas Neue, teal accent line (overrides hot-pink) ── */
#speakers h2.major {
	font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
}

#speakers h2.major::after {
	background: var(--spk-accent) !important;
}

/* ── Grid layout ── */
.speakers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.75rem;
	margin-top: 2.5rem;
}

/* ── Individual card ── */
.speaker-card {
	background: var(--spk-card-bg);
	border-radius: 10px;
	padding: 2rem 1.5rem 1.6rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	cursor: default;
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
	transform: translateY(-5px);
}

/* ── Circular photo ── */
.speaker-photo {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1.3rem;
	flex-shrink: 0;
	background-color: rgba(46, 196, 182, 0.08);
	position: relative;
}

.speaker-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(15%);
}

/* ── Placeholder silhouette (no photo yet) ── */
.speaker-photo.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.speaker-photo.placeholder::after {
	content: '';
	display: block;
	width: 58px;
	height: 58px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232ec4b6'%3E%3Cpath d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.33 0-10 1.671-10 5v1h20v-1c0-3.329-6.67-5-10-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	opacity: 0.45;
}

/* ── Speaker info block ── */
.speaker-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
}

/* ── Name: large Bebas Neue ── */
.speaker-name {
	font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	font-size: 1.3rem;
	letter-spacing: 0.07em;
	color: var(--spk-name);
	text-transform: uppercase;
	margin: 0;
	line-height: 1.15;
}

/* ── Affiliation: teal, uppercase small ── */
.speaker-affil {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--spk-accent);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.45;
}

/* ── Talk topic: italic, muted ── */
.speaker-topic {
	font-size: 0.78rem;
	color: var(--spk-sub);
	font-style: italic;
	margin: 0;
	line-height: 1.5;
}

/* ── Separator line under section inner ── */
#speakers .inner {
	padding-top: 4em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.speakers-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 1.4rem;
	}
}

@media (max-width: 736px) {
	.speakers-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	.speaker-photo {
		width: 100px;
		height: 100px;
	}
	.speaker-name {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.speakers-grid {
		grid-template-columns: 1fr;
	}
	.speaker-card {
		flex-direction: row;
		text-align: left;
		padding: 1.2rem;
		gap: 1rem;
	}
	.speaker-photo {
		width: 80px;
		height: 80px;
		margin-bottom: 0;
		flex-shrink: 0;
	}
	.speaker-info {
		align-items: flex-start;
	}
}
