/* ==========================================================================
   Hire page — hero · filter bar · graduate cards · privacy note · steps
   Mobile-first. Built on tokens.css + the shared components.
   ========================================================================== */

/* ---- page ground --------------------------------------------------------- */
.page-hire main { background: linear-gradient(var(--surface), var(--navy-tint) 50%, var(--tint-cool)); }
.hire-track { --container: 87rem; }   /* the design's 1392px column */

/* ---- Hero -------------------------------------------------------------- */
.hire-hero { position: relative; isolation: isolate; padding-block: var(--sp-8) var(--sp-6); }
.hire-hero::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: 50%;
  z-index: -1;
  width: min(36rem, 100%);
  translate: calc(var(--dir) * -50%) 0;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--burgundy-deep) 8%, transparent),
    color-mix(in srgb, var(--amber) 10%, transparent) 55%,
    transparent
  );
}
.hire-hero__pill { flex-wrap: wrap; justify-content: center; font-size: var(--fs-14); }
.hire-hero__pill .badge__dot { color: var(--burgundy-deep); }
.hire-hero__pill-main { font-weight: 700; letter-spacing: .025em; color: var(--burgundy-deep); }
.hire-hero__pill-sep { color: var(--text-muted); }
.hire-hero__pill-sub { color: var(--navy-soft); }
.hire-hero__title { margin-block-end: 0; color: var(--navy); text-wrap: balance; }
.hire-hero__mark { color: var(--burgundy); }

/* ---- Filter bar --------------------------------------------------------- */
.hire-list { padding-block-end: var(--sp-4); }
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-12);
  box-shadow: var(--sh-xs);
}
/* chips: one scrollable strip on phones, wrapping row from 640px */
.filter-bar__chips {
  --chips-edge: var(--sp-6);   /* width of the soft fade that tells the strip scrolls */
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-inline: calc(var(--sp-4) * -1);
  padding: 2px var(--chips-edge);
  overflow-x: auto;
  scroll-padding-inline: var(--chips-edge);
  scrollbar-width: none;
  /* both ends fade out: the first and the last chip no longer look cut off */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--chips-edge), #000 calc(100% - var(--chips-edge)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--chips-edge), #000 calc(100% - var(--chips-edge)), transparent);
}
.filter-bar__chips::-webkit-scrollbar { display: none; }

/* ---- Graduate cards ----------------------------------------------------- */
.grad-grid { display: grid; gap: var(--sp-6); padding-block-start: var(--sp-6); }
.grad-card {
  height: 100%;
  padding: var(--sp-6);
  border-color: var(--line-cool);
  border-radius: var(--r-16);
}
.grad-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.grad-card__initial { font-size: var(--fs-16); color: var(--burgundy-deep); background: var(--amber-soft); }

/* availability pill: shared badge--success / badge--muted, sized like the design */
.hire-status {
  gap: var(--sp-1);
  padding: .125rem .625rem;
  font-size: var(--fs-16);
  color: var(--green-ink);
}
.hire-status.badge--muted {
  color: var(--text);
  background: color-mix(in srgb, var(--line-cool) 70%, transparent);
  border-color: var(--line-cool);
}

.grad-card__name {
  margin-block-start: var(--sp-4);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}
.grad-card__field {
  align-self: flex-start;
  margin-block-start: var(--sp-1);
  padding: .25rem .75rem;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy-soft);
  background: var(--navy-tint);
  border-radius: var(--r-full);
}
.grad-card__field--rose { color: var(--burgundy); }
.grad-card__text {
  margin-block-start: var(--sp-2);
  font-size: var(--fs-14);
  line-height: 1.72;
  color: var(--text);
}
.grad-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-block: var(--sp-4) var(--sp-6);
}
.grad-card__skill {
  padding: .25rem .625rem;
  font-size: var(--fs-14);
  line-height: 1.5;
  background: var(--tint-cool);
  border-color: var(--line-cool);
}
.grad-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-start: auto;
  padding-block-start: var(--sp-2);
  border-block-start: 1px solid color-mix(in srgb, var(--line-cool) 40%, transparent);
}
.grad-card__btn {
  flex: 1 1 9.5rem;
  padding-inline: var(--sp-4);
  font-size: var(--fs-16);
  font-weight: 400;
  border-radius: var(--r-8);
}
.grad-card__btn:not(.btn--outline) { font-weight: 700; box-shadow: var(--sh-xs); }
.grad-card__btn .icon { font-size: .6875rem; }

