/* Careers (/careers and its role, apply and thank-you pages), 31 Oct 2026.
   The business surface from the Zach AI brand book, as set out in ZA-BRIEF-CAREERS-01 section 10: Archivo for display
   and body (display wide, 650 to 690, uppercase), IBM Plex Mono for labels and the role strip; ink #000000 and bone
   #F1EFE7 with their opacity tints, sand #B8A37E as the one accent in a view and never on body text; square corners;
   2 px borders for structure, 1 px rules for rows; no shadows, no gradients; 1050 px container, 26 px padding; ink
   hero, bone body. Mobile first. Behaviour (menu, entrances, analytics) comes from the site's own site.js. */

:root {
  --ink: #000000;
  --bone: #F1EFE7;
  --sand: #B8A37E;
  --on-ink: rgba(241, 239, 231, 0.78);
  --on-ink-soft: rgba(241, 239, 231, 0.58);
  --rule-ink: rgba(241, 239, 231, 0.18);
  --on-bone: rgba(0, 0, 0, 0.78);
  --on-bone-soft: rgba(0, 0, 0, 0.6);
  --rule-bone: rgba(0, 0, 0, 0.18);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.62; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--bone); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.cr-wrap { max-width: 1050px; margin: 0 auto; padding-inline: 26px; }
@media (max-width: 560px) { .cr-wrap { padding-inline: 20px; } }

/* ---------- type ---------- */
.cr-display { font-family: var(--font); font-stretch: 120%; font-weight: 670; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.02; text-wrap: balance; }
.cr-h1 { font-size: clamp(34px, 7.2vw, 74px); }
.cr-h2 { font-size: clamp(24px, 3.6vw, 38px); }
.cr-h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.12; }
.cr-mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; }
.cr-lead { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.6; }
.cr-ink .cr-lead, .cr-ink p { color: var(--on-ink); }
.cr-eyebrow { color: var(--sand); }

/* ---------- buttons: square, 2 px, filled; the hover inverts ---------- */
.cr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid currentColor; font-family: var(--font); font-stretch: 112%; font-weight: 650; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.cr-ink .cr-btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cr-ink .cr-btn:hover { background: transparent; color: var(--bone); }
.cr-bone .cr-btn { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.cr-bone .cr-btn:hover { background: transparent; color: var(--ink); }
.cr-btn--ghost { background: transparent !important; }
.cr-ink .cr-btn--ghost { color: var(--bone); }
.cr-ink .cr-btn--ghost:hover { background: var(--bone) !important; color: var(--ink); }
.cr-bone .cr-btn--ghost { color: var(--ink); }
.cr-bone .cr-btn--ghost:hover { background: var(--ink) !important; color: var(--bone); }
.cr-link { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; display: inline-flex; align-items: center; min-height: 44px; }
.cr-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 560px) { .cr-btn { width: 100%; } }

/* ---------- surfaces ---------- */
.cr-ink { background: var(--ink); color: var(--bone); }
.cr-bone { background: var(--bone); color: var(--ink); }
.cr-sec { padding-block: clamp(64px, 9vw, 112px); }
.cr-sec + .cr-sec.cr-bone { border-top: 1px solid var(--rule-bone); }

