.team-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 92px;
  background: var(--graphite-black);
}

.team-hero__glow,
.team-hero__pattern,
.team-people__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-hero__glow {
  background: radial-gradient(900px 520px at 80% 22%, rgba(255, 138, 0, .14), transparent 60%), radial-gradient(680px 480px at 8% 86%, rgba(52, 209, 122, .06), transparent 60%);
}

.team-hero__pattern {
  background: url('/assets/optimized/pattern-dots.webp') 0 0 / 520px;
  opacity: .03;
  mix-blend-mode: screen;
}

.team-hero__inner,
.team-people__inner {
  position: relative;
}

.team-hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.team-eyebrow,
.team-section__label {
  margin: 0 0 20px;
  color: var(--signal-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 138, 0, .05);
  color: var(--text-secondary);
}

.team-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-orange);
  box-shadow: var(--glow-accent);
  content: '';
}

.team-hero__title,
.team-section__title,
.team-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.team-hero__title {
  max-width: 720px;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.03;
}

.team-section__title,
.team-cta h2 {
  font-weight: 600;
  letter-spacing: -.01em;
}

.team-hero__title span { color: var(--signal-orange); }

.team-hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.team-hero__sublead {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.team-hero__actions,
.team-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.team-hero__actions { margin-top: 40px; }

.team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: filter .15s var(--ease-out), transform .15s var(--ease-out), border-color .15s var(--ease-out), background .15s var(--ease-out);
}

.team-button:hover { transform: translateY(-2px); }
.team-button--primary { background: var(--gradient-accent); color: var(--graphite-black); }
.team-button--primary:hover { filter: brightness(1.08); }
.team-button--secondary { border: 1px solid var(--border-strong); color: var(--text-primary); }
.team-button--secondary:hover { border-color: var(--ice-silver); background: rgba(214, 219, 226, .06); }

.team-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.team-hero__visual-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, .2), transparent 62%);
  filter: blur(8px);
}

.team-hero__visual img {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: auto;
  animation: team-float 7s ease-in-out infinite;
}

.team-stats {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(26, 29, 34, .4);
}

.team-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.team-stat { padding: 34px 28px; border-right: 1px solid var(--border-subtle); }
.team-stat:last-child { border-right: 0; }
.team-stat__value { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1; }
.team-stat__label { max-width: 200px; margin: 12px 0 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.45; }
.team-stat--orange .team-stat__value { color: var(--signal-orange); }
.team-stat--green .team-stat__value { color: var(--signal-green); }
.team-stat--light .team-stat__value { color: var(--text-primary); }

.team-section { padding: 120px 0; border-top: 1px solid var(--border-subtle); }
.team-section__heading { max-width: 860px; margin-bottom: 60px; }
.team-section__heading--wide { max-width: 900px; }
.team-section__heading--center { margin-right: auto; margin-left: auto; text-align: center; }
.team-section__title { max-width: 780px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; }
.team-section__intro { max-width: 820px; margin: 24px 0 0; color: var(--text-secondary); font-size: 18px; line-height: 1.55; }
.team-section__heading--center .team-section__intro { margin-right: auto; margin-left: auto; }

.team-disciplines { background: var(--graphite-black); }
.team-disciplines__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-discipline-card { display: flex; flex-direction: column; height: auto; min-height: 346px; padding: 28px 26px 30px; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--surface-card); transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
.team-discipline-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.team-discipline-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.team-discipline-card__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-raised); color: var(--signal-orange); }
.team-discipline-card__count { color: var(--signal-orange); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.team-discipline-card h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.team-discipline-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.team-discipline-card__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.team-discipline-card__roles span { padding: 7px 12px; border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--surface-raised); color: var(--text-secondary); font-size: 12.5px; }

