/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

@keyframes board-section-horizontal-reveal-up {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.board-section {
  opacity: 0;
}

.board-section.is-revealed, .board-section.is-revealed .board-member {
  animation: board-section-horizontal-reveal-up 850ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.board-section.is-revealed .board-member:nth-child(n+1) {
  animation-delay: calc(var(--board-member-order, 1) * 200ms);
}

.board-section,
.board-section *,
.board-section *::before,
.board-section *::after,
.board-member,
.board-member *,
.board-member *::before,
.board-member *::after {
  box-sizing: border-box;
}

.board-section {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fcfcfc;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.board-section__inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 97px 30px 58px;
}

.board-section__badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin: 0 0 30px;
  padding: 4px 15px;
  border-radius: 999px;
  background: #e6ece9;
  color: #18141e;
  font-size: 13px;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.board-section__members,
.board-section__members > slot[name="children"] {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 47px;
}

/* Webflow assigns ONE wrapper div to the slot with every member island
   inside it. display: contents collapses the wrapper (and the islands, which
   are contents by default) so the slot's own flex column and gap reach the
   member cards directly. */
.board-section__members > slot[name="children"]::slotted(*) {
  display: contents !important;
}

:host {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto !important;
  order: var(--board-member-order, 1);
}

.board-member {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  order: var(--board-member-order, 1);
}

.board-member__media {
  position: relative;
  width: 100%;
  aspect-ratio: 675 / 484;
  overflow: hidden;
  border-radius: 20px;
  background: #ded8ca;
}

.board-member__photo {
  position: absolute;
  inset: auto 0 -56px;
  display: block;
  width: 100%;
  height: calc(100% + 40px);
  object-fit: contain;
  object-position: var(--board-member-photo-position, center bottom);
}

.board-member__photo-placeholder {
  width: 100%;
  height: 100%;
  background: #ded8ca;
}

.board-member__body {
  width: 100%;
  min-width: 0;
}

.board-member__position {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  margin: 0;
  padding: 4px 15px;
  border-radius: 81px;
  background: #e6ece9;
  color: #18141e;
  font-size: 13px;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.board-member__name,
.board-member__competencies,
.board-member__biography {
  color: #18141e;
  font-family: inherit;
  overflow-wrap: anywhere;
}

.board-member__name {
  width: min(553px, 100%);
  margin: 28px 0 0;
  font-size: 42.5px;
  font-weight: 500;
  line-height: 49.6px;
  letter-spacing: 0;
}

.board-member__competencies {
  width: min(371px, 100%);
  margin: 15px 0 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 32.4px;
  letter-spacing: 0;
}

.board-member__biography {
  width: min(553px, 100%);
  margin: 39px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .board-section__inner {
    padding-top: 72px;
  }

  .board-member__name {
    margin-top: 22px;
    font-size: 36px;
    line-height: 42px;
  }

  .board-member__competencies {
    margin-top: 12px;
    font-size: 23px;
    line-height: 28px;
  }

  .board-member__biography {
    margin-top: 26px;
    font-size: 15px;
    line-height: 19px;
  }
}

@media (max-width: 900px) {
  .board-section__members,
  .board-section__members > slot[name="children"] {
    gap: 58px;
  }

  .board-member {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .board-member__media {
    width: 100%;
  }

  .board-member__body {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .board-section__inner {
    padding: 48px 16px 56px;
  }

  .board-section__members,
  .board-section__members > slot[name="children"] {
    gap: 48px;
  }

  .board-member {
    gap: 24px;
  }

  .board-member__media {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .board-member__photo {
    bottom: -40px;
    height: calc(100% + 24px);
  }

  .board-member__position {
    min-height: 24px;
    padding-inline: 12px;
    font-size: 11px;
    line-height: 14px;
  }

  .board-section__badge {
    min-height: 24px;
    padding-inline: 12px;
    font-size: 11px;
    line-height: 14px;
  }

  .board-member__name {
    margin-top: 20px;
    font-size: 34px;
    line-height: 40px;
  }

  .board-member__competencies {
    margin-top: 12px;
    font-size: 23px;
    line-height: 28px;
  }

  .board-member__biography {
    margin-top: 26px;
    font-size: 15px;
    line-height: 19px;
  }
}


@keyframes board-member-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.board-member--reveal {
  opacity: 0;
}

.board-member--reveal.is-revealed {
  animation: board-member-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both;
}

@media (prefers-reduced-motion: reduce) {
  .board-member--reveal {
    opacity: 1;
    animation: none;
  }
}

/* Waterfall: siblings entering together stagger left-to-right */

/* waterfall-board-member */
:host(:nth-child(2)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(2) {
  animation-delay: 160ms;
}
:host(:nth-child(3)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(3) {
  animation-delay: 260ms;
}
:host(:nth-child(4)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(4) {
  animation-delay: 360ms;
}
:host(:nth-child(5)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(5) {
  animation-delay: 460ms;
}
:host(:nth-child(6)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(6) {
  animation-delay: 560ms;
}
:host(:nth-child(7)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(7) {
  animation-delay: 660ms;
}

/* waterfall-ext-board-member: items 8+ keep cascading instead of snapping to the base delay */
:host(:nth-child(8)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(8) {
  animation-delay: 760ms;
}
:host(:nth-child(9)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(9) {
  animation-delay: 860ms;
}
:host(:nth-child(n + 10)) .board-member--reveal.is-revealed,
.board-member--reveal.is-revealed:nth-child(n + 10) {
  animation-delay: 960ms;
}

