/* Careers / Join us page. Load after body.css, header.css, footer.css. Needs <body class="careers"> */
body.careers{--paper:#f2e8d3;--ink:#1d1409}

/* Hero with team photo background */
body.careers .j-hero{position:relative;padding:160px 0 80px;overflow:hidden;isolation:isolate}
body.careers .j-hero::before{
  content:"";position:absolute;inset:0;z-index:-2;
  background:url("../images/careers-hero.webp") 55% 70%/cover no-repeat;
  filter:sepia(.2) saturate(.9) brightness(.85) contrast(1.05);
  transform:scale(1.04);
  animation:heroZoom 1.6s cubic-bezier(.2,.7,.2,1) both
}
body.careers .j-hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg,rgba(8,6,4,.95) 0%,rgba(8,6,4,.86) 30%,rgba(8,6,4,.3) 52%,rgba(8,6,4,.12) 62%,rgba(8,6,4,.4) 100%),
    radial-gradient(ellipse at 55% 45%,rgba(228,182,94,.10),transparent 45%),
    linear-gradient(180deg,rgba(8,6,4,.5) 0%,transparent 25%,transparent 75%,var(--bg,#080604) 100%)
}
@keyframes heroZoom{from{transform:scale(1.12);opacity:0}to{transform:scale(1.04);opacity:1}}
body.careers .j-hero>.wrap{position:relative;z-index:1}

body.careers .crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:.88rem;color:var(--muted);margin-bottom:30px}
body.careers .crumbs a:hover{color:var(--gold2)}
body.careers .crumbs li+li::before{content:"/";margin-right:8px;opacity:.5}
body.careers .j-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:64px;align-items:end}
body.careers .j-hero h1{font-size:clamp(2.6rem,5.8vw,4.9rem);font-weight:800;line-height:1.02;margin-bottom:24px;max-width:14ch;text-shadow:0 2px 30px rgba(0,0,0,.45)}
body.careers .j-hero .lead{max-width:54ch}
body.careers .paths{display:grid;gap:14px}
body.careers .path{display:block;padding:24px 26px;border:1px solid rgba(228,182,94,.28);border-radius:16px;background:rgba(14,10,6,.68);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:border-color .25s,background .25s,transform .25s}
body.careers .path:hover{border-color:var(--gold);background:rgba(23,16,10,.85);transform:translateY(-3px)}
body.careers .path h2{font-size:1.25rem;margin-bottom:6px}
body.careers .path p{color:var(--muted);font-size:.95rem}
body.careers .path span{display:inline-block;margin-top:12px;color:var(--gold2);font-weight:600;font-size:.92rem}

/* Open roles: a job board */
body.careers .sec-head{margin-bottom:28px}
body.careers .chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
body.careers .chip{background:none;border:1px solid var(--line);color:var(--muted);font:inherit;font-weight:500;padding:10px 20px;border-radius:999px;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
body.careers .chip:hover{color:var(--gold2);border-color:var(--gold)}
body.careers .chip[aria-pressed=true]{background:var(--gold2);border-color:var(--gold2);color:#150e03}
body.careers .chip:focus-visible,body.careers .apply:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}
body.careers .roles{border-top:1px solid var(--line)}
body.careers .role{display:grid;grid-template-columns:1fr auto auto;gap:12px 30px;align-items:center;padding:24px 8px;border-bottom:1px solid var(--line);transition:background .2s}
body.careers .role:hover{background:rgba(228,182,94,.05)}
body.careers .role[hidden]{display:none}
body.careers .role h3{font-size:1.2rem;margin-bottom:6px}
body.careers .role p{color:var(--muted);font-size:.95rem;max-width:62ch}
body.careers .tag{font-size:.8rem;padding:5px 12px;border-radius:999px;border:1px solid var(--line);color:var(--muted);white-space:nowrap}
body.careers .tag.abroad{border-color:var(--gold);color:var(--gold2)}
body.careers .apply{padding:11px 24px;border:1px solid var(--gold2);border-radius:999px;color:var(--gold2);font-weight:600;font-size:.93rem;white-space:nowrap;transition:background .2s,color .2s}
body.careers .apply:hover{background:var(--gold2);color:#150e03}
body.careers .roles-note{margin-top:18px;color:var(--muted);font-size:.93rem}

/* Benefits of overseas roles */
body.careers .perks{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
body.careers .perk{padding:6px 28px 6px 0;border-top:2px solid var(--gold)}
body.careers .perk+.perk{padding-left:24px;border-left:1px solid var(--line)}
body.careers .perk h3{font-size:1.1rem;margin:16px 0 8px}
body.careers .perk p{color:var(--muted);font-size:.93rem}
body.careers .fine{margin-top:26px;color:var(--muted);font-size:.9rem;max-width:70ch}

/* Application */
body.careers .apply-note{margin-top:26px;color:var(--muted)}
body.careers .apply-note a{color:var(--gold2)}
body.careers .apply-note a:hover{text-decoration:underline}
body.careers .contact-lines{margin-top:30px;line-height:2}
body.careers .contact-lines a{color:var(--gold2)}
body.careers .contact-lines a:hover{text-decoration:underline}

/* Offices */
body.careers .off-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 36px}
body.careers .off-grid article{padding:16px 0 10px;border-top:2px solid var(--gold)}
body.careers .off-grid h3{font-size:1.1rem;margin-bottom:8px}
body.careers .off-grid p{color:var(--muted);font-size:.93rem}

@media(prefers-reduced-motion:reduce){
  body.careers .j-hero::before{animation:none}
}
@media(max-width:980px){
  body.careers .j-hero{padding-top:120px}
  body.careers .j-hero::after{
    background:
      linear-gradient(180deg,rgba(8,6,4,.82) 0%,rgba(8,6,4,.62) 55%,var(--bg,#080604) 100%)
  }
  body.careers .j-grid{grid-template-columns:1fr;gap:40px}
  body.careers .perks{grid-template-columns:1fr 1fr;row-gap:30px}
  body.careers .perk:nth-child(3){padding-left:0;border-left:0}
  body.careers .off-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  body.careers .role{grid-template-columns:1fr;gap:12px;padding:22px 0}
  body.careers .role .tag{justify-self:start;order:-1}
  body.careers .apply{justify-self:start}
  body.careers .perks,body.careers .off-grid{grid-template-columns:1fr}
  body.careers .perk+.perk{padding-left:0;border-left:0}
}