/**
 * File: team.css
 * Purpose: Styling for the development team page (mirrors about.css design)
 * Used by: team.php
 * Note: Persian section comments are original; English header added
 */
/* ============================================================
   team.css — صفحهٔ تیم توسعه‌دهندگان (Development Team)
   الهام‌گرفته از زبان طراحی about.css برای هماهنگی کامل
   ============================================================ */

main.team-page {
  width: min(1180px, 92vw);
  margin: var(--page-start-gap) auto 3.8rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.6rem);
  color: var(--ink);
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  position: relative;
  isolation: isolate;
}

body.is-loaded main.team-page > section,
body.is-loaded main.team-page > .team-grid-members {
  opacity: 0;
  transform: translateY(28px);
  animation: teamSectionReveal 720ms cubic-bezier(0.2, 0.88, 0.2, 1) both;
  animation-delay: var(--section-delay, 0ms);
  will-change: transform, opacity;
}


/* ============================================================
   HERO
   ============================================================ */
.team-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: clamp(20px, 2.4vw, 28px);
  padding: clamp(1.6rem, 3vw, 2.8rem);
  background:
    radial-gradient(620px 260px at 92% -20%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(520px 280px at -4% 110%, rgba(37, 99, 235, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.team-hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.team-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  animation: teamHeroFloat 18s ease-in-out 3 alternate both;
}
.team-hero-blob-1 { width: 360px; height: 360px; top: -130px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%); }
.team-hero-blob-2 { width: 300px; height: 300px; bottom: -120px; inset-inline-start: -80px; background: radial-gradient(circle, rgba(14, 165, 233, 0.5), transparent 70%); animation-delay: -6s; }
.team-hero-blob-3 { width: 240px; height: 240px; top: 28%; inset-inline-start: 32%; background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 72%); animation-delay: -10s; opacity: 0.4; }

.team-hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at center, #000 30%, transparent 78%);
  opacity: 0.7;
}

.team-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  align-items: center;
  position: relative;
}
.team-hero-content { display: flex; flex-direction: column; gap: 1.05rem; min-width: 0; }

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.16));
  border: 1px solid rgba(124, 58, 237, 0.32);
  color: #6d28d9;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.14);
}
.team-eyebrow svg { width: 18px; height: 18px; flex-shrink: 0; }

.team-hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.5;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.08em 0.28em;
}
.team-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #7c3aed 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-inline: 0.12em;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.18));
}
.team-hero-title em::after {
  content: "";
  position: absolute;
  inset-inline: 8%;
  bottom: 6%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.25), transparent);
  filter: blur(2px);
}

.team-hero-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.8vw, 1.12rem);
  line-height: 1.95;
  max-width: 60ch;
}

.team-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
  margin-top: 0.4rem;
}
.team-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.7));
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  min-width: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.team-hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.team-stat-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.14));
  color: #6d28d9;
  flex-shrink: 0;
}
.team-stat-icon svg { width: 20px; height: 20px; }
.team-stat-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.team-stat-val { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; word-break: break-word; }
.team-stat-lbl { font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.18rem; }

/* ---------- Hero sparkles (decorative SVG) ---------- */
.team-hero-sparkle {
  position: absolute;
  pointer-events: none;
  fill: rgba(37, 99, 235, 0.18);
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.22));
  animation: teamHeroSparkle 5.4s ease-in-out infinite;
  z-index: 0;
}
.team-hero-sparkle-1 {
  width: 36px; height: 36px;
  top: 18%; inset-inline-start: -22px;
  animation-delay: -1.6s;
}
.team-hero-sparkle-2 {
  width: 22px; height: 22px;
  top: -10px; inset-inline-end: 38%;
  fill: rgba(124, 58, 237, 0.28);
  filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.28));
  animation-delay: -3.2s;
}


/* ---------- Hero CTA actions ---------- */
.team-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.team-pill-btn-primary,
.team-pill-btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
  min-height: 44px;
  white-space: nowrap;
}

.team-pill-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}
.team-pill-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.4);
}
.team-pill-btn-primary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.team-pill-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.team-pill-btn-primary:hover .team-pill-btn-shine {
  animation: teamBtnShine 900ms ease forwards;
}
.team-pill-btn-primary:hover .team-pill-btn-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .team-pill-btn-primary:hover .team-pill-btn-arrow {
  transform: translateX(-4px);
}

.team-pill-btn-secondary {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(37, 99, 235, 0.32);
}
.team-pill-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.team-pill-btn-secondary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.team-pill-btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.team-pill-btn-icon svg { width: 18px; height: 18px; flex-shrink: 0; }
.team-pill-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 0.15rem;
  transition: transform 220ms ease;
}
.team-pill-btn-arrow svg { width: 16px; height: 16px; flex-shrink: 0; }
.team-pill-btn-label { white-space: nowrap; }


/* ---------- Side hero decoration panel (glass team card) ---------- */
.team-hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.team-hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 1.4rem 1.3rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.78));
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow:
    0 24px 44px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  isolation: isolate;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.team-hero-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 56px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(37, 99, 235, 0.34);
}

.team-hero-card-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(54px);
  top: -120px; inset-inline-end: -90px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 72%);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}
.team-hero-card-ring {
  position: absolute;
  inset: -10px;
  border-radius: 26px;
  border: 1px dashed rgba(37, 99, 235, 0.22);
  pointer-events: none;
  z-index: -1;
  animation: teamHeroRingDrift 18s linear infinite;
}


/* ---------- Avatars cluster ---------- */
.team-hero-avatars {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding-inline: 0.4rem;
}

.team-hero-avatar {
  position: absolute;
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.18),
    inset 0 0 0 4px rgba(37, 99, 235, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.team-hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team-hero-avatar-initials {
  display: none;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.team-hero-avatar.is-fallback img { display: none; }
.team-hero-avatar.is-fallback .team-hero-avatar-initials { display: inline-flex; }

.team-hero-avatar-1 {
  inset-inline-start: 18%;
  z-index: 2;
  animation: teamHeroAvatarBob 6s ease-in-out infinite;
}
.team-hero-avatar-2 {
  inset-inline-end: 18%;
  z-index: 1;
  transform: translateY(8px) scale(0.94);
  animation: teamHeroAvatarBob 6.6s ease-in-out infinite;
  animation-delay: -2s;
}
.team-hero-card:hover .team-hero-avatar-1 { transform: scale(1.04); }
.team-hero-card:hover .team-hero-avatar-2 { transform: translateY(8px) scale(0.98); }

.team-hero-avatar-role {
  position: absolute;
  bottom: -6px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
  border: 1.5px solid #ffffff;
}

.team-hero-online {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -36px);
  z-index: 3;
}
.team-hero-online-dot {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.team-hero-online-ring {
  display: block;
  position: absolute;
  inset: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: teamHeroOnlinePulse 2.2s ease-out infinite;
}


/* ---------- Card body ---------- */
.team-hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  align-items: center;
}

.team-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.16), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.32);
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.team-hero-badge svg { width: 13px; height: 13px; }

.team-hero-card-title {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1.4;
  margin-top: 0.15rem;
}
.team-hero-card-sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 36ch;
}

