/*
  Hiring poster as a page.

  Desktop is a scale model of assets/we-are-hiring.jpeg: every size below is the
  measurement in poster pixels multiplied by --u, so the layout keeps the poster's
  proportions at any width. Type sizes carry a max() floor so they stay readable
  when the model shrinks. Below 1000px the page switches to the mobile flow:
  the visual story first, the text after it.
*/

.hire-body {
  --hire-navy: #032443;
  --hire-orange: #fa5200;
  --hire-bg: #f9f8f6;
  --hire-body: #1f2833;
  --hire-rule: #ddd9d2;
  --u: calc(min(100vw, 1400px) / 1536);

  margin: 0;
  color: var(--hire-body);
  background: var(--hire-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hire-body img { display: block; max-width: 100%; height: auto; }
.hire-body svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.hire-poster {
  width: min(100vw, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: start;
}

/* ---------- left column: the visual story ---------- */

.hire-visual {
  padding: calc(26 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u)) calc(48 * var(--u));
}

.hire-headline,
.hire-subhead,
.hire-step h2,
.hire-block h3,
.hire-people h4,
.hire-first,
.hire-apply-btn {
  font-family: Oswald, "Roboto Condensed", "Arial Narrow", Inter, system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hire-navy);
}
.hire-title {
  font-family: "Roboto Condensed", Oswald, "Arial Narrow", Inter, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--hire-navy);
}

.hire-title {
  margin: 0 0 calc(26 * var(--u));
  font-size: max(30px, calc(86 * var(--u)));
  line-height: 1;
}
.hire-title span { color: var(--hire-orange); }

.hire-step {
  display: grid;
  grid-template-columns: calc(240 * var(--u)) 1fr;
  align-items: center;
  gap: 0;
  padding: 0;
}
.hire-step + .hire-step { border-top: 1px solid var(--hire-rule); }
/* Poster panel 3 starts 15 poster-px further right, which is what lets its
   longer title sit on one line the way the poster does. */
.hire-step:nth-of-type(3) {
  grid-template-columns: calc(255 * var(--u)) 1fr;
  align-items: stretch;
}
.hire-step:nth-of-type(3) .hire-step-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hire-step-copy {
  position: relative;
  z-index: 1;
}
.hire-step-copy h2 {
  margin: 0 0 calc(12 * var(--u));
  white-space: nowrap;
  font-size: max(17px, calc(29.5 * var(--u)));
  line-height: 1.15;
}
.hire-step-copy h2 i {
  color: var(--hire-orange);
  font-style: normal;
}
.hire-step-copy p {
  margin: 0;
  padding-left: calc(30 * var(--u));
  font-size: max(12px, calc(17 * var(--u)));
  line-height: 1.65;
}

.hire-step-art img { width: 100%; }

.hire-visual-foot { padding-top: calc(4 * var(--u)); }
.hire-logo {
  margin-top: auto;
  padding-top: calc(26 * var(--u));
}
.hire-logo img { width: calc(190 * var(--u)); min-width: 120px; }
.hire-logo-foot { display: none; }

.hire-first {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  margin: 0;
  font-size: max(14px, calc(29 * var(--u)));
  white-space: nowrap;
}
.hire-first::before,
.hire-first::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hire-navy);
  opacity: .55;
}
.hire-first b { color: var(--hire-orange); font-weight: 700; }

/* ---------- right column: the text ---------- */

.hire-text {
  padding: calc(12 * var(--u)) calc(66 * var(--u)) calc(24 * var(--u)) calc(24 * var(--u));
  border-left: 1px solid var(--hire-rule);
  min-height: calc(1024 * var(--u));
}

.hire-headline {
  margin: 0;
  font-size: max(26px, calc(52 * var(--u)));
  line-height: 1.02;
}
.hire-subhead {
  margin: calc(4 * var(--u)) 0 calc(10 * var(--u));
  color: var(--hire-orange);
  font-size: max(15px, calc(31 * var(--u)));
  line-height: 1.12;
}
.hire-lede-line {
  margin: 0;
  font-size: max(13px, calc(20.3 * var(--u)));
  line-height: 1.45;
}

.hire-block {
  margin-top: calc(17 * var(--u));
  padding-top: calc(17 * var(--u));
  border-top: 1px solid var(--hire-rule);
}
.hire-block h3 {
  margin: 0 0 calc(10 * var(--u));
  font-size: max(16px, calc(29.5 * var(--u)));
  line-height: 1.1;
}
.hire-block p {
  margin: 0 0 calc(5 * var(--u));
  font-size: max(12px, calc(17 * var(--u)));
  line-height: 1.62;
}
.hire-block p:last-child { margin-bottom: 0; }
.hire-strong { font-weight: 700; color: var(--hire-navy); font-size: max(12px, calc(17.2 * var(--u))); }
.hire-accent { color: var(--hire-orange); font-weight: 700; }

.hire-people {
  display: grid;
  grid-template-columns: 1.14fr auto .86fr;
  gap: calc(14 * var(--u));
}
.hire-people::before {
  content: "";
  grid-column: 2;
  width: 1px;
  background: var(--hire-rule);
}
.hire-people > div:first-of-type { grid-column: 1; grid-row: 1; }
.hire-people > div:last-of-type { grid-column: 3; grid-row: 1; }
.hire-people::before { grid-row: 1; }
.hire-people h4 {
  margin: 0 0 calc(8 * var(--u));
  font-size: max(12px, calc(21 * var(--u)));
}
.hire-people p {
  margin: 0;
  font-size: max(12px, calc(17 * var(--u)));
  line-height: 1.5;
}
.hire-people b { color: var(--hire-navy); }

