/* Hierarquia dos mentores na Home e no Ecossistema. */
#auto-escala-preview :is(#ae-mentores, .ecosystem-people) {
  --mentor-gold: #C5A46A;
}

#auto-escala-preview :is(#ae-mentores .grid, .ecosystem-people-grid) {
  display: grid;
  grid-template-columns: var(--mentor-columns, minmax(0, 4fr) repeat(2, minmax(0, 3fr)));
}

#auto-escala-preview #ae-mentores .grid {
  gap: clamp(16px, 2vw, 28px);
  margin-top: 32px;
}

#auto-escala-preview #ae-mentores .mentor-card {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: radial-gradient(ellipse at 50% 20%, #005384, #003B60 64%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .13);
}

#auto-escala-preview #ae-mentores .mentor-portrait,
#auto-escala-preview #ae-mentores .mentor-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#auto-escala-preview #ae-mentores .mentor-portrait {
  object-fit: cover;
  object-position: var(--portrait-position, center);
  transition: transform 300ms ease;
}

#auto-escala-preview #ae-mentores .mentor-card--thiago {
  --portrait-position: 50% 34%;
}

#auto-escala-preview :is(#ae-mentores, .ecosystem-people) :is(.mentor-card--thiago, .ecosystem-founder-photo)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 1.5px var(--mentor-gold);
  border-radius: inherit;
  pointer-events: none;
}

#auto-escala-preview :is(#ae-mentores, .ecosystem-people) .mentor-founder {
  display: block;
  width: fit-content;
  margin-top: 6px;
  color: var(--mentor-founder-color, var(--mentor-gold));
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .065em;
}

#auto-escala-preview #ae-mentores .mentor-card--luis { --portrait-position: 50% 30%; }
#auto-escala-preview #ae-mentores .mentor-card--bruno { --portrait-position: 50% 26%; }

#auto-escala-preview #ae-mentores .mentor-card::after {
  content: "";
  background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, .91) 20%, rgba(0, 0, 0, .45) 42%, transparent 65%);
  pointer-events: none;
}

#auto-escala-preview #ae-mentores .mentor-caption {
  position: relative;
  z-index: 1;
  padding: clamp(19px, 2.25vw, 33px);
}

#auto-escala-preview #ae-mentores .mentor-caption h3 {
  margin: 0 0 10px;
}

#auto-escala-preview #ae-mentores .mentor-caption h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 10px;
  background: #0098F9;
}

#auto-escala-preview #ae-mentores .mentor-caption p {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(14px, 1.12vw, 16px);
  line-height: 1.45;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #auto-escala-preview #ae-mentores .mentor-card:hover .mentor-portrait {
    transform: scale(1.035);
  }
}

#auto-escala-preview :is(#ae-mentores, .ecosystem-people) .mentor-subheading {
  display: var(--mentor-subheading-display, none);
  grid-column: 1 / -1;
  max-width: none;
  margin: 8px 0 0;
  border-top: 1px solid rgba(38, 38, 38, .15);
  padding-top: 14px;
  color: #262626;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .09em;
}

@media (min-width: 901px) {
  #auto-escala-preview #ae-mentores .mentor-card {
    aspect-ratio: auto;
  }

  #auto-escala-preview #ae-mentores .mentor-card--thiago {
    /* At 40% of the row, this preserves the previous common card height. */
    aspect-ratio: 9 / 10;
    --portrait-position: 50% 20%;
  }
}

@media (min-width: 560px) and (max-width: 900px) {
  #auto-escala-preview #ae-mentores .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #auto-escala-preview #ae-mentores .mentor-card--thiago {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
    --portrait-position: 50% 12%;
  }
}

@media (width < 560px) {
  #auto-escala-preview #ae-mentores .grid {
    --mentor-subheading-display: block;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  #auto-escala-preview #ae-mentores .mentor-card--thiago {
    grid-column: 1 / -1;
  }

  #auto-escala-preview #ae-mentores .mentor-card--thiago {
    aspect-ratio: 4 / 5;
    --portrait-position: 50% 23%;
  }

  #auto-escala-preview #ae-mentores .mentor-card--thiago .mentor-portrait {
    transform: scale(1.07);
  }

  #auto-escala-preview #ae-mentores .mentor-card:not(.mentor-card--thiago) {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    border-radius: 16px;
    background: #000;
  }

  #auto-escala-preview #ae-mentores .mentor-card:not(.mentor-card--thiago) .mentor-portrait {
    position: relative;
    height: auto;
    aspect-ratio: 3 / 4;
    background: radial-gradient(ellipse at 50% 20%, #005384, #003B60 64%);
  }

  #auto-escala-preview #ae-mentores .mentor-card:not(.mentor-card--thiago)::after {
    inset: 0 0 auto;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  #auto-escala-preview #ae-mentores .mentor-card:not(.mentor-card--thiago) .mentor-caption {
    padding: 3px 12px 16px;
  }

  #auto-escala-preview #ae-mentores .mentor-card:not(.mentor-card--thiago) .mentor-caption h3 {
    font-size: clamp(16px, 4.25vw, 19px);
    line-height: 1.2;
  }

  #auto-escala-preview #ae-mentores .mentor-card:not(.mentor-card--thiago) .specialist-name {
    display: grid;
    gap: 4px;
  }
}
