/* ==========================================================================
   /careers/ page-local styles
   Scoped under .car-* so nothing here leaks into other pages.
   Uses the site tokens from variables.css. No new colors introduced.

   Deliberately NOT a copy of /referral/: that page opens on a navy slab, this
   one opens on cream with the mascot lineup so the two don't read as the same
   template with different words in it.
   ========================================================================== */

.car-wrap { --car-gutter: clamp(1.25rem, 4vw, 2rem); }

/* ---------- shared ---------- */
.car-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.car-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--car-gutter);
}
.car-container--narrow { max-width: 940px; }

.car-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-teal-soft);
  color: var(--primary);
}

.car-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.car-h2--light { color: var(--white); }

.car-lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin: 1rem 0 0;
}
.car-lede--light { color: rgba(255, 255, 255, 0.82); }

/* ==========================================================================
   HERO
   ========================================================================== */
.car-hero {
  background: var(--cream);
  padding: calc(var(--nav-height) + clamp(2.5rem, 6vw, 4rem)) 0 0;
  position: relative;
  overflow: hidden;
}

.car-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.car-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.85rem 0 0;
  max-width: 16ch;
}

.car-hero__sub {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: 1.25rem 0 0;
}

.car-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.car-hero__note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dim);
}

/* ---------- the lineup ---------- */
/* Four disciplines in blazers plus one dashed open seat. The empty slot is the
   whole point of the page, so it gets the same footprint as a filled one. */
.car-lineup {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  align-items: end;
  border-bottom: 2px solid rgba(0, 40, 107, 0.14);
  padding-bottom: 0;
}

.car-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.car-slot__art {
  width: 100%;
  max-width: 250px;
  /* height:auto is required, not decorative. The <img> carries height="720" for
     CLS, and that presentational hint beats aspect-ratio, so without this each
     mascot renders a 720px-tall box and blows a hole in the hero. */
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  /* each source render is a character floating in the middle of a square
     transparent canvas. Pull the dead space in from both ends so they read at a
     usable size and stand on the rule instead of hovering above it. */
  margin-top: -11%;
  margin-bottom: -19%;
}

.car-slot__label {
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 0.5vw + 0.45rem, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.75rem 0 0.9rem;
}

/* the open seat. Sized off the characters' VISIBLE height, not their canvas,
   so the empty slot reads as the same kind of object they are. */
.car-slot--open .car-slot__art {
  display: grid;
  place-items: center;
  border: 2px dashed rgba(0, 40, 107, 0.3);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, 0.5);
  aspect-ratio: auto;
  max-width: 180px;
  height: clamp(6.5rem, 11vw, 9.5rem);
  margin: 0;
}
.car-slot--open .car-slot__mark {
  width: 46%;
  max-width: 62px;
  height: auto;
  opacity: 0.35;
}
.car-slot--open .car-slot__label { color: var(--color-text-dim); }

@media (max-width: 900px) {
  /* five across gets too thin to read on a phone; keep the open seat visible
     by dropping to the two that carry the idea */
  .car-lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-slot--hide-sm { display: none; }
}

/* ==========================================================================
   WHAT THIS IS  (three plain blocks, no card grid)
   ========================================================================== */
.car-what { background: var(--white); }

.car-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.car-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--primary);
  margin: 0 0 0.65rem;
  padding-top: 1rem;
  border-top: 3px solid var(--brand-secondary);
}
.car-block p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ==========================================================================
   HOW WORK STARTS  (navy band)
   ========================================================================== */
.car-start {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.car-start::after {
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  left: -16rem;
  bottom: -22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 202, 205, 0.2) 0%, rgba(146, 202, 205, 0) 68%);
  pointer-events: none;
}
.car-start > .car-container { position: relative; z-index: 1; }

.car-start__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
@media (max-width: 820px) { .car-start__body { grid-template-columns: minmax(0, 1fr); } }

.car-start__body p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.car-start__body p:last-child { margin-bottom: 0; }
.car-start__body strong { color: var(--white); font-weight: 700; }

/* ==========================================================================
   WHAT WE'RE SHORT ON  (numbered list, not cards)
   ========================================================================== */
.car-needs { background: var(--cream); }

.car-needs__list {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  counter-reset: need;
}
.car-needs__list li {
  counter-increment: need;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(0, 40, 107, 0.12);
}
.car-needs__list li:last-child { border-bottom: 1px solid rgba(0, 40, 107, 0.12); }
.car-needs__list li::before {
  content: counter(need, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-secondary);
}
/* both text parts belong in column 2. Left to auto-placement the <span> lands
   in column 1 and wraps one word per line. */
.car-needs__list b {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.car-needs__list span {
  grid-column: 2;
  grid-row: 2;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.car-needs__foot {
  margin: 1.75rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   THE BAR
   ========================================================================== */
.car-bar { background: var(--white); }
.car-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.car-bar__card {
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.car-bar__card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.6rem;
}
.car-bar__card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FORM
   ========================================================================== */
.car-form-section { background: var(--cream); }

.car-formcard {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: 0 14px 34px -18px rgba(0, 40, 107, 0.35);
}

.car-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.car-form__field { display: block; margin-bottom: 1.1rem; }
.car-form__row .car-form__field { margin-bottom: 0; }

.car-form__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.45rem;
}
.car-form__opt {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-text-dim);
}

.car-form__field input,
.car-form__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.car-form__field textarea { resize: vertical; min-height: 7rem; }
.car-form__field input::placeholder,
.car-form__field textarea::placeholder { color: #9a9d9b; }
.car-form__field input:focus,
.car-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 40, 107, 0.12);
}

.car-form__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.car-form__turnstile { margin: 1.25rem 0; }
.car-form__submit { margin-top: 0.25rem; }
.car-form__reassure {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

/* honeypot */
.car-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.car-alt {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.car-alt a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   CLOSE
   ========================================================================== */
.car-close {
  background: var(--primary);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.car-close p {
  max-width: 44ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

/* ==========================================================================
   THANKS PAGE
   ========================================================================== */
.car-thanks {
  background: var(--cream);
  padding: calc(var(--nav-height) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(4rem, 9vw, 6.5rem);
}
.car-thanks__inner { max-width: 660px; }
.car-thanks h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.85rem 0 0;
}
.car-thanks__sub {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 1.15rem 0 0;
}
.car-thanks__sub a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.car-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
