#open-roles {
  scroll-margin-top: var(--nav-offset, 80px);
}

.open-roles {
  padding: 0;
  background: #ffffff;
}

.open-roles--page {
  min-height: auto;
}

.open-roles--page::before {
  display: none;
}

.open-roles--page .open-roles__content {
  padding: calc(var(--nav-offset, 80px) + 48px) calc(var(--page-gutter, clamp(20px, 5vw, 80px)) + var(--safe-left, 0px)) calc(120px + var(--safe-bottom, 0px)) calc(var(--page-gutter, clamp(20px, 5vw, 80px)) + var(--safe-right, 0px));
}

@media (max-width: 768px) {
  .open-roles--page .open-roles__content {
    padding: calc(var(--nav-offset, 68px) + 40px) calc(clamp(24px, 5vw, 32px) + var(--safe-left, 0px)) calc(96px + var(--safe-bottom, 0px)) calc(clamp(24px, 5vw, 32px) + var(--safe-right, 0px));
  }
}

@media (max-width: 480px) {
  .open-roles--page .open-roles__content {
    padding: calc(var(--nav-offset, 64px) + 32px) calc(20px + var(--safe-left, 0px)) calc(72px + var(--safe-bottom, 0px)) calc(20px + var(--safe-right, 0px));
  }
}

.open-roles__content {
  width: 100%;
}

.open-roles__title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(24px, 3vw, 32px);
  text-align: left;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 2px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.open-roles__title .title-line {
  display: inline;
}

.open-roles__title::after {
  content: '';
  flex-basis: 100%;
  width: 100%;
  height: 1px;
  margin-top: clamp(14px, 1.8vw, 20px);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0.04) 75%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.open-roles__title.reveal--title.is-visible::after {
  transform: scaleX(1);
}

.open-roles__intro {
  max-width: 640px;
  margin: 0 0 clamp(40px, 5vw, 56px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.78;
  color: rgba(0, 0, 0, 0.62);
}

.open-roles__lead {
  display: block;
  margin-bottom: 0.85em;
  font-size: clamp(11px, 1.15vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

.open-roles__teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 64px);
  margin-bottom: clamp(36px, 4.5vw, 48px);
}

/* Side-by-side teams leave ~350px per column on tablet portrait, which breaks
   the role row into an awkward wrap against its status badge. */
@media (max-width: 1040px) {
  .open-roles__teams {
    grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 56px);
  }
}

@media (min-width: 769px) and (max-width: 1040px) {
  .open-roles__teams,
  .open-roles__team-desc {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .open-roles__list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.open-roles__team-header {
  margin-bottom: clamp(16px, 2vw, 20px);
}

.open-roles__team-label {
  margin: 0 0 0.5em;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

.open-roles__team-title {
  margin: 0 0 0.45em;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.9);
}

.open-roles__team-desc {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.52);
}

.open-roles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.open-roles__list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(16px, 2vw, 20px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.open-roles__list-item--empty {
  color: rgba(0, 0, 0, 0.45);
}

.open-roles__list-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.open-roles__badge {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 0.95vw, 11px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
  white-space: nowrap;
}

.open-roles__badge--soon {
  color: rgba(0, 0, 0, 0.52);
}

.open-roles__note {
  max-width: 720px;
  margin: 0 0 clamp(28px, 3.5vw, 36px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.72;
  color: rgba(0, 0, 0, 0.48);
}

.open-roles__link {
  color: rgba(0, 0, 0, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.open-roles__link:hover {
  color: rgba(0, 0, 0, 0.9);
  text-decoration-color: rgba(0, 0, 0, 0.45);
}

.open-roles__back {
  margin-top: clamp(4px, 0.5vw, 8px);
}

@media (max-width: 480px) {
  .open-roles__intro {
    font-size: 16px;
    line-height: 1.72;
  }

  .open-roles__note {
    font-size: 16px;
    line-height: 1.72;
  }

  .open-roles__team-desc,
  .open-roles__list-text {
    font-size: 16px;
    line-height: 1.72;
  }
}