.team-hero-tiny-stats {
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(37, 99, 235, 0.22);
}
.team-hero-tiny-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.team-hero-tiny-stats strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-word;
}
.team-hero-tiny-stats span {
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.35;
}


/* ============================================================
   SECTION HEADER
   ============================================================ */
.team-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
  position: relative;
}
.team-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6d28d9;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.16), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.26);
}
.team-section-kicker svg { width: 16px; height: 16px; }
.team-section-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.78rem);
  line-height: 1.45;
  font-weight: 800;
  color: var(--ink);
}
.team-section-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  line-height: 1.95;
  max-width: 70ch;
}
.team-muted { color: var(--ink-soft); }

/* ============================================================
   TECH STACK — شایستگی‌های کلیدی (کارت‌های بنتو)
   بازسازی شده برای هماهنگی با زبان بصری about.css / team.css
   - توکن‌های رنگی هر فناوری روی خود کارت به‌عنوان CSS var تنظیم می‌شوند
   - هاور: بالا رفتن کارت، درخشش رنگی، واترمارک بزرگ‌تر، glow نرم و spotlight ماوس
   - medallion با halo ضربان‌دار، قطعه کد واقعی ترمینال، نوار پوشش پروژه
   ============================================================ */
.team-stack-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background:
    radial-gradient(620px 260px at 92% -20%, rgba(124, 58, 237, 0.16), transparent 62%),
    radial-gradient(520px 280px at -4% 110%, rgba(37, 99, 235, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: clamp(20px, 2.4vw, 28px);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.team-stack-card-decor { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.team-stack-card-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.4;
  mix-blend-mode: multiply;
  animation: teamHeroFloat 18s ease-in-out 3 alternate both;
}
.team-stack-card-blob-1 { width: 320px; height: 320px; top: -110px; inset-inline-end: -100px; background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 70%); }
.team-stack-card-blob-2 { width: 280px; height: 280px; bottom: -120px; inset-inline-start: -80px; background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 70%); animation-delay: -6s; }
.team-stack-card-blob-3 { width: 220px; height: 220px; top: 32%; inset-inline-start: 38%; background: radial-gradient(circle, rgba(14, 165, 233, 0.32), transparent 72%); animation-delay: -10s; opacity: 0.3; }

.team-stack-card-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at center, #000 30%, transparent 78%);
  opacity: 0.6;
}

.team-stack-card-header { position: relative; z-index: 1; }

.team-stack-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.3rem);
}

/* ---------- کارت بنتوی هر فناوری ---------- */
.team-tech-card {
  /* توکن‌های رنگی پیش‌فرض؛ در کلاس‌های tone با مقادیر هر فناوری تنظیم می‌شوند */
  --tone: #2563eb;
  --tone-deep: #1d4ed8;
  --tone-text: #1d4ed8;
  --tone-border: rgba(37, 99, 235, 0.32);
  --tone-border-strong: rgba(37, 99, 235, 0.65);
  --tone-shadow: rgba(37, 99, 235, 0.32);
  --tone-light-bg: rgba(37, 99, 235, 0.12);
  --tone-glow: rgba(37, 99, 235, 0.55);
  --mx: 50%;
  --my: 50%;

  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border-radius: clamp(18px, 2vw, 24px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.86));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.88, 0.2, 1), box-shadow 280ms ease, border-color 280ms ease;
}
.team-tech-card.php  { --tone: #7c3aed; --tone-deep: #5b21b6; --tone-text: #6d28d9; --tone-border: rgba(124, 58, 237, 0.32); --tone-border-strong: rgba(124, 58, 237, 0.65); --tone-shadow: rgba(124, 58, 237, 0.32); --tone-light-bg: rgba(124, 58, 237, 0.12); --tone-glow: rgba(124, 58, 237, 0.55); }
.team-tech-card.js   { --tone: #f59e0b; --tone-deep: #d97706; --tone-text: #b45309; --tone-border: rgba(245, 158, 11, 0.34); --tone-border-strong: rgba(245, 158, 11, 0.65); --tone-shadow: rgba(245, 158, 11, 0.32); --tone-light-bg: rgba(245, 158, 11, 0.14); --tone-glow: rgba(245, 158, 11, 0.55); }
.team-tech-card.css  { --tone: #2563eb; --tone-deep: #1d4ed8; --tone-text: #1d4ed8; --tone-border: rgba(37, 99, 235, 0.32); --tone-border-strong: rgba(37, 99, 235, 0.65); --tone-shadow: rgba(37, 99, 235, 0.32); --tone-light-bg: rgba(37, 99, 235, 0.12); --tone-glow: rgba(37, 99, 235, 0.55); }
.team-tech-card.html { --tone: #f43f5e; --tone-deep: #db2777; --tone-text: #be123c; --tone-border: rgba(244, 63, 94, 0.32); --tone-border-strong: rgba(244, 63, 94, 0.65); --tone-shadow: rgba(244, 63, 94, 0.32); --tone-light-bg: rgba(244, 63, 94, 0.12); --tone-glow: rgba(244, 63, 94, 0.55); }

.team-tech-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  z-index: 2;
}

.team-tech-card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    var(--tone-glow),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1;
  mix-blend-mode: soft-light;
}
.team-tech-card:hover .team-tech-card-spotlight,
.team-tech-card:focus-visible .team-tech-card-spotlight { opacity: 1; }
[data-theme="dark"] .team-tech-card-spotlight {
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--tone) 22%, transparent),
    transparent 60%
  );
}

.team-tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 55%);
  opacity: 0.55;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 0;
}
.team-tech-card:hover::before { opacity: 0.95; }

.team-tech-card-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  top: -110px; inset-inline-end: -100px;
  filter: blur(56px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, var(--tone-glow), transparent 72%);
  transition: opacity 320ms ease, transform 320ms ease;
}
.team-tech-card:hover .team-tech-card-glow {
  opacity: 1;
  transform: translate3d(-10px, 8px, 0) scale(1.08);
}

.team-tech-card-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  z-index: 2;
}

.team-tech-icon-medallion {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tone), var(--tone-deep));
  color: #ffffff;
  flex-shrink: 0;
  isolation: isolate;
  box-shadow:
    0 12px 24px var(--tone-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 280ms cubic-bezier(0.2, 0.88, 0.2, 1), box-shadow 280ms ease;
}
.team-tech-icon-medallion svg { width: 28px; height: 28px; }
.team-tech-icon-medallion::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 26px;
  background: radial-gradient(circle, var(--tone-glow), transparent 70%);
  filter: blur(12px);
  z-index: -1;
  opacity: 0.55;
  animation: teamTechHaloPulse 4s ease-in-out infinite;
  will-change: opacity, filter;
}
.team-tech-icon-medallion::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  opacity: 0.5;
  pointer-events: none;
}
.team-tech-card:hover .team-tech-icon-medallion {
  transform: translateY(-3px) scale(1.05) rotate(-4deg);
}
.team-tech-card:hover .team-tech-icon-medallion::before {
  opacity: 1;
  animation-duration: 1.6s;
  filter: blur(16px);
}
@keyframes teamTechHaloPulse {
  0%, 100% { opacity: 0.5;  filter: blur(12px); }
  50%      { opacity: 0.95; filter: blur(18px); }
}

.team-tech-card-titles {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  padding-top: 0.18rem;
}

