/* Team page — layout additions only.
   All design tokens, utilities, and animations come from front-page.css (loaded globally). */

/* ---- Hero ---- */
.team-hero {
  padding-top: clamp(7rem, 20vw, 11rem);
  text-align: center;
}
.team-hero .display-xl {
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.team-hero .lede {
  max-width: 54ch;
  margin-inline: auto;
}

/* ---- CTO Spotlight ---- */
.cto-section { position: relative; }

.cto-card {
  padding: clamp(1.75rem, 5vw, 3rem);
  overflow: visible;
}
.cto-card::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: calc(var(--r-card) + 20px);
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    color-mix(in oklab, var(--accent) 18%, transparent),
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.cto-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
}

/* Photo column */
.cto-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.cto-avatar {
  width: clamp(130px, 22vw, 180px);
  height: clamp(130px, 22vw, 180px);
  border-radius: 50%;
  background: linear-gradient(150deg, var(--grad-1), var(--grad-2));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4rem);
  color: #fff;
  letter-spacing: -.025em;
  border: 3px solid var(--glass-border);
  box-shadow: 0 8px 40px -8px color-mix(in oklab, var(--accent) 55%, transparent),
              0 0 0 8px color-mix(in oklab, var(--accent) 10%, transparent);
  flex-shrink: 0;
}
.cto-role-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--label);
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
}
.cto-linkedin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  padding: .6rem 1.1rem;
  min-height: unset;
}

/* Copy column */
.cto-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.cto-name-row h2 { margin: 0; }
.cto-verified { font-size: .75rem; }

.cto-bio {
  color: var(--text-muted);
  font-size: clamp(.97rem, 2.4vw, 1.06rem);
  line-height: 1.78;
  margin: 0 0 1rem;
}
.cto-bio:last-of-type { margin-bottom: 1.75rem; }

.cto-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cto-exp-chip {
  font-size: .8rem;
  font-weight: 500;
  padding: .38rem .8rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--label);
  border: 1px solid var(--glass-border);
}

/* ---- Senior Leadership Grid ---- */
.leader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.leader-card {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background-color .3s, transform var(--dur) var(--ease);
}
@media (hover:hover) {
  .leader-card:hover { background: var(--glass-bg-2); transform: translateY(-5px); }
}
.leader-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(150deg, var(--c1, var(--grad-1)), var(--c2, var(--grad-2)));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.65rem; color: #fff; letter-spacing: -.02em;
  border: 2px solid var(--glass-border);
  box-shadow: 0 6px 24px -6px color-mix(in oklab, var(--c1, var(--accent)) 55%, transparent);
  flex-shrink: 0;
}
.leader-info { display: flex; flex-direction: column; gap: .45rem; }
.leader-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.22rem; color: var(--text); margin: 0;
}
.leader-role {
  font-size: .82rem; font-weight: 700;
  color: var(--accent); letter-spacing: .04em; text-transform: uppercase;
}
.leader-bio {
  color: var(--text-muted); font-size: .95rem;
  line-height: 1.7; margin: .25rem 0 .5rem;
}
.leader-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }

/* ---- Crew Grid ---- */
.crew-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.crew-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background-color .3s, transform var(--dur) var(--ease);
}
@media (hover:hover) {
  .crew-card:hover {
    background: var(--glass-bg-2);
    transform: translateY(-5px);
  }
}

.crew-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--c1, var(--grad-1)), var(--c2, var(--grad-2)));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -.02em;
  border: 2px solid var(--glass-border);
  box-shadow: 0 4px 16px -4px color-mix(in oklab, var(--c1, var(--accent)) 50%, transparent);
  flex-shrink: 0;
}

.crew-info {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.crew-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}
.crew-role {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
}
.crew-bio {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
  margin: .25rem 0 .5rem;
}
.crew-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
}
.crew-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-dim);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: .22rem .6rem;
  border-radius: 6px;
}

/* ---- Values / Culture ---- */
.team-values-section { position: relative; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.value-card {
  padding: 1.75rem;
  height: 100%;
  transition: background-color .3s, transform var(--dur) var(--ease);
}
@media (hover:hover) {
  .value-card:hover {
    background: var(--glass-bg-2);
    transform: translateY(-4px);
  }
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 {
  font-size: 1.08rem;
  margin: 0 0 .6rem;
  color: var(--text);
}
.value-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
}

/* ---- Stats ---- */
.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.team-stat {
  text-align: center;
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.team-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.team-stat-label {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Hiring CTA ---- */
.hiring-card {
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hiring-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.hiring-icon svg { width: 28px; height: 28px; }
.hiring-card h2 { margin: 0; }
.hiring-card .lede { margin: 0; max-width: 52ch; }
.hiring-card .btn { margin-top: .5rem; }
.hiring-note {
  font-size: .88rem;
  color: var(--text-dim);
  margin: 0;
}
.hiring-note a {
  color: var(--accent);
  font-weight: 500;
}
@media (hover:hover) {
  .hiring-note a:hover { text-decoration: underline; }
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .cto-inner { grid-template-columns: auto 1fr; }
  .cto-photo-col { min-width: 200px; }
  .team-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .crew-grid { grid-template-columns: repeat(3, 1fr); }
}
