/* Bio page — shared styles. CSS variables come from /styles.css */

.bio-hero {
  background: var(--navy);
  color: var(--white);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.bio-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.bio-hero-inner > .bio-portrait {
  max-height: 360px;
}

.bio-portrait {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2236, #0f1520);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor crop near the top so the top of head stays in frame on
     taller portrait sources. */
  object-position: 50% 18%;
  display: block;
}

.bio-portrait-initials {
  font-family: var(--font-serif);
  font-size: 6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

.bio-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.bio-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-hero h1 em {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--rust);
  font-weight: 800;
}

.bio-role {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-top: 1.25rem;
  max-width: 560px;
  line-height: 1.5;
}

.bio-role strong {
  color: var(--white);
  font-weight: 500;
}

.bio-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.bio-hero-meta {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.bio-hero-meta.visible {
  display: flex;
}

.bio-hero-meta + .bio-cta-row {
  margin-top: 1.75rem;
}

.bio-cta-row .btn-primary:hover {
  background: #a8432a;
}

.bio-hero-meta-sep {
  opacity: 0.5;
  font-size: 0.6rem;
}

.bio-hero-meta a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.bio-hero-meta a:hover {
  color: var(--white);
}

.bio-hero-meta .bio-linkedin-icon {
  display: inline-flex;
  align-items: center;
}

.bio-hero-meta .bio-linkedin-icon svg {
  width: 18px;
  height: 18px;
}

.hero-breadcrumb {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  margin-bottom: 0.75rem;
}

.hero-breadcrumb:hover {
  color: var(--white);
}

/* LinkedIn link hidden until URL resolves */
.bio-cta-row [data-bio-linkedin] {
  display: none;
}

.bio-linkedin-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.bio-linkedin-link:hover {
  color: var(--white);
}

.bio-body {
  background: var(--cream);
  padding: 6rem 0;
}

.bio-body-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
}

.bio-body h2 {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  text-wrap: balance;
}

.bio-body h2 em {
  color: var(--rust);
  font-style: normal;
}

.bio-body-right p {
  font-size: 1rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}


.bio-body-right a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.transcript-accordion + .bio-meta {
  margin-top: 0;
}

.bio-meta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #d5d0c8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bio-meta-item .meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.bio-meta-item .meta-value {
  font-size: 0.95rem;
  color: var(--dark);
}

.bio-meta-item a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.bio-meta-item a:hover {
  color: var(--rust);
}

/* LinkedIn meta row hidden until we resolve a URL. */
.bio-meta-item[data-bio-linkedin-meta] {
  display: none;
}

/* Bio headline — full-width centered section above bio-body. Used only
   when the guest has playlist clips: in that case the ABOUT pill + main
   H2 move up here so bio-body-left can host the playlist next to the
   bio paragraphs. Guests without clips keep their ABOUT/H2 in
   bio-body-left and never get a .bio-headline section. */
.bio-headline {
  background: var(--cream);
  padding: 5rem 0 0;
}
.bio-headline-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
}
.bio-headline .section-label {
  justify-content: center;
  margin-bottom: 1rem;
}
.bio-headline h2 {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin: 0;
  text-wrap: balance;
}
.bio-headline h2 em {
  color: var(--rust);
  font-style: normal;
}

/* When bio-body has the playlist embedded in its left column, tighten the
   gap to the headline section above and strip the playlist's own chrome
   (the bio-body already provides the cream + container). */
.bio-body--with-playlist {
  padding-top: 3rem;
}
.bio-body--with-playlist .bio-body-left .bio-playlist {
  background: none;
  padding: 0;
}
.bio-body--with-playlist .bio-body-left .bio-playlist-inner {
  max-width: none;
  padding: 0;
}
.bio-body--with-playlist .bio-body-left .section-label {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

/* Sub-header inside the in-body playlist — matches the main ABOUT h2's
   sans-bold + rust em treatment, just smaller, so the two headings read
   as the same kind of element instead of competing across font families. */
.bio-playlist-h {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.bio-playlist-h em {
  color: var(--rust);
  font-style: normal;
}

/* Watch More — playlist clips between hero and bio body.
   Numbered list with title + subtitle; the whole row is the click target
   and opens the same #video-modal the hero CTA uses. No thumbnails — the
   numerals do the visual work, so we don't depend on YT auto-thumbs
   (which look identical across clips of the same talking-head interview). */
.bio-playlist {
  background: var(--cream);
  padding: 4rem 0 0;
}

.bio-playlist-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem;
}

.bio-playlist .section-label {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.bio-playlist h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 2rem;
  text-wrap: balance;
  text-align: center;
}

.bio-playlist h2 em {
  color: var(--rust);
  font-style: italic;
}

.bio-playlist-list {
  border-top: 1px solid #d5d0c8;
}

.bio-playlist-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  column-gap: 1.5rem;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #d5d0c8;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s;
}

.bio-playlist-item:hover,
.bio-playlist-item:focus-visible {
  background: rgba(192, 80, 46, 0.04);
  outline: none;
}

.bio-playlist-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  padding-right: 1.5rem;
  border-right: 1px solid #d5d0c8;
}

.bio-playlist-text {
  min-width: 0;
}

