.speaker-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
}

.speaker-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
}

.speaker-visual {
  height: 230px;
  padding: 0;
  align-items: stretch;
  background: #102a83;
}

.speaker-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.speaker-grid h3 {
  margin: 14px 0 6px;
  font-size: 20px;
  line-height: 1.15;
}

.speaker-grid p {
  font-size: 14px;
  line-height: 1.45;
}

.speaker-profile-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.65);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  cursor: pointer;
}

.speaker-profile-button span {
  display: inline-block;
  margin-left: 7px;
  transition: transform .2s ease;
}

.speaker-profile-button:hover span,
.speaker-profile-button:focus-visible span {
  transform: translateX(4px);
}

.speaker-profile-button:focus-visible,
.speaker-profile-close:focus-visible {
  outline: 3px solid #5be6ff;
  outline-offset: 4px;
}

.speaker-profile-modal[hidden] {
  display: none;
}

.speaker-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.speaker-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 35, .84);
  backdrop-filter: blur(8px);
}

.speaker-profile-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(82vh, 860px);
  overflow-y: auto;
  padding: 52px 58px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #eef5ff 100%);
  color: #11131a;
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
}

.speaker-profile-close {
  position: absolute;
  top: 17px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #102a83;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.speaker-profile-label {
  margin: 0 0 12px;
  color: #5b32d6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.speaker-profile-dialog h2 {
  margin: 0;
  color: #102a83;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.speaker-profile-role {
  margin: 12px 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #cdd7eb;
  color: #5f6470;
  font-size: 17px;
  font-weight: 700;
}

.speaker-profile-copy p {
  margin: 0 0 18px;
  color: #272b35;
  font-size: 16px;
  line-height: 1.72;
}

body.profile-modal-open {
  overflow: hidden;
}

@media (max-width: 1050px) {
  .speaker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .speaker-visual {
    height: 280px;
  }
}

@media (max-width: 700px) {
  .speaker-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .speaker-visual {
    height: 320px;
  }

  .speaker-grid h3 {
    font-size: 23px;
  }

  .speaker-profile-dialog {
    max-height: 88vh;
    padding: 44px 24px 28px;
    border-radius: 18px;
  }

  .speaker-profile-modal {
    padding: 14px;
  }

  .speaker-profile-dialog h2 {
    font-size: 34px;
  }

  .speaker-profile-copy p {
    font-size: 15px;
  }
}
