/* ==========================================================================
   Team page — Figma frame 235:187 ("The Team")
   Shared tokens: css/base/variables.css | Shared components: css/components/*
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------
   Figma: image y215 h497 ends 712; ticker y611 h56 → image sits ON strip
   (~101px overlap). Title @ y160 flush above image.
   ------------------------------------------------------------------------ */

.team-hero {
  position: relative;
  padding-top: 62px;
  padding-bottom: 0;
  text-align: center;
}

.team-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1208px;
  padding-inline: 0;
}

.team-hero h1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28em;
  margin: 0 0 28px;
  padding-bottom: 0;
  font-size: 55px;
  font-weight: var(--fw-extrabold);
  line-height: 1;
}

.team-hero__the {
  color: var(--color-primary);
}

.team-hero__team {
  color: var(--color-accent);
}

.team-hero__media {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1155px;
  margin: 0 auto;
  line-height: 0;
}

.team-hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1155px;
  object-fit: contain;
  object-position: center top;
  vertical-align: bottom;
}

/* Strip sits on top of the illustration bottom edge — no gap */
.team-hero__ticker {
  position: relative;
  z-index: 2;
  margin-top: -57px;
  /* pull strip up onto the image (Figma overlap) */
}

@media (max-width: 991px) {
  .team-hero {
    padding-top: 36px;
  }

  .team-hero h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
    margin-bottom: 8px;
  }

  .team-hero__inner {
    padding-inline: 24px;
  }

  .team-hero__ticker {
    margin-top: -40px;
  }
}

/* ---- Member rows ---------------------------------------------------------
   Figma 235:187 — Kalpesh band (x130→x1300):
   media 512×445; copy 615px right-aligned;
   name ExtraBold 25 / lh 170% / #15157D;
   role Semibold 14 / lh 170% / tracking 10% / bodytext
   ------------------------------------------------------------------------ */

.team-member {
  position: relative;
  padding-top: 28px;
  /* Figma: ticker ~667 → image 695 */
  padding-bottom: 0;
  overflow: hidden;
}

.team-member--tint {
  /* Figma: lavender band keeps the same grid as the page (not a flat fill) */
  background-color: #f5f4fc;
  background-image: url("../../assets/bg.jpg");
  background-repeat: repeat;
  background-position: center top;
  background-size: 1440px auto;
  background-blend-mode: multiply;
}

.team-member__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 1170px;
  /* Figma x130 → x1300 */
  padding-bottom: 40px;
}

/* Beat Bootstrap .container padding so margins match Figma 130px inset */
.team-member__inner.container {
  max-width: 1170px;
  padding-left: 24px;
  padding-right: 24px;
}

.team-member__media {
  flex-shrink: 0;
  width: 100%;
  max-width: 512px;
  line-height: 0;
  border: 0;
}

.team-member__photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 512px;
  aspect-ratio: 512 / 445;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

.team-member__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 512 / 445;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(85, 93, 219, 0.35), transparent 55%),
    linear-gradient(160deg, #15157d 0%, #3a3a9e 55%, #555ddb 100%);
}

.team-member__placeholder span {
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.team-member__content {
  width: 100%;
  max-width: 615px;
}

.team-member__name {
  margin: 0;
  font-size: 25px;
  font-weight: var(--fw-extrabold);
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--color-primary);
}

.team-member__role {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-body);
}

.team-member__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 18px;
  border-radius: 8px;
  background-color: #15157D;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.team-member__linkedin:hover,
.team-member__linkedin:focus-visible {
  background-color: #0d0d5c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 21, 125, 0.25);
}

.team-member__bio {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  /* Figma para: 150% */
  letter-spacing: 0;
  color: var(--color-body);
}

.team-member__bio:last-child {
  margin-bottom: 0;
}

.team-member__bio strong {
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .team-hero h1 {
    font-size: 46px;
  }

  .team-member__inner.container {
    padding-left: 0;
    padding-right: 0;
  }

  .team-member__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 41px;
    /* Figma: text x683 − image right 642 */
    min-height: 445px;
    padding-bottom: 0;
  }

  .team-member--image-left .team-member__inner {
    flex-direction: row;
  }

  .team-member--image-right .team-member__inner {
    flex-direction: row;
  }

  /* Portrait flush on bottom border */
  .team-member__media {
    width: 512px;
    max-width: 512px;
    flex: 0 0 512px;
    align-self: flex-end;
  }

  .team-member__content {
    flex: 0 0 615px;
    width: 615px;
    max-width: 615px;
    /* Figma: name @ +69px from image top; bio ends ~46px above border */
    align-self: flex-start;
    padding-top: 69px;
    padding-bottom: 46px;
  }

  .team-member--image-left .team-member__content {
    text-align: right;
    margin-left: 0;
  }

  .team-member--image-right .team-member__content {
    text-align: left;
    margin-right: 0;
  }

  /* Keep image-right portraits pinned to the trailing edge */
  .team-member--image-right .team-member__inner {
    justify-content: space-between;
  }

  .team-member__photo {
    width: 512px;
    max-width: 512px;
  }

  /* Figma Layer 21yu 6 is 458×398 */
  .team-member__photo--aditya {
    width: 458px;
    max-width: 100%;
    aspect-ratio: 458 / 398;
    margin-inline: auto 0;
  }
}

/* Below Figma desktop width, keep ratio but allow shrink */
@media (min-width: 992px) and (max-width: 1240px) {
  .team-member__inner {
    gap: clamp(24px, 3vw, 41px);
  }

  .team-member__media {
    flex: 0 1 512px;
    width: auto;
  }

  .team-member__content {
    flex: 1 1 615px;
    width: auto;
  }

  .team-member__photo {
    width: 100%;
  }
}