.team-tech-card-index {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-family: \"Vazirmatn\", \"Segoe UI\", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tone-text);
  background: var(--tone-light-bg);
  border: 1px solid var(--tone-border);
  letter-spacing: 0.06em;
}

.team-tech-card-name {
  margin: 0;
  font-size: clamp(1.18rem, 2.1vw, 1.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
}
.team-tech-card-name-fa { display: inline-block; }
.team-tech-card-name-en {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.team-tech-card-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  background: var(--tone-light-bg);
  border: 1px solid var(--tone-border);
  color: var(--tone-text);
  z-index: 2;
}
.team-tech-card-role svg { width: 11px; height: 11px; flex-shrink: 0; }

.team-tech-code {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 280ms ease;
}
.team-tech-code::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}
.team-tech-code-head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.72rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.5);
}
.team-tech-code-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.team-tech-code-dot.red    { background: #ef4444; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.team-tech-code-dot.yellow { background: #f59e0b; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.team-tech-code-dot.green  { background: #22c55e; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.team-tech-code-file {
  font-family: \"JetBrains Mono\", \"Fira Code\", \"Consolas\", \"Courier New\", monospace;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.7);
  margin-inline-start: 0.4rem;
  flex: 1;
  text-align: left;
}
.team-tech-code-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  color: var(--tone);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  background: var(--tone-light-bg);
  border-radius: 999px;
  white-space: nowrap;
}
.team-tech-code-pin svg { width: 12px; height: 12px; }
.team-tech-code-body {
  margin: 0;
  padding: 0.6rem 0.85rem 0.78rem;
  font-family: \"JetBrains Mono\", \"Fira Code\", \"Consolas\", \"Courier New\", monospace;
  font-size: 0.78rem;
  line-height: 1.62;
  color: rgba(226, 232, 240, 0.95);
  white-space: pre;
  overflow-x: auto;
  z-index: 1;
}
.team-tech-code-body code { font-family: inherit; }
.team-tech-code-body .tok-key  { color: #c084fc; font-weight: 700; }
.team-tech-code-body .tok-fn   { color: #60a5fa; font-weight: 700; }
.team-tech-code-body .tok-str  { color: #fbbf24; }
.team-tech-code-body .tok-cmt  { color: rgba(148, 163, 184, 0.62); font-style: italic; }
.team-tech-code-body .tok-var  { color: #f472b6; }
.team-tech-code-body .tok-tag  { color: #5eead4; }
.team-tech-code-body .tok-attr { color: #c4b5fd; }
.team-tech-card:hover .team-tech-code {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.team-tech-card:hover .team-tech-code-body .tok-key,
.team-tech-card:hover .team-tech-code-body .tok-fn {
  filter: brightness(1.14) saturate(1.12);
}

.team-tech-card-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.9;
  flex: 1;
  z-index: 2;
}

.team-tech-meter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--tone-light-bg), transparent);
  border: 1px dashed var(--tone-border);
  z-index: 2;
  min-width: 0;
}
.team-tech-meter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tone-text);
  letter-spacing: 0.005em;
  flex-shrink: 0;
  white-space: nowrap;
}
.team-tech-meter-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
  min-width: 60px;
}
.team-tech-meter-fill {
  display: block;
  height: 100%;
  width: var(--progress, 50%);
  background: linear-gradient(90deg, var(--tone), var(--tone-deep));
  border-radius: inherit;
  box-shadow: 0 0 8px var(--tone-shadow);
  transform-origin: inline-start;
  animation: teamTechMeterFill 1.3s cubic-bezier(0.2, 0.88, 0.2, 1) 0.45s both;
}
.team-tech-meter-value {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 0.04rem;
  letter-spacing: 0.005em;
  unicode-bidi: isolate;
  direction: ltr;
}
.team-tech-meter-value .meter-fa,
.team-tech-meter-value .meter-pct { direction: ltr; unicode-bidi: isolate; }
.team-tech-meter-value .meter-pct { font-size: 0.7rem; opacity: 0.7; }
@keyframes teamTechMeterFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.team-tech-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  margin-top: 0.2rem;
  border-top: 1px dashed var(--tone-border);
  z-index: 2;
}
.team-tech-card-foot-icon {
  width: 26px; height: 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tone-light-bg), transparent);
  color: var(--tone-text);
  flex-shrink: 0;
  border: 1px solid var(--tone-border);
}
.team-tech-card-foot-icon svg { width: 13px; height: 13px; }

.team-tech-card-foot-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--tone-text);
  letter-spacing: 0.005em;
}

.team-tech-card-foot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  flex: 1;
  min-width: 0;
}
.team-tech-card-foot-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--tone-light-bg);
  border: 1px solid var(--tone-border);
  color: var(--tone-text);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: default;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.team-tech-card-foot-list li:hover {
  background: var(--tone-light-bg);
  border-color: var(--tone-border-strong);
  filter: saturate(1.2) brightness(0.98);
}

.team-tech-card-watermark {
  position: absolute;
  bottom: -38px;
  inset-inline-end: -22px;
  font-family: \"Vazirmatn\", \"Inter\", \"Segoe UI\", system-ui, sans-serif;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--tone);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform-origin: bottom inline-end;
  transition: transform 360ms cubic-bezier(0.2, 0.88, 0.2, 1), opacity 360ms ease;
}
.team-tech-card:hover .team-tech-card-watermark {
  transform: translate(-4px, -4px) scale(1.06);
  opacity: 0.18;
}

.team-tech-card-corner {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.55;
  color: var(--tone);
  transition: opacity 280ms ease, transform 280ms ease;
}
.team-tech-card-corner svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 6px var(--tone-shadow)); }
.team-tech-card:hover .team-tech-card-corner {
  opacity: 1;
  transform: translate(-2px, -2px) rotate(15deg);
}

.team-tech-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.18),
    0 0 0 1px var(--tone-border-strong);
  border-color: var(--tone-border-strong);
}
.team-tech-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px var(--tone-light-bg),
    0 0 0 6px var(--tone-border-strong);
  border-color: var(--tone-border-strong);
}

/* حذف spotlight در حالت lite برای دستگاه‌های ضعیف‌تر */
main.team-page.team-lite .team-tech-card-spotlight,
main.team-page.team-lite .team-tech-icon-medallion::before,
main.team-page.team-lite .team-tech-card-corner,
main.team-page.team-lite .team-tech-meter-fill {
  animation: none !important;
  transition: none !important;
}
main.team-page.team-lite .team-tech-card-spotlight { display: none; }

/@media (prefers-reduced-motion: reduce) {
  .team-tech-card-spotlight,
  .team-tech-card-watermark,
  .team-tech-icon-medallion::before,
  .team-tech-meter-fill,
  .team-tech-card-corner,
  .team-tech-card { animation: none !important; transition: none !important; }
  .team-tech-card:hover,
  .team-tech-card:hover .team-tech-icon-medallion,
  .team-tech-card:hover .team-tech-card-watermark,
  .team-tech-card:hover .team-tech-card-corner,
  .team-tech-card:hover .team-tech-card-glow,
  .team-tech-card:hover .team-tech-icon-medallion::before { transform: none !important; }
  .team-tech-card:hover .team-tech-card-spotlight { opacity: 0; }
}


