/* =============================================================================
   CAREERS — page-specific sections
   =============================================================================
   Requires ax-system.css (loaded first): tokens, type scale, buttons, section
   shell, hero, CTA, header/footer, motion. This file styles ONLY this page's
   sections, reusing the shared tokens and editorial registers so Careers reads
   as a natural continuation of the rest of the site.

   This was a RESTRUCTURE: the reviewed content (roles, why-join insights, hiring
   process) is preserved; presentation moved onto the editorial system and each
   role's depth surfaced inline (no modal). Page-unique registers:
     crs-hero__facts · the quiet fact line in the hero
     crs-why         · the six why-join insights (key → statement)
     crs-role        · the role editorial spread, full depth inline (centerpiece)
     crs-proc        · the four-step hiring process (numbered spine)
   ============================================================================= */


/* =============================================================================
   HERO — preserved fact line under the lead.
   ============================================================================= */
.crs-hero__facts {
    font-family: var(--ax-font-body);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.5;
    color: var(--ax-text-3);
    margin: clamp(22px, 3vw, 30px) 0 0;
}


/* =============================================================================
   SECTION 2 — WHY JOIN. Six insights as key → statement rows.
   ============================================================================= */
.crs-why__lead { margin-top: 20px; }

.crs-why {
    margin: clamp(8px, 1.5vw, 16px) 0 0;
    padding: 0;
    border-top: 1px solid var(--ax-border);
}

.crs-why__row {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
    gap: 0 clamp(32px, 5vw, 72px);
    align-items: baseline;
    padding: clamp(24px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--ax-border);
}

.crs-why__k {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(20px, 2.1vw, 28px);
    letter-spacing: -0.024em;
    line-height: 1.12;
    color: var(--ax-text);
    margin: 0;
    text-wrap: balance;
}

.crs-why__d {
    font-family: var(--ax-font-body);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.6;
    color: var(--ax-text-2);
    margin: 0;
    max-width: 54ch;
}


/* =============================================================================
   SECTION 3 — OPEN POSITIONS. Each role is a full editorial spread: a head
   (number · team · title · facts), the summary and about, the skill tags, then
   the preserved depth (what you'll do · what we're looking for) inline — no
   modal. Hairline rules and labels carry the structure, no cards.
   ============================================================================= */
.crs-roles__lead { margin-top: 20px; }

.crs-roles {
    border-top: 1px solid var(--ax-border);
}

.crs-role {
    padding: clamp(40px, 5vw, 72px) 0;
    border-bottom: 1px solid var(--ax-border);
    /* Deep-link / "See open roles" target clears the fixed header. */
    scroll-margin-top: calc(var(--ax-header-h) + 24px);
}

/* Head — number and title left, facts right. */
.crs-role__head {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0 clamp(20px, 3vw, 40px);
    align-items: baseline;
}

.crs-role__no {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: 13px;
    color: var(--ax-accent-soft);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.crs-role__team {
    display: block;
    font-family: var(--ax-font-body);
    font-size: clamp(12px, 1vw, 13px);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ax-accent-soft);
    margin-bottom: 10px;
}

.crs-role__title {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.028em;
    line-height: 1.05;
    color: var(--ax-text);
    margin: 0;
    text-wrap: balance;
}

/* Facts — exp · location · type, a quiet middot-free stack that wraps inline. */
.crs-role__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: flex-end;
    font-family: var(--ax-font-body);
    font-size: clamp(13px, 1.1vw, 14.5px);
    color: var(--ax-text-3);
}
.crs-role__facts li { position: relative; white-space: nowrap; }
.crs-role__facts li + li { padding-left: 18px; }
.crs-role__facts li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ax-border);
    transform: translateY(-50%);
}

/* The summary — the role's one-line hook, in Geist. */
.crs-role__summary {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.34;
    letter-spacing: -0.02em;
    color: var(--ax-text);
    margin: clamp(24px, 3vw, 34px) 0 0;
    max-width: 46ch;
    /* align under the title column */
    padding-left: calc(56px + clamp(20px, 3vw, 40px));
    text-wrap: pretty;
}

