:root {
  --ink: #1709ba;
  --ink-soft: #21335d;
  --blue: #31adf5;
  --red: #ff262c;
  --paper: #fff;
  --footer: #f1f1f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Quicksand", "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(236, 248, 255, 0.9) 0%, rgba(255, 255, 255, 0.96) 20%, #fff 58%, #f7fcff 100%);
}

.career-poster {
  position: relative;
  width: 100vw;
  min-height: max(100svh, 64vw);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 248, 255, 0.88) 0%, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0.95) 70%, #f7fcff 100%);
}

.career-poster::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 22vw;
  min-height: 220px;
  background: url("assets/mountain-footer.png") bottom center / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0, #000 38%);
}

.headline {
  position: absolute;
  top: 2.3vw;
  left: 15.8vw;
  right: 15.1vw;
  height: 14.7vw;
  z-index: 2;
}

.brand-lockup {
  position: absolute;
  top: 2.65vw;
  left: -0.15vw;
  width: 33.85vw;
  text-align: center;
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.brand-rule {
  display: grid;
  grid-template-columns: 12.1vw 1.36vw 1.36vw 1.36vw 12.1vw;
  justify-content: center;
  align-items: center;
  gap: 0.66vw;
  margin-top: 0.75vw;
}

.brand-rule span {
  display: block;
  height: 0.31vw;
  background: var(--ink-soft);
}

.brand-rule i {
  display: block;
  width: 1.36vw;
  height: 1.36vw;
  border-radius: 50%;
  background: var(--ink);
}

.split-line {
  position: absolute;
  top: 0;
  left: 34.25vw;
  width: 0.2vw;
  height: 15.9vw;
  background: var(--ink-soft);
}

.hiring-art {
  position: absolute;
  top: -0.6vw;
  left: 36.45vw;
  width: 32.8vw;
  height: auto;
  user-select: none;
}

.role-board {
  position: absolute;
  top: 18.95vw;
  left: 15.55vw;
  right: 15.65vw;
  z-index: 3;
}

.role-row {
  display: flex;
  justify-content: center;
  gap: 1.08vw;
}

.role-row-bottom {
  margin-top: 0.86vw;
}

.role-card {
  position: relative;
  display: grid;
  grid-template-rows: 11.55vw 1fr;
  width: 12.65vw;
  height: 15.95vw;
  overflow: hidden;
  border: 0.31vw solid var(--blue);
  border-right-color: var(--ink);
  border-bottom-color: var(--ink);
  border-radius: 1.32vw;
  background: #fff;
  box-shadow: 0.2vw 0.18vw 0 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.role-card:hover,
.role-card:focus-within {
  transform: translateY(-0.35vw);
  box-shadow: 0.34vw 0.32vw 0 0 var(--ink), 0 1.2vw 2.4vw rgba(49, 173, 245, 0.16);
}

.role-apply {
  position: absolute;
  top: 0.52vw;
  right: 0.52vw;
  z-index: 2;
  padding: 0.34vw 0.55vw;
  border: 1px solid rgba(49, 173, 245, 0.76);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72vw;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.role-card:hover .role-apply,
.role-card:focus-within .role-apply {
  opacity: 1;
  transform: translateY(0);
}

.role-apply:hover,
.role-apply:focus-visible {
  color: #fff;
  background: var(--ink);
  outline: none;
}

.role-image-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: 0.35vw 0.55vw 0;
}

.role-image {
  display: block;
  max-width: 10.3vw;
  max-height: 11.2vw;
  object-fit: contain;
}

.role-copy {
  display: grid;
  align-content: end;
  justify-items: center;
  min-width: 0;
  padding: 0 0.26vw 0.56vw;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.role-copy strong {
  color: var(--ink);
  font-size: 1.78vw;
  font-weight: 500;
}

.role-copy span {
  width: 100%;
  margin-top: 0.13vw;
  overflow: hidden;
  color: #050505;
  font-size: 1.03vw;
  font-weight: 700;
  text-overflow: clip;
  white-space: nowrap;
}

.compact-title .role-copy span {
  font-size: 0.93vw;
}

.career-brief {
  position: absolute;
  top: 52.8vw;
  left: 15.55vw;
  right: 15.65vw;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3vw;
  padding-top: 1.25vw;
  border-top: 2px solid rgba(49, 173, 245, 0.46);
}

.career-brief p,
.career-brief h2 {
  margin: 0;
}

.career-brief p {
  color: var(--blue);
  font-size: clamp(0.92rem, 1vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-brief h2 {
  max-width: 720px;
  margin-top: 0.56vw;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.career-brief a {
  flex: 0 0 auto;
  padding: 1vw 1.25vw;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1vw 2.4vw rgba(49, 173, 245, 0.14);
  font-size: clamp(1rem, 1.1vw, 1.28rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.career-brief a:hover,
.career-brief a:focus-visible {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .career-poster {
    min-height: 100svh;
    padding: 22px 18px 0;
  }

  .headline,
  .role-board {
    position: static;
  }

  .headline {
    display: grid;
    gap: 18px;
    height: auto;
    margin-top: 28px;
  }

  .brand-lockup {
    position: static;
    width: 100%;
  }

  .brand-lockup img {
    width: min(92vw, 600px);
    margin: 0 auto;
  }

  .split-line {
    display: none;
  }

  .hiring-art {
    position: static;
    justify-self: center;
    width: min(86vw, 520px);
  }

  .role-board {
    margin-top: 20px;
  }

  .role-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .role-row-bottom {
    margin-top: 16px;
  }

  .role-card {
    grid-template-rows: 166px 1fr;
    width: min(42vw, 210px);
    height: 268px;
    border: 5px solid var(--blue);
    border-right-color: var(--ink);
    border-bottom-color: var(--ink);
    border-radius: 22px;
    box-shadow: 4px 4px 0 0 var(--ink);
  }

  .role-card:hover,
  .role-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 0 var(--ink), 0 18px 34px rgba(49, 173, 245, 0.14);
  }

  .role-apply {
    top: 10px;
    right: 10px;
    padding: 7px 9px;
    font-size: 13px;
    opacity: 1;
    transform: none;
  }

  .role-image-wrap {
    padding: 8px 8px 0;
  }

  .role-image {
    max-width: 160px;
    max-height: 158px;
  }

  .role-copy {
    padding: 0 6px 10px;
  }

  .role-copy strong {
    font-size: 28px;
  }

  .role-copy span,
  .compact-title .role-copy span {
    font-size: clamp(14px, 3.3vw, 18px);
  }

  .career-brief {
    position: static;
    display: grid;
    gap: 18px;
    margin: 30px 0 6px;
    padding-top: 24px;
  }

  .career-brief h2 {
    margin-top: 8px;
  }

  .career-brief a {
    justify-self: start;
    padding: 14px 16px;
  }

}

@media (max-width: 520px) {
  .career-poster {
    padding-right: 14px;
    padding-left: 14px;
  }

  .role-card {
    width: min(88vw, 260px);
  }

  .role-row {
    justify-content: center;
  }

}