/* ============================================================
   TEAM MEMBER CARDS
   ============================================================ */
.team-grid-members {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 2.2vw, 1.7rem);
}

.team-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: clamp(20px, 2.4vw, 26px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
  isolation: isolate;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.34);
}

.team-card-decor { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }

.team-card .team-card-decor::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  top: -150px; inset-inline-start: -130px;
  animation: teamCardFloat 22s ease-in-out 3 alternate both;
}
.team-card .team-card-decor::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.42;
  bottom: -140px; inset-inline-end: -110px;
  animation: teamCardFloat 26s ease-in-out 4 alternate both;
  animation-delay: -8s;
}

.team-card-lead .team-card-decor::before { background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%); }
.team-card-lead .team-card-decor::after  { background: radial-gradient(circle, rgba(37, 99, 235, 0.48), transparent 70%); }

.team-card:not(.team-card-lead) .team-card-decor::before { background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%); }
.team-card:not(.team-card-lead) .team-card-decor::after  { background: radial-gradient(circle, rgba(14, 165, 233, 0.42), transparent 70%); }


/* ---------- LEFT PROFILE PANEL ------------------------------------ */
.team-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 1.6rem;
  min-width: 0;
}

.team-avatar-wrap {
  position: relative;
  width: clamp(160px, 22vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.team-avatar {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.16),
    inset 0 0 0 6px rgba(37, 99, 235, 0.06);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.team-card:hover .team-avatar {
  transform: scale(1.03);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22), inset 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.team-avatar-fallback {
  display: none;
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

/* SVG initials fallback if image fails */
.team-avatar-wrap.is-fallback .team-avatar { display: none; }
.team-avatar-wrap.is-fallback .team-avatar-fallback { display: inline-flex; }

.team-avatar-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.35);
  animation: teamAvatarSpin 22s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.team-avatar-ring::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(124, 58, 237, 0.28);
  animation: teamAvatarSpin 30s linear infinite reverse;
  pointer-events: none;
}

.team-avatar-orbit {
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  pointer-events: none;
  animation: teamAvatarSpin 36s linear infinite;
  z-index: 0;
}
.team-avatar-orbit span {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.team-avatar-orbit span:nth-child(1) { top: 4%; inset-inline-start: 50%; transform: translateX(-50%); }
.team-avatar-orbit span:nth-child(2) { top: 50%; inset-inline-end: -8px; transform: translateY(-50%); }
.team-avatar-orbit span:nth-child(3) { bottom: 4%; inset-inline-start: 50%; transform: translateX(-50%); }
.team-avatar-orbit span:nth-child(4) { top: 50%; inset-inline-start: -8px; transform: translateY(-50%); }
.team-avatar-orbit span svg { width: 14px; height: 14px; }

.team-card-lead .team-avatar-wrap { width: clamp(180px, 24vw, 240px); }
.team-card-lead .team-avatar-orbit span { color: #6d28d9; border-color: rgba(124, 58, 237, 0.32); }


/* ---------- NAME & ROLE -------------------------------------------- */
.team-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.team-name-pri {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.team-name-sec {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.team-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.team-role-lead {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.16), rgba(37, 99, 235, 0.12));
  border-color: rgba(124, 58, 237, 0.34);
  color: #6d28d9;
}
.team-role-member {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.1));
  border-color: rgba(37, 99, 235, 0.32);
  color: #1d4ed8;
}
.team-role::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65);
}
.team-role svg { width: 14px; height: 14px; }


/* ---------- SKILL CHIPS -------------------------------------------- */
.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.team-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
  cursor: default;
}
.team-skill-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14);
}
.team-skill-chip svg { width: 12px; height: 12px; }
.team-skill-chip.php  { background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(91, 33, 182, 0.06)); border-color: rgba(124, 58, 237, 0.32); color: #5b21b6; }
.team-skill-chip.js   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.06));  border-color: rgba(245, 158, 11, 0.34); color: #b45309; }
.team-skill-chip.css  { background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(29, 78, 216, 0.06));   border-color: rgba(37, 99, 235, 0.32);  color: #1d4ed8; }
.team-skill-chip.html { background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(219, 39, 119, 0.06));  border-color: rgba(244, 63, 94, 0.32);  color: #be123c; }


/* ============================================================
   RIGHT BODY PANEL
   ============================================================ */
.team-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
}
.team-body-head h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}
.team-body-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.9;
}

.team-resp-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team-resp-title svg { width: 14px; height: 14px; }

.team-resp-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-resp-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.7));
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.team-resp-list li:hover {
  transform: translateX(-4px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.team-resp-tick {
  width: 24px; height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32);
}
.team-card-lead .team-resp-tick {
  background: linear-gradient(135deg, #7c3aed, #f43f5e);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.32);
}
.team-resp-tick svg { width: 14px; height: 14px; }
.team-resp-text { flex: 1; min-width: 0; }
.team-resp-text strong { font-weight: 800; color: var(--ink); }
.team-resp-text small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.15rem;
  letter-spacing: 0.005em;
}


/* ============================================================
   CONTACT PILLS
   ============================================================ */
.team-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.team-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.18);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
  min-width: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  cursor: pointer;
  min-height: 44px;
}
.team-contact-pill:hover,
.team-contact-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
  background: #ffffff;
  outline: none;
}
.team-contact-pill:focus-visible { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 10px 22px rgba(15, 23, 42, 0.1); }

.team-contact-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}
.team-contact-icon svg { width: 16px; height: 16px; }
.team-contact-icon.email  { background: linear-gradient(135deg, #f43f5e, #db2777); }
.team-contact-icon.phone  { background: linear-gradient(135deg, #10b981, #0d9488); }
.team-contact-icon.github { background: linear-gradient(135deg, #1f2937, #0f172a); }

.team-contact-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.team-contact-text .pill-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team-contact-text .pill-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}


/* ============================================================
   STATS / KEY FIGURES (پایان‌نامهٔ پروژه)
   ============================================================ */
/* ============================================================
   KEY FIGURES / STATS — کارت‌های شاخص کلیدی پروژه
   بازسازی: کارت‌های شیشه‌ای با تم رنگی، درخشش، واترمارک،
   medallion آیکون، فوتر تعاملی و هاور چندلایه.
   هماهنگ با زبان بصری hero / tech-stack
   ============================================================ */
.team-stats-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background:
    radial-gradient(620px 260px at 92% -20%, rgba(124, 58, 237, 0.18), transparent 62%),
    radial-gradient(520px 280px at -4% 110%, rgba(37, 99, 235, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: clamp(20px, 2.4vw, 28px);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* لایهٔ دکوراسیون کارت (حباب‌های شناور، شبکه، جرقه‌ها) */
.team-stats-card-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.team-stats-card-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.4;
  mix-blend-mode: multiply;
  animation: teamHeroFloat 20s ease-in-out 3 alternate both;
}
.team-stats-card-blob-1 { width: 300px; height: 300px; top: -110px; inset-inline-end: -90px; background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 70%); }
.team-stats-card-blob-2 { width: 260px; height: 260px; bottom: -110px; inset-inline-start: -80px; background: radial-gradient(circle, rgba(37, 99, 235, 0.42), transparent 70%); animation-delay: -7s; }
.team-stats-card-blob-3 { width: 200px; height: 200px; top: 38%; inset-inline-start: 42%; background: radial-gradient(circle, rgba(14, 165, 233, 0.32), transparent 72%); animation-delay: -11s; opacity: 0.3; }

.team-stats-card-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at center, #000 30%, transparent 80%);
  opacity: 0.6;
}

.team-stats-card-sparkle {
  position: absolute;
  pointer-events: none;
  fill: rgba(37, 99, 235, 0.18);
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.22));
  animation: teamHeroSparkle 5.4s ease-in-out infinite;
  z-index: 0;
}
.team-stats-card-sparkle-1 { width: 30px; height: 30px; top: 12%; inset-inline-start: -16px; animation-delay: -1.6s; }
.team-stats-card-sparkle-2 { width: 18px; height: 18px; bottom: 18%; inset-inline-end: 6%; fill: rgba(124, 58, 237, 0.28); filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.28)); animation-delay: -3.2s; }

