/*
 * THESIS: each speaker arrives as a headliner, not a card beside a portrait.
 * OWN-WORLD: CMBA's warm paper, institutional navy, scientific green and sharp rules.
 * STORY: name, role, credentials and programme route remain immediately scannable.
 * FIRST VIEWPORT: oversized name and facts occupy the left plane; the real portrait owns the right.
 * FORM: direction 03, "Nome contra retrato" — Swiss split poster, selected by the CMBA brief.
 */

.cmba-speaker-profile--atlas {
  --cmba-profile-line: oklch(18% 0.04 254 / 0.18);
  --cmba-profile-paper: var(--cmba-warm-paper);
  background: var(--cmba-profile-paper);
  color: var(--cmba-ink);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb {
  display: flex;
  gap: 8px;
  padding-block: 16px;
  color: var(--cmba-muted);
  font-family: var(--cmba-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb a {
  color: var(--cmba-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__hero {
  border-block: 1px solid var(--cmba-profile-line);
  background: var(--cmba-profile-paper);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  min-height: min(720px, 56vw);
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__intro {
  display: grid;
  order: -1;
  align-content: end;
  gap: clamp(18px, 2vw, 28px);
  min-width: 0;
  padding: clamp(34px, 4.4vw, 70px);
  border-right: 1px solid var(--cmba-profile-line);
  background: var(--cmba-profile-paper);
  color: var(--cmba-ink);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__intro .cmba-kicker {
  margin: 0;
  color: var(--cmba-green);
  font-family: var(--cmba-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__intro h1 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--cmba-blue-dark);
  font-size: clamp(3.1rem, 4.75vw, 5rem);
  font-weight: 900;
  hyphens: none;
  letter-spacing: 0;
  line-height: 0.84;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait {
  display: block;
  order: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d3dfda;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait--fallback {
  display: grid;
  place-items: center;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait--fallback span {
  color: var(--cmba-blue-dark);
  font-family: var(--cmba-font-mono);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.2vw, 34px);
  margin: 0;
  border-top: 1px solid var(--cmba-profile-line);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts div {
  min-width: 0;
  padding: 12px 0 2px;
  border-bottom: 1px solid var(--cmba-profile-line);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts dt {
  color: var(--cmba-green);
  font-family: var(--cmba-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts dd {
  margin: 4px 0 10px;
  color: var(--cmba-ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.32;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--cmba-blue-dark);
  border-radius: 0;
  background: transparent;
  color: var(--cmba-blue-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms var(--cmba-ease), color 180ms var(--cmba-ease);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button):hover {
  background: var(--cmba-blue-dark);
  color: var(--cmba-white);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions .cmba-speaker-profile__programme-link {
  background: var(--cmba-blue-dark);
  color: var(--cmba-white);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions .cmba-speaker-profile__programme-link:hover {
  background: var(--cmba-green-deep);
  border-color: var(--cmba-green-deep);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button):focus-visible,
.cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb a:focus-visible,
.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session a:focus-visible,
.cmba-speaker-profile--atlas .cmba-speaker-profile__link-list a:focus-visible {
  outline: 3px solid var(--cmba-orange);
  outline-offset: 3px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session {
  border-bottom: 1px solid var(--cmba-profile-line);
  background: var(--cmba-white);
  padding-block: clamp(28px, 4vw, 52px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session-grid {
  display: grid;
  grid-template-columns: minmax(146px, .28fr) minmax(0, .72fr) auto;
  gap: 12px clamp(20px, 3vw, 40px);
  align-items: start;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session time,
.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session .cmba-kicker {
  color: var(--cmba-green);
  font-family: var(--cmba-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session h2,
.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session p {
  margin: 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session h2 {
  color: var(--cmba-blue-dark);
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.02;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session p {
  grid-column: 2;
  color: var(--cmba-muted);
  line-height: 1.45;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session a {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--cmba-blue-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__body {
  background: var(--cmba-profile-paper);
  padding-block: clamp(48px, 7vw, 96px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(250px, .84fr);
  gap: clamp(32px, 6vw, 92px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__bio,
.cmba-speaker-profile--atlas .cmba-speaker-profile__side {
  min-width: 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__bio h2,
.cmba-speaker-profile--atlas .cmba-speaker-profile__side h2,
.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger h2 {
  margin-top: 0;
  color: var(--cmba-blue-dark);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.05;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__summary {
  max-width: 62ch;
  color: var(--cmba-ink);
  font-size: clamp(1.08rem, 1.5vw, 1.23rem);
  font-weight: 700;
  line-height: 1.52;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__side {
  display: grid;
  align-content: start;
  gap: 26px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__side section,
.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger {
  padding-top: 18px;
  border-top: 1px solid var(--cmba-profile-line);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger {
  margin-top: clamp(34px, 5vw, 72px);
}

@media (max-width: 760px) {
  .cmba-speaker-profile--atlas .cmba-speaker-profile__hero-grid,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__body-grid,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session-grid {
    grid-template-columns: 1fr;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__hero-grid {
    min-height: 0;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__intro {
    order: 0;
    padding: 34px 24px 38px;
    border-right: 0;
    border-bottom: 1px solid var(--cmba-profile-line);
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__intro h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 9.2vw, 4rem);
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__portrait {
    order: 1;
    height: min(116vw, 560px);
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__facts {
    grid-template-columns: 1fr;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session p,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session a {
    grid-column: auto;
    grid-row: auto;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session a {
    margin-top: 4px;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button) {
    flex: 1 1 100%;
  }
}

@media (max-width: 340px) {
  .cmba-speaker-profile--atlas .cmba-speaker-profile__intro h1 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button) {
    transition: none;
  }
}

@media print {
  .cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__actions {
    display: none !important;
  }

  .cmba-speaker-profile--atlas,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__hero,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__body {
    background: var(--cmba-white);
  }

  .cmba-speaker-profile--atlas :is(section, article, figure) {
    break-inside: avoid;
  }
}