/* ---------- nav and footer (the site's links, in this surface) ---------- */
.cr-nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: var(--ink); color: var(--bone); border-bottom: 1px solid var(--rule-ink); }
.cr-nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cr-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--font); font-stretch: 120%; font-weight: 680; font-size: 14px; letter-spacing: 0.1em; }
.cr-brand svg { width: 22px; height: 22px; fill: currentColor; }
.cr-links { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; }
.cr-links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--on-ink); }
.cr-links a:hover, .cr-links a[aria-current="page"] { color: var(--bone); }
.cr-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--bone); }
.mobile-menu { display: none; }
@media (max-width: 820px) {
  .cr-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 70; background: var(--ink); color: var(--bone); padding: 8px 20px 24px; border-bottom: 1px solid var(--rule-ink); }
  .mobile-menu.is-open { display: block; }
  .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
  .mobile-menu a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule-ink); font-family: var(--font); font-stretch: 116%; font-weight: 650; font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
}
.cr-foot { background: var(--ink); color: var(--on-ink-soft); padding: 40px 0 44px; font-size: 14px; }
.cr-foot-in { display: grid; gap: 22px; }
.cr-foot .cr-brand { color: var(--bone); }
.cr-foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; padding: 0; margin: 0; }
.cr-foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.cr-foot-links a:hover, .cr-foot-links a[aria-current="page"] { color: var(--bone); }
.cr-foot-rule { border-top: 1px solid var(--rule-ink); padding-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
@media (min-width: 821px) { .cr-foot-in { grid-template-columns: auto 1fr; align-items: center; } .cr-foot-links { justify-content: flex-end; } .cr-foot-rule { grid-column: 1 / -1; } }

/* ---------- hero (ink) ---------- */
.cr-hero { padding: clamp(64px, 11vw, 136px) 0 clamp(64px, 9vw, 112px); }
.cr-hero .cr-eyebrow { display: block; margin-bottom: 20px; }
.cr-hero .cr-h1 { max-width: 15em; }
.cr-hero .cr-lead { margin-top: 26px; max-width: 40em; }
.cr-hero .cr-second { margin-top: 14px; max-width: 40em; color: var(--bone); font-weight: 500; }
.cr-hero .cr-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cr-hero--role .cr-h1 { max-width: 18em; }
.cr-back { display: inline-flex; margin-bottom: 18px; color: var(--on-ink); }

/* the role summary strip */
.cr-strip { margin-top: 30px; display: grid; grid-template-columns: 1fr; border: 2px solid var(--rule-ink); }
.cr-strip div { padding: 14px 18px; border-bottom: 1px solid var(--rule-ink); }
.cr-strip div:last-child { border-bottom: 0; }
.cr-strip dt { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-soft); }
.cr-strip dd { margin-top: 4px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--bone); }
@media (min-width: 760px) {
  .cr-strip { grid-template-columns: 1fr 1fr; }
  .cr-strip div:nth-child(odd) { border-right: 1px solid var(--rule-ink); }
  .cr-strip div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- section heads ---------- */
.cr-head { margin-bottom: clamp(28px, 4vw, 44px); display: grid; gap: 12px; }
.cr-head .cr-mono { color: var(--on-bone-soft); }

/* ---------- who this is for: two framed panels ---------- */
.cr-fit { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cr-fit > div { border: 2px solid var(--ink); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.cr-fit .cr-mono { color: var(--on-bone-soft); }
.cr-fit p:not(.cr-mono) { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; }
.cr-fit .cr-fit-no { background: var(--ink); color: var(--bone); }
.cr-fit .cr-fit-no .cr-mono { color: var(--on-ink-soft); }
@media (min-width: 760px) { .cr-fit { grid-template-columns: 1fr 1fr; } }

/* ---------- role cards: two columns on desktop, one on phones; the whole card is the link ---------- */
.cr-cards { display: grid; grid-template-columns: 1fr; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .cr-cards { grid-template-columns: 1fr 1fr; } }
.cr-card { display: grid; gap: 14px; height: 100%; padding: clamp(22px, 2.8vw, 30px); border: 2px solid var(--ink); text-decoration: none; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.cr-card .cr-mono { color: var(--on-bone-soft); }
.cr-card p:not(.cr-mono) { color: var(--on-bone); }
.cr-card .cr-more { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.cr-card:hover, .cr-card:focus-visible { background: var(--ink); color: var(--bone); }
.cr-card:hover .cr-mono, .cr-card:focus-visible .cr-mono { color: var(--on-ink-soft); }
.cr-card:hover p:not(.cr-mono), .cr-card:focus-visible p:not(.cr-mono) { color: var(--on-ink); }
.cr-after { margin-top: 26px; color: var(--on-bone); }

/* ---------- rows: how we hire, the role lists ---------- */
.cr-rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.cr-rows li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-bone); }
.cr-rows .cr-n { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; padding-top: 4px; }
.cr-rows .cr-step { font-family: var(--font); font-stretch: 116%; font-weight: 650; text-transform: uppercase; letter-spacing: 0.02em; font-size: 17px; }
.cr-rows .cr-what { grid-column: 2; color: var(--on-bone); }
@media (min-width: 760px) {
  .cr-rows li { grid-template-columns: 64px 180px 1fr; align-items: baseline; padding: 22px 0; }
  .cr-rows .cr-what { grid-column: 3; }
}
.cr-ink .cr-rows { border-top-color: var(--bone); }
.cr-ink .cr-rows li { border-bottom-color: var(--rule-ink); }
.cr-ink .cr-rows .cr-what { color: var(--on-ink); }

/* ---------- role page body ---------- */
.cr-body { display: grid; gap: clamp(40px, 6vw, 64px); }
.cr-pitch { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; max-width: 38em; }
.cr-block { display: grid; gap: 14px; }
.cr-block .cr-mono { color: var(--on-bone-soft); }
.cr-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); max-width: 46em; }
.cr-list li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--rule-bone); position: relative; color: var(--on-bone); }
.cr-list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 8px; height: 2px; background: var(--ink); }
.cr-apply-end { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* ---------- the final call ---------- */
.cr-final .cr-head .cr-mono, .cr-final p { color: var(--on-ink); }
.cr-final-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--bone); }
.cr-final-list a { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 64px; padding: 14px 0; border-bottom: 1px solid var(--rule-ink); text-decoration: none; }
.cr-final-list .cr-h3 { font-size: clamp(17px, 2vw, 21px); }
.cr-final-list .cr-mono { flex: none; text-decoration: underline; text-underline-offset: 4px; }
.cr-final-list a:hover .cr-h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- apply page: the Tally form, full width on bone ---------- */
.cr-form-wrap { border: 2px solid var(--ink); background: var(--bone); padding: clamp(8px, 2vw, 18px); min-height: 520px; }
.cr-form-wrap iframe { width: 100%; border: 0; min-height: 600px; }
.cr-form-wait { display: grid; place-content: center; gap: 12px; min-height: 480px; text-align: center; padding: 24px; color: var(--on-bone); }

