/* Careers: the pitch and the roles on paper, with the application form in a
   dark panel that reuses the contact form's fields. */
.careers-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 11vw, 144px) max(6vw, 36px, (100% - 1280px) / 2);
  background: var(--paper);
  color: var(--primary);
}

.careers-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
}

.careers-intro {
  position: sticky;
  top: calc(var(--header-height, 0px) + 48px);
}

.careers-eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.careers-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: .92;
  text-transform: uppercase;
}

/* "bright" sits on a tilted yellow tag, like "clients". */
.careers-title-accent {
  display: inline-block;
  padding: .06em .16em 0;
  background: var(--yellow);
  rotate: -2deg;
}

.careers-lead {
  max-width: 46ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  color: rgb(35 39 38 / 80%);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

/* Clicking a role picks it in the form. */
.careers-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.careers-roles button {
  padding: 10px 16px 8px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, translate 300ms var(--ease-out);
}

.careers-roles button:hover {
  background: var(--yellow);
  translate: 0 -3px;
}

.careers-roles button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--yellow);
}

.careers-form select {
  width: 100%;
  min-height: 54px;
  padding: 14px 44px 14px 16px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0;
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fccc0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat,
    rgb(255 255 255 / 6%);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.careers-form select:invalid {
  color: rgb(255 255 255 / 55%);
}

.careers-form select option {
  background: var(--primary);
  color: var(--paper);
}

.careers-form select:hover {
  border-color: rgb(255 255 255 / 45%);
}

.careers-form select:focus {
  border-color: var(--yellow);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(252 204 12 / 25%);
}

.careers-form select:user-invalid {
  border-color: #ff8a80;
}

.careers-form input::placeholder {
  color: rgb(255 255 255 / 35%);
}

.careers-field-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* CV drop zone: the whole box is the file input's label. */
.careers-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 2px dashed rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 4%);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.careers-drop svg {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  color: var(--yellow);
  transition: translate 300ms var(--ease-out);
}

.careers-drop-text {
  font-size: 1.05rem;
}

.careers-drop-text u {
  color: var(--yellow);
  text-underline-offset: 3px;
}

.careers-drop-hint {
  color: rgb(255 255 255 / 55%);
  font-size: .9rem;
}

.careers-drop-file {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .04em;
  /* Keep the file name as typed, not in the label's capitals. */
  text-transform: none;
  overflow-wrap: anywhere;
}

.careers-drop-file:empty {
  display: none;
}

.careers-drop:hover,
.careers-drop:focus-within,
.careers-drop.is-dragging {
  border-color: var(--yellow);
  background: rgb(252 204 12 / 8%);
}

.careers-drop:hover svg,
.careers-drop.is-dragging svg {
  translate: 0 -4px;
}

.careers-drop:focus-within {
  box-shadow: 0 0 0 3px rgb(252 204 12 / 25%);
}

.careers-drop.has-file {
  border-style: solid;
  border-color: var(--yellow);
}

.careers-drop.has-error {
  border-color: #ff8a80;
}

.careers-drop.has-error .careers-drop-file {
  color: #ff8a80;
}

/* Hidden but still focusable and able to show the browser's "required" message. */
.careers-file {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 1024px) {
  .careers-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .careers-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .careers-section {
    padding: 72px 24px;
  }

  .careers-roles button {
    font-size: 1rem;
  }
}
