.speakers-section {
  width: 100%;
  padding-block: 3rem;
  overflow-x: clip;
  background: rgb(241 245 252 / 50%);
  background: oklch(0.97 0.01 260 / 50%);
  font-family:
    "Euclid Circular A",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.speakers-section *,
.speakers-section *::before,
.speakers-section *::after {
  box-sizing: border-box;
  font-family: inherit !important;
}

.speakers-section__container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.speaker-groups {
  display: grid;
  gap: 3.5rem;
}

.speaker-group {
  min-width: 0;
}

.speaker-group__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  margin-bottom: 1.5rem;
  color: #080063;
  color: oklch(0.22 0.16 268);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.speaker-group__line {
  flex: 1;
  height: 1px;
  background: rgb(8 0 99 / 10%);
  background: oklch(0.22 0.16 268 / 10%);
}

.speaker-group__line--short {
  width: auto;
  max-width: 5rem;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem;
}

.speaker-grid > .speaker-reveal {
  min-width: 0;
}

.speaker-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  background: #dbe9f4;
  box-shadow:
    0 10px 15px -3px rgb(7 44 153 / 5%),
    0 4px 6px -4px rgb(7 44 153 / 5%);
  box-shadow:
    0 10px 15px -3px oklch(0.36 0.18 264 / 5%),
    0 4px 6px -4px oklch(0.36 0.18 264 / 5%);
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker-card:hover {
  box-shadow:
    0 20px 25px -5px rgb(7 44 153 / 15%),
    0 8px 10px -6px rgb(7 44 153 / 15%);
  box-shadow:
    0 20px 25px -5px oklch(0.36 0.18 264 / 15%),
    0 8px 10px -6px oklch(0.36 0.18 264 / 15%);
}

.speaker-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: 50% 65%;
  transform: translateY(4px) scale(0.98);
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker-card:hover .speaker-card__image {
  transform: translateY(4px) scale(1.03);
}

.speaker-card__image--contained {
  object-position: top;
  transform: translateY(4px) scale(0.9);
}

.speaker-card:hover .speaker-card__image--contained {
  transform: translateY(4px) scale(0.95);
}

.speaker-card__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(8 0 86 / 98%) 0%,
    rgb(8 0 99 / 55%) 50%,
    transparent 100%
  );
  background: linear-gradient(
    to top,
    oklch(0.18 0.16 268 / 98%) 0%,
    oklch(0.22 0.16 268 / 55%) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.speaker-card__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  text-align: left;
}

.speaker-card__name {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 8px rgb(8 0 99 / 70%),
    0 1px 2px rgb(0 0 0 / 40%);
  text-shadow:
    0 2px 8px oklch(0.22 0.16 268 / 70%),
    0 1px 2px oklch(0 0 0 / 40%);
  overflow-wrap: anywhere;
}

.speaker-card__role {
  margin: 0;
  margin-top: 0.25rem;
  color: #edf2f8;
  color: oklch(0.96 0.01 250);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgb(8 0 99 / 80%);
  text-shadow: 0 1px 6px oklch(0.22 0.16 268 / 80%);
  overflow-wrap: anywhere;
}

.speakers-section--images-only .speaker-card__overlay,
.speakers-section--images-only .speaker-card__content {
  display: none !important;
}

.speaker-reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--speaker-delay, 0ms);
}

.speaker-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .speakers-section {
    padding-block: 4rem;
  }
}

@media (min-width: 1024px) {
  .speaker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .speaker-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
