/* ═══════════════════════════════════════
   TEAM — Page-Specific Styles
   team/index.html
═══════════════════════════════════════ */


/* ═══════════════════════════════════════
   HERO — CINEMATIC TYPOGRAPHY-FORWARD
═══════════════════════════════════════ */
.team-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.team-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.team-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--deep) 0%, rgba(26,26,26,0) 50%),
    linear-gradient(to right, rgba(26,26,26,0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.team-hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(14rem, 22vw, 28rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 76, 116, 0.03);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.team-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.team-hero-eyebrow {
  font-family: var(--body);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.team-hero-eyebrow::before,
.team-hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.team-hero-heading {
  font-family: var(--display);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.team-hero-heading em {
  font-style: italic;
  color: var(--accent);
}

.team-hero-sub {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247, 245, 242, 0.82);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

/* ── Scroll CTA ── */
.team-hero-scroll {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUpCentered 0.8s ease 1.8s forwards;
  text-decoration: none;
  cursor: pointer;
}

.team-hero-scroll span {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.82);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.4s ease;
}

.team-hero-scroll span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.team-hero-scroll:hover span { color: var(--paper); }
.team-hero-scroll:hover span::after { width: 100%; }

.team-hero > .scroll-line-v {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  z-index: 5;
  opacity: 0;
  animation: fadeUp 0.4s ease 2.2s forwards, scrollPulseDown 2s ease-in-out 2.6s infinite;
}


/* ═══════════════════════════════════════
   SHARED SECTION HEADERS
═══════════════════════════════════════ */
.team-section-eyebrow {
  font-family: var(--body);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.team-section-eyebrow::before,
.team-section-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.team-section-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--paper);
  text-align: center;
  margin-bottom: 1.2rem;
}

.team-section-heading em {
  font-style: italic;
  color: var(--accent);
}

.team-section-heading--dark {
  color: var(--ink);
}

.team-section-body {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(247, 245, 242, 0.82);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.team-section-body--dark {
  color: var(--muted);
}


/* ═══════════════════════════════════════
   LEADERSHIP — LARGE FEATURED CARDS
═══════════════════════════════════════ */
.team-leadership-section {
  padding: var(--space-2xl) var(--space-lg) 6rem;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.team-leadership-inner {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.team-leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Spotlight: dim siblings (opacity-only for performance) */
.team-leadership-grid.card-active .team-lead-card:not(.is-active) {
  opacity: 0.3;
}

.team-lead-card {
  position: relative;
  will-change: transform, opacity;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}

.team-lead-card:hover {
  transform: translateY(-6px);
}

/* ── Lead Image ── */
.team-lead-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink);
}

.team-lead-img .team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-lead-img .team-photo--one {
  filter: grayscale(40%) brightness(0.9);
  will-change: filter, transform;
  transition: filter 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.team-lead-card:hover .team-lead-img .team-photo--one {
  filter: grayscale(100%) brightness(0.5);
  transform: scale(1.03);
}

.team-lead-img .team-photo--two {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out-expo);
  transform: scale(1.03);
}

.team-lead-card:hover .team-lead-img .team-photo--two {
  opacity: 1;
  transform: scale(1);
}

/* ── Lower Third — Story Title ── */
.team-lead-img[data-story-title]::before {
  content: attr(data-story-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 2.5rem 1.2rem 1rem;
  text-align: center;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 60%, transparent 100%);
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.08s, transform 0.4s var(--ease-out-expo) 0.08s;
  pointer-events: none;
}

.team-lead-card:hover .team-lead-img::before {
  opacity: 1;
  transform: translateY(0);
}

/* Accent line on hover */
.team-lead-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 2;
}

.team-lead-card:hover .team-lead-img::after {
  transform: scaleX(1);
}

/* ── Lead Info ── */
.team-lead-info {
  padding: 1.5rem 0.25rem 0;
}

.team-lead-name {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.team-lead-card:hover .team-lead-name {
  color: var(--accent);
}

.team-lead-role {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-lead-bio {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 320px;
}


/* ═══════════════════════════════════════
   TEAM GRID — THE FULL ENSEMBLE
═══════════════════════════════════════ */
.team-grid-section {
  padding: var(--space-2xl) var(--space-lg) 6rem;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.team-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(10, 10, 10, 0.08), transparent);
}

.team-grid-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

/* Spotlight: dim siblings (opacity-only for performance) */
.team-grid.card-active .team-card:not(.is-active) {
  opacity: 0.35;
}

.team-card {
  position: relative;
  will-change: transform, opacity;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
  cursor: default;
}

.team-card:hover {
  transform: translateY(-5px);
}

/* ── Card Image ── */
.team-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 5px;
  background: var(--ink);
}

.team-card-img .team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card-img .team-photo--one {
  filter: grayscale(30%) brightness(0.95);
  will-change: filter, transform;
  transition: filter 0.5s ease, transform 0.5s var(--ease-out-expo);
}

.team-card:hover .team-card-img .team-photo--one {
  filter: grayscale(100%) brightness(0.5);
  transform: scale(1.04);
}

.team-card-img .team-photo--two {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.45s ease, transform 0.5s var(--ease-out-expo);
  transform: scale(1.04);
}

.team-card:hover .team-card-img .team-photo--two {
  opacity: 1;
  transform: scale(1);
}

/* ── Lower Third — Story Title ── */
.team-card-img[data-story-title]::before {
  content: attr(data-story-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 2rem 0.8rem 0.75rem;
  text-align: center;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 60%, transparent 100%);
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.06s, transform 0.35s var(--ease-out-expo) 0.06s;
  pointer-events: none;
}

.team-card:hover .team-card-img::before {
  opacity: 1;
  transform: translateY(0);
}

/* Accent line on hover */
.team-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out-expo);
  z-index: 2;
}

.team-card:hover .team-card-img::after {
  transform: scaleX(1);
}

/* ── Card Info ── */
.team-card-info {
  padding: 1rem 0.15rem 0;
}

.team-card-name {
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.team-card:hover .team-card-name {
  color: var(--accent);
}

.team-card-role {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

.team-card-bio {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0.5rem;
}


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .team-hero { min-height: 550px; }
  .team-hero-heading { font-size: clamp(2.5rem, 8vw, 4.5rem); }

  .team-leadership-section { padding: var(--space-xl) 2rem 4rem; }
  .team-leadership-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .team-lead-bio { display: none; }

  .team-grid-section { padding: var(--space-xl) 2rem 4rem; }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

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

@media (max-width: 600px) {
  .team-hero-heading { font-size: clamp(2rem, 10vw, 3.5rem); }
  .team-hero-sub { font-size: 0.95rem; }

  .team-leadership-section { padding: 4rem 1.5rem var(--space-lg); }
  .team-leadership-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 360px;
  }

  .team-lead-bio { display: block; }

  .team-grid-section { padding: 4rem 1.5rem var(--space-lg); }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-card-name { font-size: 0.9rem; }
  .team-card-role { font-size: 0.68rem; }

  .team-section-heading { font-size: clamp(1.6rem, 6vw, 2.5rem); }

  /* Disable spotlight and lower-thirds on touch */
  .team-grid.card-active .team-card:not(.is-active),
  .team-leadership-grid.card-active .team-lead-card:not(.is-active) {
    opacity: 1;
  }

  .team-lead-img[data-story-title]::before,
  .team-card-img[data-story-title]::before {
    display: none;
  }
}
