/**
 * MLSC — Teams / Members Section Styles
 * Vertically Stacked Multi-Team Layout with Independent 3D Coverflow Stages
 * Crisp Vector Typography, Zero Blurriness, Pure Black Aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ========================================================= */
/* 0. PURE BLACK THEME & LENIS SMOOTH SCROLL INTEGRATION     */
/* ========================================================= */
:root {
  --ms-blue: #00a4ef;
}

html {
  scroll-behavior: auto;
  background-color: #000000 !important;
  background: #000000 !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: #000000 !important;
  background: #000000 !important;
  color: #f3f4f6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: clip;
}

/* ========================================================= */
/* 1. TEAMS SECTION CONTAINER & PURE BLACK BACKGROUND       */
/* ========================================================= */
.teams-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #000000 !important;
  background-color: #000000 !important;
  color: #f3f4f6;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================================= */
/* 2. TEAMS HERO / HEADER VIEWPORT (100vh Proper Viewport)   */
/* ========================================================= */
.teams-hero-viewport {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  position: relative;
  z-index: 10;
  padding: clamp(75px, 11vh, 100px) 24px clamp(30px, 5vh, 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  background: #000000 !important;
  background-color: #000000 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.event-glow {
  position: absolute;
  top: -10rem;
  left: 50%;
  height: clamp(24rem, 36vw, 32rem);
  width: clamp(24rem, 36vw, 32rem);
  transform: translateX(-50%);
  border-radius: 9999px;
  filter: blur(72px);
  -webkit-filter: blur(72px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

/* ========================================================= */
/* 2. SECTION MAIN HEADER                                    */
/* ========================================================= */
.teams-header {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.teams-tag {
  display: none !important;
}

.teams-tag-dot {
  display: none !important;
}

.teams-title {
  margin: 0 auto;
  max-width: 860px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #ffffff;
}

/* Solid MLSC Blue accent - No gradient */
.teams-title .title-accent,
.teams-title .title-gradient {
  color: var(--ms-blue, #00a4ef);
  display: inline-block;
  text-shadow: 0 0 28px rgba(0, 164, 239, 0.35);
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--ms-blue, #00a4ef) !important;
}

.teams-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted, #9ca3af);
  line-height: 1.65;
  max-width: 660px;
  margin: 1.25rem auto 0;
  opacity: 0.92;
}

/* ========================================================= */
/* 2.5 YEAR / TENURE NAVIGATION SWITCHER                    */
/* ========================================================= */
.teams-tenure-switch-wrapper {
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 30;
}

.teams-tenure-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 9999px;
  background: rgba(15, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.teams-tenure-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  white-space: nowrap;
}

.teams-tenure-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.teams-tenure-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.18));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

@media (max-width: 640px) {
  .teams-tenure-switch {
    gap: 4px;
    padding: 4px 6px;
  }
  .teams-tenure-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* ========================================================= */
/* 3. STICKY QUICK-JUMP PILL NAVIGATION BAR                  */
/* ========================================================= */
.teams-jump-nav {
  position: relative;
  z-index: 35;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}


.teams-jump-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(15, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.teams-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.teams-jump-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.teams-jump-btn.active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.teams-jump-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

/* Domain specific active pills */
.teams-jump-btn[data-domain="Core Team"].active {
  background: rgba(255, 185, 0, 0.16);
  color: #ffb900;
  border-color: #ffb900;
  box-shadow: 0 0 12px rgba(255, 185, 0, 0.28);
}

.teams-jump-btn[data-domain="AI / ML"].active {
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.28);
}

.teams-jump-btn[data-domain="Tech Heads"].active {
  background: rgba(0, 164, 239, 0.16);
  color: #38bdf8;
  border-color: #00a4ef;
  box-shadow: 0 0 12px rgba(0, 164, 239, 0.28);
}

.teams-jump-btn[data-domain="Web Development"].active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.teams-jump-btn[data-domain="IT"].active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.teams-jump-btn[data-domain="DevOps"].active {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border-color: #0ea5e9;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.28);
}

.teams-jump-btn[data-domain="Cyber Security"].active {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28);
}

.teams-jump-btn[data-domain="CP"].active {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.28);
}

.teams-jump-btn[data-domain="Operations"].active {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  border-color: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.28);
}

