.leadership {
  width: 100%;
  background-color: var(--mesana-cream-2);
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.leadership-container {
  /* max-width: var(--max-width-container); */
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 82px 40px;
}

.leadership-header {
  text-align: center;
  margin-bottom: 60px;
}

.leadership-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--mesana-cream);
  color: var(--mesana-red);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.leadership-title {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--mesana-red);
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.leadership-title-normal {
  font-size: 52px;
  font-weight: 400;
  font-style: normal;
}

.leadership-title-italic {
  font-size: 52px;
  font-family: 'PT Serif Italic', serif;
  font-weight: 400;
  font-style: italic;
}

.leadership-subtitle {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mesana-black);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

/* Fade in header text when revealed */
.leadership-header.reveal .leadership-badge,
.leadership-header.reveal .leadership-title,
.leadership-header.reveal .leadership-subtitle {
  opacity: 1;
}

.leadership-profile {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.leadership-profile:last-of-type {
  display: grid;
}

/* Pinned profile wrapper - Hidden (no longer used) */
.leadership-profile-pinned-wrapper {
  display: none;
}

/* Static profiles - Visible on all screen sizes */
.leadership-profile-static {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.leadership-profile-static:first-of-type {
  margin-top: 0;
}

.leadership-profile-pinned {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  /* padding: 0 82px; */
}

.leadership-profile-image-wrapper {
  width: 100%;
}

.leadership-profile-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background-color: var(--mesana-cream);
  overflow: hidden;
  position: relative;
}

.leadership-profile-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.leadership-profile-image-current {
  opacity: 1;
}

.leadership-profile-image-next {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

.leadership-profile-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  justify-content: flex-start;
  position: relative;
}

.leadership-profile-content-wrapper {
  position: relative;
  width: 100%;
}

.leadership-profile-content-current,
.leadership-profile-content-next {
  width: 100%;
}

.leadership-profile-content-current {
  opacity: 1;
}

.leadership-profile-content-next {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.leadership-profile-content-header {
  display: flex;
  flex-direction: column;
  
}

.leadership-profile-name {
  font-family: 'Libre Franklin Medium', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--mesana-red);
  margin: 0;
}

.leadership-profile-role {
  font-family: 'PT Serif Regular', sans-serif;
  font-size: 24px;
  font-style: italic;
  color: var(--mesana-dark-brown);
  margin: 0;
}

.leadership-profile-bio {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--mesana-black);
  margin: 0;
}

/* Scroll trigger containers */
.leadership-scroll-container {
  width: 100%;
  height: 1px; /* Minimal height - just for scroll trigger */
  position: relative;
  background: transparent;
  visibility: hidden; /* Hide but keep in DOM for scroll trigger */
}

@media (max-width: 968px) {
  .leadership-container {
    padding: 60px 40px;
  }

  .leadership-title {
    font-size: 36px;
  }

  .leadership-profile-content {
    padding: 0 20px;
    gap: 16px;
  }

  .leadership-profile-static {
    margin-top: 40px;
  }

  .leadership-profile-static:first-of-type {
    margin-top: 0;
  }

  .leadership-profile:last-of-type {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .leadership-container {
    padding: 40px 0;
  }

  .leadership-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .leadership-profile-role {
    font-size: 16px;
  }

  .leadership-badge {
    margin-bottom: 12px;
  }

  .leadership-title-normal {
    font-size: 32px;
  }

  .leadership-title-italic {
    font-size: 32px;
  }

  .leadership-header {
    padding: 0 20px;
    margin-bottom: 32px;
  }

  .leadership-profile,
  .leadership-profile-pinned {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .leadership-scroll-container {
    display: none; /* Hide scroll containers on mobile */
  }

  .leadership-subtitle {
    font-size: 16px;
  }

  .leadership-profile-name {
    font-size: 20px;
  }

  .leadership-profile-bio {
    font-size: 16px;
  }

  .leadership-profile-image-placeholder {
    border-radius: 0;
  }

  .leadership-profile:last-of-type {
    margin-top: 24px;
  }
}