.team-stats-card .team-section-header { position: relative; z-index: 1; margin-bottom: clamp(1.2rem, 2.4vw, 1.7rem); }
.team-stats-card-header h2,
.team-stats-card .team-section-header h2 { color: var(--ink); }

/* چیدمان چهار کارت در یک ردیف؛ در موبایل به یک ستون می‌رسد */
.team-stats-tiles {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.2rem);
}

/* ---------- کارت پایه با توکن‌های رنگی برای هر تم ---------- */
.team-stat-tile {
  --tile-tone: #7c3aed;
  --tile-tone-deep: #5b21b6;
  --tile-tone-text: #6d28d9;
  --tile-tone-border: rgba(124, 58, 237, 0.32);
  --tile-tone-border-strong: rgba(124, 58, 237, 0.62);
  --tile-tone-shadow: rgba(124, 58, 237, 0.32);
  --tile-tone-bg: rgba(124, 58, 237, 0.12);
  --tile-tone-bg-strong: rgba(124, 58, 237, 0.2);
  --tile-tone-glow: rgba(124, 58, 237, 0.5);
  --tile-gradient: linear-gradient(135deg, #7c3aed, #5b21b6);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.4vw, 1rem);
  padding: clamp(1.05rem, 1.7vw, 1.3rem);
  border-radius: clamp(16px, 1.8vw, 22px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.86));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  min-width: 0;
  user-select: none;
  transition: transform 280ms cubic-bezier(0.2, 0.88, 0.2, 1), box-shadow 280ms ease, border-color 280ms ease;
}

.team-stat-tile.violet  { --tile-tone: #7c3aed;  --tile-tone-deep: #5b21b6; --tile-tone-text: #6d28d9; --tile-tone-border: rgba(124, 58, 237, 0.32); --tile-tone-border-strong: rgba(124, 58, 237, 0.62); --tile-tone-shadow: rgba(124, 58, 237, 0.32); --tile-tone-bg: rgba(124, 58, 237, 0.12); --tile-tone-bg-strong: rgba(124, 58, 237, 0.2); --tile-tone-glow: rgba(124, 58, 237, 0.5); --tile-gradient: linear-gradient(135deg, #7c3aed, #5b21b6); }
.team-stat-tile.blue    { --tile-tone: #2563eb;  --tile-tone-deep: #1d4ed8; --tile-tone-text: #1d4ed8; --tile-tone-border: rgba(37, 99, 235, 0.32);  --tile-tone-border-strong: rgba(37, 99, 235, 0.62);  --tile-tone-shadow: rgba(37, 99, 235, 0.32);  --tile-tone-bg: rgba(37, 99, 235, 0.12);  --tile-tone-bg-strong: rgba(37, 99, 235, 0.2);  --tile-tone-glow: rgba(37, 99, 235, 0.5);  --tile-gradient: linear-gradient(135deg, #2563eb, #0ea5e9); }
.team-stat-tile.amber   { --tile-tone: #f59e0b;  --tile-tone-deep: #d97706; --tile-tone-text: #b45309; --tile-tone-border: rgba(245, 158, 11, 0.34); --tile-tone-border-strong: rgba(245, 158, 11, 0.62); --tile-tone-shadow: rgba(245, 158, 11, 0.32); --tile-tone-bg: rgba(245, 158, 11, 0.14); --tile-tone-bg-strong: rgba(245, 158, 11, 0.22); --tile-tone-glow: rgba(245, 158, 11, 0.5); --tile-gradient: linear-gradient(135deg, #f59e0b, #d97706); }
.team-stat-tile.emerald { --tile-tone: #059669;  --tile-tone-deep: #0d9488; --tile-tone-text: #047857; --tile-tone-border: rgba(16, 185, 129, 0.32); --tile-tone-border-strong: rgba(16, 185, 129, 0.62); --tile-tone-shadow: rgba(16, 185, 129, 0.32); --tile-tone-bg: rgba(16, 185, 129, 0.14); --tile-tone-bg-strong: rgba(16, 185, 129, 0.22); --tile-tone-glow: rgba(16, 185, 129, 0.5); --tile-gradient: linear-gradient(135deg, #059669, #0d9488); }

/* بافت نور ملایم روی خود کارت (بدون هاور) */
.team-stat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  transition: opacity 280ms ease;
}
.team-stat-tile:hover::before { opacity: 0.95; }

/* Spotlight (همانند .team-tech-card-spotlight) */
.team-stat-tile-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at 50% 0%, var(--tile-tone-glow), transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
  transition: opacity 220ms ease;
}
.team-stat-tile:hover .team-stat-tile-spotlight { opacity: 0.7; }

/* Glow (حباب رنگی گوشه) */
.team-stat-tile-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  bottom: -90px;
  inset-inline-start: -65px;
  filter: blur(46px);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, var(--tile-tone-glow), transparent 72%);
  transition: opacity 320ms ease, transform 320ms ease;
}
.team-stat-tile:hover .team-stat-tile-glow {
  opacity: 0.85;
  transform: translate3d(8px, -8px, 0) scale(1.12);
}

/* واترمارک حرف/عدد پشت محتوا */
.team-stat-tile-watermark {
  position: absolute;
  top: -28px;
  inset-inline-end: -10px;
  font-family: "Vazirmatn", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--tile-tone);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform-origin: top inline-end;
  transition: transform 360ms cubic-bezier(0.2, 0.88, 0.2, 1), opacity 360ms ease;
}
.team-stat-tile:hover .team-stat-tile-watermark {
  transform: translate(-6px, 6px) scale(1.06);
  opacity: 0.16;
}

.team-stat-tile:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.16),
    0 0 0 1px var(--tile-tone-border-strong);
  border-color: var(--tile-tone-border-strong);
}
.team-stat-tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tile-tone-bg), 0 0 0 5px var(--tile-tone-border-strong);
  border-color: var(--tile-tone-border-strong);
}

/* ---------- سر صفحه: شماره + medallion آیکون ---------- */
.team-stat-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.team-stat-tile-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--tile-tone-bg);
  color: var(--tile-tone-text);
  border: 1px solid var(--tile-tone-border);
}