.teams-jump-btn[data-domain="Management"].active {
  background: rgba(251, 146, 60, 0.16);
  color: #fdba74;
  border-color: #fb923c;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.28);
}

.teams-jump-btn[data-domain="Event Management"].active {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  border-color: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.28);
}

.teams-jump-btn[data-domain="Marketing"].active {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.28);
}

.teams-jump-btn[data-domain="Sponsorship"].active {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.teams-jump-btn[data-domain="Sponsorship & Marketing"].active {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.28);
}

.teams-jump-btn[data-domain="Finance"].active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.teams-jump-btn[data-domain="Accounts & Finance"].active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.teams-jump-btn[data-domain="Design"].active {
  background: rgba(236, 72, 153, 0.16);
  color: #ec4899;
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.28);
}

.teams-jump-btn[data-domain="Social Media"].active {
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.28);
}

.teams-jump-btn[data-domain="UI / UX & Design"].active {
  background: rgba(236, 72, 153, 0.16);
  color: #ec4899;
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.28);
}

.teams-jump-btn[data-domain="Videography & Media"].active {
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.28);
}

/* Category indicator tag on Jump Pills */
.teams-jump-cat-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: normal;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.2;
}

.teams-jump-cat-tag.core {
  background: rgba(255, 185, 0, 0.16);
  color: #fde047;
  border: 1px solid rgba(255, 185, 0, 0.35);
}

