:root {
  --page-bg: #131519;
  --panel: rgba(34, 39, 46, 0.8);
  --panel-strong: rgba(34, 39, 46, 0.68);
  --border: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #f5c26b;
}

body.speaker-page {
  background:
    linear-gradient(to top, rgba(19, 21, 25, 0.78), rgba(19, 21, 25, 0.62)),
    url("../../images/overlay.png"),
    url("../../images/bg.webp");
  background-size: auto, 256px 256px, cover;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  font-family: "Source Sans Pro", sans-serif;
  min-height: 100vh;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  color: inherit;
}

.speaker-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(27, 31, 34, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.speaker-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.speaker-header__brand {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: var(--muted);
}

.speaker-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.speaker-link {
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.speaker-link:hover,
.speaker-link:focus-visible {
  border-color: var(--accent);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  margin-bottom: 1.5rem;
}

.hero .major {
  display: inline-flex;
  border-bottom-width: 2px;
  border-bottom-color: var(--accent);
  padding-bottom: 0.35rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.lead {
  max-width: 760px;
  color: var(--muted);
}

.section-header {
  margin: 3rem 0 1.5rem;
}

.section-header .major {
  display: inline-flex;
  border-bottom-width: 2px;
  border-bottom-color: var(--accent);
  padding-bottom: 0.35rem;
}

.section-header p {
  color: var(--muted);
  max-width: 700px;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.speaker-card {
  background: linear-gradient(145deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.speaker-card:hover,
.speaker-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.photo-frame {
  position: relative;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.badge {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.2rem 1.1rem 1.35rem;
  display: grid;
  gap: 0.35rem;
}

.card-body h3 {
  margin-bottom: 0.25rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.role {
  text-transform: uppercase;
  letter-spacing: 0.24rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.bio {
  color: var(--muted);
  margin: 0;
}

.badge-primary {
  background: rgba(245, 194, 107, 0.28);
  border-color: rgba(245, 194, 107, 0.45);
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.16);
}

.badge-accent {
  background: rgba(255, 255, 255, 0.24);
}

.cta-band {
  margin-top: 3rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
}

body.speaker-page .button {
  border-color: rgba(245, 194, 107, 0.4);
  color: #fff5e3 !important;
}

body.speaker-page .button:hover,
body.speaker-page .button:focus-visible {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px rgba(245, 194, 107, 0.25);
}

body.speaker-page .button.primary {
  background: linear-gradient(135deg, #f5c26b 0%, #ffe3a2 100%);
  color: #2b1b0a !important;
  box-shadow: 0 26px 55px rgba(245, 194, 107, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.speaker-page .button.primary:hover {
  background: linear-gradient(135deg, #ffe3a2 0%, #f5c26b 100%);
}

.cta-content {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-content h2 {
  margin: 0.4rem 0;
}

.cta-content p {
  margin: 0;
  color: var(--muted);
}

.page-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
}

.page-footer a {
  color: #ffffff;
}

@media (max-width: 640px) {
  .speaker-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .speaker-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .photo-frame img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 720px) {
  body.speaker-page {
    background-attachment: scroll;
  }

  main {
    padding: 2.1rem 1.15rem 3rem;
  }

  .cta-content {
    gap: 0.75rem;
  }
}
