:root {
  --team-ink: #0d141d;
  --team-charcoal: #35445a;
  --team-slate: #718096;
  --team-line: #dce4ed;
  --team-paper: #f8fafc;
  --team-blue: #397fc2;
  --team-font: "Barlow", sans-serif;
  --team-container: 1440px;
  --team-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--team-ink);
  background: var(--team-paper);
  font-family: var(--team-font);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.team-container {
  width: min(calc(100% - 64px), var(--team-container));
  margin-inline: auto;
}

.team-kicker {
  margin: 0 0 16px;
  color: var(--team-blue);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
}

.robotics-nav a[aria-current="page"] {
  color: var(--team-blue);
}

.team-hero {
  position: relative;
  min-height: min(760px, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--team-line);
  background: #f5f8fb;
}

.team-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f9fbfd 0%,
    rgba(249, 251, 253, 0.98) 35%,
    rgba(249, 251, 253, 0.76) 50%,
    rgba(249, 251, 253, 0.16) 72%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.team-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(760px, 100svh);
  padding-top: 86px;
  align-items: center;
}

.team-hero__copy {
  width: min(52%, 720px);
  padding-block: 60px;
}

.team-hero h1 {
  margin: 0 0 30px;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.team-hero__copy > p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--team-charcoal);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.team-leadership {
  padding: clamp(90px, 9vw, 140px) 0 70px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.team-grid:has(> :only-child) {
  width: min(100%, 330px);
  margin-inline: auto;
  grid-template-columns: 1fr;
}

.team-grid:has(> :nth-child(2):last-child) {
  width: min(100%, 680px);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid:has(> :nth-child(3):last-child) {
  width: min(100%, 1030px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--team-line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 14px 34px rgba(50, 72, 98, 0.06);
  transition:
    box-shadow 240ms ease-out,
    transform 240ms var(--team-ease);
}

.team-card:hover {
  box-shadow: 0 22px 46px rgba(50, 72, 98, 0.13);
  transform: translateY(-5px);
}

.team-card__media,
.team-card__placeholder {
  height: clamp(250px, 29vw, 390px);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.04);
}

.team-card__placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.96), transparent 24%),
    linear-gradient(145deg, #f5f8fb, #dfe7ef);
}

.team-card__placeholder span {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(89, 119, 149, 0.22);
  border-radius: 50%;
  color: #53677d;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.55);
}

.team-card__body {
  position: relative;
  min-height: 230px;
  padding: 25px 26px 30px;
  border-top: 1px solid var(--team-line);
}

.team-card h3 {
  margin: 0 0 5px;
  font-size: 1.18rem;
  font-weight: 500;
}

.team-card__role {
  margin: 0 0 22px;
  color: var(--team-blue);
  font-size: 0.82rem;
  font-weight: 500;
}

.team-card__bio {
  margin: 0;
  color: var(--team-slate);
  font-size: 0.82rem;
  line-height: 1.65;
}

.team-card__linkedin {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #2f6fae;
  transition:
    color 200ms ease-out,
    transform 200ms var(--team-ease);
}

.team-card__linkedin svg {
  display: block;
  width: 26px;
  height: 26px;
}

.team-card__linkedin:hover {
  color: var(--team-ink);
  transform: translateY(-2px);
}

.team-extended {
  padding: 70px 0 clamp(90px, 10vw, 150px);
}

.team-extended__intro {
  display: grid;
  margin-bottom: 50px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(40px, 9vw, 150px);
}

.team-extended__intro h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.team-extended__intro > p {
  max-width: 540px;
  margin: 0 0 4px;
  color: var(--team-charcoal);
  line-height: 1.7;
}

.team-extended__visual {
  position: relative;
  width: min(100%, 1100px);
  height: clamp(300px, 36vw, 460px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.team-extended__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 19, 31, 0.68));
  content: "";
}

