/* Careers page (/careers) — the "join us" destination. A cr- layer on the
   blog/work theme system: page chrome reads the --pg-* tokens (blog.css owns
   those); headings, buttons and the end CTA come from main.css/blog.css
   primitives. In the CMS build the vacancy rows come from Workable;
   everything here is the template for that. (An "Owner Nº" numbering device
   was tried on the rows and dropped — the EOT is still paying off the
   previous owners, so ownership stays a soft sell on this page.) */

.cr-lead{font-size:1.1875rem;line-height:1.6;color:var(--pg-fg-2);max-width:56ch;
  margin:26px 0 0}

/* ---------- the culture-film overlay ----------
   careers.js builds a <dialog class="lbx cr-film-dlg"> (lightbox.css owns the
   dialog/backdrop/close); this sizes the 16:9 stage, which .lbx only does for
   img/video. The hero stays a screen — playback only ever happens here. */
.cr-film-dlg .cr-film-frame{width:min(1400px,92vw);aspect-ratio:16/9;max-height:82vh;
  border-radius:12px;overflow:hidden;background:#000;
  box-shadow:0 40px 120px -30px rgba(0,0,0,.8)}
.cr-film-dlg iframe{display:block;width:100%;height:100%;border:0}
.cr-play{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;
  background:var(--orange);color:#fff; /* warm fill takes white ink — APCA, see CLAUDE.md */
  transition:transform .3s ease,background .3s ease}
.cr-play svg{width:36%;height:36%;margin-left:7%} /* triangle sits optically centred, not geometrically */
@media(prefers-reduced-motion:reduce){.cr-play{transition:none}}

/* ---------- the film cell, docked in the perks grid ----------
   The hero is easy to scroll past, so the film repeats as a keyline media
   cell sharing the grid's top row with the ownership lead (media sits on
   black in both themes — DESIGN.md). Same [data-film] overlay as the hero. */
.cr-perk-film{position:relative;display:block;padding:0;overflow:hidden;min-height:220px;
  background:var(--black);text-decoration:none}
.cr-perk-film:hover{background:var(--black)} /* media cell skips the card-tone hover */
.cr-perk-film img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.85;
  transition:opacity .4s ease,transform .6s ease}
.cr-perk-film:hover img{opacity:1;transform:scale(1.03)}
.cr-perk-film .cr-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.cr-perk-film:hover .cr-play{transform:translate(-50%,-50%) scale(1.08);background:var(--orange-d)}
.cr-perk-film:focus-visible{outline:2px solid var(--pg-accent);outline-offset:-3px}
/* caption slate: fixed bone-on-black over a lifting scrim */
.cr-perk-film-cap{position:absolute;left:0;right:0;bottom:0;padding:26px 16px 12px;
  font-family:'IBM Plex Mono',monospace;font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(246,243,236,.8);background:linear-gradient(transparent,rgba(0,0,0,.7))}
.cr-perk-film-cap b{display:block;font-weight:500;color:#f6f3ec}
@media(prefers-reduced-motion:reduce){.cr-perk-film img{transition:none}}

/* ---------- shared section head ---------- */
.cr-sec{margin-top:clamp(70px,9vw,110px)}
.cr-sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.cr-sec-head h2{font-weight:700;font-size:clamp(1.75rem,3.6vw,2.75rem);letter-spacing:-.025em;
  line-height:1.06;margin:14px 0 0}
.cr-sec-note{font-family:'IBM Plex Mono',monospace;font-size:.75rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--pg-fg-2);flex:none;padding-bottom:6px}

/* ---------- open seats (vacancies) ----------
   Directory rows on keylines, the same editorial language as the blog list.
   A row may claim a discipline accent inline (--acc/--acc-aa/--acc-lg), the
   same convention as bl-row / sv-mini. */
.cr-list{margin-top:34px;border-bottom:1px solid var(--pg-line)}
.cr-role{--en-acc:var(--acc,var(--pg-accent));--en-acc-lg:var(--acc,var(--pg-accent));
  display:grid;grid-template-columns:172px 1fr auto;gap:28px;align-items:center;
  padding:30px 0;border-top:1px solid var(--pg-line);text-decoration:none;color:var(--pg-fg)}
[data-theme="light"] .bl-page .cr-role{--en-acc:var(--acc-aa,var(--pg-accent));
  --en-acc-lg:var(--acc-lg,var(--acc-aa,var(--pg-accent)))}
.cr-seat{font-family:'IBM Plex Mono',monospace;font-size:.8125rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--pg-fg-2);line-height:1.5}
.cr-seat b{display:block;font-weight:600;color:var(--en-acc-lg)}
.cr-role h3{font-weight:700;font-size:clamp(1.375rem,3vw,2.125rem);letter-spacing:-.02em;
  line-height:1.1;margin:0;transition:color .25s}
