:root {
  --careers-ink: #0d141d;
  --careers-charcoal: #34445a;
  --careers-slate: #68788c;
  --careers-paper: #f8fafc;
  --careers-card: #eef3f8;
  --careers-line: #d8e0ea;
  --careers-font: "Barlow", sans-serif;
  --careers-container: 1440px;
  --careers-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: #090d10;
  background: var(--careers-paper);
  font-family: var(--careers-font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

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

/* Hero */
.careers-hero {
  position: relative;
  display: flex;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(203, 222, 243, 0.38), transparent 36%),
    linear-gradient(110deg, #fbfcfe 0%, #f5f8fc 48%, #eaf1f8 100%);
  flex-direction: column;
}

.careers-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fbfcfe 0%,
    rgba(251, 252, 254, 0.97) 30%,
    rgba(245, 248, 252, 0.62) 46%,
    rgba(245, 248, 252, 0.18) 62%,
    transparent 76%
  );
  content: "";
  pointer-events: none;
}

.careers-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 12%,
    rgba(0, 0, 0, 0.35) 28%,
    black 52%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 12%,
    rgba(0, 0, 0, 0.35) 28%,
    black 52%
  );
}

.careers-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  min-height: 640px;
  padding-top: 86px;
  padding-bottom: 64px;
  align-items: center;
}

.careers-hero__content {
  width: min(46%, 620px);
}

.careers-hero h1 {
  margin: 0 0 28px;
  font-size: clamp(3.8rem, 6.25vw, 6.35rem);
  font-weight: 300;
  letter-spacing: -0.058em;
  line-height: 0.96;
  text-transform: uppercase;
}

.careers-hero__lead {
  max-width: 430px;
  margin: 0 0 28px;
  color: #485a70;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  font-weight: 300;
  line-height: 1.48;
}

.careers-hero__content > p:not(.careers-hero__lead) {
  max-width: 520px;
  margin: 0 0 16px;
  color: #3f5269;
  font-size: clamp(0.96rem, 1.25vw, 1.16rem);
  line-height: 1.5;
}

/* Openings */
.careers-openings {
  padding: clamp(36px, 6vh, 72px) 0;
  background: #fbfcfe;
}

.careers-openings__card {
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(133, 164, 197, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 86% 18%, rgba(196, 220, 244, 0.42), transparent 34%),
    linear-gradient(135deg, #f4f7fb 0%, #e8eef5 100%);
  box-shadow: 0 18px 48px rgba(17, 27, 39, 0.06);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: stretch;
}

.careers-openings__copy {
  display: flex;
  padding: clamp(36px, 5vw, 72px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.careers-openings h2 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 4.4vw, 4.35rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.careers-openings__copy > p {
  max-width: 520px;
  margin: 0 0 32px;
  color: #3f5269;
  font-size: clamp(0.96rem, 1.25vw, 1.16rem);
  line-height: 1.5;
}

.careers-openings__visual {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

/* Buttons */
.careers-button {
  display: inline-flex;
  min-width: 220px;
  min-height: 58px;
  padding-inline: 28px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  color: white;
  background: #090d10;
  box-shadow: 0 12px 28px rgba(17, 25, 36, 0.18);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background 220ms ease-out,
    box-shadow 220ms ease-out,
    transform 220ms var(--careers-ease);
}

.careers-button:hover {
  background: #223143;
  box-shadow: 0 18px 34px rgba(17, 27, 39, 0.22);
  transform: translateY(-2px);
}

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

.careers-button iconify-icon {
  font-size: 1.05rem;
  transition: transform 220ms var(--careers-ease);
}

.careers-button:hover iconify-icon {
  transform: translateX(4px);
}

.careers-button iconify-icon {
  display: none;
}

/* Partners */
.careers-partners {
  padding: 0 0 56px;
  background: #fbfcfe;
}

.careers-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;
}

.careers-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;
}

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

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 280ms ease-out,
    transform 280ms var(--careers-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) {
  .careers-hero {
    min-height: 100svh;
    height: 100svh;
  }

  .careers-hero__inner {
    min-height: 0;
  }

  .careers-openings {
    display: flex;
    min-height: 100svh;
    align-items: center;
  }

  .careers-partners {
    display: flex;
    min-height: 55svh;
    height: 55svh;
    padding: 56px 0 0;
    align-items: center;
  }

  .careers-partners__panel {
    width: 100%;
  }

  .robotics-footer {
    min-height: 40svh;
  }
}

@media (max-width: 900px) {
  .careers-hero {
    min-height: 700px;
    background: linear-gradient(135deg, #fbfcfe 0%, #eef4fa 100%);
  }

  .careers-hero::after {
    background: linear-gradient(
      180deg,
      rgba(251, 252, 254, 0.88) 0%,
      rgba(251, 252, 254, 0.5) 42%,
      transparent 100%
    );
  }

  .careers-hero__image {
    opacity: 0.32;
    object-position: 78% center;
  }

  .careers-hero__inner {
    min-height: 560px;
    padding-top: 76px;
  }

  .careers-hero__content {
    width: min(82%, 640px);
  }

  .careers-hero h1 {
    font-size: clamp(3.5rem, 7vw, 5rem);
  }

  .careers-openings__card {
    grid-template-columns: 1fr;
  }

  .careers-openings__visual {
    min-height: 240px;
    max-height: 280px;
  }

  .careers-partners__panel {
    padding: 32px;
  }
}

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

  .careers-hero::after,
  .careers-hero__image {
    display: none;
  }

  .careers-hero__inner {
    min-height: 540px;
  }

  .careers-hero__content {
    width: 100%;
  }

  .careers-hero h1 {
    font-size: clamp(3.5rem, 11.5vw, 5.2rem);
  }

  .careers-openings__copy,
  .careers-partners__panel {
    padding: 28px 24px;
  }

  .careers-partners__panel,
  .careers-partners p,
  .careers-partners .careers-button {
    grid-column: auto;
    grid-row: auto;
  }

  .careers-partners__panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .careers-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
