/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team { position: relative; overflow: hidden; background: linear-gradient(180deg, #f6f9fe 0%, #ffffff 100%); }
.team__bg { position: absolute; inset: 0; pointer-events: none; }
.team__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: 0.55; }
.team__glow:not(.team__glow--b) { top: -180px; left: -120px; background: radial-gradient(circle, rgba(28,129,255,0.32), transparent 60%); }
.team__glow--b { bottom: -200px; right: -160px; background: radial-gradient(circle, rgba(124,58,237,0.22), transparent 60%); }

.team__head {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.team__head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.team__head .lead { margin: 0; max-width: 50ch; }

.team-scroll {
  position: relative; z-index: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: 8px clamp(20px, 5vw, 56px) 32px;
  cursor: grab;
}
.team-scroll:active { cursor: grabbing; }
.team-scroll::-webkit-scrollbar { display: none; }
.team-scroll__track {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.tmember {
  position: relative;
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(11,21,48,0.06);
  border-radius: 22px;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 48px -28px rgba(11,21,48,0.18), 0 2px 6px -2px rgba(11,21,48,0.04);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.tmember::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% -10%, rgba(28,129,255,0.08), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.tmember:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -28px rgba(28,129,255,0.35), 0 4px 10px -2px rgba(11,21,48,0.06);
  border-color: rgba(28,129,255,0.25);
}
.tmember:hover::before { opacity: 1; }

.tmember__badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1c81ff, #0b5fd6);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(28,129,255,0.55);
}
.tmember__badge--lead { background: linear-gradient(135deg, #7c3aed, #1c81ff); }

.tmember__avatar {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 8px auto 18px;
  background: linear-gradient(135deg, var(--tm-grad-a, #1c81ff), var(--tm-grad-b, #0b1530));
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(28,129,255,0.45), inset 0 0 0 4px rgba(255,255,255,0.6);
}
.tmember__initials {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.tmember__pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(28,129,255,0.4);
  animation: tmemberPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes tmemberPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

.tmember__meta { text-align: center; flex: 1; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.tmember__meta h4 { font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px; color: #0b1530; line-height: 1.2; }
.tmember__role {
  display: inline-block;
  align-self: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c81ff;
  padding: 4px 10px;
  background: rgba(28,129,255,0.08);
  border-radius: 999px;
  margin-top: 2px;
}
.tmember__bio {
  font-size: 13px;
  color: #555f7d;
  line-height: 1.55;
  margin-top: 8px;
}

.tmember__socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(11,21,48,0.08);
  position: relative;
  z-index: 1;
}
.tmember__socials a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(28,129,255,0.08);
  color: #1c81ff;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.tmember__socials a:hover {
  background: #1c81ff;
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}

.tmember--founder { background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%); border-color: rgba(28,129,255,0.18); }
.tmember--lead { background: linear-gradient(180deg, #ffffff 0%, #f6f3ff 100%); border-color: rgba(124,58,237,0.18); }

.team-scroll__hint {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c81ff;
}
.team-scroll__hint em { color: #555f7d; font-style: normal; letter-spacing: 0.1em; }

@media (max-width: 980px) {
  .team__head { grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
  .tmember { flex: 0 0 260px; }
}
@media (max-width: 560px) {
  .tmember { flex: 0 0 78%; }
}

/* ==========================================================================
   AWARDS — mobile horizontal scrollers
   ========================================================================== */
.awards__strip { display: contents; }

@media (max-width: 720px) {
  /* small awards (4 cards) — horizontal swipe lane */
  .awards__strip {
    display: flex;
    grid-column: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 14px;
    margin: 4px -20px 0;
    padding: 4px 20px 14px;
  }
  .awards__strip::-webkit-scrollbar { display: none; }
  .awards__strip > .award {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
  }

  /* trophy scroll — make sure it actually scrolls inside the stat card */
  .award--stat {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 18px 0 18px 18px;
  }
  .award--stat .trophy-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    margin: 0 -18px 0 0;
    padding: 4px 18px 12px 0;
  }
  .award--stat .trophy-scroll__track { width: max-content; }
  .award--stat .trophy-card { flex: 0 0 240px; }
  .trophy-scroll__hint { padding: 0 18px 4px 0; }
}