.team-extended__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-extended__visual figcaption {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 28px;
  left: 32px;
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-metrics {
  display: grid;
  width: min(100%, 1100px);
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--team-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: white;
}

.team-metrics article {
  display: grid;
  min-height: 180px;
  padding: 34px 28px;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 16px;
  border-right: 1px solid var(--team-line);
}

.team-metrics article:last-child {
  border-right: 0;
}

.team-metrics iconify-icon {
  margin-top: 3px;
  color: #566b82;
  font-size: 2.1rem;
}

.team-metrics strong {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.team-metrics h2 {
  margin: 3px 0 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.team-metrics p {
  margin: 0;
  color: var(--team-slate);
  font-size: 0.76rem;
  line-height: 1.5;
}

.team-partners {
  padding: 0 0 56px;
  background: #fbfcfe;
}

.team-partners__panel {
  display: grid;
  min-height: 225px;
  padding: 44px 56px;
  border: 1px solid rgba(133, 164, 197, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 92% 80%, rgba(183, 213, 243, 0.34), transparent 34%),
    linear-gradient(135deg, #f4f7fb 0%, #eef3f8 100%);
  box-shadow: 0 14px 36px rgba(17, 27, 39, 0.05);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

.team-partners h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.7vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-transform: uppercase;
}

.team-partners p {
  margin: 18px 0 0;
  color: #415168;
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.45;
}

.team-contact-button {
  display: inline-flex;
  min-width: 220px;
  min-height: 58px;
  padding-inline: 24px;
  border-radius: 6px;
  color: white;
  background: var(--team-ink);
  box-shadow: 0 13px 28px rgba(17, 27, 39, 0.18);
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background 220ms ease-out,
    box-shadow 220ms ease-out,
    transform 220ms var(--team-ease);
}

.team-contact-button:hover {
  background: #243547;
  box-shadow: 0 18px 34px rgba(17, 27, 39, 0.24);
  transform: translateY(-2px);
}

.team-contact-button:active {
  transform: scale(0.98);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 280ms ease-out,
    transform 280ms var(--team-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 901px) {
  .team-partners {
    display: flex;
    min-height: 55svh;
    height: 55svh;
    padding: 56px 0 0;
    align-items: center;
  }

  .team-partners__panel {
    width: 100%;
  }
}

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

  .team-grid:has(> :nth-child(3):last-child) {
    width: min(100%, 680px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid:has(> :nth-child(3):last-child) > :last-child {
    width: calc((100% - 22px) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .team-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-metrics article:nth-child(2) {
    border-right: 0;
  }

  .team-hero__copy {
    width: 60%;
  }

  .team-hero__image {
    object-position: 58% center;
  }
}

@media (max-width: 700px) {
  .team-container {
    width: min(calc(100% - 32px), var(--team-container));
  }

  .team-hero,
  .team-hero__inner {
    min-height: 100svh;
  }

  .team-hero__copy {
    width: 100%;
    padding-bottom: 42%;
  }

  .team-hero h1 {
    font-size: clamp(2.55rem, 10.5vw, 3.7rem);
    overflow-wrap: anywhere;
  }

  .team-hero::after {
    background: linear-gradient(
      180deg,
      rgba(249, 251, 253, 0.98) 0%,
      rgba(249, 251, 253, 0.96) 48%,
      rgba(249, 251, 253, 0.38) 73%,
      transparent 100%
    );
  }

  .team-hero__image {
    object-position: 66% bottom;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid:has(> :only-child),
  .team-grid:has(> :nth-child(2):last-child),
  .team-grid:has(> :nth-child(3):last-child) {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .team-grid:has(> :nth-child(3):last-child) > :last-child {
    width: 100%;
    grid-column: auto;
  }

  .team-extended__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-extended__visual {
    height: 430px;
  }

  .team-metrics article {
    min-height: 150px;
    padding: 24px 16px;
    border-right: 0;
    border-bottom: 0;
  }

  .team-metrics article:nth-child(odd) {
    border-right: 1px solid var(--team-line);
  }

  .team-metrics article:nth-child(3),
  .team-metrics article:nth-child(4) {
    border-top: 1px solid var(--team-line);
  }

  .team-card__media,
  .team-card__placeholder {
    height: 360px;
  }

  .team-partners__panel {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-contact-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
