/* The team page starts on a light surface, so elastic top overscroll should
   reveal white rather than the site's dark global canvas. */
html,
body {
  background: #ffffff;
}

/* ── Team hero ────────────────────────────────────────────────────────── */

.team-hero {
  /* Clear the fixed .page-chrome band, then add breathing room above the title. */
  padding:
    calc(var(--chrome-band) + clamp(2rem, 4vw, 3rem))
    clamp(1.5rem, 6vw, 4rem)
    clamp(1.1rem, 2.5vw, 1.75rem);
  background: #ffffff;
  border-bottom: 1px solid rgba(27, 27, 24, 0.06);
}

.team-hero-inner {
  width: min(100%, 40rem);
  margin: 0 auto;
  text-align: center;
}

.team-hero .story-kicker {
  margin-bottom: 1rem;
}

.team-hero-title {
  color: #171716;
  font-family: var(--display-serif);
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.team-hero-lead {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  color: #6f6d69;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

/* ── Team grid ────────────────────────────────────────────────────────── */

.team-grid-section {
  background: #fbfaf8;
}

.team-grid-inner {
  width: min(100% - clamp(2rem, 6vw, 5rem), 56rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.team-grid .team-card:nth-child(1) { transition-delay: 0s; }
.team-grid .team-card:nth-child(2) { transition-delay: 0.08s; }
.team-grid .team-card:nth-child(3) { transition-delay: 0.16s; }

.team-card {
  --card-wash: rgba(140, 138, 132, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(28, 35, 32, 0.09);
  border-radius: 14px;
  background:
    radial-gradient(circle at 93% 4%, var(--card-wash), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(247,248,246,0.72));
  box-shadow:
    0 1px 2px rgba(31, 38, 35, 0.03),
    0 14px 35px rgba(31, 38, 35, 0.045),
    inset 0 1px rgba(255,255,255,0.82);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-card.is-visible:hover {
  border-color: rgba(28, 35, 32, 0.14);
  box-shadow:
    0 2px 4px rgba(31, 38, 35, 0.04),
    0 20px 48px rgba(31, 38, 35, 0.075),
    inset 0 1px rgba(255,255,255,0.9);
  transform: translateY(-4px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(140, 138, 132, 0.14), transparent 45%),
    linear-gradient(160deg, #f0f1ef 0%, #e6e7e5 55%, #dddedb 100%);
}

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

.team-card:nth-child(2) .team-photo img {
  object-position: center 6%;
  transform: scale(1.28) translateY(-2%);
  transform-origin: center top;
}

.team-card:nth-child(3) .team-photo img {
  object-position: center 6%;
  transform: scale(1.32) translateY(-2%);
  transform-origin: center top;
}

.team-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.1rem, 1.8vw, 1.4rem) clamp(1.1rem, 1.8vw, 1.5rem) clamp(1.35rem, 2vw, 1.65rem);
}

.team-name {
  color: #171716;
  font-family: var(--display-serif);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.team-role {
  margin-top: 0.35rem;
  color: #002a5c;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-bio {
  max-width: 22rem;
  margin-top: 1rem;
  color: #6f6e6a;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  color: #003369;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}


.team-linkedin:hover,
.team-linkedin:focus-visible {
  opacity: 0.55;
}

.team-linkedin:focus-visible {
  outline: 2px solid rgba(77, 158, 255, 0.85);
  outline-offset: 3px;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .page-chrome {
    background: #ffffff;
    border-bottom: 1px solid rgba(27, 27, 24, 0.08);
  }

  .page-chrome.page-chrome--on-dark .page-chrome-logo,
  .page-chrome.page-chrome--on-dark .page-chrome-home {
    color: #002a5c;
  }

  .page-chrome .nav-toggle.is-on-dark:not(.is-active) span {
    background: #000000;
  }

  .team-grid {
    max-width: 26rem;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .team-grid .team-card:nth-child(2) { transition-delay: 0.05s; }
  .team-grid .team-card:nth-child(3) { transition-delay: 0.1s; }
}

@media (max-width: 520px) {
  .team-body {
    padding: 1.35rem 1.25rem 1.6rem;
  }
}

/* Team page CTA: text only, no video column */
.pilot-cta--team .pilot-cta-shell {
  grid-template-columns: 1fr;
}

.pilot-cta--team .pilot-cta-copy {
  width: min(100%, 40rem);
  margin: 0 auto;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 3rem);
}