/* ---------- entrances: a short fade and rise, once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* values Jonathan still has to confirm (preview builds only) */
.cr-tbc { background: rgba(184, 163, 126, 0.35); color: inherit; padding: 0 3px; }

/* header and footer run the full width (brand at the left edge, links at the right), 1 Nov 2026 */
.cr-wide { width: 100%; margin: 0 auto; padding-inline: clamp(20px, 3.4vw, 56px); }
.cr-nav { --nav-h: 64px; height: 64px; }
:root { --nav-h: 64px; }
.cr-brand { font-size: 16px; gap: 12px; }
.cr-brand svg { width: 24px; height: 24px; }
.cr-links { gap: 36px; }
.cr-links a { font-size: 13.5px; letter-spacing: 0.1em; }
.nav-toggle { font-size: 13px; }
.cr-foot-links { gap: 4px 30px; }
.cr-foot-links a { font-size: 13px; }

/* the form: a skeleton in the frame's place until the form has drawn, so there is never a blank box */
.cr-form-wrap { position: relative; padding: clamp(8px, 2vw, 18px); min-height: 0; }
.cr-form-wrap iframe { display: block; min-height: 640px; opacity: 0; transition: opacity 240ms var(--ease); }
.cr-form-wrap.is-loaded iframe { opacity: 1; min-height: 0; }
.cr-skel { position: absolute; inset: clamp(8px, 2vw, 18px); display: grid; align-content: start; gap: 10px; padding: 8px 6px; transition: opacity 240ms var(--ease); }
.cr-form-wrap.is-loaded .cr-skel { opacity: 0; visibility: hidden; }
.cr-skel .cr-mono { color: var(--on-bone-soft); margin-bottom: 10px; }
.cr-skel-l { display: block; width: 32%; height: 12px; background: rgba(0, 0, 0, 0.12); }
.cr-skel-f { display: block; width: 100%; max-width: 640px; height: 40px; border: 1px solid rgba(0, 0, 0, 0.18); background: rgba(255, 255, 255, 0.5); margin-bottom: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .cr-skel-l, .cr-skel-f { animation: cr-pulse 1.4s ease-in-out infinite; }
  @keyframes cr-pulse { 50% { opacity: 0.55; } }
}
.cr-form-nojs { padding: 24px 6px; }

/* every header on the site is laid out the same (1 Nov 2026): brand left, the four site pages centred; the footer
   matches, with its links centred */
@media (min-width: 821px) {
  .cr-nav-in { position: relative; }
  .cr-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
  .cr-foot-in { grid-template-columns: 1fr auto 1fr; }
  .cr-foot-links { justify-content: center; }
  .cr-foot-rule { text-align: center; }
}

/* ===== AI slop audit fixes (preview, 4 Nov 2026); careers follows the brand book, so these need Jonathan ===== */
/* 18: headings in sentence case, still wide and heavy */
.cr-display, .cr-rows .cr-step, .cr-btn { text-transform: none !important; letter-spacing: 0 !important; }
.cr-display { line-height: 1.04; }
/* 17: labels, nav, links and buttons in Archivo; mono kept only for the facts in the role strip and the step numbers */
.cr-mono, .cr-link, .cr-links a, .nav-toggle, .cr-foot-links a, .cr-foot-rule, .cr-strip dt, .cr-card .cr-more { font-family: var(--font) !important; text-transform: none !important; letter-spacing: 0.01em !important; font-size: 13.5px !important; }
.cr-links a { font-size: 14px !important; }
/* 13: no "Careers at Zach AI" eyebrow on the careers pages */
.cr-eyebrow { display: none !important; }
/* 8: thinner boxes */
.cr-card, .cr-fit > div { border-width: 1px !important; }
.cr-card { border-color: var(--rule-bone) !important; }
/* 6: spacing separates the rows, one rule above each list */
.cr-rows li, .cr-list li { border-bottom: 0 !important; }
.cr-rows, .cr-list { border-top-width: 1px !important; }
