/* ——— Speaker ——— */
/* Fluid: tuned at --layout-ref-w (798px); scales via 100cqw / var(--layout-ref-w) */

.speaker {
  position: relative;
  width: 100%;
  aspect-ratio: var(--speaker-aspect-w) / var(--speaker-aspect-h);
  overflow: hidden;
  container-type: inline-size;
}

.speaker__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--asset-speaker-bg) center / 100% 100% no-repeat;
}

.speaker__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding:
    calc(48 * 100cqw / var(--layout-ref-w))
    calc(13 * 100cqw / var(--layout-ref-w))
    0
    calc(55.5 * 100cqw / var(--layout-ref-w));
  padding-right: calc(504 * 100cqw / var(--layout-ref-w));
}

.speaker__copy {
  flex: 0 1 auto;
  max-width: calc(304 * 100cqw / var(--layout-ref-w));
  margin-top: calc(84 * 100cqw / var(--layout-ref-w));
  margin-left: calc(28 * 100cqw / var(--layout-ref-w));
  padding-bottom: 0;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.speaker__label {
  margin: 0 0 calc(10.4 * 100cqw / var(--layout-ref-w));
  font-family: var(--font-sans);
  font-size: calc(12.8 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.speaker__name {
  margin: 0 0 calc(14.4 * 100cqw / var(--layout-ref-w));
  font-family: var(--font-serif);
  font-size: calc(36 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.speaker__name em {
  font-style: italic;
}

.speaker__role {
  margin: 0;
  font-family: var(--font-sans);
  font-size: calc(12.8 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.45;
}

.speaker__role span {
  display: block;
}

.speaker__portrait {
  position: absolute;
  right: calc(10.7 * 100cqw / var(--layout-ref-w));
  bottom: 0;
  margin: 0;
  width: calc(480 * 100cqw / var(--layout-ref-w));
  line-height: 0;
}

.speaker__portrait img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

@media (max-width: 1023px) {
  .speaker {
    aspect-ratio: unset;
    overflow: hidden;
  }

  .speaker__bg {
    background-image: var(--asset-speaker-bg-mobile);
    background-position: center;
    background-size: cover;
  }

  .speaker__inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 100%;
    padding: 2.75rem 1.25rem 0;
    text-align: center;
  }

  .speaker__copy {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0 auto 1.5rem;
    padding-inline: 0.5rem;
    padding-bottom: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  }

  .speaker__label {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .speaker__name {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.08;
  }

  .speaker__role {
    font-size: clamp(1rem, 4.2vw, 1.125rem);
    line-height: 1.5;
    white-space: nowrap;
  }

  .speaker__role span {
    display: inline;
  }

  .speaker__role span + span::before {
    content: " · ";
  }

  .speaker__portrait {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
    line-height: 0;
  }

  .speaker__portrait img {
    width: min(100%, 22rem);
    margin: 0 auto;
    transform: translateX(11%);
  }
}