/* placeholder card shown while the next graduates load */
.hire-skeleton { align-items: flex-start; min-height: 18rem; }
.hire-skeleton .skeleton--text:nth-child(2) { --skeleton-width: 50%; }

.hire-list__empty {
  margin-block-start: var(--sp-6);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px dashed var(--line-cool);
  border-radius: var(--r-16);
}
.hire-list__privacy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) 0;
  font-size: var(--fs-12);
  line-height: 2;
  color: var(--text);
  text-align: center;
}
.hire-list__privacy .icon { margin-block-start: .25rem; font-size: 1rem; color: var(--navy-soft); }

/* ---- Steps -------------------------------------------------------------- */
.hire-steps { padding-block-end: var(--sp-10); }
.hire-steps__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-10) var(--sp-4);
  background: var(--navy-tint);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-16);
}
.hire-steps__head { gap: var(--sp-1); }
.hire-steps__eyebrow {
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .05em;
  color: var(--burgundy-deep);
}
.hire-steps__list { display: grid; gap: var(--sp-6); }
.hire-step {
  align-items: center;
  padding: var(--sp-6);
  text-align: center;
  border-color: var(--line-cool);
  border-radius: var(--r-12);
}
.hire-step__icon { margin-block-end: var(--sp-4); color: var(--burgundy); background: var(--navy-tint); }
.hire-step--navy .hire-step__icon { color: var(--navy-soft); }
.hire-step__icon .icon { font-size: 1.5625rem; }
.hire-step__stage {
  margin-block-end: var(--sp-1);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  color: var(--amber-ink);
}
.hire-step__title {
  margin-block-end: var(--sp-1);
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.72;
  color: var(--navy);
}
.hire-step__text {
  max-width: 23rem;
  font-size: var(--fs-14);
  line-height: 1.72;
  color: var(--text);
}

/* ---- ≥ 640px ------------------------------------------------------------ */
@media (min-width: 40rem) {
  .grad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grad-card__btn { flex: 0 1 auto; min-width: 10rem; }
  .filter-bar__chips {
    flex-wrap: wrap;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* ---- ≥ 768px: three columns (nine cards leave no orphan) ----------------- */
@media (min-width: 48rem) {
  .grad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---- ≥ 1024px: bar on one line, three columns --------------------------- */
@media (min-width: 64rem) {
  .hire-hero { padding-block: var(--sp-10) var(--sp-6); }
  .filter-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .grad-grid { row-gap: var(--sp-10); }
  .hire-steps__panel { padding: 4.5rem var(--sp-10) var(--sp-16); }
  .hire-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================================
   Motion (choreography of the scroll reveals; the shared system lives in components.css)
   The cards are the <li> items of the list, so app.js staggers the ones that arrive together
   into a wave; the lazy-list batches use the same path when they come into view.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .grad-grid__item:nth-child(odd) { --drop-tilt: -2deg; }
  .grad-grid__item:nth-child(even) { --drop-tilt: 2deg; }
  .hire-steps__list > :nth-child(1) { --drop-tilt: -2.5deg; }
  .hire-steps__list > :nth-child(2) { --drop-tilt: 1.5deg; }
  .hire-steps__list > :nth-child(3) { --drop-tilt: -1.5deg; }
}

/* ---- LTR (English) --------------------------------------------------------
   the send icon is drawn for RTL; mirror it. */
[dir="ltr"] .icon:has(> use[href="#i-hire-send"]) { scale: -1 1; }