.bio-playlist-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.bio-playlist-subtitle {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.4;
}

.bio-playlist-play {
  font-size: 1.25rem;
  color: var(--rust);
  line-height: 1;
  transition: transform 0.15s;
}

.bio-playlist-item:hover .bio-playlist-play,
.bio-playlist-item:focus-visible .bio-playlist-play {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .bio-playlist {
    padding: 3rem 0 0;
  }
  .bio-playlist-inner {
    padding: 0 1.5rem;
  }
  .bio-playlist-item {
    grid-template-columns: 2rem 1fr auto;
    column-gap: 1rem;
    padding: 1.25rem 0;
  }
  .bio-playlist-number {
    font-size: 1.4rem;
    padding-right: 1rem;
  }
  .bio-playlist-title {
    font-size: 1rem;
  }
}

/* Featured Appearances — cream, sits between bio body and CTA. */
.bio-appearances {
  display: none;
  background: var(--cream);
  padding: 1rem 0 6rem;
}

.bio-appearances.has-videos {
  display: block;
}

.bio-appearances-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem;
}

.bio-appearances .section-label {
  margin-bottom: 1.25rem;
}

.bio-appearances h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.bio-appearances h2 em {
  color: var(--rust);
  font-style: italic;
}

.bio-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
}

.bio-videos-grid .session-card h3 {
  color: var(--dark);
}

.bio-videos-grid .session-card h3 .card-company {
  color: var(--gray);
}

@media (max-width: 1024px) {
  .bio-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-body-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Once the 2-col bio body collapses, the ABOUT heading no longer
     "anchors" a right-hand text column, so left-aligning it looks
     orphaned next to the centered WATCH MORE heading right above.
     Center both for a consistent stacked rhythm. */
  .bio-body-left {
    text-align: center;
  }
  .bio-body-left .section-label {
    justify-content: center;
  }

  /* Mobile-tightened headline + center the in-body playlist heading. */
  .bio-headline { padding: 3.5rem 0 0; }
  .bio-headline-inner { max-width: none; }
  .bio-body--with-playlist .bio-body-left .section-label { justify-content: center; }
  .bio-playlist-h { text-align: center; }

  .bio-videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bio-hero {
    padding: 7rem 0 3rem;
  }

  .bio-hero-inner {
    padding: 0 1.5rem;
  }

  .bio-role {
    font-size: 1rem;
  }

  .bio-body {
    padding: 3rem 0;
  }

  .bio-body-inner {
    padding: 0 1.5rem;
  }

  .bio-headline { padding: 3rem 0 0; }
  .bio-headline-inner { padding: 0 1.5rem; }
  .bio-headline h2 { font-size: 2rem; }

  .bio-body h2 {
    font-size: 2rem;
  }

  .bio-meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bio-cta-row .btn-outline {
    color: var(--white);
  }

  .bio-appearances {
    padding: 0.5rem 0 3rem;
  }

  .bio-appearances-inner {
    padding: 0 1.5rem;
  }

  .bio-appearances h2 {
    font-size: 2rem;
  }

  .bio-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-hero-inner > .bio-portrait {
    max-height: 240px;
  }
}

/* ── Full interview transcript (accordion) ──────────────── */

.bio-transcript {
  background: var(--white);
  padding: 5rem 0 6rem;
}

.bio-transcript-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem;
}

.transcript-accordion {
  border-top: 1px solid #d5d0c8;
  border-bottom: 1px solid #d5d0c8;
  margin-top: 2rem;
}

.transcript-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}

.transcript-accordion summary::-webkit-details-marker {
  display: none;
}

.transcript-accordion summary:hover {
  color: var(--rust);
}

.transcript-summary-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.transcript-summary-icon::before,
.transcript-summary-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
}

.transcript-summary-icon::before {
  width: 18px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.transcript-summary-icon::after {
  width: 1.5px;
  height: 18px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.transcript-accordion[open] .transcript-summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.transcript-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--dark);
}

.transcript-accordion[open] .transcript-body {
  grid-template-rows: 1fr;
}

.transcript-body-inner {
  overflow: hidden;
  padding: 0;
  transition: padding 0.4s ease;
}

.transcript-accordion[open] .transcript-body-inner {
  padding: 0.5rem 0 2.5rem;
}

.transcript-entry {
  margin-bottom: 1.5rem;
}


.transcript-speaker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.transcript-entry--interviewer .transcript-speaker {
  color: var(--gray);
  font-style: italic;
  font-weight: 600;
}

.transcript-entry--guest .transcript-speaker {
  color: var(--rust);
}

.transcript-role {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.transcript-close-btn {
  display: block;
  margin: 2rem auto 0;
  background: none;
  border: 1px solid #d5d0c8;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.transcript-close-btn:hover {
  color: var(--dark);
  border-color: var(--dark);
}

.transcript-entry p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
}

@media (max-width: 768px) {
  .bio-transcript {
    padding: 3rem 0 4rem;
  }
  .bio-transcript-inner {
    padding: 0 1.5rem;
    max-width: 600px;
  }
  .transcript-accordion summary {
    padding: 1.25rem 0;
    font-size: 0.78rem;
  }
  .transcript-entry p {
    font-size: 0.95rem;
  }
}