.cr-role:hover h3{color:var(--en-acc-lg)}
.cr-role-meta{display:block;margin-top:9px;font-family:'IBM Plex Mono',monospace;
  font-size:.8125rem;color:var(--pg-fg-2)}
.cr-apply{justify-self:end;display:inline-flex;align-items:center;gap:8px;
  border:1px solid var(--pg-line);border-radius:999px;padding:9px 18px;
  font-family:'IBM Plex Mono',monospace;font-size:.8125rem;color:var(--pg-fg);white-space:nowrap;
  transition:border-color .25s,color .25s,transform .25s}
.cr-apply svg{width:14px;height:14px;transition:transform .25s}
.cr-role:hover .cr-apply{border-color:var(--en-acc-lg);color:var(--en-acc-lg)}
.cr-role:hover .cr-apply svg{transform:translate(2px,-2px)}
.cr-role:focus-visible{outline:2px solid var(--pg-accent);outline-offset:3px;border-radius:6px}
/* the speculative row — always last, never "no vacancies" */
.cr-role.is-spec h3{color:var(--pg-fg-2)}
.cr-role.is-spec:hover h3{color:var(--en-acc-lg)}

/* ---------- perks: keyline grid (cells share 1px borders, no doubles) ----------
   Six tracks so the top row can split 50/50 (lead + film, 3 tracks each)
   while the perk cells below run in thirds (2 tracks each). */
.cr-perk-grid{display:grid;grid-template-columns:repeat(6,1fr);margin-top:34px;
  border-top:1px solid var(--pg-line);border-left:1px solid var(--pg-line)}
.cr-perk{grid-column:span 2;padding:26px 28px 30px;border-right:1px solid var(--pg-line);
  border-bottom:1px solid var(--pg-line);transition:background .3s ease}
.cr-perk:hover{background:var(--pg-card)}
.cr-perk-tag{display:block;margin-bottom:16px;font-family:'IBM Plex Mono',monospace;
  font-size:.6875rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--pg-fg-2)}
.cr-perk h3{font-weight:700;font-size:1.1875rem;letter-spacing:-.01em;margin:0 0 8px}
.cr-perk p{font-size:.9375rem;line-height:1.55;color:var(--pg-fg-2);margin:0;max-width:36ch}
/* the ownership cell leads the grid with the accent and the bigger cut;
   the film cell takes the other half of the top row */
.cr-perk.is-lead{grid-column:span 3;padding:34px 28px 38px}
.cr-perk-grid>.cr-perk-film{grid-column:span 3}
.cr-perk.is-lead .cr-perk-tag{color:var(--pg-accent)}
.cr-perk.is-lead h3{font-size:clamp(1.5rem,2.6vw,2.125rem);letter-spacing:-.02em}
.cr-perk.is-lead p{font-size:1.0625rem;max-width:60ch}

/* ---------- life at RKH: copy + reading rail beside the photo fader ---------- */
.cr-life-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:clamp(44px,6vw,96px);align-items:start;margin-top:34px}
.cr-life-copy p{font-size:1.0625rem;line-height:1.6;color:var(--pg-fg-2);margin:0 0 1.2em;max-width:44ch}
.cr-reading{margin-top:34px}
.cr-reading h4{font-family:'IBM Plex Mono',monospace;font-weight:500;font-size:.75rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--pg-fg-2);margin:0 0 6px}
.cr-read{display:flex;align-items:baseline;justify-content:space-between;gap:18px;
  padding:14px 0;border-top:1px solid var(--pg-line);text-decoration:none;color:var(--pg-fg)}
.cr-read:last-child{border-bottom:1px solid var(--pg-line)}
.cr-read b{font-weight:600;font-size:.9375rem;line-height:1.4;transition:color .25s}
.cr-read:hover b{color:var(--pg-accent-lg)}
.cr-read time{font-family:'IBM Plex Mono',monospace;font-size:.75rem;color:var(--pg-fg-2);flex:none}
.cr-life-photo{aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:var(--pg-card);margin:0}

/* ---------- perk iconography (hero-preview trial; harmless if unused) ---------- */
.cr-perk-ic{display:block;width:24px;height:24px;color:var(--pg-fg-2);margin-bottom:14px;
  transition:color .3s ease}
.cr-perk:hover .cr-perk-ic{color:var(--pg-accent-lg)}
.cr-perk.is-lead .cr-perk-ic{color:var(--pg-accent)}

/* ---------- introduce yourself: copy beside the careers form card ----------
   The form reuses the shared form-card primitives and the contact.js ids
   (name/email/message + the briefDrop zone), so validation, the CV drop zone
   and the success bird all come from contact.js for free. */
