:root {
  --text-dark: #0e1015;
  --muted: #5f6f69;
  --line: #dde3e6;
  --line-soft: rgba(12, 43, 34, 0.08);
  --bg-dark: #16241f;
  --mint-a: #72d0ac;
  --mint-b: #c9efde;
  --mint-c: #f8fffb;
  --footer-a: #15593f;
  --footer-b: #48c58f;
  --page-shell: 980px;
  --shadow-soft: 0 16px 40px rgba(15, 52, 40, 0.08);
  --type-micro: 12px;
  --type-support: 14px;
  --type-body: 15px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'InterVariable', 'Inter', 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'InterVariable', 'Inter', sans-serif;
}

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

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

.careers-page {
  min-height: 100vh;
  position: relative;
}

/* Gradient layer — extends through nav + hero. */
.careers-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  background: linear-gradient(180deg, var(--mint-a) 0%, var(--mint-b) 22%, var(--mint-c) 50%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
  z-index: -1;
  pointer-events: none;
}

/* Column-line layer — fades out BEFORE the main title. */
.careers-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  background: linear-gradient(90deg, rgba(22, 171, 109, 0.18) 1px, transparent 1px);
  background-size: 72px 100%;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 120px, transparent 220px);
          mask-image: linear-gradient(180deg, #000 0%, #000 120px, transparent 220px);
  z-index: -1;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: 'InterVariable', 'Inter', sans-serif;
  font-weight: 600;
  transition:
    transform var(--motion-duration-fast) var(--motion-ease-standard),
    box-shadow var(--motion-duration-fast) ease,
    background-color var(--motion-duration-fast) ease,
    border-color var(--motion-duration-fast) ease,
    color var(--motion-duration-fast) ease;
}

.btn-light {
  background: #ffffff;
  color: #0f1114;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.hero {
  max-width: var(--page-shell);
  margin: 58px auto 0;
  padding: 0 24px;
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 18px auto 12px;
  font-size: clamp(2.2rem, 3.1vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1 em {
  display: block;
  color: #16ab6d;
  font-style: normal;
  font-weight: 600;
  margin-top: 2px;
}

.hero-copy p {
  margin: 24px auto 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.58;
  color: #2f4e44;
}

.team-photo {
  margin-top: 58px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 40, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.team-photo img {
  width: 100%;
  height: clamp(330px, 44vw, 540px);
  object-fit: cover;
  object-position: center;
}

.open-roles {
  max-width: var(--page-shell);
  margin: 40px auto 0;
  padding: 0 24px 84px;
}

.roles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.roles-header h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.search-wrap {
  position: relative;
  width: min(238px, 38%);
}

.search-wrap input,
.filter select {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #5e6674;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
}

.search-wrap input {
  border-radius: 4px;
  padding-left: 38px;
}

.search-wrap::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1.6px solid #98a3b2;
  border-radius: 50%;
  transform: translateY(-55%);
}

.search-wrap::after {
  content: '';
  position: absolute;
  left: 26px;
  top: calc(50% + 5px);
  width: 6px;
  height: 1.6px;
  background: #98a3b2;
  transform: rotate(45deg);
  transform-origin: left center;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.filter label {
  display: block;
  font-size: 13px;
  color: #2f3541;
  margin-bottom: 7px;
  font-weight: 500;
}

.filter select {
  border-radius: 4px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #a0a8b8 50%),
    linear-gradient(135deg, #a0a8b8 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.role-list {
  display: grid;
  gap: 12px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 15px;
}

.role-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(13, 34, 28, 0.04);
  transition:
    transform var(--motion-duration-md) var(--motion-ease-standard),
    box-shadow var(--motion-duration-md) ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--motion-shadow-lift);
}

.role-card h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.role-card h3 span {
  font-size: 12px;
  font-weight: 500;
  color: #8a92a5;
  background: #f2f5fb;
  border: 1px solid #e5ebf2;
  border-radius: 999px;
  padding: 3px 7px;
}

.role-meta {
  margin-top: 10px;
  color: #778095;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.role-meta span {
  display: inline-flex;
  align-items: center;
}

.role-meta span + span::before {
  content: '';
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: #d7dcec;
}

.why-join {
  background: #0f1414;
  color: #ffffff;
  padding: 88px 24px 106px;
}

.why-copy {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.why-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 600;
}

.why-copy h2 span {
  color: #16ab6d;
}

.why-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.45;
}

.why-grid {
  max-width: var(--page-shell);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 23px 24px;
}

.why-card h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  font-weight: 600;
}

.why-card h3 img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.why-card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.76);
}

[data-animate] {
  opacity: var(--motion-opacity-start, 0);
  transform: translate3d(0, var(--motion-y-start, 24px), 0);
  transition:
    opacity var(--motion-duration, var(--motion-duration-md)) var(--motion-ease-standard) var(--motion-delay, 0ms),
    transform var(--motion-duration, var(--motion-duration-md)) var(--motion-ease-standard) var(--motion-delay, 0ms);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-animate].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-copy > *,
.roles-header > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--motion-duration-md) var(--motion-ease-standard),
    transform var(--motion-duration-md) var(--motion-ease-standard);
}

.hero-copy.in-view > *,
.roles-header.in-view > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-copy.in-view > *:nth-child(1),
.roles-header.in-view > *:nth-child(1) {
  transition-delay: 40ms;
}

.hero-copy.in-view > *:nth-child(2),
.roles-header.in-view > *:nth-child(2) {
  transition-delay: 110ms;
}

@media (max-width: 940px) {
  .hero-copy p {
    font-size: 18px;
  }

  .roles-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
  }

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

  .role-card h3 {
    font-size: 18px;
  }

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

  .why-card h3 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .hero,
  .open-roles,
  .why-join {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    margin-top: 36px;
  }

  .hero-copy h1 {
    max-width: 290px;
    margin: 16px auto 12px;
    font-size: clamp(2rem, 10vw, 2.45rem);
    line-height: 1.04;
  }

  .hero-copy p {
    margin-top: 16px;
    font-size: 16px;
  }

  .team-photo {
    margin-top: 28px;
  }

  .roles-header h2 {
    font-size: 19px;
  }

  .search-wrap {
    width: 100%;
  }

  .role-card {
    padding: 18px 16px;
  }

  .role-card h3 {
    font-size: 18px;
  }

  .role-meta {
    font-size: 12px;
  }

  .role-meta span + span::before {
    margin: 0 8px;
  }

  .why-card {
    padding: 18px 16px;
  }

  .why-card h3 {
    font-size: 22px;
  }
}