.teams-jump-cat-tag.tech {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.teams-jump-cat-tag.nontech {
  background: rgba(236, 72, 153, 0.16);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

/* Category Wing Dividers */
.team-wing-divider {
  display: none !important;
}

.team-wing-title {
  display: none !important;
}

.team-wing-line {
  display: none !important;
}

@media (max-width: 640px) {
  .team-wing-divider {
    margin: 60px auto 20px;
    padding: 0 16px;
  }

  .team-wing-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

/* ========================================================= */
/* 4. VERTICALLY STACKED TEAMS SECTIONS                      */
/* ========================================================= */
.teams-sections-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 90px;
  margin: 0 auto;
  background: #000000 !important;
  background-color: #000000 !important;
  box-sizing: border-box;
}

.team-domain-block {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 130px;
  padding: clamp(60px, 9vh, 90px) 16px clamp(60px, 9vh, 90px);
  background: #000000 !important;
  background-color: #000000 !important;
  box-sizing: border-box;
}

/* Domain Block Header */
.team-domain-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.team-domain-badge {
  display: none !important;
}

.team-domain-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0;
  text-align: center;
}

.team-domain-desc {
  display: none !important;
}

/* ========================================================= */
/* 5. 3D COVERFLOW CAROUSEL STAGE PER TEAM                   */
/* ========================================================= */
.teams-carousel-stage {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin: 0 auto;
  user-select: none;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
  box-sizing: border-box;
}

.teams-cards-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Showcase presentation for single member teams (e.g. CP) */
.team-showcase-single {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  z-index: 10;
}

.team-showcase-single .team-card {
  position: relative;
  top: auto;
  left: auto;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 15;
}

/* ========================================================= */
/* 6. MEMBER CARD                                            */
/* ========================================================= */
.team-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 450px;
  margin: 0;
  border-radius: 20px;
  background: linear-gradient(175deg, #111524 0%, #090c15 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px 12px;
  box-sizing: border-box;
  cursor: pointer;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: flat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease, border-color 0.25s ease;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translate3d(-50%, -50%, -160px) scale(0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Active Center Card: Prominent Glow & 1.0 Scale */
.team-card.is-active {
  cursor: default;
  border: 2px solid var(--active-accent, #60a5fa);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.35), 0 12px 28px rgba(0, 0, 0, 0.8);
  transform-style: flat;
  z-index: 15;
}

/* Inset Photo Box */
.team-card-photo-box {
  position: relative;
  width: 100%;
  height: 215px;
  aspect-ratio: 280 / 215;
  contain: layout paint;
  border-radius: 14px;
  overflow: hidden;
  background: #131724;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-card-photo-empty {
  display: block;
  background: #131724;
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

/* Card Content: Simple, Clean, Crisp Typography */
.team-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 10px 4px 0 4px;
  text-align: left;
}

.team-card-info-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.team-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.team-card-role-row {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.team-card-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 9999px;
  background: #0d1b30;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.team-card-academic {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 6px;
}

.academic-cap {
  font-size: 0.92rem;
}

.academic-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: normal;
}

.team-card-about {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.46;
  margin: 2px 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: left;
  letter-spacing: -0.005em;
}

.team-card-about:empty {
  display: none !important;
}

/* Card Footer: GitHub & LinkedIn Logo Links */
.team-card-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.team-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer !important;
  position: relative;
  z-index: 50 !important;
  pointer-events: auto !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.team-social-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.team-social-btn:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.team-social-btn:active {
  transform: translateY(0);
  background: rgba(56, 189, 248, 0.4);
}

/* ========================================================= */
/* 7. NAVIGATION CONTROLS (PREV/NEXT ARROWS)                 */
/* ========================================================= */
.teams-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 28, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.15s ease;
  outline: none;
}

.teams-nav-btn.prev {
  left: 20px;
}

.teams-nav-btn.next {
  right: 20px;
}

.teams-nav-btn:hover {
  background: rgba(26, 32, 50, 0.9);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
}

.teams-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* ========================================================= */
/* 8. RESPONSIVE MEDIA QUERIES                               */
/* ========================================================= */
@media (max-width: 1024px) {
  .teams-section {
    padding: 0 0 60px;
  }

  .teams-sections-wrapper {
    gap: 75px;
  }

  .teams-carousel-stage {
    height: 490px;
  }

  .team-card {
    width: 265px;
    height: 420px;
  }

  .team-card-photo-box {
    height: 195px;
  }
}

@media (max-width: 768px) {
  .teams-section {
    padding: 0 0 50px;
  }

  .teams-hero-viewport {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    padding: clamp(80px, 12vh, 100px) 18px clamp(36px, 5vh, 48px);
    justify-content: center;
  }

  .teams-sections-wrapper {
    gap: 60px;
  }

  .teams-jump-nav {
    position: relative;
    top: auto;
    margin-top: 10px;
    margin-bottom: 25px;
    padding: 0 4px;
    max-width: 100%;
  }

  .teams-jump-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    max-width: 100%;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9999px;
    box-sizing: border-box;
  }

  .teams-jump-container::-webkit-scrollbar {
    display: none;
  }

  .teams-jump-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  .teams-header {
    margin-bottom: 14px;
  }

  .teams-title {
    font-size: 2rem;
  }

  .team-domain-title {
    font-size: 1.5rem;
  }

  .teams-carousel-stage {
    height: 470px;
  }

  .team-card {
    width: 265px;
    height: 420px;
  }

  .team-card-photo-box {
    height: 190px;
  }

  .team-card-about {
    font-size: 0.84rem;
    -webkit-line-clamp: 3;
  }

  .teams-nav-btn {
    width: 38px;
    height: 38px;
  }

  .teams-nav-btn.prev {
    left: 4px;
  }

  .teams-nav-btn.next {
    right: 4px;
  }
}

@media (max-width: 480px) {
  .teams-section {
    padding: 0 !important;
  }

  .teams-hero-viewport {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    padding: 85px 12px 28px;
    justify-content: flex-start;
  }

  .teams-sections-wrapper {
    gap: 0;
  }

  .teams-carousel-stage {
    height: 470px;
  }

  .team-card {
    width: 275px;
    height: 430px;
    padding: 12px;
  }

  .team-card-photo-box {
    height: 195px;
  }

  .team-card-name {
    font-size: 1.2rem;
  }

  .team-card-about {
    font-size: 0.84rem;
    -webkit-line-clamp: 3;
  }

  .teams-nav-btn {
    width: 36px;
    height: 36px;
  }

  .teams-nav-btn.prev {
    left: 2px;
  }

  .teams-nav-btn.next {
    right: 2px;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ensure Site Footer is Pure Black on Teams page */
.site-footer {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom: none !important;
}

/* ========================================================= */
/* 9. ACCESSIBILITY & PREFERS-REDUCED-MOTION                 */
/* ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .teams-carousel-stage {
    perspective: none !important;
  }

  .teams-cards-track {
    transform-style: flat !important;
  }

  .team-card {
    transition: none !important;
  }

  .teams-tenure-btn,
  .teams-jump-btn,
  .team-social-btn,
  .teams-nav-btn {
    transition: none !important;
  }
}