.cr-intro{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:clamp(44px,6vw,80px);align-items:start}
.cr-intro-copy h2{font-weight:700;font-size:clamp(1.75rem,3.6vw,2.75rem);letter-spacing:-.025em;
  line-height:1.06;margin:14px 0 0}
.cr-intro-copy p{font-size:1.0625rem;line-height:1.6;color:var(--pg-fg-2);margin:18px 0 0;max-width:44ch}

/* ---------- the film hero: the culture film AS the masthead ----------
   Full-bleed cinematic band (same move as the services showreel hero). The
   muted studio loop is only ever a screen; the whole stage is the #filmStage
   link and careers.js opens the film in the overlay above. Ink is forced
   light over the video. Scoped with :has(.cr-hero) so the main page and any
   design-trial copy both get the shell + header treatment. */
.cr-page:has(.cr-hero) .cr-shell{padding-top:0}
.cr-hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);height:clamp(600px,88vh,900px);
  background:var(--black);overflow:hidden}
.cr-hero-stage{position:absolute;inset:0;display:block;cursor:pointer}
.cr-hero-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.92}
.cr-hero-scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,10,14,.42),transparent 30%),
             linear-gradient(8deg,rgba(10,10,14,.88) 10%,rgba(10,10,14,.38) 46%,transparent 68%)}
.cr-hero-inner{position:absolute;inset:0;pointer-events:none;display:flex;flex-direction:column;
  justify-content:space-between;max-width:var(--wrap-max);margin:0 auto;width:100%;
  padding:122px var(--pad) 46px}
.cr-hero-top{display:flex;justify-content:space-between;align-items:center}
.cr-hero-top .bl-kicker{color:#fff}
.cr-hero-top .bl-kicker::before{background:var(--orange)}
.cr-hero-top .bl-theme-toggle{pointer-events:auto;color:#fff;border-color:rgba(255,255,255,.4);
  background:rgba(10,10,14,.35)}
.cr-hero-top .bl-theme-toggle:hover{border-color:#fff;color:#fff}
.cr-hero-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:44px}
.cr-hero-foot h1{font-weight:800;font-size:clamp(2.875rem,6vw,5.25rem);letter-spacing:-.045em;
  line-height:.95;margin:0;color:#fff;max-width:16ch}
.cr-hero-foot h1 span{color:var(--orange)}
.cr-hero-foot .cr-lead{color:rgba(255,255,255,.85);margin-top:22px;max-width:52ch}
.cr-hero-tag{display:flex;align-items:center;gap:16px;flex:none;padding-bottom:8px;
  font-family:'IBM Plex Mono',monospace;font-size:.6875rem;letter-spacing:.08em;
  text-transform:uppercase;color:rgba(255,255,255,.8);white-space:nowrap;text-align:right}
.cr-hero-stage:hover~.cr-hero-inner .cr-play{transform:scale(1.08);background:var(--orange-d)}
.cr-hero-stage:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
[data-theme="light"] .cr-page:has(.cr-hero) header:not(.scrolled) .logo .lb,
[data-theme="light"] .cr-page:has(.cr-hero) header:not(.scrolled) .logo .lw{fill:#fff}
[data-theme="light"] .cr-page:has(.cr-hero) header:not(.scrolled) .navlinks{color:#fff;text-shadow:none}
[data-theme="light"] .cr-page:has(.cr-hero) header:not(.scrolled) .burger span{background:#fff}

@media(max-width:900px){
  .cr-perk-grid{grid-template-columns:1fr 1fr}
  .cr-perk{grid-column:auto} /* the 6-track spans would force implicit tracks here */
  .cr-perk.is-lead{grid-column:1/-1}
  .cr-perk-grid>.cr-perk-film{grid-column:1/-1;aspect-ratio:16/9;min-height:0}
  .cr-role{grid-template-columns:1fr auto;row-gap:12px}
  .cr-seat{grid-column:1/-1}
  .cr-seat b{display:inline;margin-right:10px}
}
@media(max-width:880px){
  .cr-intro{grid-template-columns:1fr;gap:38px}
  .cr-hero-foot{flex-direction:column;align-items:flex-start;gap:24px}
  .cr-hero-tag{padding-bottom:0}
  .cr-life-grid{grid-template-columns:1fr;gap:38px}
  .cr-life-photo{order:-1}
  .cr-sec-head{flex-direction:column;align-items:flex-start;gap:10px}
  .cr-sec-note{padding-bottom:0}
}
@media(max-width:560px){
  .cr-perk-grid{grid-template-columns:1fr}
  .cr-perk.is-lead{grid-column:1/-1} /* span 2 would force an implicit second track on the 1-col grid */
  .cr-apply span{display:none} /* pill collapses to the bare arrow */
  .cr-apply{padding:9px 12px}
}
