/* ═══════════════════════════════════════════════════════════
   TEAM SHOWCASE  —  frame sequence + overlaid headline + profiles
═══════════════════════════════════════════════════════════ */

/* ── Frame section ──────────────────────────────────────── */
.site-main:has(.frame-sequence-section) {
  padding-top: 0;
}

.frame-sequence-section {
  position: relative;
  width: 100%;
  /* svh = small viewport height — ignores browser chrome so it never resizes */
  height: 100svh;
  /* Fallback for older browsers that don't support svh */
  height: 100vh;
  height: 100svh;
  background: #000;
  overflow: hidden;
}

#frameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Dark overlay */
.frame-sequence-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}

/* ── Headline — overlaid on canvas ─────────────────────── */
.ts-headline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: 0 32px;
  margin: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

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

.ts-word {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #a78bfa, #38bdf8, #34d399, #a78bfa);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tsGradientShift 5s ease infinite;
  transition: opacity 0.45s ease, transform 0.45s ease;
  /* Text shadow via filter so it works with background-clip text */
  filter: drop-shadow(0 2px 16px rgba(139, 92, 246, 0.5));
}

.ts-word.ts-word-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Profile section ────────────────────────────────────── */
.ts-cards-section {
  background: #050a0f;
  padding: 100px 24px 140px;
}

.ts-cards-row {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* No card box — just circular photo + info below */
.ts-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  gap: 0;
}

/* Circular photo wrapper */
.ts-card-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(139, 92, 246, 0.4);
  box-shadow:
    0 0 0 6px rgba(139, 92, 246, 0.08),
    0 8px 40px rgba(139, 92, 246, 0.2);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  flex-shrink: 0;
}

.ts-profile-card:hover .ts-card-img {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow:
    0 0 0 6px rgba(34, 211, 238, 0.08),
    0 12px 60px rgba(34, 211, 238, 0.25);
  transform: translateY(-6px);
}

.ts-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.ts-profile-card:hover .ts-card-img img {
  transform: scale(1.07);
}

/* Info below photo */
.ts-card-body {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ts-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.ts-card-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ts-card-arrow {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.ts-profile-card:hover .ts-card-arrow {
  color: #22d3ee;
  transform: translateX(4px);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .ts-cards-row {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 48px;
  }

  .ts-card-img {
    width: 180px;
    height: 180px;
  }

  .ts-cards-section {
    padding: 60px 20px 80px;
  }
}