.hire-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: max(12px, calc(15.5 * var(--u)));
  line-height: 1.34;
}
.hire-perks li + li { margin-top: calc(2 * var(--u)); }
.hire-perks b {
  color: var(--hire-orange);
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- apply ---------- */

.hire-apply {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: calc(14 * var(--u)) calc(18 * var(--u));
  margin-top: calc(14 * var(--u));
  padding: calc(16 * var(--u)) calc(18 * var(--u));
  border: 2px dashed var(--hire-orange);
  border-radius: calc(14 * var(--u));
}
.hire-tap {
  color: var(--hire-navy);
  width: calc(46 * var(--u));
  min-width: 30px;
}
.hire-tap svg { width: 100%; height: auto; stroke-width: 1.7; }

.hire-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--u));
  width: 100%;
  min-height: max(44px, calc(62 * var(--u)));
  padding: 0 calc(24 * var(--u));
  color: #fff;
  background: var(--hire-orange);
  border: 0;
  border-radius: calc(10 * var(--u));
  font-size: max(18px, calc(38 * var(--u)));
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hire-apply-btn svg { width: max(20px, calc(34 * var(--u))); height: auto; stroke-width: 2.4; }
.hire-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(250, 82, 0, .3); }
.hire-apply-btn:focus-visible { outline: 3px solid var(--hire-navy); outline-offset: 3px; }

.hire-contacts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8 * var(--u)) calc(22 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--hire-navy);
  font-size: max(12px, calc(17 * var(--u)));
}
.hire-contacts li {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
}
.hire-contacts li + li { border-left: 1px solid var(--hire-rule); padding-left: calc(22 * var(--u)); }
.hire-contacts svg { width: max(15px, calc(22 * var(--u))); height: auto; }
.hire-contacts a { color: inherit; text-decoration: none; }
.hire-contacts a:hover { color: var(--hire-orange); }

/* ---------- page chrome that is not part of the poster ---------- */

.hire-foot {
  padding: 22px 24px 30px;
  text-align: center;
  font-size: 13px;
}
.hire-foot a {
  color: var(--hire-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 36, 67, .3);
}
.hire-foot a:hover { color: var(--hire-orange); }

.hire-sticky { display: none; }

/* ---------- mobile: visuals first, then the text ---------- */

@media (max-width: 999px) {
  .hire-body { --u: 1px; }

  .hire-poster {
    width: 100%;
    display: block;
  }

  .hire-visual { padding: 26px 18px 4px; }

  .hire-title {
    font-size: clamp(34px, 10.5vw, 52px);
    margin-bottom: 20px;
  }

  .hire-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 0;
  }
  .hire-step-art { order: -1; margin-bottom: 14px; }
  .hire-step .hire-logo { display: none; }
  .hire-logo-foot { display: block; }
  .hire-step-art img {
    width: 100%;
    border-radius: 10px;
  }
  .hire-step-copy h2 { font-size: clamp(20px, 6vw, 26px); margin-bottom: 8px; white-space: normal; }
  .hire-step-copy p { padding-left: 0; font-size: 15px; }

  .hire-visual-foot {
    display: block;
    padding-top: 18px;
    text-align: center;
  }
  .hire-logo-foot { padding-top: 0; margin: 4px 0 18px; }
  .hire-logo img { width: 168px; margin: 0 auto; }
  .hire-first { font-size: 19px; gap: 12px; }

  .hire-text {
    padding: 22px 18px 30px;
    border-left: 0;
    border-top: 1px solid var(--hire-rule);
    min-height: 0;
  }

  .hire-headline { font-size: clamp(30px, 9vw, 44px); }
  .hire-subhead { font-size: clamp(17px, 5vw, 24px); margin: 6px 0 12px; }
  .hire-lede-line { font-size: 15px; }

  .hire-block { margin-top: 20px; padding-top: 20px; }
  .hire-block h3 { font-size: clamp(19px, 5.6vw, 26px); margin-bottom: 10px; }
  .hire-block p,
  .hire-perks,
  .hire-people p { font-size: 15px; }
  .hire-block > p br,
  .hire-people p br { display: none; }

  .hire-people {
    display: block;
  }
  .hire-people::before { display: none; }
  .hire-people > div + div {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hire-rule);
  }
  .hire-people h4 { font-size: 15px; }

  .hire-perks li + li { margin-top: 10px; }

  .hire-apply {
    display: block;
    margin-top: 22px;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
  }
  .hire-tap { display: none; }
  .hire-apply-btn {
    min-height: 54px;
    font-size: 22px;
    border-radius: 10px;
  }
  .hire-apply-btn svg { width: 24px; }
  .hire-contacts {
    justify-content: center;
    margin-top: 14px;
    font-size: 14px;
  }
  .hire-contacts li { gap: 7px; }
  .hire-contacts li + li { padding-left: 14px; }
  .hire-contacts svg { width: 17px; }

  /* The page is long on a phone; keep the one action reachable. */
  .hire-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: block;
    transition: transform .24s ease, opacity .24s ease;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(249, 248, 246, .94);
    border-top: 1px solid var(--hire-rule);
    backdrop-filter: blur(10px);
  }
  .hire-sticky .hire-apply-btn { min-height: 48px; font-size: 19px; }
  /* Out of the way while the real Apply box is on screen. */
  .hire-sticky.is-hidden {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
  }

  .hire-foot { padding: 18px 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hire-apply-btn { transition: none; }
  .hire-apply-btn:hover { transform: none; }
  .hire-sticky { transition: none; }
}