.team-stat-tile-medallion {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-gradient);
  color: #ffffff;
  flex-shrink: 0;
  isolation: isolate;
  box-shadow:
    0 10px 20px var(--tile-tone-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 280ms cubic-bezier(0.2, 0.88, 0.2, 1), box-shadow 280ms ease;
}
.team-stat-tile-medallion svg { width: 22px; height: 22px; }
.team-stat-tile-medallion::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 22px;
  background: radial-gradient(circle, var(--tile-tone-glow), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms ease;
}
.team-stat-tile-medallion::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  opacity: 0.45;
  pointer-events: none;
}
.team-stat-tile:hover .team-stat-tile-medallion {
  transform: translateY(-2px) scale(1.05) rotate(-4deg);
  box-shadow:
    0 14px 28px var(--tile-tone-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.team-stat-tile:hover .team-stat-tile-medallion::before { opacity: 0.85; }

/* ---------- بدنه: مقدار + توضیح ---------- */
.team-stat-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.team-stat-tile-value {
  font-family: "Vazirmatn", "Inter", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 3.3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-feature-settings: "tnum";
  background: linear-gradient(135deg, var(--tile-tone-deep) 0%, var(--tile-tone) 60%, var(--tile-tone-deep) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 4px var(--tile-tone-shadow));
  word-break: break-word;
}

.team-stat-tile-label {
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.55;
}

/* ---------- فوتر: حالت‌های چهارگانه ---------- */
.team-stat-tile-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.55rem;
  margin-top: 0.15rem;
  border-top: 1px dashed var(--tile-tone-border);
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* فوتر نوع status (با نقطهٔ ضربان‌دار) */
.team-stat-tile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--tile-tone-bg);
  border: 1px solid var(--tile-tone-border);
  color: var(--tile-tone-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.team-stat-tile-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tile-tone);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
  animation: teamTilePulse 2.2s ease-in-out infinite;
}
.team-stat-tile-status.is-verified svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
}
.team-stat-tile-status-text { display: inline-flex; align-items: center; }

@keyframes teamTilePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); transform: scale(1.18); }
}

/* فوتر نوع tags (برای فناوری‌ها) */
.team-stat-tile-foot-tags {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}
.team-stat-tile-foot-caption {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tile-tone-text);
  letter-spacing: 0.01em;
}
.team-stat-tile-tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.team-stat-tile-tag-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--tile-tone-bg);
  border: 1px solid var(--tile-tone-border);
  color: var(--tile-tone-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.team-stat-tile:hover .team-stat-tile-tag-list li {
  background: var(--tile-tone-bg-strong);
}
.team-stat-tile-tag-list li:hover {
  border-color: var(--tile-tone-border-strong);
  transform: translateY(-1px);
}

/* فوتر نوع progress (برای بی‌وقفه) */
.team-stat-tile-foot-progress {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.team-stat-tile-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  isolation: isolate;
}
.team-stat-tile-progress-bar {
  display: block;
  height: 100%;
  width: var(--progress, 50%);
  background: var(--tile-gradient);
  background-size: 200% 100%;
  border-radius: inherit;
  box-shadow: 0 0 8px var(--tile-tone-shadow);
  animation: teamTileProgress 2.6s ease-in-out infinite;
}
@keyframes teamTileProgress {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 0%; }
}
.team-stat-tile-progress-value {
  align-self: flex-end;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--tile-tone-text);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 0.02rem;
  letter-spacing: 0.005em;
  unicode-bidi: isolate;
  direction: ltr;
}
.team-stat-tile-progress-value > span { direction: ltr; unicode-bidi: isolate; }

/* ---------- جرقهٔ گوشهٔ کارت ---------- */
.team-stat-tile-corner {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.5;
  color: var(--tile-tone);
  transition: opacity 280ms ease, transform 280ms ease;
}
.team-stat-tile-corner svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 6px var(--tile-tone-shadow)); }
.team-stat-tile:hover .team-stat-tile-corner {
  opacity: 1;
  transform: translate(-2px, -2px) rotate(15deg);
}


