/* ============================================
   ARICA — Our Team Page
   ============================================ */

.team-page {
  --team-navy: #010728;
  --team-blue: #1378f3;
  --team-ink: #0a1f44;
  --team-muted: #5a6f8c;
  --team-line: rgba(15, 40, 80, 0.1);
  overflow-x: hidden;
}

.team-hero {
  position: relative;
  overflow: hidden;
}

.team-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #010728;
}

.team-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.team-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 7, 40, 0.8) 0%,
    rgba(1, 7, 40, 0.52) 38%,
    rgba(1, 7, 40, 0.22) 68%,
    rgba(1, 7, 40, 0.1) 100%
  );
  pointer-events: none;
}

.team-hero__bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 40%, rgba(76, 147, 228, 0.4) 0%, transparent 65%);
  pointer-events: none;
}

.team-hero__bg-sheen {
  position: absolute;
  inset: -25%;
  background: linear-gradient(120deg,
    rgba(19, 120, 243, 0) 0%,
    rgba(19, 120, 243, 0.35) 35%,
    rgba(140, 205, 255, 0.28) 50%,
    rgba(19, 120, 243, 0) 65%);
  background-size: 250% 250%;
  animation: teamSheenShift 11s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.team-hero__bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.team-hero__bubbles span {
  position: absolute;
  bottom: -10%;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(150, 205, 255, 0.18) 60%, rgba(150, 205, 255, 0) 76%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 6px 1px rgba(110, 190, 255, 0.55), 0 0 16px 4px rgba(19, 120, 243, 0.35);
  filter: drop-shadow(0 0 4px rgba(140, 205, 255, 0.5));
  opacity: 0;
  animation: teamBubbleRise linear infinite;
}

.team-hero__bubbles span:nth-child(1)  { left: 6%;  width: 9px;  height: 9px;  --drift: 22px;  animation-duration: 8.5s;  animation-delay: 0s; }
.team-hero__bubbles span:nth-child(2)  { left: 16%; width: 14px; height: 14px; --drift: -18px; animation-duration: 11s;   animation-delay: 1.2s; }
.team-hero__bubbles span:nth-child(3)  { left: 27%; width: 7px;  height: 7px;  --drift: 12px;  animation-duration: 7.5s;  animation-delay: 2.6s; }
.team-hero__bubbles span:nth-child(4)  { left: 40%; width: 12px; height: 12px; --drift: -20px; animation-duration: 10s;   animation-delay: 0.6s; }
.team-hero__bubbles span:nth-child(5)  { left: 52%; width: 8px;  height: 8px;  --drift: 16px;  animation-duration: 9s;    animation-delay: 3.4s; }
.team-hero__bubbles span:nth-child(6)  { left: 63%; width: 15px; height: 15px; --drift: -14px; animation-duration: 12.5s; animation-delay: 1.8s; }
.team-hero__bubbles span:nth-child(7)  { left: 74%; width: 6px;  height: 6px;  --drift: 10px;  animation-duration: 7s;    animation-delay: 4.2s; }
.team-hero__bubbles span:nth-child(8)  { left: 84%; width: 11px; height: 11px; --drift: -22px; animation-duration: 10.5s; animation-delay: 2.2s; }
.team-hero__bubbles span:nth-child(9)  { left: 92%; width: 9px;  height: 9px;  --drift: 18px;  animation-duration: 8s;    animation-delay: 0.9s; }
.team-hero__bubbles span:nth-child(10) { left: 97%; width: 13px; height: 13px; --drift: -16px; animation-duration: 11.5s; animation-delay: 3.8s; }

@keyframes teamSheenShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes teamBubbleRise {
  0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.6; }
  55% { opacity: 0.35; }
  100% { transform: translateY(-320px) translateX(var(--drift, 16px)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .team-hero__bg-sheen,
  .team-hero__bubbles span {
    animation: none;
  }

  .team-hero__bubbles {
    display: none;
  }
}

.team-hero__inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h, 80px) + 1.5rem) 0 2rem;
  color: #fff;
}

.team-hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.team-hero__heading {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

.team-hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin: 0.85rem 0 0;
}

.team-breadcrumb {
  background: #f7f9fc;
  border-bottom: 1px solid var(--team-line);
  padding: 0.6rem 0;
}

.team-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #5b6b85;
}

.team-breadcrumb__list a {
  color: var(--team-blue);
  text-decoration: none;
}

.team-breadcrumb__list a:hover {
  text-decoration: underline;
}

.team-breadcrumb__sep {
  opacity: 0.5;
}

.team-breadcrumb__current {
  color: var(--team-ink);
  font-weight: 600;
}

.team-list {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 40%, #f7f9fc 100%);
  overflow: hidden;
}

.team-list__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-list__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
}

.team-list__orb--1 {
  width: 320px;
  height: 320px;
  background: #9ec5ff;
  top: -100px;
  right: -60px;
}

.team-list__orb--2 {
  width: 260px;
  height: 260px;
  background: #c5daf8;
  bottom: 10%;
  left: -80px;
}

.team-list__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.team-member {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(1.35rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--team-line);
  border-radius: 1.35rem;
  box-shadow: 0 12px 36px rgba(10, 37, 96, 0.06);
}

.team-member--reverse {
  grid-template-columns: 1fr minmax(220px, 300px);
}

.team-member--reverse .team-member__photo {
  order: 2;
}

.team-member--reverse .team-member__body {
  order: 1;
}

.team-member__photo {
  width: 100%;
}

.team-member__photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 1.15rem;
  overflow: hidden;
  background: linear-gradient(145deg, #0a2560 0%, #1378f3 100%);
  box-shadow: 0 16px 40px rgba(1, 7, 40, 0.18);
}

.team-member__photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-member__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0a2560 0%, #1378f3 100%);
  color: #fff;
}

.team-member__placeholder[hidden] {
  display: none;
}

.team-member__placeholder span {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.team-member__body {
  min-width: 0;
}

.team-member__name {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--team-ink);
  margin: 0 0 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(19, 120, 243, 0.2);
}

.team-member__bio {
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.8;
  color: var(--team-muted);
  margin: 0;
}

.team-member__bio strong {
  color: var(--team-ink);
  font-weight: 700;
}

@media (max-width: 800px) {
  .team-member,
  .team-member--reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .team-member--reverse .team-member__photo,
  .team-member--reverse .team-member__body {
    order: initial;
  }

  .team-member__photo-frame {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .team-member {
    padding: 1rem;
    border-radius: 1.1rem;
  }

  .team-member__photo-frame {
    max-width: 100%;
    border-radius: 1rem;
  }
}