.crs-role__about {
    font-family: var(--ax-font-body);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.62;
    color: var(--ax-text-2);
    margin: 18px 0 0;
    max-width: 64ch;
    padding-left: calc(56px + clamp(20px, 3vw, 40px));
}

/* Skill tags — quiet hairline pills, the one place chips fit the system. */
.crs-role__tags {
    list-style: none;
    margin: clamp(22px, 2.6vw, 30px) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-left: calc(56px + clamp(20px, 3vw, 40px));
}

.crs-role__tags li {
    font-family: var(--ax-font-body);
    font-size: 13px;
    line-height: 1;
    color: var(--ax-text-2);
    padding: 8px 14px;
    border: 1px solid var(--ax-border);
    border-radius: 999px;
}

/* The preserved depth — two columns, hairline-topped, labelled. */
.crs-role__detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    margin-top: clamp(30px, 3.6vw, 44px);
    padding-top: clamp(26px, 3vw, 36px);
    border-top: 1px solid var(--ax-border-2);
    padding-left: calc(56px + clamp(20px, 3vw, 40px));
}

.crs-role__label {
    display: block;
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(12px, 1vw, 13px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ax-accent-soft);
    margin-bottom: 16px;
}

.crs-role__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crs-role__list li {
    font-family: var(--ax-font-body);
    font-size: clamp(14.5px, 1.2vw, 16px);
    line-height: 1.55;
    color: var(--ax-text-2);
    padding: 10px 0 10px 22px;
    position: relative;
}
.crs-role__list li + li { border-top: 1px solid var(--ax-border-2); }

/* A small navy tick instead of a bullet. */
.crs-role__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(10px + 0.62em);
    width: 12px;
    height: 1.5px;
    background: var(--ax-accent);
    border-radius: 1px;
}

.crs-role__apply {
    margin-top: clamp(24px, 3vw, 34px);
    padding-left: calc(56px + clamp(20px, 3vw, 40px));
}


/* =============================================================================
   SECTION 4 — HIRING PROCESS. Four steps as a numbered spine, navy top rules.
   (Mirrors the AI-Solutions delivery phases.)
   ============================================================================= */
.crs-proc__lead { margin-top: 20px; }

.crs-proc {
    list-style: none;
    margin: clamp(8px, 1.5vw, 16px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(26px, 3vw, 44px);
}

.crs-proc__step {
    padding-top: 22px;
    border-top: 2px solid var(--ax-accent);
}

.crs-proc__no {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: 13px;
    color: var(--ax-text-3);
    font-variant-numeric: tabular-nums;
    display: block;
    margin-bottom: 16px;
}

.crs-proc__k {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(18px, 1.8vw, 23px);
    letter-spacing: -0.02em;
    color: var(--ax-text);
    margin: 0 0 10px;
}

.crs-proc__d {
    font-family: var(--ax-font-body);
    font-size: clamp(14px, 1.15vw, 15px);
    line-height: 1.55;
    color: var(--ax-text-2);
    margin: 0;
}


/* =============================================================================
   RESPONSIVE — TABLET  ≤ 980px
   ============================================================================= */
@media (max-width: 980px) {

    /* Why: stack key over statement */
    .crs-why__row { grid-template-columns: 1fr; gap: 8px; }
    .crs-why__d { max-width: 100%; }

    /* Process: 2 × 2 */
    .crs-proc { grid-template-columns: 1fr 1fr; gap: 32px; }
}


/* =============================================================================
   RESPONSIVE — MOBILE  ≤ 640px
   ============================================================================= */
@media (max-width: 640px) {

    /* Role spread: facts drop below the title; depth stacks; remove the
       title-column indent so copy uses full width. */
    .crs-role { padding: 36px 0; }
    .crs-role__head { grid-template-columns: 32px 1fr; gap: 0 14px; }
    .crs-role__title { font-size: clamp(24px, 7.5vw, 30px); }
    .crs-role__facts {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 14px;
    }
    .crs-role__summary,
    .crs-role__about,
    .crs-role__tags,
    .crs-role__detail,
    .crs-role__apply { padding-left: 0; }
    .crs-role__summary { font-size: 20px; }
    .crs-role__detail { grid-template-columns: 1fr; gap: 24px; }

    /* Process: single column */
    .crs-proc { grid-template-columns: 1fr; gap: 28px; }
}