/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes teamSectionReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes teamHeroFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-20px, 18px, 0) scale(1.05); }
  100% { transform: translate3d(20px, -12px, 0) scale(0.97); }
}
@keyframes teamCardFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(20px, -16px, 0) scale(1.06); }
  100% { transform: translate3d(-18px, 14px, 0) scale(0.96); }
}
@keyframes teamAvatarSpin {
  to { transform: rotate(360deg); }
}
@keyframes teamHeroSparkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50%      { transform: rotate(180deg) scale(1.18); opacity: 1; }
}
@keyframes teamBtnShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@keyframes teamHeroRingDrift {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes teamHeroAvatarBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.04); }
}
@keyframes teamHeroOnlinePulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes teamTypewriter {
  0%, 12%   { opacity: 0; transform: translateY(8px); }
  4%, 10%   { opacity: 1; transform: translateY(0); }
  14%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 1; }
  92%, 100% { opacity: 0; transform: translateY(-8px); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .team-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .team-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-stats-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  main.team-page { gap: clamp(0.8rem, 1.6vw, 1.2rem); }
  .team-hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .team-hero-side { order: -1; }
  .team-hero-actions { flex-direction: column; align-items: stretch; }
  .team-pill-btn-primary, .team-pill-btn-secondary { width: 100%; min-height: 48px; }
  .team-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-stats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card { grid-template-columns: 1fr; }
  .team-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .team-hero { padding: 1.2rem 1rem; border-radius: 18px; }
  .team-hero-title { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .team-hero-stats { grid-template-columns: 1fr; }
  .team-hero-stat, .team-stack-item, .team-stat-tile { padding: 0.95rem 1rem; gap: 0.75rem; }
  .team-pill-btn-primary, .team-pill-btn-secondary { padding: 0.8rem 1rem; }
  .team-hero-card { padding: 1.1rem 1rem 1.05rem; max-width: 100%; border-radius: 18px; }
  .team-hero-avatars { height: 84px; }
  .team-hero-avatar { width: 64px; height: 64px; }
  .team-hero-tiny-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
  .team-hero-tiny-stats strong { font-size: 0.9rem; }
  .team-hero-tiny-stats span { font-size: 0.66rem; }
  .team-hero-sparkle-1 { width: 26px; height: 26px; }
  .team-hero-sparkle-2 { width: 16px; height: 16px; }
  .team-stack-grid { grid-template-columns: 1fr; }
  .team-stats-tiles { grid-template-columns: 1fr; }
  .team-stats-card-sparkle-1 { width: 22px; height: 22px; }
  .team-stats-card-sparkle-2 { width: 14px; height: 14px; }
  .team-stack-icon { width: 38px; height: 38px; }
  .team-stack-icon svg { width: 18px; height: 18px; }
  .team-stat-tile-medallion { width: 42px; height: 42px; border-radius: 12px; }
  .team-stat-tile-medallion svg { width: 20px; height: 20px; }
  .team-stat-tile-value { font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
  .team-stat-tile-label { font-size: 0.78rem; }
  .team-card { padding: 1rem; border-radius: 18px; }
  .team-avatar-wrap { width: 160px; }
  .team-skill-chip, .team-role { font-size: 0.72rem; }
  .team-contact { grid-template-columns: 1fr; }
  .team-contact-pill { padding: 0.6rem 0.8rem; min-height: 48px; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
/* ============================================================
   LITE MODE (دستگاه‌های ضعیف‌تر)
   در صورت تشخیص توسط team-entrance.js کلاس team-lite به main.team-page
   اضافه می‌شود. در این حالت انیمیشن‌های سنگین و پیوسته غیرفعال می‌شوند
   تا فشار کمتری به پردازندهٔ دستگاه وارد شود.
   ============================================================ */
main.team-page.team-lite .team-hero-sparkle,
main.team-page.team-lite .team-hero-card-ring,
main.team-page.team-lite .team-hero-avatar-1,
main.team-page.team-lite .team-hero-avatar-2,
main.team-page.team-lite .team-hero-online-ring,
main.team-page.team-lite .team-hero-blob,
main.team-page.team-lite .team-stats-card-blob,
main.team-page.team-lite .team-stats-card-sparkle,
main.team-page.team-lite .team-stat-tile-medallion::before,
main.team-page.team-lite .team-stat-tile-status-dot,
main.team-page.team-lite .team-stat-tile-progress-bar {
  animation: none !important;
}
main.team-page.team-lite .team-hero-avatar-1,
main.team-page.team-lite .team-hero-avatar-2 {
  transform: scale(1) !important;
}
main.team-page.team-lite .team-stat-tile-spotlight { display: none; }

@media (prefers-reduced-motion: reduce) {
  .team-hero-blob,
  .team-hero-sparkle,
  .team-hero-card-ring,
  .team-hero-avatar-1,
  .team-hero-avatar-2,
  .team-hero-online-ring,
  .team-pill-btn-shine,
  .team-card-decor::before,
  .team-card-decor::after,
  .team-avatar-ring,
  .team-avatar-ring::after,
  .team-avatar-orbit,
  .team-codeblock-body,
  .team-stats-card-blob,
  .team-stats-card-sparkle,
  .team-stat-tile-glow,
  .team-stat-tile-spotlight,
  .team-stat-tile-watermark,
  .team-stat-tile-corner,
  .team-stat-tile-medallion::before,
  .team-stat-tile-status-dot,
  .team-stat-tile-progress-bar { animation: none !important; transition: none !important; }
  body.is-loaded main.team-page > section,
  body.is-loaded main.team-page > .team-grid-members,
  body.is-loaded main.team-page .team-hero > *,
  body.is-loaded main.team-page .team-hero-stat,
  body.is-loaded main.team-page .team-hero-actions > *,
  body.is-loaded main.team-page .team-section-header > *,
  body.is-loaded main.team-page .team-stack-item,
  body.is-loaded main.team-page .team-card,
  body.is-loaded main.team-page .team-card-decor,
  body.is-loaded main.team-page .team-stat-tile,
  body.is-loaded main.team-page .team-contact-pill,
  body.is-loaded main.team-page .team-resp-list li,
  body.is-loaded main.team-page .team-skill-chip {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .team-card:hover, .team-avatar, .team-resp-list li:hover,
  .team-stack-item:hover, .team-stat-tile:hover, .team-contact-pill:hover,
  .team-hero-stat:hover, .team-skill-chip:hover,
  .team-hero-card:hover, .team-pill-btn-primary:hover, .team-pill-btn-secondary:hover,
  .team-stat-tile-medallion:hover { transform: none !important; }
  .team-pill-btn-primary:hover .team-pill-btn-arrow { transform: none !important; }
  .team-stat-tile:hover .team-stat-tile-spotlight,
  .team-stat-tile:hover .team-stat-tile-glow,
  .team-stat-tile:hover .team-stat-tile-corner,
  .team-stat-tile:hover .team-stat-tile-watermark,
  .team-stat-tile:hover .team-stat-tile-medallion::before { opacity: 0 !important; }
  .team-stat-tile:hover .team-stat-tile-glow { transform: none !important; }
  .team-stat-tile:hover .team-stat-tile-status-dot { animation: none !important; }
  .team-stat-tile:hover .team-stat-tile-progress-bar { animation: none !important; }
}


/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] .team-hero,
[data-theme="dark"] .team-stack-card,
[data-theme="dark"] .team-stats-card {
  background:
    radial-gradient(620px 260px at 92% -20%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(520px 280px at -4% 110%, rgba(37, 99, 235, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(148, 163, 184, 0.06);
}
[data-theme="dark"] .team-stats-card-blob { mix-blend-mode: screen; opacity: 0.42; }
[data-theme="dark"] .team-stats-card-sparkle { fill: rgba(96, 165, 250, 0.32); filter: drop-shadow(0 4px 14px rgba(96, 165, 250, 0.24)); }
[data-theme="dark"] .team-stats-card-grid-overlay {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  opacity: 0.5;
}
[data-theme="dark"] .team-stat-tile {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.92));
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .team-stat-tile::before {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), transparent 55%);
}
[data-theme="dark"] .team-stat-tile:hover {
  border-color: var(--tile-tone-border-strong);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--tile-tone-border-strong);
}
[data-theme="dark"] .team-stat-tile-watermark { opacity: 0.12; }
[data-theme="dark"] .team-stat-tile:hover .team-stat-tile-watermark { opacity: 0.22; }
[data-theme="dark"] .team-stat-tile-status-dot { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.6); }
[data-theme="dark"] .team-stat-tile-progress { background: rgba(148, 163, 184, 0.18); }
[data-theme="dark"] .team-stat-tile-medallion { box-shadow: 0 10px 22px var(--tile-tone-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
/* Dark theme: gradient fills the text via background-clip so the value
   reads as bright, glowing brand-color typography instead of falling back
   to flat opaque color. Pattern mirrors .team-hero-title em above. */
[data-theme="dark"] .team-stat-tile-value {
  background-image: linear-gradient(135deg, var(--tile-tone-deep) 0%, var(--tile-tone) 50%, var(--tile-tone-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px var(--tile-tone-glow));
}

[data-theme="dark"] .team-card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .team-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .team-section-header h2,
[data-theme="dark"] .team-hero-title,
[data-theme="dark"] .team-body-head h3,
[data-theme="dark"] .team-name-pri,
[data-theme="dark"] .team-stack-body strong,
[data-theme="dark"] .team-section-sub,
[data-theme="dark"] .team-hero-sub,
[data-theme="dark"] .team-body-head p,
[data-theme="dark"] .team-name-sec,
[data-theme="dark"] .team-stack-body span,
[data-theme="dark"] .team-stat-tile-label,
[data-theme="dark"] .team-muted { color: #cbd5e1; }

[data-theme="dark"] .team-hero-stat,
[data-theme="dark"] .team-stack-item,
[data-theme="dark"] .team-resp-list li,
[data-theme="dark"] .team-contact-pill {
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.92));
  border-color: rgba(148, 163, 184, 0.26);
  color: #e2e8f0;
}

[data-theme="dark"] .team-hero-stat:hover,
[data-theme="dark"] .team-stack-item:hover { border-color: rgba(96, 165, 250, 0.5); }

[data-theme="dark"] .team-eyebrow,
[data-theme="dark"] .team-section-kicker,
[data-theme="dark"] .team-role-lead,
[data-theme="dark"] .team-role-member {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.24), rgba(37, 99, 235, 0.18));
  border-color: rgba(167, 139, 250, 0.45);
}
[data-theme="dark"] .team-eyebrow,
[data-theme="dark"] .team-section-kicker { color: #c4b5fd; }
[data-theme="dark"] .team-role-lead { color: #c4b5fd; }
[data-theme="dark"] .team-role::before { box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.65); }

[data-theme="dark"] .team-contact-pill:hover,
[data-theme="dark"] .team-contact-pill:focus-visible {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(96, 165, 250, 0.5);
}
[data-theme="dark"] .team-contact-text .pill-val { color: #e2e8f0; }
[data-theme="dark"] .team-contact-text .pill-lbl { color: #94a3b8; }

[data-theme="dark"] .team-skill-chip { background: rgba(15, 23, 42, 0.85); border-color: rgba(148, 163, 184, 0.26); color: #e2e8f0; }
[data-theme="dark"] .team-skill-chip:hover { color: #93c5fd; border-color: rgba(96, 165, 250, 0.5); }
[data-theme="dark"] .team-skill-chip.php  { background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(91, 33, 182, 0.1)); border-color: rgba(167, 139, 250, 0.4); color: #c4b5fd; }
[data-theme="dark"] .team-skill-chip.js   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.08));   border-color: rgba(245, 158, 11, 0.42); color: #fcd34d; }
[data-theme="dark"] .team-skill-chip.css  { background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(29, 78, 216, 0.08)); border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; }
[data-theme="dark"] .team-skill-chip.html { background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(219, 39, 119, 0.08));  border-color: rgba(244, 63, 94, 0.42); color: #fda4af; }

[data-theme="dark"] .team-resp-list li:hover { box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); }

[data-theme="dark"] .team-hero-blob { mix-blend-mode: screen; opacity: 0.45; }
[data-theme="dark"] .team-card-decor::before,
[data-theme="dark"] .team-card-decor::after { mix-blend-mode: screen; opacity: 0.35; }
[data-theme="dark"] .team-hero-grid-overlay {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] .team-avatar {
  border-color: rgba(15, 23, 42, 0.85);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
}
[data-theme="dark"] .team-avatar-fallback { border-color: rgba(15, 23, 42, 0.85); }
[data-theme="dark"] .team-avatar-ring { border-color: rgba(96, 165, 250, 0.5); }
[data-theme="dark"] .team-avatar-ring::after { border-color: rgba(167, 139, 250, 0.42); }
[data-theme="dark"] .team-avatar-orbit span {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  border-color: rgba(96, 165, 250, 0.42);
  color: #93c5fd;
}

[data-theme="dark"] .team-resp-text strong { color: #f8fafc; }
[data-theme="dark"] .team-resp-text small { color: #94a3b8; }


/* ---------- Dark mode: premium hero (card / pills / sparkles) ---------- */
[data-theme="dark"] .team-hero-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.92));
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(148, 163, 184, 0.06);
}
[data-theme="dark"] .team-hero-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(148, 163, 184, 0.08);
}
[data-theme="dark"] .team-hero-card-ring { border-color: rgba(96, 165, 250, 0.32); }
[data-theme="dark"] .team-hero-card-glow { opacity: 0.55; }
[data-theme="dark"] .team-hero-card-title { color: #f8fafc; }
[data-theme="dark"] .team-hero-card-sub { color: #cbd5e1; }
[data-theme="dark"] .team-hero-tiny-stats { border-top-color: rgba(96, 165, 250, 0.28); }
[data-theme="dark"] .team-hero-tiny-stats strong { color: #f8fafc; }
[data-theme="dark"] .team-hero-tiny-stats span { color: #94a3b8; }
[data-theme="dark"] .team-hero-badge {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.24), rgba(37, 99, 235, 0.18));
  border-color: rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
}
[data-theme="dark"] .team-hero-avatar { border-color: rgba(15, 23, 42, 0.85); }
[data-theme="dark"] .team-hero-avatar-role { border-color: rgba(15, 23, 42, 0.85); }
[data-theme="dark"] .team-hero-online-dot { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.9); }
[data-theme="dark"] .team-hero-sparkle { fill: rgba(96, 165, 250, 0.32); filter: drop-shadow(0 4px 14px rgba(96, 165, 250, 0.32)); }
[data-theme="dark"] .team-hero-sparkle-2 { fill: rgba(167, 139, 250, 0.32); filter: drop-shadow(0 4px 14px rgba(167, 139, 250, 0.32)); }

[data-theme="dark"] .team-pill-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #38bdf8 100%);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.4);
}
[data-theme="dark"] .team-pill-btn-primary:hover {
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.52);
}
[data-theme="dark"] .team-pill-btn-secondary {
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(96, 165, 250, 0.42);
}
[data-theme="dark"] .team-pill-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(96, 165, 250, 0.65);
}