.team-people { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--graphite-black), rgba(26, 29, 34, .5), var(--graphite-black)); }
.team-people__background { background: url('/assets/optimized/bg-tech-flow.webp') center / cover; opacity: .14; }
.team-people__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: none; margin: 0 auto; }
.team-person-card { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--surface-card); }
.team-person-card:nth-child(-n + 3) { min-height: 515px; }
.team-person-card:nth-child(4) { min-height: 492px; }
.team-person-card img { width: 100%; height: 300px; object-fit: cover; object-position: center 36%; border-bottom: 1px solid var(--border-subtle); }
.team-person-card__body { padding: 20px 20px 22px; }
.team-person-card__role { margin: 0 0 8px; color: var(--signal-orange); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.team-person-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.team-person-card__body > p:last-child { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
.team-people__note { max-width: none; margin: 28px auto 0; color: var(--text-muted); font-size: 12px; }
.team-people__note span { margin-right: 8px; color: var(--signal-green); }

.team-principles { background: var(--graphite-black); }
.team-principles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-principle-card { display: grid; grid-template-columns: 44px 1fr; gap: 18px; min-height: 144px; padding: 30px 28px; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--surface-card); }
.team-principle-card__number { color: var(--signal-orange); font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.team-principle-card h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.team-principle-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.team-process { background: rgba(26, 29, 34, .4); }
.team-process__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.team-process-card { height: 207px; min-height: 207px; padding: 26px 22px; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--surface-card); }
.team-process-card__number { display: block; margin-bottom: 14px; color: var(--signal-orange); font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.team-process-card h3 { margin: 0 0 9px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.team-process-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.team-career { background: var(--graphite-black); }
.team-career__grid { display: grid; grid-template-columns: 1.175fr 1fr; gap: 56px; align-items: start; }
.team-career__intro { max-width: 480px; margin: 28px 0 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.team-perks { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 38px 0 0; padding: 0; list-style: none; }
.team-perks li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-secondary); font-size: 14px; }
.team-perks li span { color: var(--signal-green); font-size: 10px; }
.team-jobs { display: flex; flex-direction: column; gap: 12px; }
.team-job { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 99px; min-height: 99px; padding: 22px 24px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface-card); color: var(--text-primary); text-decoration: none; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
.team-job:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.team-job h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.team-job p { margin: 0; color: var(--steel-blue); font-size: 13.5px; }
.team-job__arrow { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; border: 1px solid var(--border-subtle); border-radius: 14px; color: var(--signal-orange); font-size: 24px; }

.team-cta { padding: 96px 0; border-top: 1px solid var(--border-subtle); background: radial-gradient(700px 460px at 72% 40%, rgba(255, 138, 0, .14), transparent 62%); }
.team-cta__box { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; padding: 64px; border: 1px solid var(--border-accent); border-radius: 24px; background: linear-gradient(180deg, rgba(26, 29, 34, .95), rgba(15, 17, 22, .95)); box-shadow: var(--glow-accent-soft); }
.team-cta h2 { max-width: 508px; font-size: 38px; line-height: 1.08; }
.team-cta p { max-width: 560px; margin: 26px 0 0; color: var(--text-secondary); font-size: 17px; line-height: 1.55; }
.team-cta__actions { flex-direction: column; align-items: flex-start; }

@keyframes team-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

@media (max-width: 1100px) {
  .team-disciplines__grid { grid-template-columns: repeat(2, 1fr); }
  .team-process__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .team-hero__grid, .team-career__grid, .team-cta__box { grid-template-columns: 1fr; gap: 42px; }
  .team-hero__visual { min-height: 420px; }
  .team-people__grid { grid-template-columns: repeat(2, 1fr); }
  .team-cta__box { padding: 44px; }
}

@media (max-width: 640px) {
  .team-hero { padding: 132px 0 72px; }
  .team-section, .team-cta { padding: 76px 0; }
  .team-hero__title { font-size: clamp(42px, 12vw, 62px); }
  .team-hero__visual { min-height: 300px; }
  .team-stats__grid, .team-disciplines__grid, .team-principles__grid, .team-process__grid, .team-people__grid { grid-template-columns: 1fr; }
  .team-stat { padding: 26px 20px; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .team-stat:last-child { border-bottom: 0; }
  .team-discipline-card, .team-process-card { min-height: 0; }
  .team-person-card img { height: 260px; }
  .team-cta__box { padding: 32px 24px; }
  .team-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .team-hero__visual img { animation: none; }
}
