/* Flow Inside - Team page */

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb--mist {
  background: var(--mist);
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  opacity: 0.9;
}

.orb--leaf {
  background: color-mix(in srgb, var(--leaf) 18%, transparent);
  width: min(36vw, 20rem);
  height: min(36vw, 20rem);
}

.team-main {
  position: relative;
  overflow-x: clip;
}

.team-main > .wrap,
.team-hero > .wrap,
.team-roster .wrap,
.practical > .wrap {
  position: relative;
  z-index: 1;
}

/* Hero */
.team-hero {
  position: relative;
  padding: var(--s-5) 0 var(--s-6);
}

.team-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .team-hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: min(62vh, 520px);
  }
}

.team-hero__copy {
  position: relative;
  z-index: 2;
}

.team-hero h1 {
  margin: 0 0 var(--s-4);
  max-width: 11ch;
}

.team-hero__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: 1.62;
  max-width: 28rem;
}

.team-hero__visual {
  position: relative;
  z-index: 1;
}

.team-hero__visual .orb--mist {
  top: -14%;
  right: -16%;
  width: min(48vw, 22rem);
  height: min(48vw, 22rem);
}

.team-hero__visual .orb--leaf {
  bottom: -10%;
  left: -14%;
  width: min(36vw, 16rem);
  height: min(36vw, 16rem);
}

.team-hero__pic {
  position: relative;
  z-index: 1;
  aspect-ratio: 5 / 4;
  width: 100%;
  max-width: 32rem;
  margin-inline: 0;
}

.team-hero__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

@media (max-width: 639px) {
  .team-hero__pic img {
    object-position: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .team-hero__pic {
    animation: team-soft-drift 18s ease-in-out infinite;
  }
}

@keyframes team-soft-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1%, -0.9%); }
}

/* Roster */
.team-roster {
  position: relative;
  padding: var(--s-4) 0 var(--s-6);
}

.profile {
  padding: clamp(2rem, 4.5vw, 3.25rem) 0;
}

.profile + .profile {
  border-top: 0;
}

.profile__layout {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  align-items: start;
}

@media (min-width: 880px) {
  .profile__layout {
    --profile-pic: 14.5rem;
    grid-template-columns: var(--profile-pic) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  /* Flip columns without order (order would put the photo in the 1fr track) */
  .profile--flip .profile__layout {
    grid-template-columns: minmax(0, 1fr) var(--profile-pic);
  }

  .profile--flip .profile__visual {
    grid-column: 2;
    grid-row: 1;
  }

  .profile--flip .profile__copy {
    grid-column: 1;
    grid-row: 1;
  }
}

.profile__visual {
  position: relative;
  width: min(100%, 14.5rem);
  margin-inline: auto;
}

@media (min-width: 880px) {
  .profile__visual {
    width: var(--profile-pic, 14.5rem);
    max-width: var(--profile-pic, 14.5rem);
    margin-inline: 0;
    justify-self: start;
  }

  .profile--flip .profile__visual {
    justify-self: end;
  }
}

.profile__pic {
  aspect-ratio: 1;
  width: 100%;
  max-width: 14.5rem;
}

.profile__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#veronique .profile__pic img { object-position: center 18%; }
#frank .profile__pic img { object-position: center 12%; }
#anastasia .profile__pic img { object-position: center 22%; }
#claude .profile__pic img { object-position: center top; }

.profile__discipline {
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.profile__copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.022em;
  max-width: 14ch;
}

.profile__role {
  margin: 0 0 0.85rem;
  font-weight: 600;
  color: var(--leaf-deep);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 36rem;
}

.profile__text {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.62;
  font-size: 1rem;
}

.profile__label {
  margin: 0.15rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Compact single-column list inside the shared profile copy */
.profile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  max-width: 28rem;
}

.profile__list li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.38;
}

.profile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--leaf-soft);
}

.profile__note {
  margin: 0;
  color: #6a6f66;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 22rem;
}

.profile__phone {
  margin: 0.15rem 0 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
}

.profile__phone a {
  color: var(--leaf-deep);
  text-decoration: none;
}

.profile__phone a:hover {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.profile__link {
  margin: 0.15rem 0 0;
}

.profile__link .link-go {
  min-height: 2.25rem;
  gap: 0;
}

@media (max-width: 640px) {
  .profile__visual {
    width: min(100%, 14.5rem);
    margin-inline: 0;
  }

  .team-hero__pic {
    max-width: 22rem;
    margin-inline: 0;
  }
}