/* ---------- Dark theme overrides for new team-tech-card internals ---------- */
[data-theme="dark"] .team-tech-card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .team-tech-card:hover {
  border-color: var(--tone-border-strong);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.6),
              0 0 0 1px var(--tone-border-strong);
}
[data-theme="dark"] .team-tech-card::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), transparent 60%);
  opacity: 0.7;
}
[data-theme="dark"] .team-tech-card-head,
[data-theme="dark"] .team-tech-card-desc,
[data-theme="dark"] .team-tech-card-foot { color: #e2e8f0; }
[data-theme="dark"] .team-tech-card-desc { color: #cbd5e1; }
[data-theme="dark"] .team-tech-meter {
  background: linear-gradient(120deg, var(--tone-light-bg), rgba(15, 23, 42, 0.6));
  border-color: var(--tone-border);
}
[data-theme="dark"] .team-tech-meter-track {
  background: rgba(148, 163, 184, 0.18);
}
[data-theme="dark"] .team-tech-meter-value { color: #f8fafc; }
[data-theme="dark"] .team-tech-card-foot-list li {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--tone-border);
  color: var(--tone-text);
}
[data-theme="dark"] .team-tech-card-foot-list li:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--tone-border-strong);
  color: #f1f5f9;
  filter: none;
}
[data-theme="dark"] .team-tech-card-foot-icon {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--tone-border);
}
[data-theme="dark"] .team-tech-card-watermark {
  opacity: 0.14;
  color: var(--tone);
}
[data-theme="dark"] .team-tech-card:hover .team-tech-card-watermark {
  opacity: 0.28;
}

/* ---------- Responsive overrides for new team-tech-card internals ---------- */
@media (max-width: 1100px) {
  .team-tech-icon-medallion { width: 54px; height: 54px; }
  .team-tech-icon-medallion svg { width: 24px; height: 24px; }
}
@media (max-width: 900px) {
  .team-tech-card { padding: clamp(1rem, 2vw, 1.3rem); }
  .team-tech-icon-medallion { width: 50px; height: 50px; }
  .team-tech-icon-medallion svg { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
  .team-stack-grid { grid-template-columns: 1fr; }
  .team-tech-card-watermark { font-size: 6rem; bottom: -28px; inset-inline-end: -10px; }
  .team-tech-code-body { font-size: 0.72rem; line-height: 1.55; }
  .team-tech-icon-medallion { width: 46px; height: 46px; }
  .team-tech-icon-medallion svg { width: 20px; height: 20px; }
  .team-tech-card-meter-label,
  .team-tech-card-foot-label { font-size: 0.7rem; }
}
